/* BOOKKEEPERS GROUP — print-process palette from the logo; each colour is a discipline group. */
:root {
  --paper: #ffffff;
  --mist: #f0f3f8;
  --ink: #1a1c40;
  --ink-2: #51556f;
  --line: #d9dfe9;
  --m: #ee4f9c;   /* architecture & design */
  --c: #22b2e5;   /* structure */
  --y: #ffc63a;   /* engineering systems */
  --b: #2f5ce0;   /* estimates, planning, roads */
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
.g-ar { --g: var(--m); }
.g-st { --g: var(--c); }
.g-me { --g: var(--y); }
.g-qs { --g: var(--b); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f);
  font-stretch: 100%;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.display, .display-2, .h2, .h3, .cta h2 {
  font-stretch: 125%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 780; line-height: 0.98; }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 740; line-height: 1.02; max-width: 22ch; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 720; line-height: 1.06; max-width: 24ch; }
.h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.kicker { font-weight: 600; font-size: 15px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: linear-gradient(90deg, var(--m) 0 33%, var(--c) 33% 66%, var(--y) 66%); }
.code { font-stretch: 62%; font-weight: 650; font-size: 15px; letter-spacing: 0.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.label { font-size: 15px; font-weight: 650; }

/* ---------- buttons, links, chips ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: 2px;
  font-weight: 620; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary, .btn-ink { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--b); border-color: var(--b); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link:hover { color: var(--b); }
.link .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.chip::before { content: ""; width: 10px; height: 10px; background: var(--g, var(--ink)); flex: none; }
a.chip:hover { color: var(--ink); text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 52px; height: auto; }
.logo-word { display: flex; flex-direction: column; font-stretch: 125%; font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.logo-word small { font-weight: 500; font-size: 11px; letter-spacing: 0.3em; margin-top: 4px; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 10px; text-decoration: none; font-weight: 550; font-size: 15px; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-color: var(--line); }
.nav-list a[aria-current] { border-color: var(--m); }
.nav-side { display: flex; align-items: center; gap: 18px; }
.nav-side .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 650; }
.lang a, .lang span { padding: 6px 7px; text-decoration: none; }
.lang span { background: var(--mist); }
.lang a { color: var(--ink-2); }
.lang a:hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--ink); background: none; border-radius: 2px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 77px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 24px;
    max-height: calc(100vh - 77px); overflow: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--m); padding-left: 14px; }
  .nav-side { justify-content: space-between; padding-top: 18px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy .lead { margin: 26px 0 34px; }
.wa-inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.wa-inline:hover { color: var(--ink); text-decoration: underline; }
.stack { width: 100%; height: auto; overflow: visible; }
.stack .plate { mix-blend-mode: multiply; transform-box: fill-box; }
.stack .p-m { --p: var(--m); }
.stack .p-c { --p: var(--c); }
.stack .p-y { --p: var(--y); }
.stack .plate polygon { fill: var(--p); }
.stack .plate .side-l { fill: color-mix(in srgb, var(--p) 78%, var(--ink)); }
.stack .plate .side-r { fill: color-mix(in srgb, var(--p) 62%, var(--ink)); }
.stack .col { stroke: var(--ink); stroke-width: 1.5; }
.stack .callout circle { fill: var(--ink); }
.stack .callout line { stroke: var(--ink); stroke-width: 1.5; }
.stack .callout text { font-family: var(--f); font-stretch: 112%; font-weight: 650; font-size: 22px; fill: var(--ink); }
.stack .dim line { stroke: var(--ink-2); stroke-width: 1.2; }
.stack .dim text { font-family: var(--f); font-stretch: 75%; font-weight: 600; font-size: 17px; fill: var(--ink-2); letter-spacing: .04em; }

@media (prefers-reduced-motion: no-preference) {
  .stack .plate { opacity: 0; transform: translateY(-70px); animation: drop .9s cubic-bezier(.2,.75,.25,1) forwards; animation-delay: calc(var(--i) * 160ms + 120ms); }
  .stack .callout, .stack .dim { opacity: 0; animation: fade .5s ease-out forwards; animation-delay: calc(var(--i, 3) * 160ms + 700ms); }
  @keyframes drop { to { opacity: .92; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .stack .plate { opacity: .92; } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}

/* ---------- coordination band ---------- */
.coord { background: var(--ink); color: #fff; position: relative; }
.coord::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--m) 0 25%, var(--c) 25% 50%, var(--y) 50% 75%, var(--b) 75%); }
.coord-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); align-items: end; }
.coord p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #c9cbe0; max-width: 52ch; }
@media (max-width: 800px) { .coord-in { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.section.tight { padding-top: clamp(32px, 4vw, 56px); }
.section.mist { background: var(--mist); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.sec-p { color: var(--ink-2); max-width: 60ch; margin-top: 14px; }

/* services register (home) */
.register { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.reg-list { border-bottom: 1px solid var(--line); }
.reg-row {
  display: grid; grid-template-columns: 70px 1fr 1fr 24px; gap: 8px 24px; align-items: baseline;
  padding: 22px 16px 22px 18px; border-top: 1px solid var(--line); text-decoration: none; position: relative;
  transition: background-color .15s;
}
.reg-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 5px; background: var(--g); transform: scaleY(.0); transform-origin: top; transition: transform .2s; }
.reg-row:hover, .reg-row.on { background: var(--mist); }
.reg-row:hover::before, .reg-row.on::before { transform: none; }
.reg-t { font-stretch: 112%; font-weight: 680; font-size: 1.2rem; line-height: 1.25; }
.reg-d { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.reg-ic { align-self: center; }
.reg-thumb { display: none; }
.reg-fig { position: sticky; top: 110px; aspect-ratio: 1 / 1; background: var(--mist); }
.reg-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.reg-fig img.on { opacity: 1; }
@media (max-width: 960px) {
  .register { grid-template-columns: 1fr; }
  .reg-fig { display: none; }
  .reg-row { grid-template-columns: 1fr 96px; padding: 18px 0 18px 14px; }
  .reg-row .code { grid-column: 1; }
  .reg-t, .reg-d { grid-column: 1; }
  .reg-thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 96px; object-fit: cover; align-self: center; }
  .reg-ic { display: none; }
}

/* process */
.process { background: var(--mist); }
.process .h2 { margin-bottom: clamp(32px, 4vw, 52px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding: 18px 0 34px; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; }
.steps .n { font-stretch: 62%; font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; grid-row: span 2; }
.steps .t { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.steps .opt { font-size: 14px; color: var(--ink-2); }
.steps .opt::before { content: ""; display: inline-block; width: 18px; border-top: 1.5px dashed var(--ink-2); vertical-align: middle; margin-right: 8px; }
.steps li:last-child { border-top-style: dashed; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-bottom: 22px; } }

/* title block (drawing stamp) */
.stamp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); margin: 30px 0; }
.stamp > div { padding: 14px 16px; background: #fff; min-width: 0; }
.stamp > .wide { grid-column: span 2; }
.stamp dt { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.stamp dd { font-weight: 650; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.stamp.big dd { font-size: 1.12rem; }

.lic-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.lic-in .lead { margin-top: 20px; }
.lic-doc { display: block; border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--y); background: #fff; max-width: 380px; justify-self: center; }
@media (max-width: 860px) { .lic-in { grid-template-columns: 1fr; } .lic-doc { max-width: 320px; justify-self: start; } }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.proj { display: flex; flex-direction: column; gap: 20px; }
.proj[hidden] { display: none; }
.proj-img { position: relative; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.proj-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.proj-img:hover img { transform: scale(1.03); }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; background: #fff; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.proj-meta { display: flex; gap: 16px; font-stretch: 75%; font-weight: 650; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.proj-meta span + span::before { content: ""; display: inline-block; width: 14px; border-top: 1.5px solid var(--line); vertical-align: middle; margin-right: 16px; }
.proj h3 { font-stretch: 112%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin-bottom: 12px; text-wrap: balance; }
.proj .chips { margin-bottom: 14px; }
.proj-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 68ch; }
.home-proj .proj.big { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.home-proj .proj.big h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; }
  .home-proj .proj.big { grid-column: auto; grid-template-columns: 1fr; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 44px); }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 2px; font-size: 14.5px; font-weight: 580; cursor: pointer; }
.chip-btn::before { content: ""; width: 10px; height: 10px; background: var(--g, var(--ink)); }
.chip-btn[data-f="all"]::before { background: linear-gradient(90deg, var(--m) 0 25%, var(--c) 25% 50%, var(--y) 50% 75%, var(--b) 75%); }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 40px 0; color: var(--ink-2); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(26, 28, 64, .86); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border: 0; border-radius: 2px; cursor: pointer; }

/* CTA */
.cta { background: var(--y); }
.cta-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); align-items: end; }
.cta h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 760; line-height: 1.02; }
.cta p { margin-bottom: 26px; font-size: 1.08rem; max-width: 46ch; }
.cta .btn-line:hover { background: var(--ink); }
@media (max-width: 800px) { .cta-in { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 80px) 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 1fr 1.3fr; gap: 36px; }
.foot-brand img { width: 120px; background: #fff; padding: 8px; margin-bottom: 18px; }
.foot-brand p { color: #c9cbe0; max-width: 34ch; }
.site-footer h2 { font-size: 14px; font-weight: 600; color: #9fa3c4; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: #9fa3c4; font-size: 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* inner page head */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 22px; }
.page-head .legend, .page-head .btns { margin-top: 28px; }

/* about */
.about-in { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.prose p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.5; max-width: 46ch; }
.prose p + p { margin-top: 1em; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 52px); }
.values li { border-top: 8px solid; padding-top: 20px; }
.values .v-m { border-color: var(--m); }
.values .v-c { border-color: var(--c); }
.values .v-y { border-color: var(--y); }
.values .v-b { border-color: var(--b); }
.values h3 { font-stretch: 112%; font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.values p { color: var(--ink-2); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } .about-in { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* services */
.svc-wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--sec); display: grid; gap: clamp(56px, 7vw, 96px); }
.group-h { display: flex; align-items: center; gap: 14px; font-stretch: 125%; font-weight: 720; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.group-h .sw { width: 22px; height: 22px; background: var(--g); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px clamp(18px, 2vw, 28px); }
.tile a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile-img { display: block; overflow: hidden; border-top: 6px solid var(--g); background: var(--mist); margin-bottom: 10px; }
.tile-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.tile a:hover .tile-img img { transform: scale(1.04); }
.tile-t { font-stretch: 108%; font-weight: 680; font-size: 1.12rem; line-height: 1.25; }
.tile a:hover .tile-t { text-decoration: underline; text-underline-offset: 3px; }
.tile-d { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

.svc-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.svc-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); margin-bottom: 36px; }
.back:hover { color: var(--ink); }
.svc-tag { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.svc-hero .lead { margin: 22px 0 32px; }
.svc-fig { border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--g); background: var(--mist); }
.svc-fig img { width: 100%; max-height: 72vh; object-fit: cover; }
@media (max-width: 860px) { .svc-hero-in { grid-template-columns: 1fr; } .svc-fig { max-width: 480px; } }
.scope-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); }
.scope li { padding: 18px 18px 18px 24px; font-weight: 620; font-size: 1.05rem; background: #fff; position: relative; }
.scope li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--g); }
.scope li:last-child:nth-child(odd) { grid-column: span 2; }
@media (max-width: 760px) { .scope-in { grid-template-columns: 1fr; } .scope { grid-template-columns: 1fr; } .scope li:last-child:nth-child(odd) { grid-column: auto; } }

/* license page */
.lic-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lic-left { display: grid; gap: 34px; justify-items: start; position: sticky; top: 110px; }
.lic-page .stamp { margin-top: 0; }
.areas { counter-reset: a; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 20px; }
.areas li { counter-increment: a; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.areas li::before { content: counter(a, decimal-leading-zero); font-stretch: 62%; font-weight: 700; font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 960px) { .lic-page { grid-template-columns: 1fr; } .lic-left { position: static; } .lic-left .lic-doc { max-width: 320px; } }
@media (max-width: 640px) { .areas { grid-template-columns: 1fr; } }

/* contact */
.contact-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid { margin: 0; }
.contact-grid dd { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 1.15rem; }
.contact-grid dd > a:first-child { text-decoration: none; }
.mini { font-size: 14px; font-weight: 600; color: var(--b); }
.note { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.contact-side { display: grid; gap: 24px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1.5px solid var(--ink); background: var(--mist); }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > div { grid-column: auto; } }

/* quote */
.quote-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.next { position: sticky; top: 110px; display: grid; gap: 22px; justify-items: start; }
.next ol { counter-reset: q; display: grid; gap: 0; }
.next li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.next li::before { content: counter(q, decimal-leading-zero); font-stretch: 62%; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.qform { display: grid; gap: 22px; }
.hint { font-size: 14px; color: var(--ink-2); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.f { display: grid; gap: 8px; }
.f > span, .svc-checks legend { font-weight: 620; font-size: 15px; }
.req { color: var(--m); margin-left: 3px; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #b9c0ce; border-radius: 2px; background: #fff; font-size: 16px;
}
.f textarea { resize: vertical; min-height: 150px; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--ink-2); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px rgba(47, 92, 224, .2); }
.f .bad { border-color: #c4233b; }
.err { color: #b01d33; font-size: 14px; font-weight: 550; }
.svc-checks { border: 0; padding: 0; margin: 0; }
.svc-checks legend { margin-bottom: 12px; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-left: 6px solid var(--g); cursor: pointer; font-size: 15px; line-height: 1.3; }
.check:hover { border-color: var(--ink-2); border-left-color: var(--g); }
.check input, .consent input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check:has(input:checked) { background: var(--mist); border-color: var(--ink); border-left-color: var(--g); }
.files-note { background: var(--mist); padding: 16px 18px; border-left: 6px solid var(--c); }
.files-note strong { font-weight: 620; font-size: 15px; }
.files-note p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.consent input { margin-top: 3px; }
.qform .btn { justify-self: start; }
@media (max-width: 900px) { .quote-in { grid-template-columns: 1fr; } .next { position: static; } }
@media (max-width: 600px) { .frow, .checks { grid-template-columns: 1fr; } }

/* service search text */
.seo-text { padding-bottom: 0; }
.prose-p { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.hero-copy h1.kicker { margin: 0 0 22px; font-size: 15px; font-weight: 600; letter-spacing: 0; }

/* project pages */
.proj h3 a { text-decoration: none; }
.proj h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj-link { margin-top: 14px; align-self: flex-start; font-size: 15px; }
.proj-stamp { margin: 0 0 30px; }
.proj-stamp .chips { margin-top: 2px; }

/* ---- SEO content blocks (landing pages, FAQ, prices) ---- */
.prose-col { display: grid; gap: 16px; }
.bullets { display: grid; gap: 8px; max-width: 62ch; }
.bullets li { position: relative; padding-left: 22px; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--g, var(--b)); }
.price-stamp { margin: 22px 0 26px; max-width: 520px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; display: grid; gap: 12px; }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); margin-top: 28px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; text-decoration: none; font-weight: 650; height: 100%; }
.link-list a:hover { background: var(--mist); }
.link-list .ic { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) { .faq .scope-in, .seo-text .scope-in { grid-template-columns: 1fr; gap: 20px; } }
.prose-sec + .prose-sec, .seo-text + .prose-sec { padding-top: 0; }
.price-stamp > .wide { grid-column: span 2; }
.link-list { background: none; border: 0; gap: 12px; }
.link-list a { border: 1.5px solid var(--ink); }
:lang(ru) body, :lang(ru) button, :lang(ru) input, :lang(ru) select, :lang(ru) textarea { font-family: "Archivo", "Onest", "Helvetica Neue", Arial, sans-serif; }
/* ---- articles + calculator ---- */
.numbered { display: grid; gap: 10px; padding-left: 1.4em; list-style: decimal; max-width: 62ch; }
.numbered li { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); padding-left: 4px; }
.art-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.art-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.art-toc { position: sticky; top: 100px; border-top: 1.5px solid var(--ink); padding-top: 14px; }
.art-toc p { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.art-toc ol { display: grid; gap: 8px; list-style: decimal; padding-left: 1.2em; font-size: 14px; color: var(--ink-2); }
.art-toc a { text-decoration: none; } .art-toc a:hover { text-decoration: underline; }
.art-text { display: grid; gap: 18px; max-width: 720px; }
.art-text .h2 { margin-top: 26px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); scroll-margin-top: 100px; }
.art-text .h3 { margin-top: 8px; font-size: 1.2rem; }
.art-text a { color: var(--b); }
.art-text strong { color: var(--ink); }
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.art-list a { display: grid; gap: 10px; height: 100%; padding: 24px; border: 1.5px solid var(--ink); text-decoration: none; background: #fff; }
.art-list a:hover { background: var(--mist); }
.art-date { font-size: 13px; color: var(--ink-2); }
.art-t { font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.art-d { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.calc { display: grid; gap: 16px; border: 1.5px solid var(--ink); padding: 26px; background: #fff; max-width: 560px; }
.calc .f { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.calc select, .calc input { border: 1.5px solid var(--ink); padding: 12px 14px; font-size: 1.05rem; background: #fff; border-radius: 0; color: var(--ink); }
.calc-out { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; }
@media (max-width: 900px) { .art-in { grid-template-columns: 1fr; gap: 28px; } .art-toc { position: static; } }

/* ===== motion v5: 3D hero, marquee, counters, reveal, live cards ===== */
.hero-art { perspective: 1400px; position: relative; }
.hero-art::after { content: ""; position: absolute; left: 12%; right: 30%; bottom: 2%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(26,28,64,.22), transparent); filter: blur(6px); transition: transform .6s cubic-bezier(.2,.75,.25,1), opacity .6s; z-index: -1; }
.stack { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.75,.25,1); will-change: transform; cursor: grab; }
.stack.live .plate, .stack.live .callout { animation: none !important; opacity: 1 !important; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.stack.live .plate { transform: translateY(0); }
.stack.live.open .p-m, .stack.live.open .callout[style*="--i:0"] { transform: translateY(-40px); }
.stack.live.open .p-y, .stack.live.open .callout[style*="--i:2"] { transform: translateY(40px); }
.stack.live .col { transition: opacity .5s; }
.stack.live.open .col { opacity: .25; }
.hero-art.is-open::after { transform: scaleX(1.12) translateY(30px); opacity: .7; }
.stack.live.idle .plate { animation: bob 5.5s ease-in-out infinite !important; animation-delay: calc(var(--i) * -0.8s) !important; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stack .plate polygon { transition: filter .4s; }
.stack.live.open .plate:hover polygon { filter: brightness(1.08) saturate(1.1); }

/* marquee */
.marquee { overflow: hidden; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 14px; padding: 18px 26px; font-stretch: 112%; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); white-space: nowrap; color: var(--ink); }
.marquee .dot { width: 12px; height: 12px; display: inline-block; transform: rotate(45deg); }
.dot.m { background: var(--m); } .dot.c { background: var(--c); } .dot.y { background: var(--y); } .dot.b { background: var(--b); }
@keyframes mq { to { transform: translateX(-50%); } }

/* stats */
.stats-band { padding: clamp(40px, 6vw, 72px) 0; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat { border-top: 6px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat.m { border-color: var(--m); } .stat.c { border-color: var(--c); } .stat.y { border-color: var(--y); } .stat.b { border-color: var(--b); }
.stat-n { font-stretch: 118%; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
@media (max-width: 760px) { .stats-in { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* live service cards */
.tile a { position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tile-img { position: relative; transition: box-shadow .35s; }
.tile-img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--ink); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.tile a:hover, .tile a:focus-visible { transform: translateY(-6px); }
.tile a:hover .tile-img, .tile a:focus-visible .tile-img { box-shadow: 0 18px 32px -18px rgba(26,28,64,.45); }
.tile a:hover .tile-img::after, .tile a:focus-visible .tile-img::after { width: 100%; }
.tile a:hover .tile-img img { transform: scale(1.07); }
.proj { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.proj:hover { transform: translateY(-4px); }

/* reveal on scroll (only when JS is on) */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.rv-on .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .stack { transform: none !important; }
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
  .tile a, .proj { transition: none; }
}
.stack.live .dim { opacity: 1 !important; animation: none !important; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.stack.live.open .dim { transform: translateY(46px); }
/* ===== hero: house builds from zero ===== */
.build { width: 100%; height: auto; overflow: visible; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.75,.25,1); }
.build .fl, .build .fr, .build .tp { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.build .b-site { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 2; }
.b-found .tp { fill: #d5dae4; } .b-found .fl { fill: #b8bfcc; } .b-found .fr { fill: #a3abba; }
.b-col .tp { fill: var(--c); } .b-col .fl { fill: color-mix(in srgb, var(--c) 80%, var(--ink)); } .b-col .fr { fill: color-mix(in srgb, var(--c) 62%, var(--ink)); }
.b-slab .tp { fill: color-mix(in srgb, var(--c) 35%, #fff); } .b-slab .fl { fill: color-mix(in srgb, var(--c) 55%, #fff); } .b-slab .fr { fill: color-mix(in srgb, var(--c) 70%, var(--ink) 10%); }
.b-mep { stroke: var(--y); stroke-width: 5; stroke-linecap: round; }
.b-mep.e { stroke: var(--b); stroke-width: 3.5; }
.b-wall { stroke: var(--ink); stroke-width: 1.2; }
.b-wall.wl { fill: #fbfcfe; } .b-wall.wr { fill: #e9edf4; }
.b-win { fill: #bfe3f5; stroke: var(--ink); stroke-width: 1.2; }
.b-door { fill: var(--m); stroke: var(--ink); stroke-width: 1.2; }
.b-roof .tp { fill: color-mix(in srgb, var(--m) 30%, #fff); } .b-roof .fl { fill: var(--m); } .b-roof .fr { fill: color-mix(in srgb, var(--m) 72%, var(--ink)); }
.b-roofbox .tp { fill: #f3f5f9; } .b-roofbox .fl { fill: #e3e7ee; } .b-roofbox .fr { fill: #cdd3de; }
.b-sol { fill: var(--b); stroke: var(--ink); stroke-width: 1; }
.b-crane .tp, .b-crane .fl, .b-crane .fr { fill: var(--y); stroke: var(--ink); stroke-width: 1; }
.b-crane line { stroke: var(--ink); stroke-width: 3; }
.b-crane .hook { stroke-width: 1.2; }
.b-crane .load { fill: var(--m); stroke: var(--ink); stroke-width: 1; }
.b-lab circle { fill: var(--ink); } .b-lab line { stroke: var(--ink); stroke-width: 1.5; }
.b-lab text { font-family: var(--f); font-stretch: 112%; font-weight: 650; font-size: 22px; fill: var(--ink); }
.b-lab .n { font-weight: 800; font-size: 15px; }
.b-lab.g .n { fill: var(--ink-2); } .b-lab.c .n { fill: var(--c); } .b-lab.y .n { fill: #d49a00; } .b-lab.m .n { fill: var(--m); }
.b-dim line { stroke: var(--ink-2); stroke-width: 1.2; }
.b-dim text { font-family: var(--f); font-stretch: 75%; font-weight: 600; font-size: 17px; fill: var(--ink-2); letter-spacing: .04em; }
.build .b-el, .build .b-wall, .build .b-win, .build .b-door, .build .b-sol { transform-box: fill-box; }

@media (prefers-reduced-motion: no-preference) {
  .build.run .b-site { stroke-dasharray: 100; animation: bdraw 1s ease-out both; animation-delay: var(--t); }
  .build.run .b-found { transform-origin: 50% 100%; animation: brise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--t); }
  .build.run .b-col { transform-origin: 50% 100%; animation: bgrow .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--t); }
  .build.run .b-slab, .build.run .b-roof, .build.run .b-roofbox { animation: bdrop .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--t); }
  .build.run .b-mep { stroke-dasharray: 100; animation: bdraw .7s ease-out both; animation-delay: var(--t); }
  .build.run .b-wall { animation: bwall .55s ease-out both; animation-delay: var(--t); }
  .build.run .b-win, .build.run .b-door, .build.run .b-sol { animation: bpop .4s cubic-bezier(.3,1.4,.5,1) both; animation-delay: var(--t); transform-origin: 50% 50%; }
  .build.run .b-lab, .build.run .b-dim { animation: bfade .5s ease-out both; animation-delay: var(--t); }
  .build .b-jib { transform-box: view-box; animation: bswing 7s ease-in-out infinite; }
  .build.run .b-crane { animation: bfade .8s ease-out both; }
}
@keyframes bdraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes brise { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bgrow { from { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes bdrop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bwall { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bpop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes bfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bswing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.5deg); } }
.build.out { transition: opacity .6s, transform .5s; opacity: 0; }

/* home: all services visible at once, compact, grouped */
.register { grid-template-columns: 1.5fr .5fr; }
.reg-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(20px, 3vw, 40px); }
.rg-h { display: flex; align-items: center; gap: 10px; font-stretch: 112%; font-weight: 750; font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin: 0; }
.rg-h .sw { width: 12px; height: 12px; background: var(--g); flex: none; }
.rg-n { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reg-list.cmp { border-bottom: 0; }
.reg-row.cmp { grid-template-columns: 52px 1fr 18px; gap: 12px; align-items: center; padding: 11px 10px 11px 12px; }
.reg-row.cmp .code { font-size: 12px; }
.reg-row.cmp .reg-t { font-size: 1rem; font-weight: 640; line-height: 1.3; }
.reg-row.cmp .reg-ic { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.reg-row.cmp:hover .reg-ic, .reg-row.cmp.on .reg-ic { opacity: 1; transform: none; }
.reg-row.cmp:first-child { border-top: 0; }
.rg li:first-child .reg-row.cmp { border-top: 0; }
.reg-fig { aspect-ratio: 4 / 5; border-top: 6px solid var(--ink); }
@media (max-width: 1100px) { .register { grid-template-columns: 1fr; } .reg-fig { display: none; } }
@media (max-width: 640px) { .reg-groups { grid-template-columns: 1fr; gap: 22px; } .reg-row.cmp { grid-template-columns: 48px 1fr 16px; padding: 10px 4px 10px 10px; } .reg-row.cmp .reg-ic { opacity: .5; transform: none; } .reg-row.cmp .reg-thumb { display: none; } }
@media (max-width: 960px) {
  .reg-row.cmp { grid-template-columns: 48px 1fr 16px; padding: 10px 4px 10px 10px; align-items: center; }
  .reg-row.cmp .code, .reg-row.cmp .reg-t { grid-column: auto; }
  .reg-row.cmp .reg-ic { display: block; opacity: .5; transform: none; }
}

/* ===== v10: map, quick calc, page transitions, progress, WA button, spotlight, tilt ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

.sprog { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--m), var(--c), var(--y), var(--b)); pointer-events: none; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(26,28,64,.5); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waping 2.4s ease-out infinite; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .wa-tip { position: absolute; right: 70px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 12px; opacity: 0; transform: translateX(8px); transition: .25s; pointer-events: none; }
.wa-fab:hover .wa-tip { opacity: 1; transform: none; }
@keyframes waping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* dark coordination block: blueprint grid + cursor spotlight */
.coord { overflow: hidden; }
.coord::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0, transparent 70%); mask: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0, transparent 70%); }
.coord-in { position: relative; z-index: 1; }

/* process: colored bar draws across each step */
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: linear-gradient(90deg, var(--m), var(--c), var(--y), var(--b)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0ms) + 200ms); }
.rv-on .steps li.in::before { transform: scaleX(1); }

/* project images tilt */
.proj-img { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .3s ease; }

/* map */
.map-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.azmap { width: 100%; height: auto; color: var(--line); overflow: visible; }
.azmap .mg { opacity: .55; }
.azmap .land { fill: var(--mist); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.azmap .pin { cursor: pointer; outline: none; }
.azmap .pin .dot { fill: var(--m); stroke: #fff; stroke-width: 3; transition: r .2s; }
.azmap .pin .pulse { fill: var(--m); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pinpulse 2.2s ease-out infinite; }
.azmap .pin:nth-of-type(2n) .dot, .azmap .pin:nth-of-type(2n) .pulse { fill: var(--c); }
.azmap .pin:nth-of-type(3n) .dot, .azmap .pin:nth-of-type(3n) .pulse { fill: var(--b); }
.azmap .pin text { font-family: var(--f); font-stretch: 112%; font-weight: 700; font-size: 24px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.azmap .pin:hover .dot, .azmap .pin.on .dot, .azmap .pin:focus .dot { r: 14; }
@keyframes pinpulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
.map-cards { margin-top: 26px; min-height: 230px; }
.map-card { border: 1.5px solid var(--ink); background: #fff; padding: 16px; box-shadow: 10px 10px 0 var(--mist); animation: bfade .3s ease both; }
.mc-city { font-stretch: 112%; font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.map-card a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); }
.map-card a:first-of-type { border-top: 0; }
.map-card img { width: 96px; height: 66px; object-fit: cover; }
.map-card a span { font-weight: 650; line-height: 1.3; }
.map-card a:hover span { text-decoration: underline; }
@media (max-width: 900px) { .map-in { grid-template-columns: 1fr; } .map-cards { order: 2; min-height: 0; } .azmap .pin text { font-size: 30px; } }

/* quick calculator */
.qcalc-sec { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.qcalc-sec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--m) 0 25%, var(--c) 25% 50%, var(--y) 50% 75%, var(--b) 75%); }
.qcalc { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.qcalc .h2 { color: #fff; margin-bottom: 26px; }
.qc-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.qc-type { text-align: left; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: 14px 16px; font: inherit; font-weight: 650; font-size: 15px; line-height: 1.3; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; }
.qc-type small { color: #c9cbe0; font-weight: 500; font-size: 13px; }
.qc-type:hover { border-color: #fff; }
.qc-type.on { background: #fff; color: var(--ink); border-color: #fff; }
.qc-type.on small { color: var(--ink-2); }
.qc-area { display: flex; flex-direction: column; gap: 14px; font-size: 1.1rem; }
.qc-area b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.qc-area input { width: 100%; accent-color: var(--y); height: 28px; }
.qc-right { border: 1.5px solid rgba(255,255,255,.3); padding: clamp(24px, 3vw, 40px); }
.qc-sum { margin: 0; font-stretch: 118%; font-weight: 800; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--y); }
.qc-cur { font-size: .4em; color: #fff; letter-spacing: 0; }
.qc-note { color: #c9cbe0; font-size: 14px; margin: 14px 0 24px; }
.qc-wa.btn-primary { background: var(--y); color: var(--ink); border-color: var(--y); }
@media (max-width: 860px) { .qcalc { grid-template-columns: 1fr; } .qc-types { grid-template-columns: 1fr; } }

/* magnetic buttons */
.btn { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .15s, color .15s; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .wa-fab::before, .azmap .pin .pulse { animation: none; }
  .steps li::before { transform: scaleX(1); transition: none; }
  .proj-img { transform: none !important; }
}

/* ---------- home hero: layihədən reallığa (WebGL) ---------- */
.bgr{position:relative;height:calc(100vh - 76px);height:calc(100svh - 76px);min-height:560px;max-height:980px;overflow:hidden;background:#09192f center/cover no-repeat;background-image:linear-gradient(rgba(80,150,220,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(80,150,220,.10) 1px,transparent 1px);background-size:44px 44px;isolation:isolate;color:#fff;font-family:var(--f)}
.bgr.no-webgl{background-size:cover;background-position:70% 50%}
.bgr__canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .6s ease}
.bgr.gl-on .bgr__canvas{opacity:1}
.bgr__shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,10,22,.78) 0%,rgba(5,10,22,.42) 36%,rgba(5,10,22,0) 62%),linear-gradient(0deg,rgba(5,10,22,.45),rgba(5,10,22,0) 30%)}
.bgr__content{position:relative;z-index:3;height:100%;max-width:1240px;margin:0 auto;padding:0 28px;display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.bgr__content a,.bgr__content button{pointer-events:auto}
.bgr h1.bgr__kicker{font-size:14px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;max-width:46ch;color:#ffc63a;margin:0 0 16px;opacity:0;transform:translateY(12px);transition:all .8s ease .1s}
.bgr__title{color:#fff;font-size:clamp(44px,7vw,96px);line-height:.98;margin:0 0 20px;font-weight:800;letter-spacing:-.025em;max-width:12ch;text-shadow:0 4px 40px rgba(0,0,0,.35)}
.bgr__title .w{display:inline-block;opacity:0;transform:translateY(40px) scale(.96);filter:blur(10px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1),filter .9s ease}
.bgr__title .w.accent{transition-delay:.18s;color:#ffc63a;text-shadow:0 0 38px rgba(255,198,58,.4)}
.bgr__sub{font-size:clamp(16px,1.5vw,19px);line-height:1.5;max-width:44ch;margin:0 0 30px;opacity:0;transform:translateY(16px);transition:all .9s ease .35s;color:rgba(255,255,255,.9)}
.bgr__actions{display:flex;gap:12px;flex-wrap:wrap;opacity:0;transform:translateY(16px);transition:all .9s ease .5s}
.bgr__hint{margin:22px 0 0;font-size:13px;letter-spacing:.06em;opacity:0;transition:opacity 1s ease 1s}
.bgr.is-in .bgr__kicker,.bgr.is-in .bgr__sub,.bgr.is-in .bgr__actions{opacity:1;transform:none}
.bgr.is-in .bgr__title .w{opacity:1;transform:none;filter:none}
.bgr.is-done .bgr__hint{opacity:.7}
.bgr__btn{font:inherit;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:16px;padding:14px 26px;border-radius:999px;cursor:pointer;text-decoration:none;border:2px solid transparent;transition:transform .2s,box-shadow .3s}
.bgr__btn:hover{transform:translateY(-2px)}
.bgr__btn--main{background:#ffc63a;color:#1a1c40;box-shadow:0 8px 30px rgba(255,198,58,.35)}
.bgr__btn--main:hover{box-shadow:0 10px 44px rgba(255,198,58,.65)}
.bgr__btn--ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.6);backdrop-filter:blur(6px)}
.bgr__chips{position:absolute;inset:0;z-index:2;pointer-events:none}
.bgr__chip{position:absolute;transform:translate(-50%,-140%) scale(.6);opacity:0;padding:6px 11px;border-radius:999px;background:rgba(6,12,26,.72);border:1.5px solid var(--c);color:#fff;font:600 12px/1 ui-sans-serif,system-ui,Arial;letter-spacing:.04em;white-space:nowrap;box-shadow:0 0 18px color-mix(in srgb,var(--c) 60%,transparent);transition:opacity .45s ease,transform .5s cubic-bezier(.2,1.5,.4,1)}
.bgr__chip::after{content:"";position:absolute;left:50%;top:100%;width:2px;height:18px;background:var(--c);transform:translateX(-50%)}
.bgr__chip.on{opacity:1;transform:translate(-50%,-140%) scale(1)}
.bgr__hud{position:absolute;z-index:3;bottom:30px;right:104px;width:270px;font:600 11px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;color:#ffd27a;pointer-events:none;padding:14px 16px;background:rgba(6,12,26,.45);border:1px solid rgba(255,210,122,.25);backdrop-filter:blur(8px);border-radius:10px}
.bgr__hud-row{display:flex;justify-content:space-between;opacity:.85}
.bgr__hud-big{font-size:54px;font-weight:800;letter-spacing:-.02em;line-height:1;margin:6px 0 8px;text-align:right}
.bgr__hud-big small{font-size:20px;margin-left:2px}
.bgr__hud-bar{height:3px;background:rgba(255,210,122,.22);margin-bottom:9px;position:relative}
.bgr__hud-bar i{position:absolute;left:0;top:0;bottom:0;width:0;background:#ffd27a;box-shadow:0 0 12px #ffd27a}
.bgr__steps{display:flex;justify-content:space-between;gap:4px}
.bgr__steps i{font-style:normal;font-size:9px;letter-spacing:.06em;opacity:.35;transition:opacity .3s,color .3s}
.bgr__steps i.on{opacity:1}.bgr__steps i.cur{color:#fff}
.bgr__stamp{position:absolute;left:50%;top:-40px;padding:7px 12px;border:2px solid #4ade80;color:#4ade80;background:rgba(6,12,26,.6);font-size:12px;letter-spacing:.14em;white-space:nowrap;transform:translateX(-50%) rotate(-5deg) scale(2.4);opacity:0;transition:transform .35s cubic-bezier(.2,1.6,.4,1),opacity .2s}
.bgr.is-done .bgr__stamp{opacity:1;transform:translateX(-50%) rotate(-5deg) scale(1)}
@media (max-width:640px){
 .bgr__shade{background:linear-gradient(0deg,rgba(5,10,22,.93) 0%,rgba(5,10,22,.7) 50%,rgba(5,10,22,.15) 85%)}
 .bgr__content{justify-content:flex-end;padding-bottom:52px}.bgr__hint{display:none}
 .bgr__hud{top:14px;right:14px;bottom:auto;width:190px;padding:10px 12px}.bgr__hud-big{font-size:36px}.bgr__steps{display:none}
 .bgr__chips{display:none}.bgr__stamp{top:auto;bottom:-42px}}
.bgr__btn--wa{background:transparent;border-color:transparent;color:#fff;padding-left:6px;padding-right:6px;opacity:.9}
.bgr__btn--wa .ic,.bgr__btn .ic{width:18px;height:18px}
.bgr__replay{position:absolute;z-index:3;left:max(var(--gut),calc((100% - 1240px)/2 + 28px));bottom:22px;font:600 12px/1 var(--f);letter-spacing:.06em;color:rgba(255,255,255,.75);background:none;border:0;cursor:pointer;padding:6px 0;opacity:0;transition:opacity .6s}
.bgr.is-done .bgr__replay{opacity:1}.bgr__replay:hover{color:#ffc63a}
@media (max-width:640px){.bgr{height:calc(100svh - 64px)}.bgr__replay{display:none}.bgr__hud{right:14px}.bgr__hud-row:first-child{display:none}}
.bgr:not(.js) .bgr__kicker,.bgr:not(.js) .bgr__sub,.bgr:not(.js) .bgr__actions,.bgr:not(.js) .bgr__title .w{opacity:1;transform:none;filter:none}
.bgr:not(.js) .bgr__hud{display:none}
/* LCP: hero text is painted immediately, no fade-in */
.bgr .bgr__kicker,.bgr .bgr__sub,.bgr .bgr__actions,.bgr .bgr__title .w{opacity:1;transform:none;filter:none;transition:none}
/* ---------- home: design directions (interior / exterior / landscape) ---------- */
.dz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.dz-card { background: var(--paper); border-top: 6px solid var(--g); display: flex; flex-direction: column; padding: 0 0 24px; }
.dz-img { display: block; overflow: hidden; }
.dz-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s ease; }
.dz-card:hover .dz-img img { transform: scale(1.04); }
.dz-t { margin: 18px 20px 8px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.dz-t a { color: inherit; text-decoration: none; }
.dz-d { margin: 0 22px 14px; color: var(--ink-2); line-height: 1.5; font-size: 15px; }
.dz-l { margin: 0 22px 18px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.dz-l li { position: relative; padding-left: 18px; }
.dz-l li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--g); }
.dz-card .link { margin: auto 22px 0; }
@media (max-width: 1100px) { .dz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .dz-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 10px; scrollbar-width: none; }
  .dz-grid::-webkit-scrollbar { display: none; }
  .dz-card { flex: 0 0 82%; scroll-snap-align: start; }
  .dz-img img { aspect-ratio: 16 / 9; }
  .dz-t { margin: 14px 16px 6px; font-size: 1.08rem; }
  .dz-d { margin: 0 16px 10px; font-size: 14px; }
  .dz-l { margin: 0 16px 14px; font-size: 14px; gap: 6px; }
  .dz-card .link { margin: auto 16px 0; }
  .dz .sec-head { margin-bottom: 20px; }
  /* services register: collapsible groups on phones */
  .reg-groups { gap: 10px; }
  .rg .rg-h { cursor: pointer; padding: 12px 0; }
  .rg .rg-h::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 12px; transition: transform .2s; }
  .rg.open .rg-h::after { transform: rotate(-135deg); }
  .rg .reg-list { display: none; }
  .rg.open .reg-list { display: block; }
}
.dz-swipe { display: none; }
@media (max-width: 640px) { .dz-swipe { display: block; margin: 6px 0 0; font-size: 13px; color: var(--ink-2); text-align: right; } }
.dz-all { background: var(--ink); border-top-color: var(--y); padding: 0; }
.dz-all a { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; min-height: 220px; padding: 28px; color: #fff; text-decoration: none; }
.dz-all-n { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--y); }
.dz-all-t { font-size: 1.3rem; font-weight: 700; }
.dz-all .link { color: #fff; margin: 0; border-color: rgba(255,255,255,.6); }
.dz-grid > .dz-all { display: none; }
@media (max-width: 640px) { .dz-grid > .dz-all { display: flex; } }

/* long words in headings must not push past the screen on phones */
h1 { overflow-wrap: anywhere; hyphens: auto; }
