/* ARDENA BUILD — one-page version ("Стандарт")
   Same identity as the full site: palette "Stone and blueprint", Noto Serif Display Light + Manrope (Cyrillic).
   One still photo in the hero, plain sections, CSS-only motion. */

@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/noto-serif-display-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/noto-serif-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ededea;
  --surface: #e2e2de;
  --surface-2: #d0d0cb;
  --paper: #f7f7f5;
  --ink: #1a1c21;
  --muted: #53555b;
  --accent: #1f4fd1;
  --accent-deep: #173fb0;
  --night: #15171b;
  --viber: #7360f2;
  --viber-deep: #5e4bd8;
  --fill: #c4312b;

  --f-display: 'Noto Serif Display', 'Times New Roman', serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.375rem, 1.5rem + 3vw, 4.5rem);
  --step-display: clamp(3.4rem, 1rem + 8.4vw, 9.5rem);

  --margin: clamp(20px, 5.2vw, 100px);
  --gap: clamp(14px, 1.7vw, 28px);
  --section: clamp(64px, 7vw, 132px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; font-feature-settings: "locl" 0 !important; /* standard Cyrillic letterforms */ }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font: 300 var(--step-head)/1 var(--f-display); letter-spacing: -0.025em; text-wrap: balance; }
h3 { font: 600 var(--step-body)/1.35 var(--f-text); }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { padding-inline: var(--margin); }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 0; cursor: pointer;
  font: 600 1rem/1.1 var(--f-text); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--viber { background: var(--viber); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn .ico { width: 1.15em; height: 1.15em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-deep); }
  .btn--viber:hover { background: var(--viber-deep); }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
}
.link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; transition: color 200ms ease; }
.link .ico { width: 1.1em; height: 1.1em; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--accent); } }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- demo marks */
.demo-fill, .demo-confirm { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.demo-fill { text-decoration-color: var(--fill); }
.demo-confirm { text-decoration-color: var(--accent); }
.demo-fill::after, .demo-confirm::after {
  content: attr(data-note); display: inline-block; margin-left: 0.4em; padding: 0.05em 0.45em; vertical-align: 0.12em;
  font: 600 0.8125rem/1.35 var(--f-text); letter-spacing: 0; text-decoration: none; white-space: nowrap; color: #fff; background: var(--fill);
}
.demo-confirm::after { background: var(--accent); }
.notes-off .demo-fill, .notes-off .demo-confirm { text-decoration: none; }
.notes-off .demo-fill::after, .notes-off .demo-confirm::after { display: none; }

/* ---------- header: menu in the middle, call button in the top right corner */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding-inline: var(--margin);
  color: #fff; background: transparent; transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-solid { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 rgb(26 28 33 / 0.08); }
.wordmark { grid-column: 1; justify-self: start; font: 500 var(--step-body)/1 var(--f-text); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.nav { grid-column: 2; }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__link { position: relative; display: block; padding: 10px 0; font: 600 var(--step-small)/1 var(--f-text); text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); } }
.header__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.header__call { min-height: 46px; padding: 0 20px; font-size: var(--step-small); background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; transition: opacity 220ms var(--ease-out), visibility 220ms, transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.site-header.is-solid .header__call { background: var(--ink); color: var(--paper); }
.site-header.has-own-call .header__call { opacity: 0; visibility: hidden; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .site-header .header__call:hover { background: var(--accent); color: #fff; } }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .nav, .header__call { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 0 0 14px; border: 0; background: none; cursor: pointer; font-weight: 600; }
  .menu-toggle__bars { width: 26px; height: 10px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 300ms var(--ease-out); }
  .menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 39; background: var(--bg); padding: calc(var(--header-h) + 16px) var(--margin) 120px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; transform: translateY(-12px); transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu a:not(.btn) { display: block; padding: 10px 0; font: 300 clamp(1.9rem, 8vw, 2.6rem)/1.15 var(--f-display); text-decoration: none; }
.menu-open .site-header { background: var(--bg); color: var(--ink); }
.menu-open { overflow: hidden; }

/* ---------- hero: one still photograph */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; color: #fff; background: var(--night); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(12 13 16 / 0.7) 0%, rgb(12 13 16 / 0.34) 42%, rgb(12 13 16 / 0) 70%),
    linear-gradient(0deg, rgb(12 13 16 / 0.62) 0%, rgb(12 13 16 / 0) 52%),
    linear-gradient(180deg, rgb(12 13 16 / 0.4) 0%, rgb(12 13 16 / 0) 22%);
}
.hero__in { position: relative; z-index: 2; display: grid; justify-items: start; gap: clamp(20px, 2.4vw, 30px); padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(44px, 8vh, 96px); }
.hero__title { font: 300 var(--step-display)/0.92 var(--f-display); letter-spacing: -0.035em; }
.hero__title span { display: block; }
.hero__lead { max-width: 48ch; font-weight: 500; text-wrap: pretty; color: #f2f2f0; }
.hero__lead b { font-weight: 700; color: #fff; }
.hero__sample { position: absolute; right: var(--margin); bottom: 18px; z-index: 2; color: rgb(255 255 255 / 0.66); }
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: settle 2400ms var(--ease-out) both; }
  .hero__title, .hero__lead, .hero__cta { animation: rise 900ms var(--ease-out) both; }
  .hero__lead { animation-delay: 140ms; }
  .hero__cta { animation-delay: 260ms; }
}
@keyframes settle { from { transform: scale(1.07); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- section heads */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 18px; align-items: end; margin-bottom: clamp(40px, 4.6vw, 72px); }
.head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 8 / -1; max-width: 46ch; color: var(--muted); }

/* ---------- services: four large photo cards */
.svc { padding-block: var(--section); }
.svc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); color: inherit; text-decoration: none; }
.card__pic { position: relative; aspect-ratio: 16 / 10; overflow: clip; background: var(--surface); }
.card__pic picture, .card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__pic img { transition: transform 900ms var(--ease-out); }
.card__sample { position: absolute; left: 14px; bottom: 12px; padding: 2px 8px; font-size: 0.75rem; color: #fff; background: rgb(12 13 16 / 0.5); }
.card__body { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 2.6vw, 40px); }
.card__n { font: 400 1rem/1 var(--f-text); color: var(--accent); font-variant-numeric: tabular-nums; }
.card h3 { font: 300 clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem)/1.05 var(--f-display); letter-spacing: -0.02em; }
.card__scope { color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 8px; font-weight: 700; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__pic img { transform: scale(1.04); }
  .card:hover .card__more .ico { transform: translateX(4px); }
}
.card__more .ico { transition: transform 200ms var(--ease-out); }

/* ---------- the firm: Sofia across the screen, a paper panel over it */
.firm { position: relative; min-height: min(92svh, 920px); display: grid; align-items: end; overflow: clip; background: var(--night); }
.firm__bg, .firm__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.firm__in { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 96px); }
.firm__panel { display: grid; gap: 16px; max-width: 660px; padding: clamp(26px, 3.4vw, 56px); background: var(--paper); }
.firm__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--surface-2); }
.firm__facts dt { font: 300 clamp(2.4rem, 1.6rem + 2vw, 3.75rem)/1 var(--f-display); letter-spacing: -0.02em; }
.firm__facts dd { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }

/* ---------- how we work: wide numbered rows */
.steps { padding-block: var(--section); background: var(--surface); }
.steps__list { border-top: 1px solid var(--ink); }
.steps__list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(22px, 2.4vw, 38px); border-bottom: 1px solid var(--surface-2); }
.steps__n { grid-column: 1 / span 2; font: 300 clamp(2rem, 1.4rem + 1.6vw, 3.25rem)/1 var(--f-display); color: var(--accent); }
.steps__list h3 { grid-column: 3 / span 4; font: 300 clamp(1.5rem, 1.1rem + 1vw, 2.25rem)/1.1 var(--f-display); letter-spacing: -0.015em; }
.steps__list p { grid-column: 7 / -1; max-width: 54ch; }

/* ---------- sample works: a mosaic of six photos */
.works { padding-block: var(--section); }
.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 17vw, 340px); gap: var(--gap); }
.works__item { position: relative; overflow: clip; background: var(--surface); }
.works__item picture, .works__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.works__item img { transition: transform 900ms var(--ease-out); }
.works__item--1 { grid-column: 1 / span 2; grid-row: span 2; }
.works__item--4 { grid-column: 3 / span 2; }
.works__item--5 { grid-column: 1 / span 2; }
.works__item--6 { grid-column: 3 / span 2; }
.works__item figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  padding: 40px 18px 14px; color: #fff; background: linear-gradient(0deg, rgb(12 13 16 / 0.66), rgb(12 13 16 / 0));
}
.works__item figcaption span { font-weight: 600; }
.works__item figcaption small { font-size: 0.75rem; color: rgb(255 255 255 / 0.75); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .works__item:hover img { transform: scale(1.04); } }

/* ---------- contacts and map */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; padding-block: 0 var(--section); } /* follows "Обекти" on the same background: one gap, not two */
.contact__info { grid-column: 1 / span 5; display: grid; gap: 24px; }
.contact__phone { justify-self: start; font: 300 clamp(2.6rem, 1.5rem + 3.4vw, 5rem)/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .contact__phone:hover { color: var(--accent); } }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); padding-top: 24px; border-top: 1px solid var(--surface-2); }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 600; }
.contact__map { grid-column: 7 / -1; }
.contact__map > a { position: relative; display: block; aspect-ratio: 16 / 11; overflow: clip; background: var(--surface); }
.contact__map picture, .contact__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -30px 0 0 -15px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.contact__pin::after { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.contact__map figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; }

/* ---------- inquiry: one short form */
.inq { padding-block: var(--section); background: var(--surface); }
.inq__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.inq__side { grid-column: 1 / span 4; display: grid; gap: 18px; }
.inq__form { grid-column: 6 / -1; display: grid; gap: 22px; padding: clamp(24px, 3vw, 48px); background: var(--paper); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); }
.field { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b4b4ae; border-radius: 0; background: #fff;
  font: 400 1rem/1.4 var(--f-text); color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--fill); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-small); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.inq__submit { justify-self: start; }
.inq__error { color: var(--fill); font-weight: 600; }
.inq__done { display: grid; gap: 16px; }
.inq__done h3 { font: 300 clamp(1.6rem, 1.2rem + 1vw, 2.25rem)/1.1 var(--f-display); }
.inq__msg { margin: 0; padding: 16px 18px; background: var(--surface); font: 400 0.9375rem/1.55 var(--f-text); white-space: pre-wrap; }
.inq__send { display: flex; flex-wrap: wrap; gap: 10px; }
.inq__form.is-done .fields, .inq__form.is-done .inq__submit { display: none; }

/* ---------- privacy, photo sources, 404 */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); padding-bottom: var(--section); }
.legal__in { display: grid; gap: 18px; max-width: 800px; margin-inline: auto; }
.legal__in h1 { margin-bottom: 8px; }
.legal__in h2 { font: 600 1.25rem/1.3 var(--f-text); margin-top: 22px; letter-spacing: 0; }
.legal__in p { max-width: 68ch; }
.credits { display: grid; border-top: 1px solid var(--surface-2); }
.credits li { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }

/* ---------- footer */
.site-footer { background: var(--night); color: var(--paper); }
.site-footer__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; padding-top: clamp(56px, 6vw, 104px); padding-bottom: clamp(40px, 4vw, 64px); }
.site-footer__brand { grid-column: 1 / span 5; display: grid; gap: 10px; align-content: start; color: #c9c9c6; }
.site-footer__name { font: 500 clamp(1.6rem, 1rem + 1.8vw, 2.6rem)/1 var(--f-text); letter-spacing: 0.04em; color: var(--paper); }
.site-footer__name b { font-weight: 800; }
.site-footer__nav { grid-column: 6 / span 3; }
.site-footer__nav ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.site-footer__contact { grid-column: 9 / -1; display: grid; gap: 8px; align-content: start; font-style: normal; }
.site-footer__phone { font: 300 var(--step-lead)/1.1 var(--f-display); margin-bottom: 6px; }
.site-footer__legal { padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: var(--step-small); color: #c9c9c6; }
.site-footer__legal a { text-decoration: underline !important; text-underline-offset: 0.2em; }

/* ---------- phone call bar (always visible on phones) */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
  .callbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9375rem; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out); }
  .callbar__btn:active { transform: scale(0.97); }
  .callbar__btn .ico { width: 20px; height: 20px; }
  .callbar__btn--viber { background: var(--viber); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .hero { min-height: calc(100svh - 60px - env(safe-area-inset-bottom)); } /* the offer button stays above the call bar */
  .mobile-menu { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- demo notes */
.demo-chip {
  position: fixed; right: 16px; bottom: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: var(--step-small); cursor: pointer; transition: transform 160ms var(--ease-out);
}
.demo-chip:active { transform: scale(0.97); }
.demo-chip__n { background: var(--fill); padding: 0 6px; }
.demo-panel {
  position: fixed; right: 16px; bottom: 64px; z-index: 46; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow: auto;
  background: var(--paper); color: var(--ink); padding: 20px; box-shadow: 0 24px 60px rgb(20 20 24 / 0.24); font-size: 0.9375rem;
  transform-origin: calc(100% - 16px) 100%; animation: pop 200ms var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(6px); } }
.demo-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.demo-panel h2 { font: 700 1.0625rem/1.3 var(--f-text); letter-spacing: 0; }
.demo-panel__close { border: 0; background: var(--surface); width: 36px; height: 36px; cursor: pointer; }
.demo-panel__close svg { margin: auto; }
.demo-panel__list { list-style: decimal; padding-left: 1.4em; margin: 14px 0; display: grid; gap: 6px; }
.demo-panel__list a { text-decoration: underline; text-underline-offset: 0.2em; }
.demo-panel__toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
@media (max-width: 767px) { .demo-chip { display: none; } .demo-panel { top: calc(var(--header-h) + 12px); bottom: auto; max-height: calc(100svh - var(--header-h) - 100px); } }

/* ---------- entrances: parts of a section rise in turn when they come into view */
@media (prefers-reduced-motion: no-preference) {
  .js.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .js.reveal-on [data-reveal] { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
}

/* ---------- tablets and phones */
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .head h2 { grid-column: 1 / -1; }
  .head p { grid-column: 1 / -1; }
  .contact__info, .contact__map { grid-column: 1 / -1; }
  .inq__side, .inq__form { grid-column: 1 / -1; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__nav { grid-column: 1 / span 6; }
  .site-footer__contact { grid-column: 7 / -1; }
}
@media (max-width: 799px) {
  .svc__grid { grid-template-columns: 1fr; }
  .steps__list li { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; }
  .steps__n { grid-column: 1; }
  .steps__list h3 { grid-column: 2; }
  .steps__list p { grid-column: 2; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .works__item--1, .works__item--4 { grid-column: 1 / -1; grid-row: auto; }
  .works__item--5, .works__item--6 { grid-column: auto; }
  .works__item figcaption { padding: 32px 12px 10px; flex-direction: column; align-items: start; gap: 2px; }
  .firm { min-height: 0; padding-top: 46vw; }
  .firm__bg { height: 60vw; inset: 0 0 auto 0; }
  .firm__bg img { height: 100%; }
  .firm__in { padding-inline: 0; padding-block: 0; }
  .firm__panel { max-width: none; }
}
@media (max-width: 599px) {
  :root { --header-h: 62px; }
  .wordmark { font-size: 0.9688rem; }
  .hero__in { padding-bottom: 32px; gap: 18px; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { width: 100%; }
  .hero__sample { display: none; }
  .fields { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact__btns .btn { flex: 1 1 100%; }
  .firm__facts { grid-template-columns: 1fr 1fr 1fr; }
  .firm__facts dt { font-size: 2.1rem; }
  .site-footer__nav, .site-footer__contact { grid-column: 1 / -1; }
  .inq__send .btn { flex: 1 1 100%; }
}
