/* ==========================================================================
   ARTLUK — landing styles
   ========================================================================== */

:root {
  --ink: #16181b;
  --ink-2: #565c66;
  --paper: #f6f4ef;
  --paper-2: #efece3;
  --card: #ffffff;
  --line: #e6e1d6;
  --iron: #14171a;
  --iron-2: #1d2126;

  --design: #b5721e;
  --design-2: #d79a3e;
  --info: #12768c;
  --info-2: #3fb0c4;
  --ad: #e0264f;
  --ad-2: #ff5c7a;
  /* Brand colour of the Sortavala project itself, used for accents tied to it. */
  --wine: #6d1f38;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 23, 26, .06), 0 3px 10px rgba(20, 23, 26, .05);
  --shadow-md: 0 10px 34px rgba(20, 23, 26, .10);
  --shadow-lg: 0 26px 70px rgba(20, 23, 26, .18);

  --wrap: 1180px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sp-section: clamp(3.5rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Components below set display:flex/grid, which would otherwise beat the UA rule
   for [hidden] and leave conditional blocks on screen. */
[hidden] { display: none !important; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--design); margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--design-2); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; margin-bottom: 1rem; }
.section-intro { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.lead-muted { color: var(--ink-2); font-size: 1.05rem; }
.price-line { font-weight: 800; font-size: 1.15rem; margin-top: 1.1rem; }

/* Layer stack of the retrofit, listed bottom-up like the real build-up. */
.layers { display: grid; gap: .3rem; margin-top: 1.4rem; }
.layers li {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem .8rem; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600;
}
.layers li span {
  display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px;
  border-radius: 50%; background: var(--design); color: #fff; font-size: .74rem; font-weight: 800;
}
.layers li:first-child { background: var(--paper-2); color: var(--ink-2); }
.layers li:first-child span { background: #7c8085; }

.u-design { color: var(--design); }
.u-info { color: var(--info); }
.u-ad { color: var(--ad); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--dark { --bg: var(--ink); }
.btn--design { --bg: var(--design); }
.btn--info { --bg: var(--info); }
.btn--ad { --bg: var(--ad); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; }
.btn--outline.btn--light { --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn--outline.btn--light:hover { --bg: #fff; --fg: var(--ink); }
.btn--block { width: 100%; white-space: normal; }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.05rem; }

/* ---------- generated covers (brand mark, "before" state, pending photo) ---------- */
.cover {
  position: relative; display: block; width: clamp(120px, 16vw, 160px); aspect-ratio: 1 / 1;
  margin: 0 auto; opacity: 0; transform: scale(.96);
  transition: opacity .6s ease, transform .6s ease;
}
.cover--ready { opacity: 1; transform: none; }
.cover-svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .26)); }
.cover--fill { width: 100%; height: 100%; }
.cover--fill .cover-svg { filter: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  /* Непрозрачный фон по умолчанию. Полупрозрачным он становится ниже и только
     там, где действительно работает размытие подложки. Без этого страница,
     проезжающая под шапкой, просвечивала сквозь неё на восемнадцать процентов,
     и выглядело это так, будто логотип налезает на текст. */
  background: #f6f4ef;
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}

/* Префикс нужен: Safari научился обходиться без него только с версии 16.4,
   а на iPhone с iOS 15 и старше правило без префикса просто игнорируется. */
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(246, 244, 239, .82);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__mark .cover-svg { filter: none; }
.brand__word { font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand__word span { color: var(--design); }
.nav { display: flex; gap: 1.15rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.site-header__cta { display: flex; align-items: center; gap: 1rem; }
.phone { text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.btn__narrow { display: none; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero__title { font-size: clamp(1.95rem, 4.4vw, 3.1rem); margin-bottom: 1.3rem; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-2); max-width: 52ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__facts { display: grid; gap: .5rem; }
.hero__facts li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink-2); font-weight: 600; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 15px; height: 10px;
  border-left: 2.4px solid var(--design); border-bottom: 2.4px solid var(--design);
  transform: rotate(-45deg); border-radius: 1px;
}

.hero__scenes { display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; gap: clamp(.5rem, 1.5vw, 1rem); }
.scene { margin: 0; text-align: center; }
.scene picture { display: block; }
/* height:auto is required: the width/height attributes on <img> are presentational
   hints, and a definite height makes the browser ignore aspect-ratio. */
.scene img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.scene--main img { border-radius: var(--r-lg); }
.scene--side { transform: translateY(10px); }
.scene--side:first-child { rotate: -3deg; }
.scene--side:last-child { rotate: 3deg; }
.scene figcaption { margin-top: .7rem; }
.scene figcaption b { display: block; font-size: .92rem; }
.scene figcaption span { display: block; font-size: .8rem; color: var(--ink-2); }

/* ---------- compare ---------- */
.compare-section { padding: var(--sp-section) 0; background: var(--paper-2); }
.compare-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.compare-section__text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.compare-section__text .btn { margin-top: 1.6rem; }

.compare {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden; touch-action: pan-y; user-select: none;
  box-shadow: var(--shadow-lg); background: #fff;
}
.compare__layer { position: absolute; inset: 0; }
.compare::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 3px rgba(20, 23, 26, .28), inset 0 0 26px rgba(0, 0, 0, .22);
}
.compare__layer picture, .compare__layer img { width: 100%; height: 100%; }
.compare__layer img { object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-media { display: grid; justify-items: center; gap: 1rem; }
.compare-labels { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.compare-labels span {
  padding: .35rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #fff;
}
.compare-labels__before { background: #55595e; }
.compare-labels__after { background: var(--design); }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid #fff; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: ew-resize; box-shadow: var(--shadow-md); z-index: 3;
  padding: 0;
}
.compare__handle svg { width: 22px; height: 22px; }
.compare__handle::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 130%; background: #fff; z-index: -1;
}

/* ---------- catalog ---------- */
.catalog { padding: var(--sp-section) 0; }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media { position: relative; background: var(--paper-2); }
.product-card__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card__media--drawn { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.5rem; }
.product-card__media--drawn .cover { width: min(62%, 190px); }
.product-card__pending {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255, 255, 255, .8); padding: .3rem .7rem; border-radius: 999px;
  white-space: nowrap;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.4rem 1.6rem; }
.product-card h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.product-card__size { font-size: .85rem; font-weight: 700; color: var(--design); margin-bottom: .8rem; }
.product-card__desc { font-size: .93rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.product-card__price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: auto 0 1.1rem; }
.product-card__price span { font-size: 1.05rem; }
.catalog__note {
  margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--paper-2);
  border-radius: var(--r); font-size: .95rem; font-weight: 600; text-align: center;
}

/* ---------- digital add-ons ---------- */
.digital { padding: var(--sp-section) 0; background: var(--iron); color: #f2f0ea; }
.digital__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.digital h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.digital__lead { color: #b9beca; }
.digital__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.digital-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r); padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
}
.digital-card h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.digital-card p { font-size: .92rem; color: #b9beca; }
.digital-card__price { margin-top: auto; padding-top: 1rem; font-weight: 800; color: var(--design-2); font-size: .98rem; }
.digital-card__pick {
  margin-top: .9rem; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px; text-align: center;
  border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #e8e6e0;
  transition: background .2s, border-color .2s, color .2s;
}
.digital-card__pick:hover { border-color: var(--design-2); color: #fff; }
.digital-card__pick.is-on { background: var(--design); border-color: var(--design); color: #fff; }

.notice {
  background: rgba(255, 255, 255, .05); border-left: 3px solid var(--ad-2);
  padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .92rem; color: #cfd3dc; margin-bottom: 1.6rem;
}
.notice b { color: #fff; }
.notice--light {
  background: var(--card); border-left: 3px solid var(--design);
  color: var(--ink-2);
}
.notice--light b { color: var(--ink); }

/* ---------- audiences ---------- */
.audiences { padding: var(--sp-section) 0; }
.audiences__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.aud {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; transition: transform .2s, box-shadow .2s;
}
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.aud h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.aud p { font-size: .89rem; color: var(--ink-2); }
.audiences__note { margin: 1.8rem 0 0; }

/* ---------- design options ---------- */
.options { padding: var(--sp-section) 0; background: var(--paper-2); }
.options__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.options__intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.options__shape { margin-top: 1.2rem; font-size: .93rem; color: var(--ink-2); }
.options__protect {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-sm);
  background: var(--card); border-left: 3px solid var(--info);
  font-size: .9rem; color: var(--ink-2);
}
.options__protect b { color: var(--ink); }
.options__intro .btn { margin-top: 1.6rem; }
.options__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.options__list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem;
}
.options__list b { display: block; margin-bottom: .3rem; font-size: 1rem; }
.options__list span { font-size: .89rem; color: var(--ink-2); }

/* ---------- technology tabs ---------- */
.tech { padding: var(--sp-section) 0; }
.tabs__list {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.tabs__btn {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: .7rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.tabs__btn:hover { border-color: var(--design); color: var(--ink); }
.tabs__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
}
.steps__n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--design); margin-bottom: .6rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.steps p { color: var(--ink-2); font-size: .92rem; }
.tech__note { margin: 2rem 0 0; }

/* ---------- case ---------- */
.case { padding: var(--sp-section) 0; background: var(--iron); color: #f2f0ea; }
.case__head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.case h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.case__partner {
  display: inline-block; font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--wine); border: 1px solid rgba(255, 255, 255, .18);
  padding: .6rem 1rem; border-radius: var(--r-sm); margin-bottom: 1.2rem;
}
.case__text { color: #b9beca; }

.case__body { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.case__points h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.case__list { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.case__list li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.case__list span {
  display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px;
  border-radius: 50%; background: var(--wine); color: #fff; font-size: .88rem; font-weight: 800;
}

.case__scheme {
  height: 240px; margin-bottom: 1.4rem; border-radius: var(--r);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: var(--iron-2);
  z-index: 0;
}
.case__scheme .leaflet-container { background: var(--iron-2); }

.case__gallery { margin: 0; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 1fr); gap: .8rem; }
.gallery picture:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.gallery picture { display: block; min-height: 150px; }
.case__gallery figcaption { margin-top: .8rem; font-size: .88rem; color: #8b90a0; }

.case__video { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 860px; }
.case__video figcaption { margin-top: .8rem; font-size: .88rem; color: #8b90a0; }
.video-facade {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg); background: var(--iron-2); text-decoration: none; color: #fff;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s; }
.video-facade:hover img, .video-facade:focus-visible img { opacity: .7; transform: scale(1.02); }
.video-facade__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--wine); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.video-facade:hover .video-facade__play { transform: translate(-50%, -50%) scale(1.06); }
.video-facade__play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 5px; }
.video-facade__label {
  position: absolute; left: 50%; top: calc(50% + 60px); transform: translateX(-50%);
  font-weight: 700; font-size: .95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.case__video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--r-lg); background: #000;
}

.case__flow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.case__flow span {
  padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.case__flow span + span::before { content: ""; }
.case__flow span:not(:last-child) { position: relative; margin-right: 1.4rem; }
.case__flow span:not(:last-child)::after {
  content: ""; position: absolute; right: -1.05rem; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid #6c7280; border-right: 2px solid #6c7280;
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- map ---------- */
.map-section { padding: var(--sp-section) 0; background: var(--paper-2); }
.map-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.map-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 220px; }
.map-filter label { font-size: .82rem; font-weight: 700; }
.map-filter select {
  font: inherit; font-size: .95rem; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink);
}
.map-filters__reset {
  align-self: center; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  padding: .55rem 1rem; border-radius: 999px; color: var(--ink);
  border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .15s, background .15s;
}
.map-filters__reset:hover { border-color: var(--ink); background: var(--paper-2); }
.map-filter select option:disabled { color: var(--ink-2); }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-left: auto; }
.map-legend li { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-2); }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }

.map-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.2rem; align-items: start; }
.map-canvas {
  height: clamp(380px, 58vh, 560px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
  z-index: 0;
}
.map-canvas.is-failed { display: grid; place-items: center; padding: 2rem; text-align: center; }
.map-canvas__fallback { color: var(--ink-2); font-weight: 600; }

.map-side { display: grid; gap: .8rem; }
.map-side__count { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.map-side__list { display: grid; gap: .8rem; }
.map-points {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem;
  max-height: clamp(380px, 58vh, 560px); overflow-y: auto; padding-right: .3rem;
}
.map-empty { color: var(--ink-2); font-size: .95rem; }

/* Compact rows: 49 spots have to stay scannable inside one box. */
.point-row {
  display: flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .4rem .5rem .4rem .4rem; transition: border-color .15s, box-shadow .15s;
}
.point-row.is-picked { border-color: var(--info); }
.point-row.is-active { border-color: var(--design); box-shadow: 0 0 0 2px rgba(181, 114, 30, .18); }
.point-row__open {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .7rem;
  align-items: center; text-align: left; background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.point-row__thumb {
  position: relative; width: 48px; height: 48px; border-radius: 8px;
  background: var(--paper-2); flex: 0 0 auto;
}
.point-row__thumb img, .point-row__nophoto { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block; }
.point-row__nophoto { background: repeating-linear-gradient(45deg, var(--paper-2) 0 6px, var(--line) 6px 7px); }
.point-row__num {
  position: absolute; left: -5px; bottom: -5px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center; color: #fff;
  font-size: .66rem; font-weight: 800; border: 2px solid #fff; line-height: 1;
}
.point-row__title { display: block; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.point-row__meta { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--ink-2); margin-top: .15rem; min-width: 0; }
.point-row__meta i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.point-row__pick {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.point-row__pick:hover { background: var(--ink); color: #fff; }
.point-row__pick.is-on { background: var(--info); border-color: var(--info); color: #fff; }

/* Detail panel replaces the list while a spot is open. */
.point-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.point-detail__back {
  font: inherit; font-weight: 700; font-size: .85rem; background: none; border: 0;
  padding: 0 0 .8rem; color: var(--ink-2); cursor: pointer;
}
.point-detail__back:hover { color: var(--ink); }
.point-detail__photo { margin-bottom: .9rem; }
.point-detail__photo picture img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); }
.point-detail__thumbs { display: flex; gap: .5rem; margin-top: .5rem; }
.point-detail__thumb {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: .5rem;
  padding: .25rem .6rem .25rem .25rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink-2);
}
.point-detail__thumb img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.point-detail__thumb:hover { border-color: var(--design); }
.point-detail__thumb.is-on { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.point-detail__nophoto {
  aspect-ratio: 16 / 10; border-radius: var(--r-sm); background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-2); font-size: .85rem; margin-bottom: .9rem;
}
.point-detail__kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; }
.point-detail h3 { font-size: 1.15rem; margin: .2rem 0 .1rem; }
.point-detail__title { font-weight: 700; font-size: 1rem; color: var(--ink-2); margin-bottom: .9rem; }
.point-card__rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; margin: 0 0 .6rem; font-size: .87rem; }
.point-card__rows dt { color: var(--ink-2); }
.point-card__rows dd { margin: 0; font-weight: 600; }
.point-card__status { display: inline-flex; align-items: center; gap: .4rem; }
.point-card__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.point-detail__coords { font-size: .8rem; color: var(--ink-2); font-style: italic; margin: 0 0 1rem; }
.point-card__action { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.point-card__added { font-size: .82rem; font-weight: 700; color: var(--info); }
.point-card__blocked { font-size: .87rem; color: var(--ink-2); font-style: italic; }
.point-nav {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-2);
}
.point-nav button {
  font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer;
  background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .9rem;
}
.point-nav button:disabled { opacity: .4; cursor: default; }
.point-nav button:not(:disabled):hover { border-color: var(--ink); }

.leaflet-tooltip { font-family: var(--sans); font-weight: 600; font-size: .8rem; }

/* The OSM credit must stay legible, but it does not need to shout. */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .82) !important;
  font-size: 10px; line-height: 1.4; padding: 1px 6px;
  border-radius: var(--r-sm) 0 0 0;
  color: var(--ink-2);
}
.leaflet-control-attribution a { color: var(--ink-2); text-decoration: underline; }
.leaflet-control-attribution a:hover { color: var(--ink); }
.case__scheme .leaflet-control-attribution { background: rgba(20, 23, 26, .7) !important; color: #9aa0aa; }
.case__scheme .leaflet-control-attribution a { color: #9aa0aa; }

/* The read-only scheme has every handler off, so it must never hold the page either. */
.case__scheme .leaflet-container { touch-action: pan-y; }

.map-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(6px);
  z-index: 500; pointer-events: none; opacity: 0;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(20, 23, 26, .82); color: #fff; font-size: .82rem; font-weight: 700;
  transition: opacity .2s ease, transform .2s ease;
}
.map-hint.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.map-pin { background: none; border: 0; }
.map-pin__dot {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .7rem; border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .15s;
}
.map-pin--picked .map-pin__dot { outline: 3px solid var(--info); outline-offset: 1px; }
.map-pin--active .map-pin__dot { outline: 3px solid var(--design); outline-offset: 1px; transform: scale(1.15); }

.map-basket {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  margin-top: 1.2rem; padding: 1.1rem 1.3rem;
  background: var(--card); border: 1px solid var(--info); border-radius: var(--r);
}
.map-basket__count { font-weight: 700; }
.map-basket__list { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; }
.map-basket__list li, .picked-list li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--paper-2); border-radius: 999px; padding: .35rem .4rem .35rem .8rem;
  font-size: .87rem; font-weight: 600;
}
.chip-x {
  border: 0; background: rgba(20, 23, 26, .1); color: var(--ink); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.chip-x:hover { background: var(--ad); color: #fff; }
.map-note { margin: 1.5rem 0 0; }

/* ---------- pricing ---------- */
.pricing { padding: var(--sp-section) 0; }
.pricing__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.price-card__note { color: var(--ink-2); font-size: .88rem; margin-bottom: 1rem; }
.price-card__price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: auto 0 1.2rem; }
.price-card__price span { font-size: 1.1rem; }

.pricing__foot { margin-top: 2rem; text-align: center; display: grid; justify-items: center; gap: .9rem; }
.pricing__install {
  font-weight: 800; font-size: 1.1rem; background: var(--paper-2);
  padding: .8rem 1.4rem; border-radius: 999px;
}
.pricing__hint { font-size: .9rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- stages ---------- */
.stages { padding: var(--sp-section) 0; background: var(--paper-2); }
.stages__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1rem; }
.stages__row li { position: relative; }
.stages__n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: .9rem;
}
.stages__row h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.stages__row p { font-size: .88rem; color: var(--ink-2); }
.stages__note { margin: 2rem 0 0; }

/* ---------- lead form ---------- */
.lead { padding: var(--sp-section) 0; }
.lead__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lead__intro { position: sticky; top: 90px; }
.lead__intro .eyebrow { color: var(--design); }
.lead__intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.lead__intro > p { color: var(--ink-2); margin-bottom: 2rem; }
.lead__contacts { display: grid; gap: 1.1rem; }
.lead__contacts li { display: grid; }
.lead__contacts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.lead__contacts a { font-size: 1.1rem; font-weight: 700; text-decoration: none; }

.lead__form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 700; }
.field legend { margin-bottom: .5rem; }
.req { color: var(--ad); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fdfcfa; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--info); box-shadow: 0 0 0 3px rgba(18, 118, 140, .14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--ad); }
.err { color: var(--ad); font-size: .8rem; }
.err:empty { display: none; }
select.is-flash { border-color: var(--design); box-shadow: 0 0 0 3px rgba(181, 114, 30, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card span {
  display: block; height: 100%; padding: .9rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fdfcfa;
  transition: border-color .15s, background .15s;
}
.radio-card b { display: block; font-size: .93rem; }
.radio-card small { display: block; font-size: .78rem; color: var(--ink-2); margin-top: .2rem; }
.radio-card:hover span { border-color: var(--design); }
.radio-card input:checked + span { border-color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input:focus-visible + span { outline: 3px solid var(--info-2); outline-offset: 2px; }
.has-error .radio-card span { border-color: var(--ad); }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .1rem; flex: 0 0 auto; accent-color: var(--ink); }

/* Строка флажка была ровно по высоте текста, 23 пикселя, и такие строки идут
   подряд: пальцем в нужную попадаешь через раз, а 23 пикселя ниже минимального
   размера цели по WCAG 2.2. Небольшой отступ добавлен везде, на сенсорном
   экране строка растягивается до 44 пикселей. Мышью и так попадают точно,
   поэтому на десктопе раскладка остаётся прежней. */
.check { padding-block: 2px; }

@media (pointer: coarse) {
  .check { padding-block: .7rem; }
  .check-grid { gap: 0 1rem; }
}

.scenario-block {
  padding: 1.2rem 1.3rem; border: 1.5px dashed var(--line); border-radius: var(--r);
  background: var(--paper); gap: .8rem;
}
.scenario-block__title { font-size: 1.02rem; }
.scenario-block__hint { font-size: .87rem; color: var(--ink-2); }
.scenario-block__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scenario-block__picked h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .5rem; }
.picked-list { display: flex; flex-wrap: wrap; gap: .5rem; }

.dropzone {
  display: grid; justify-items: center; gap: .35rem; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--r); padding: 1.6rem 1rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--info); background: rgba(18, 118, 140, .05); }
.dropzone.has-error { border-color: var(--ad); background: rgba(224, 38, 79, .05); }
.dropzone.has-error .dropzone__text { color: var(--ad); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone__icon svg { width: 30px; height: 30px; color: var(--info); }
.dropzone__text { font-weight: 700; font-size: .95rem; }
.dropzone__hint { font-size: .8rem; color: var(--ink-2); }

.lead__submit { margin-top: .4rem; }

.form-result {
  display: grid; justify-items: center; text-align: center; gap: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-sm);
}
.form-result h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.form-result p { color: var(--ink-2); max-width: 46ch; }
.form-result--ok { border-color: var(--info); }
.form-result--ok .form-result__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--info); color: #fff;
}
.form-result--ok .form-result__icon svg { width: 28px; height: 28px; }
.form-result--err { border-color: var(--ad); margin-top: 1.2rem; }
.form-result--err a { font-weight: 700; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--iron); color: #c8ccd4; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.site-footer .brand__word { color: #fff; font-size: 1.3rem; }
.site-footer__brand p { margin-top: .6rem; font-size: .9rem; max-width: 32ch; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-content: start; }
.site-footer__nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: #c8ccd4; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal { font-size: .82rem; color: #8b90a0; line-height: 1.6; }

/* ---------- legal page ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--sp-section); }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.legal h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 2.2rem 0 .8rem; }
.legal p { margin-bottom: .9rem; color: var(--ink-2); }
.legal p strong, .legal b { color: var(--ink); }
.legal .dashes { margin-bottom: 1.2rem; }
.legal__meta { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.6rem; }
.legal__url { word-break: break-all; font-weight: 600; color: var(--ink); }
.legal__back { margin-top: 2.5rem; }
.legal .notice--light { margin: 0 0 1.8rem; }

.dashes { display: grid; gap: .55rem; }
.dashes li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--ink-2); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 11px; height: 2px; background: var(--ink-2); border-radius: 2px; }

/* Shown only by the <noscript> block in the head. */
.no-js {
  display: none;
  padding: 1rem 1.2rem; margin-bottom: 1.2rem;
  background: var(--card); border-left: 3px solid var(--ad);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .93rem; color: var(--ink-2);
}
.no-js a { font-weight: 700; color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1), filter .8s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.reveal.in { opacity: 1; translate: none; filter: none; }
.reveal--title { filter: blur(6px); translate: 0 28px; }
.reveal--frame { opacity: 1; translate: none; clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.6,.05,.2,1); }
.reveal--frame.in { clip-path: inset(0 0 0 0); }
.reveal--frame.is-done { clip-path: none; }
.reveal--frame img { scale: 1.08; transition: scale 1.4s cubic-bezier(.2,.7,.2,1); }
.reveal--frame.in img { scale: 1; }

/* Hero entrance: copy rises line by line, scenes settle in one after another. */
.js .hero__copy > * { opacity: 0; translate: 0 18px; animation: al-rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__copy > :nth-child(1) { animation-delay: .1s; }
.js .hero__copy > :nth-child(2) { animation-delay: .22s; }
.js .hero__copy > :nth-child(3) { animation-delay: .36s; }
.js .hero__copy > :nth-child(4) { animation-delay: .5s; }
.js .hero__copy > :nth-child(5) { animation-delay: .62s; }
.js .hero__scenes .scene { opacity: 0; animation: al-settle .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero__scenes .scene--main { animation-delay: .3s; }
.js .hero__scenes .scene--side:first-child { animation-delay: .5s; }
.js .hero__scenes .scene--side:last-child { animation-delay: .62s; }
.scene { transition: translate .4s cubic-bezier(.2,.7,.2,1); }
.scene:hover { translate: 0 -6px; }
@keyframes al-rise { to { opacity: 1; translate: none; } }
@keyframes al-settle { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: none; } }

/* Cards lift, pictures inside lean in. */
.product-card, .digital-card, .aud, .price-card, .stages__row > li { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .7s cubic-bezier(.2,.7,.2,1); }
.product-card.in:hover, .digital-card.in:hover, .aud.in:hover, .price-card.in:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(20, 24, 30, .45); }
.product-card__media { overflow: hidden; }
.product-card__media img { transition: scale .8s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-card__media img { scale: 1.05; }
.btn { transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(0) scale(.985); }

/* Before/after: one guided sweep when it first comes into view, then it is yours. */
.compare.is-sweeping { --pos: 50%; animation: al-sweep 2.6s cubic-bezier(.45,.05,.3,1) 1; }
@keyframes al-sweep { 0% { --pos: 50%; } 35% { --pos: 22%; } 75% { --pos: 78%; } 100% { --pos: 50%; } }
@property --pos { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

/* Map pins drop in one after another. */
/* Leaflet positions pins with an inline transform, so only translate and opacity are animated here. */
.js .leaflet-marker-icon { animation: al-drop .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--pin, 0) * 90ms); }
@keyframes al-drop { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: none; } }

/* Section marks: the line draws in. */
.eyebrow { position: relative; }
.eyebrow.reveal::after { content: ""; position: absolute; left: 0; bottom: -.35em; height: 2px; width: 2.2em; background: currentColor; opacity: .6; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1) .2s; }
.eyebrow.reveal.in::after { transform: scaleX(1); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .site-header__cta .phone { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger {
    display: inline-block; position: relative;
    width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line);
    border-radius: 12px; background: var(--card); cursor: pointer;
  }
  /* All three bars share one centre point, so the open state rotates into an exact X. */
  .burger span {
    position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
    margin: -1px 0 0 -10px; background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .burger span:nth-child(1) { transform: translateY(-6px); }
  .burger span:nth-child(3) { transform: translateY(6px); }
  .site-header__cta { margin-left: auto; }
  .site-header.is-open .burger span:nth-child(1) { transform: rotate(45deg); }
  .site-header.is-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .burger span:nth-child(3) { transform: rotate(-45deg); }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem, 4vw, 2rem);
    box-shadow: var(--shadow-md); gap: .3rem; margin-left: 0;
  }
  .site-header.is-open .nav a { padding: .7rem 0; font-size: 1.05rem; }

  .catalog__grid, .digital__grid, .steps, .pricing__cards { grid-template-columns: repeat(2, 1fr); }
  .stages__row { grid-template-columns: repeat(3, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
  .map-points { max-height: 420px; }
  .map-legend { margin-left: 0; width: 100%; }
}

@media (max-width: 900px) {
  .hero__grid, .compare-section__grid, .options__grid, .case__body, .lead__grid { grid-template-columns: 1fr; }
  .lead__intro { position: static; }
  .audiences__grid { grid-template-columns: 1fr 1fr; }
  .options__list { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__scenes { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .btn { white-space: normal; }

  .hero__actions .btn, .pricing__foot .btn, .digital > .container > .btn { width: 100%; }
  .lead__form { grid-template-columns: minmax(0, 1fr); }
  .catalog__grid, .digital__grid, .steps, .pricing__cards, .audiences__grid { grid-template-columns: 1fr; }
  .stages__row { grid-template-columns: 1fr; }
  .radio-cards, .check-grid, .scenario-block__pair { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery picture:first-child { grid-row: auto; }
  .compare { max-width: 320px; }
  .map-filter { min-width: 0; width: 100%; }
  .map-basket { flex-direction: column; align-items: stretch; }
  .map-basket .btn { width: 100%; }
  .case__flow span:not(:last-child) { margin-right: 1.2rem; }
}

@media (max-width: 560px) {
  .site-header__inner { gap: .75rem; }
  .btn__wide { display: none; }
  .btn__narrow { display: inline; }
}

@media (max-width: 420px) {
  .point-card__rows { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .point-card__rows dt { margin-top: .5rem; }
}

@media (max-width: 380px) {
  .hero__scenes { grid-template-columns: 1fr; max-width: 260px; }
  .scene--side { display: none; }
  .case__flow span { font-size: .8rem; }
}

/* Finger-sized rows for text links wherever there is no mouse: a tablet is 768-1024 wide
   but still touch-only, so this keys off the input device rather than the viewport. */
@media (hover: none) {
  .site-footer__nav a, .lead__contacts a, .no-js a, .legal .dashes a { display: inline-block; padding: .45rem 0; }
  .site-footer__nav { gap: .2rem 1.4rem; }
  .nav a { padding: .3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal, .reveal--frame, .reveal--title { opacity: 1; translate: none; transition: none; filter: none; clip-path: none; }
  .js .hero__copy > *, .js .hero__scenes .scene, .js .leaflet-marker-icon { opacity: 1; translate: none; animation: none; }
  .compare.is-sweeping { animation: none; }
  .cover { opacity: 1; transform: none; transition: none; }
  .btn:hover, .product-card:hover, .aud:hover, .price-card:hover { transform: none; }
}
