/* =========================================================
   Delow — design system (shared by every page)
   ========================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Geologica"; src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; src: url("/assets/fonts/geologica-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light;
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #ebebee;
  --line: #e3e2e6;
  --ink: #0f0e11;
  --ink-2: #2b2930;
  --muted: #66636b;
  --dark: #0e0d10;
  --dark-2: #19171c;
  --dark-3: #242128;
  --on-dark: #f4f2f6;
  --on-dark-2: #d2cdd6;
  --accent: #4a2545;
  --accent-2: #6b3a64;
  --accent-soft: #f3ecf2;
  --accent-light: #cba9c5;

  --font-display: "Geologica", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.75rem, 1.6rem + 4.6vw, 6.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.5vw, 3.875rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  --fs-body: 1.125rem;
  --fs-card: 1rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;

  --r-card: 24px;
  --r-tile: 20px;
  --r-btn: 12px;
  --r-pill: 999px;

  --wrap: 1320px;
  --gutter: 20px;
  --section: 96px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --shadow-float: 0 1px 2px rgba(15, 14, 17, .06), 0 12px 32px -8px rgba(15, 14, 17, .18);
  --shadow-lift: 0 2px 4px rgba(15, 14, 17, .04), 0 18px 40px -16px rgba(15, 14, 17, .22);
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 120px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --section: 140px; --header-h: 84px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6;
  /* Standard (Russian-style) Cyrillic forms even though the page is lang="bg". */
  font-feature-settings: "locl" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main, .site-footer { overflow-x: clip; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-btn); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* ---------- Icons ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.h1, .h2, h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 20px;
}
.eyebrow .ico { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }
.eyebrow::after { content: ""; width: 56px; height: 1.5px; background: currentColor; opacity: .25; margin-left: 4px; }
.eyebrow--light { color: var(--on-dark); }
.eyebrow--light .ico { color: var(--accent-light); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .22s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .ico { transform: translateX(4px); } }

/* ---------- Buttons ----------
   Pill + round arrow on the right. On hover the label rolls up (a copy comes in from below,
   built by main.js) and the arrow turns from → to ↗. Press: scale(.97). */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  --tile-bg: var(--accent); --tile-fg: #fff; --tile-bg-h: var(--accent-light); --tile-fg-h: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 6px 24px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; line-height: 1.25; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:has(.btn__icon) { padding: 6px 6px 6px 24px; }
.btn:active { transform: scale(.97); }
.btn__label { display: block; overflow: hidden; min-width: 0; }
/* A button never pushes past its container: on narrow phones a long label wraps instead */
.btn { max-width: 100%; }
@media (max-width: 559px) { .btn { white-space: normal; text-align: left; } }
.btn__roll { display: grid; }
.btn__roll > span { grid-area: 1 / 1; transition: transform .3s var(--ease-out); }
.btn__roll > span + span { transform: translateY(110%); }
.btn__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--tile-bg); color: var(--tile-fg);
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ease-out);
}
.btn__icon .ico { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__roll > span:first-child { transform: translateY(-110%); }
  .btn:hover .btn__roll > span + span { transform: none; }
  .btn:hover .btn__icon { transform: scale(1.08); background: var(--tile-bg-h); color: var(--tile-fg-h); }
  .btn:hover .btn__icon .ico { transform: rotate(-45deg); }
  .btn:hover .btn__icon .ico--phone { transform: rotate(-14deg); }
}
.btn--sm { min-height: 44px; padding-inline: 18px; font-size: .9375rem; gap: 10px; }
.btn--sm:has(.btn__icon) { padding: 4px 4px 4px 18px; }
.btn--sm .btn__icon { width: 36px; height: 36px; }
.btn--sm .btn__icon .ico { width: 16px; height: 16px; }
.btn--lg { min-height: 58px; padding-inline: 28px; font-size: 1.0625rem; }
.btn--lg:has(.btn__icon) { padding: 6px 6px 6px 28px; }
.btn--lg .btn__icon { width: 46px; height: 46px; }
.btn--lg .btn__icon .ico { width: 20px; height: 20px; }
@media (max-width: 479px) {
  .btn--lg { font-size: 1rem; gap: 12px; }
  .btn--lg:has(.btn__icon) { padding-left: 22px; }
  .btn--lg .btn__icon { width: 44px; height: 44px; }
}
/* Full-width: label on the left, circle on the right edge (centred when there is no circle) */
.btn--block { width: 100%; white-space: normal; text-align: left; }
.btn--block:has(.btn__icon) { justify-content: space-between; }
.btn--block:not(:has(.btn__icon)) { text-align: center; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --tile-bg: var(--surface-2); --tile-fg: var(--ink); --tile-bg-h: var(--ink); --tile-fg-h: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { --btn-bg: rgba(15, 14, 17, .05); } }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --tile-bg: var(--ink); --tile-fg: #fff; --tile-bg-h: var(--accent); --tile-fg-h: #fff; }
.btn[disabled] { opacity: .7; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .btn__roll > span + span { display: none; }
  .btn:hover .btn__roll > span:first-child, .btn:hover .btn__icon, .btn:hover .btn__icon .ico { transform: none; }
}

/* ---------- Shared bits ---------- */
.icon-box {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .35s var(--ease-out);
}
.icon-box .ico { width: 24px; height: 24px; }
.icon-box--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-box--sm .ico { width: 20px; height: 20px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-small); font-weight: 500; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-light); color: var(--ink); stroke-width: 2.6; margin-top: 1px; }
.check-list--dark .ico { background: var(--ink); color: #fff; }

/* "пример" marker on illustrative mock-ups: present, but quiet */
.tile__tag { position: absolute; top: 12px; right: 16px; z-index: 2; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .01em; }
.tile__tag--dark { color: rgba(255, 255, 255, .55); }

.photo { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--surface-2); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transform: scale(1.001); transition: filter .6s ease, transform .9s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .photo:hover img { filter: grayscale(0) contrast(1); transform: scale(1.04); } }

/* Grain for dark blocks */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Metallic eggplant ring: an echo of the logo ring, drawn in CSS */
.ring3d {
  position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 58%, rgba(255,255,255,.55) 64%, transparent 72%),
    conic-gradient(from 200deg, #1d121b, #7d4a75 12%, #f2e3ef 22%, #8f5a87 30%, #2a1827 44%, #5b2f55 58%, #e9d2e4 70%, #6b3a64 80%, #1d121b);
  -webkit-mask: radial-gradient(closest-side, transparent 55%, #000 56.5%, #000 98%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 55%, #000 56.5%, #000 98%, transparent 100%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
  animation: ring-spin 24s linear infinite;
}
@keyframes ring-spin { to { rotate: 360deg; } }

/* ---------- Header: logo · one island with a sliding pill · language ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15,14,17,.25); background: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); transition: height .3s var(--ease-out); }
.site-header.is-scrolled .site-header__inner { height: calc(var(--header-h) - 12px); }
.brand { display: inline-flex; color: var(--ink); flex: none; }
.brand svg { width: 98px; height: auto; }
.brand--light { color: #fff; --logo-ring: var(--accent-light); }

.nav { display: none; }
.nav__island {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
/* One soft pill that follows the pointer; rests on the section in view */
.nav__pill {
  position: absolute; z-index: 0; top: 5px; left: 0; bottom: 5px; width: 0;
  border-radius: var(--r-pill); background: var(--surface); opacity: 0; pointer-events: none;
  transition: transform .22s var(--ease-out), width .22s var(--ease-out), opacity .18s ease;
}
.nav__pill.is-on { opacity: 1; }
.nav__pill.no-slide { transition: opacity .18s ease; }
.nav__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); font-weight: 500; font-size: .96875rem; color: var(--ink-2); transition: color .2s ease;
}
.nav__link:hover, .nav__link.is-active, .dropdown.is-open > .nav__link { color: var(--ink); }
.nav__link:focus-visible { outline-offset: 0; border-radius: var(--r-pill); }
.nav__chev { width: 16px; height: 16px; transition: transform .22s var(--ease-out); }
.dropdown { position: relative; }
.dropdown.is-open .nav__chev { transform: rotate(180deg); }
.dropdown__panel {
  position: absolute; top: calc(100% + 14px); left: -21px; width: min(860px, 90vw);
  display: grid; grid-template-columns: 1fr 260px; gap: 8px; padding: 8px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: 60px 0;
  transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s linear .22s;
}
.dropdown__panel { display: none; transition-behavior: allow-discrete; }
.dropdown.is-open .dropdown__panel { display: grid; opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s; }
@starting-style { .dropdown.is-open .dropdown__panel { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background-color .18s ease; }
.dropdown__item strong { display: block; font-weight: 600; font-size: .96875rem; }
.dropdown__item small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .dropdown__item:hover { background: var(--surface); }
  .dropdown__item:hover .icon-box { background: var(--accent); color: #fff; }
}
.dropdown__promo { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.dropdown__promo-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.dropdown__promo-text { color: var(--on-dark-2); font-size: .875rem; line-height: 1.45; }
.dropdown__promo .link-arrow { color: #fff; margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .dropdown__promo:hover .link-arrow .ico { transform: translateX(4px); } }

.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: color .2s ease;
}
.lang-link .ico { width: 19px; height: 19px; transition: transform .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lang-link:hover { color: var(--ink); }
  .lang-link:hover .ico { transform: rotate(-24deg); }
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px;
  border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem;
  transition: transform .16s var(--ease-out);
}
.menu-toggle:active { transform: scale(.96); }
.menu-toggle__bars { position: relative; width: 16px; height: 12px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out); }
.menu-toggle__bars i:first-child { top: 1px; }
.menu-toggle__bars i:last-child { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1100px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .site-header__actions { justify-self: end; margin-left: 0; }
  .menu-toggle { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); transition: clip-path .42s var(--ease-drawer);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__inner { display: flex; flex-direction: column; min-height: 100%; padding-top: 16px; padding-bottom: 32px; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .45s var(--ease-out); transition-delay: calc(60ms + var(--i, 0) * 45ms); }
.mobile-menu.is-open .mobile-menu__list > li, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__big { display: block; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -.03em; line-height: 1.1; }
.mobile-menu__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding-bottom: 16px; }
.mobile-menu__sub a { padding: 8px 0; color: var(--ink-2); font-size: .9375rem; }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; opacity: 0; transform: translateY(12px); transition: opacity .35s ease .3s, transform .45s var(--ease-out) .3s; }
.mobile-menu__lang { justify-self: center; padding: 10px; color: var(--muted); font-weight: 500; }
@media (min-width: 1100px) { .mobile-menu { display: none; } }
html.menu-open { overflow: hidden; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 48px; }
.section-head--split { display: grid; gap: 24px; align-items: end; }
.section-head__aside { display: grid; gap: 24px; justify-items: start; color: var(--ink-2); max-width: 46ch; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .h2 { max-width: 18ch; }
@media (max-width: 767px) { .section-head--center { text-align: left; justify-items: start; } }
@media (min-width: 960px) {
  .section-head { margin-bottom: 64px; }
  .section-head--split { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .section-head--split .h2 { max-width: 16ch; }
}

/* ---------- Dark sections ---------- */
.section-dark { position: relative; background: var(--dark); color: var(--on-dark); padding-block: var(--section); overflow: clip; }
.section-dark > .wrap { position: relative; z-index: 1; }
.section-dark .section-head__aside { color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--dark); color: var(--on-dark-2); padding-top: 72px; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-cta { display: grid; gap: 24px; align-items: center; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -.03em; line-height: 1.04; color: #fff; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 36ch; }
.footer-col h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; letter-spacing: -.01em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 6px; font-size: var(--fs-card); }
.footer-col li { padding-block: 4px; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-mark { margin-top: 64px; color: rgba(255,255,255,.95); --logo-ring: var(--accent-light); }
.footer-mark svg { width: 100%; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }
.footer-bottom button { font-size: inherit; color: inherit; }
@media (min-width: 768px) {
  .footer-cta { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: 76px; }
  .footer-cta .btn { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1.25fr 1fr; column-gap: 24px; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Mobile CTA bar ---------- */
.cta-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  transform: translateY(140%); transition: transform .4s var(--ease-out);
}
.cta-bar.is-visible { transform: none; }
.cta-bar .btn { flex: 1; min-height: 48px; }
.cta-bar__call { display: grid; place-items: center; width: 48px; border-radius: var(--r-btn); background: var(--surface); }
.cta-bar__call:active { transform: scale(.95); }
@media (min-width: 768px) { .cta-bar { display: none; } }

/* ---------- Consent ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 400px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  font-size: var(--fs-small); color: var(--ink-2);
  opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .35s var(--ease-out);
}
.consent.is-open { opacity: 1; transform: none; }
.consent__title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.0625rem; margin-bottom: 6px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 8px; margin-top: 16px; }
.consent__actions .btn { flex: 1; }
@media (min-width: 768px) { .consent { left: 24px; right: auto; bottom: 24px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.2; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field__label { font-weight: 600; font-size: var(--fs-small); }
.field__label .muted { font-weight: 400; }
.field__input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-btn);
  border: 1.5px solid transparent; background: var(--surface); font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: #6b6771; }
.field__input:hover { background: var(--surface-2); }
.field__input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(74,37,69,.12); }
.field__input--area { min-height: 104px; resize: vertical; }
.field__error { display: none; color: #b42318; font-size: .875rem; font-weight: 500; }
.field.is-invalid .field__input { border-color: #b42318; background: #fff; }
.field.is-invalid .field__error { display: block; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; min-inline-size: 0; }
.form > * { min-width: 0; }
.choice > legend { padding: 0; }
.choice__options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); font-size: .9375rem; font-weight: 500; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.chip input:hover + span { background: var(--surface-2); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
/* Optional details: closed on phones (fewer fields to scroll), opened by main.js on desktop */
.form__more > summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .9375rem; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.form__more > summary::-webkit-details-marker { display: none; }
.form__more > summary .muted { font-weight: 400; white-space: nowrap; }
.form__more-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); transition: transform .3s var(--ease-out), background-color .2s ease; }
.form__more-icon .ico { width: 16px; height: 16px; }
.form__more[open] .form__more-icon { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .form__more > summary:hover .form__more-icon { background: var(--surface-2); } }
.form__more-body { display: grid; gap: 18px; padding-top: 12px; }
@media (min-width: 960px) {
  html.js .form__more > summary { display: none; }
  html.js .form__more-body { padding-top: 0; }
}
@media (max-width: 639px) {
  .form, .form__row { gap: 14px; }
  .field { gap: 6px; }
  .form__title { font-size: 1.25rem; }
  .form__more-body { gap: 14px; }
}
.form__after, .form__privacy { font-size: .875rem; color: var(--muted); text-align: center; }
.form__after a, .form__privacy a, .form__fail a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form__fail { padding: 12px 14px; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: .9375rem; }
.form__submit.is-busy .btn__label { animation: busy 1s ease-in-out infinite alternate; }
@keyframes busy { to { opacity: .55; } }
.form-done { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.form-done:focus { outline: none; }
.form-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; }
.form-done__icon .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.form-done h3 { font-size: 1.625rem; }

/* ---------- Reveal (only when JS is running; each element once, the first time it is reached) ----------
   [data-reveal]       one element
   [data-reveal-group] its children, one after another
   [data-reveal-scope] the [data-reveal-item]s inside it, one after another (service cards)
   Once settled, the entrance transition is dropped, so hover effects keep their own timing. */
html.js [data-reveal]:not(.is-in),
html.js [data-reveal-group]:not(.is-in) > *,
html.js [data-reveal-scope]:not(.is-in) [data-reveal-item] { opacity: 0; transform: translateY(24px); }
html.js [data-reveal]:not(.is-settled),
html.js [data-reveal-group]:not(.is-settled) > *,
html.js [data-reveal-scope]:not(.is-settled) [data-reveal-item] {
  transition: opacity .55s ease, transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html.js [data-reveal]:not(.is-in), html.js [data-reveal-group]:not(.is-in) > *, html.js [data-reveal-scope]:not(.is-in) [data-reveal-item] { transform: none; }
  .ring3d { animation: none; }
}

/* ---------- Browser surfaces ---------- */
html { scrollbar-color: #c9c5cd transparent; scrollbar-width: thin; accent-color: var(--accent); }
input, textarea { caret-color: var(--accent); }
.field__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcbd3; border-radius: 10px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }
::-webkit-scrollbar-track { background: transparent; }
.section-dark ::selection, .site-footer ::selection, .cta-band ::selection { background: var(--accent-light); color: var(--ink); }
