/* ============================================================
   kladovka-spb.ru — один файл стилей, без зависимостей
   ============================================================ */

@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-symbols.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD, U+2190;
}
@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: #faf8f5;
  --surface: #ffffff;
  --ink: #1b2025;
  --muted: #5b646e;
  --line: #e7e0d7;
  --accent: #b04a0c;
  --accent-2: #d9631c;
  --accent-soft: #f7e8dc;
  --accent-dark: #8f3a07;
  --dark: #1c2126;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(28, 33, 38, 0.1);
  --header-h: 76px;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 4.5vw, 3.55rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.accent { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(28, 33, 38, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.logo:hover { color: var(--ink); }
.logo__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: none;
}
.logo__text strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
}
.logo__text small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent); }
.nav__phone { display: none; }

.header__phone {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header__phone:hover { color: var(--accent); }

.header--simple .header__phone { margin-left: auto; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(176, 74, 12, 0.26);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(143, 58, 7, 0.3);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 78px;
  background:
    radial-gradient(900px 520px at 88% 4%, #f6e0cf 0%, rgba(246, 224, 207, 0) 62%),
    linear-gradient(180deg, #fbf5ee 0%, var(--bg) 68%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  max-width: 18ch;
  margin: 14px 0 20px;
}
.hero h1 .accent { display: block; }

.hero__lead {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__stats strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero__trust li { position: relative; padding-left: 20px; }
.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.hero__media {
  position: relative;
  isolation: isolate;
  margin: 0;
}
.hero__media picture {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #eee7de;
  box-shadow: var(--shadow);
}
.hero__media img {
  width: 100%;
  height: auto;
}
.hero__media::before {
  content: '';
  position: absolute;
  inset: 22px -18px -18px 22px;
  z-index: -1;
  border: 2px solid var(--accent-2);
  border-radius: 30px;
  opacity: 0.55;
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: -22px;
  max-width: 250px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(28, 33, 38, 0.16);
}
.hero__badge strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.hero__badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }

.section--tint {
  background: linear-gradient(180deg, #f4efe8 0%, var(--bg) 100%);
}

.section__head {
  max-width: 760px;
  margin: 0 0 44px;
}
.section__head h2 { margin: 10px 0 14px; }
.section__head--left { margin-bottom: 30px; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 18px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #dfd5c8;
  box-shadow: 0 16px 38px rgba(28, 33, 38, 0.08);
}
.card h3 { margin-bottom: 8px; }
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- scenarios ---------- */

.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}
.scenarios li {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.scenarios li:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.scenarios h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}
.scenarios p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- advantages ---------- */

.advantages {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  gap: 56px;
}

.checks {
  display: grid;
  gap: 14px;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 38px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.checks li strong { color: var(--ink); }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.58em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.advantages__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.advantages__media picture {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}
.advantages__caption {
  margin: 14px 6px 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.advantages__caption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- dark band ---------- */

.section--dark {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #fff;
  background: var(--dark);
}
.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 22, 26, 0.92) 0%, rgba(18, 22, 26, 0.72) 100%);
}
.section--dark .container {
  position: relative;
  z-index: 2;
}
.section--dark .eyebrow { color: #f0a46b; }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

.section__head--dark { margin-bottom: 48px; }

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.reason {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.reason__num {
  display: block;
  margin-bottom: 10px;
  color: #f0a46b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.reason h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.3rem;
}
.reason p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery__item { margin: 0; }

.gallery__item button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #111;
  border: 0;
  border-radius: 16px;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery__item button:hover img { transform: scale(1.05); }

.gallery__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item button:hover .gallery__cap,
.gallery__item button:focus-visible .gallery__cap {
  opacity: 1;
  transform: none;
}

/* ---------- faq ---------- */

.faq {
  max-width: 840px;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq p {
  max-width: 72ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- contacts ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.contact__body { padding: 48px; }
.contact__body h2 { margin: 10px 0 16px; }

.contact__phone {
  display: inline-block;
  margin: 24px 0 22px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact__phone:hover { color: var(--accent); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 28px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contact__details dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact__details dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}
.contact__details a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact__details a:hover { color: var(--accent); }
.contact__note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact__map {
  position: relative;
  min-height: 320px;
  background: #e9e5df;
  border-left: 1px solid var(--line);
}
.contact__map-link {
  position: relative;
  display: block;
  height: 100%;
  color: #fff;
}
.contact__map-link picture {
  display: block;
  height: 100%;
}
.contact__map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact__map-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(28, 33, 38, 0.18);
  color: var(--ink);
}
.contact__map-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}
.contact__map-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}
.contact__map-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 4px;
  color: #3c444c;
  font-size: 0.65rem;
  text-decoration: none;
}
.contact__map-credit:hover { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  padding: 48px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.logo--footer {
  margin-bottom: 14px;
  color: #fff;
}
.logo--footer:hover { color: #fff; }
.logo--footer .logo__img { width: 96px; height: 96px; }
.logo--footer .logo__text small { color: rgba(255, 255, 255, 0.55); }
.footer__brand p { max-width: 36ch; }

.footer__legal { text-align: right; }
.footer__legal p { margin-bottom: 8px; }
.footer__legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

/* ---------- mobile cta ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.mobile-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.28s ease;
}
.mobile-cta .btn {
  flex: 1;
  min-height: 48px;
  padding: 0 12px;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: min(94vw, 920px);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: #101316;
  border: 0;
  border-radius: 18px;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(10, 12, 14, 0.84);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  margin: 0;
}
.lightbox__figure img {
  width: 100%;
  max-height: calc(92vh - 56px);
  object-fit: contain;
  background: #101316;
}
.lightbox__figure figcaption {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(0, 0, 0, 0.8); }
.lightbox__close { top: 10px; right: 10px; font-size: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ---------- legal page ---------- */

.legal { padding: 64px 0 88px; }
.legal__inner { max-width: 820px; }
.legal h1 { margin: 10px 0 8px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.legal__date {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal h2 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal p { margin-bottom: 12px; }
.legal a:not(.btn) { color: var(--accent); }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero { padding-top: 48px; }
  .hero__grid { gap: 38px; }
  .advantages { gap: 36px; }
  .contact__body { padding: 36px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }

  .logo__img { width: 46px; height: 46px; }
  .logo--footer .logo__img { width: 80px; height: 80px; }

  .header__phone { display: none; }
  .burger { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(28, 33, 38, 0.1);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav__phone {
    display: block;
    margin-top: 6px;
    color: var(--accent) !important;
    font-weight: 800;
  }
  .nav-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.is-locked { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__body { max-width: 640px; }
  .hero h1 { max-width: 18ch; }
  .hero__media { max-width: 620px; }

  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: repeat(2, 1fr); }

  .advantages { grid-template-columns: 1fr; }
  .advantages__media { position: static; max-width: 560px; }

  .reasons { grid-template-columns: 1fr; gap: 22px; }

  .contact { grid-template-columns: 1fr; }
  .contact__map { height: 340px; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--container)); }
  .section { padding: 64px 0; }
  .section--dark { padding: 68px 0; }
  .hero { padding-bottom: 60px; }

  .hero__media { margin-bottom: 20px; }
  .hero__media::before { inset: 14px -10px -10px 14px; }
  .hero__badge {
    left: 10px;
    bottom: -14px;
    max-width: 220px;
    padding: 12px 14px;
  }

  .cards--3 { grid-template-columns: 1fr; }
  .scenarios { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__cap { opacity: 1; transform: none; padding-top: 28px; font-size: 0.82rem; }

  .contact__body { padding: 28px 22px; }
  .contact__map { height: 300px; }

  .footer { padding-bottom: 92px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__legal { text-align: left; }

  .mobile-cta { display: flex; }
}

@media (max-width: 460px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 22px; }
  .hero__trust { display: grid; gap: 8px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__cap { font-size: 0.88rem; }
  .lightbox__nav { width: 38px; height: 38px; }
  .contact__details { grid-template-columns: 1fr; gap: 16px; }
  .contact__map-card { left: 12px; right: 12px; bottom: 40px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
