/* MPE 21 (mpe21.com) — «кинематографичная» версия: кремовый фон, глубокий морской зелёный, заголовки с засечками,
   тонкие линии, крошечные подписи заглавными с разрядкой. Первый экран — карта Юрмалы и Рижского залива (SVG в index.html),
   облака и блики воды (CSS), полёт камеры — site.js. Все анимации — только transform/opacity и только при
   prefers-reduced-motion: no-preference; рисунки .anim играют, лишь когда видны (класс .play ставит site.js).
   Строгий CSP: никаких style="…" в HTML — всё здесь. Шрифт Onest — свой (/fonts, SIL OFL); засечки — системные. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  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'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --cream: #f4eee2; --paper: #fbf8f1; --sand: #e9dfcb; --sand-2: #ddd0b6;
  --ink: #1d2a26; --text: #2b3732; --muted: #5a6862; --soft: #7d8a83;
  --sea: #1f5c57; --sea-2: #2d7770; --sea-d: #173f3b; --sea-t: #dfe9e3;
  --amber: #c98a3a; --amber-l: #e7b465; --glow: #f0b45a;
  --line: rgba(29, 42, 38, .16); --hair: rgba(29, 42, 38, .09);
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, 'Noto Serif', 'Droid Serif', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px; --top: 72px;
  --ease: cubic-bezier(.22, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--cream); scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; color: var(--text); background: var(--cream); overflow-x: clip; min-height: 100vh;
  font: 400 17px/1.72 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--sea); }
img, svg { max-width: 100%; }
address { font-style: normal; }
::selection { background: var(--sea); color: var(--paper); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--ink); color: var(--paper);
  font: 500 14px/1.2 var(--sans); text-decoration: none; }
.skip:focus { top: 10px; }
.skip-tour { position: absolute; }

/* ---------- подпись заглавными (kicker) ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 20px; }
.kicker .dot { width: 26px; height: 1px; background: currentColor; flex: none; }
.kicker .no { font: italic 400 15px/1 var(--serif); letter-spacing: .02em; color: var(--amber); text-transform: none; }
.kicker .no::after { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--line); margin-left: 12px; vertical-align: middle; }

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; }
.top.scrolled, html:not(.js) .top { background: rgba(244, 238, 226, .9); }
html:not(.js) .top::after { opacity: 1; }
.top.scrolled::after { opacity: 1; }
@supports (backdrop-filter: blur(8px)) { .top.scrolled { background: rgba(244, 238, 226, .78); backdrop-filter: blur(10px) saturate(1.2); } }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; width: min(1400px, 100% - 48px); margin-inline: auto; }
.brand { text-decoration: none; display: inline-flex; flex: none; }
.wm { display: inline-flex; align-items: baseline; gap: 8px; font: 400 24px/1 var(--serif); color: var(--ink); letter-spacing: .14em; }
.wm b { font-weight: 400; }
.wm-tile { font: italic 400 24px/1 var(--serif); color: var(--sea); letter-spacing: 0; position: relative; padding-left: 10px; }
.wm-tile::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--amber); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.brand:hover .wm-tile::before { transform: scaleY(1.4); }
.nav { display: none; gap: 30px; margin-left: auto; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--sea); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .55s var(--ease); }
.nav a:hover::after, .nav a.on::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav a.on { color: var(--sea); }
.lang { display: none; position: relative; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(251, 248, 241, .7); flex: none; }
.js .lang { display: inline-flex; }
.lang::before { content: ''; position: absolute; top: 3px; left: 3px; width: 34px; height: 28px; border-radius: 999px; background: var(--sea);
  transition: transform .55s var(--ease); }
.lang[data-i="1"]::before { transform: translateX(34px); } .lang[data-i="2"]::before { transform: translateX(68px); } .lang[data-i="3"]::before { transform: translateX(102px); }
.lang button { position: relative; z-index: 1; width: 34px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .12em; color: var(--muted); transition: color .4s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--paper); }
.lang:not([data-i]) button[aria-pressed="true"] { background: var(--sea); }
.mnav { position: relative; flex: none; }
.mnav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(251, 248, 241, .7); }
.mnav summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 5px; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger i:nth-child(2) { width: 11px; justify-self: end; }
.mnav[open] .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mnav[open] .burger i:nth-child(2) { opacity: 0; }
.mnav[open] .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); display: grid; padding: 10px 6px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(29, 42, 38, .4); }
.mnav nav a { color: var(--ink); text-decoration: none; padding: 11px 16px; font: 400 18px/1.3 var(--serif); }
.mnav nav a:hover, .mnav nav a:focus-visible { color: var(--sea); background: var(--sea-t); }
@media (min-width: 1180px) { .nav { display: flex; } .mnav { display: none; } .nav + .lang { margin-left: 8px; } }

/* ---------- кнопки и ссылки ---------- */
.cta, .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--sea); border-radius: 2px; background: var(--sea); color: var(--paper); text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: color .5s var(--ease), border-color .5s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sea-d); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn .arr, .more .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .55s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--paper); }
.btn:active { transform: translateY(1px); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--sea); text-decoration: none; font: 600 11.5px/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; position: relative; }
.more::after { content: ''; position: absolute; left: 0; right: 26px; bottom: 0; height: 1px; background: currentColor; transform-origin: 0 50%; transition: transform .55s var(--ease); }
.more:hover::after { transform: scaleX(.35); }
.more:hover .arr { transform: translateX(4px); }
.more:hover .arr-d { transform: translateY(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 500 12.5px/1.3 var(--sans); color: var(--text); letter-spacing: .02em; background: rgba(251, 248, 241, .6); }
.chips li.soon { border-style: dashed; color: var(--muted); }

/* =====================================================================
   ПЕРВЫЙ ЭКРАН: карта + облака (sticky), поверх — шаги облёта
   ===================================================================== */
.tour { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
  background: #efe7d6; contain: layout paint; }
.world { position: absolute; left: 50%; top: 50%; width: max(108vw, 172.8vh); aspect-ratio: 1.6; transform: translate(-50%, -50%); --inv: 1; }
.cine .world { left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-land { fill: #f1e9d9; }
.m-fields path { fill: #ebe1ca; stroke: #ddd0b4; stroke-width: 1; }
.m-fields2 path { fill: url(#mHatch); stroke: #d9d2b6; stroke-width: 1; }
.m-forest path { fill: url(#mPine); opacity: .8; }
.m-bog { fill: url(#mBog); opacity: .9; }
.m-road { fill: none; stroke: #ddd0b6; stroke-width: 4; stroke-linecap: round; }
.m-road2 { stroke-width: 3; }
.m-rail { fill: none; stroke: #8d8473; stroke-width: 2.6; opacity: .55; }
.m-rail2 { stroke: #f1e9d9; stroke-width: 1.3; stroke-dasharray: 7 7; opacity: 1; }
.m-houses rect { fill: #d9cbb0; }
.m-city rect { fill: #dccdb2; }
.m-water path { fill: #cfe1db; stroke: #a9c6bf; stroke-width: 1.2; }
.m-river { fill: none; stroke: #c6dcd6; stroke-width: 11; stroke-linecap: round; }
.m-river-s { stroke-width: 4; }
.m-daugava { stroke-width: 18; }
.m-sand { fill: none; stroke: #eadbbd; stroke-width: 22; }
.m-sea { fill: url(#mSea); }
.m-shore { fill: none; stroke: #9ebfb8; stroke-width: 1.4; }
.m-iso { fill: none; stroke: #6f9b94; stroke-width: 1; }
.m-iso.i1 { opacity: .4; } .m-iso.i2 { opacity: .3; stroke-dasharray: 2 6; } .m-iso.i3 { opacity: .24; } .m-iso.i4 { opacity: .18; stroke-dasharray: 2 7; } .m-iso.i5 { opacity: .13; }
.m-grid { fill: none; stroke: #6f8c86; stroke-width: 1; stroke-dasharray: 1 7; opacity: .5; }
.m-coord { font: 500 12px var(--sans); letter-spacing: .2em; fill: #6c8a84; }
.m-seaname { font: italic 400 34px var(--serif); letter-spacing: .12em; fill: #4b7a73; opacity: .75; }
.m-seaname.m-sub { font: 500 12px var(--sans); letter-spacing: .5em; text-transform: uppercase; opacity: .6; }
.m-town { font: 600 12px var(--sans); letter-spacing: .32em; fill: #6d6656; }
.m-big { font: 400 19px var(--serif); letter-spacing: .3em; fill: #57645d; }
.m-riv { font: italic 400 15px var(--serif); letter-spacing: .14em; fill: #5d8a83; }
.m-rose circle { fill: none; stroke: #6f8c86; stroke-width: 1; opacity: .6; }
.m-rose path { fill: none; stroke: #6f8c86; stroke-width: 1; }
.m-rose .m-rose-n { fill: #6f8c86; }
.m-rose text { font: 600 12px var(--sans); fill: #5d7a74; text-anchor: middle; letter-spacing: .2em; }

/* блики воды: два слоя мелких бликов, обрезанных по морю */
.glint { position: absolute; inset: 0; clip-path: url(#mSeaBB); opacity: .55; pointer-events: none;
  background-image: radial-gradient(ellipse 7px 1.3px at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%);
  background-size: 54px 23px; }
.glint.g2 { background-size: 77px 31px; background-position: 19px 11px; opacity: .2; }
/* кораблики */
.boat { position: absolute; width: 1.6%; aspect-ratio: 1.2; top: 30%; left: 34%; }
.boat.bt2 { top: 22%; left: 63%; width: 1.25%; }
.boat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.boat path { fill: rgba(251, 248, 241, .9); stroke: #4d6c66; stroke-width: 1.1; stroke-linejoin: round; }
.boat .hull { fill: #4d6c66; }

/* огоньки направлений */
.mk { position: absolute; width: 0; height: 0; transform: scale(var(--inv)); z-index: 2; cursor: pointer; }
.mk-estate { left: 15.625%; top: 60.8%; } .mk-huvam { left: 26.875%; top: 60.6%; } .mk-tv { left: 40%; top: 59.2%; }
.mk-smarthome { left: 53.125%; top: 57.4%; } .mk-ai { left: 63.125%; top: 54%; } .mk-modern { left: 93.125%; top: 65%; }
.mk-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff6df, var(--glow) 55%, #d58a2c);
  box-shadow: 0 0 0 3px rgba(251, 248, 241, .85), 0 0 18px 6px rgba(240, 180, 90, .55); transition: transform .6s var(--ease); }
.mk-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201, 138, 58, .7); opacity: 0; }
.mk-l { position: absolute; left: 0; white-space: nowrap; transform: translateX(-50%); font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); padding: 6px 9px; background: rgba(251, 248, 241, .88); border: 1px solid var(--line); transition: background-color .5s, color .5s, border-color .5s; }
.lb-t .mk-l { bottom: 16px; } .lb-b .mk-l { top: 16px; }
/* подпись не помещается в экран — встаёт с другой стороны огонька (класс ставит site.js) */
.al-l .mk-l { left: auto; right: -12px; transform: none; }
.al-r .mk-l { left: -12px; transform: none; }
.al-h .mk-l { opacity: 0; }
.mk.on .mk-dot { transform: scale(1.35); }
.mk.on .mk-l { background: var(--sea); color: var(--paper); border-color: var(--sea); }

/* облака */
.clouds { position: absolute; inset: -10%; pointer-events: none; transform-origin: 50% 50%; }
.cine .clouds { will-change: transform, opacity; }
.cl { position: absolute; display: block; width: 46vmax; height: 24vmax; opacity: .9;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0)) 18% 60% / 48% 70% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, 0)) 46% 40% / 52% 86% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, 0)) 78% 58% / 44% 66% no-repeat; }
.cl::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: translate(6%, 14%); opacity: .5;
  background: radial-gradient(closest-side, rgba(43, 76, 70, .16), rgba(43, 76, 70, 0)) 50% 55% / 80% 70% no-repeat; }
.c1 { left: -14%; top: 4%; } .c2 { right: -16%; top: 10%; width: 52vmax; } .c3 { left: 6%; bottom: 2%; width: 40vmax; opacity: .8; }
.c4 { right: 2%; bottom: -6%; width: 56vmax; height: 26vmax; } .c5 { left: 38%; top: -10%; width: 36vmax; opacity: .7; }
.c6 { left: -20%; top: 46%; width: 34vmax; opacity: .75; } .c7 { right: -22%; top: 52%; width: 38vmax; opacity: .7; }
.fog { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 44% at 50% 40%, rgba(244, 238, 226, .92), rgba(244, 238, 226, .55) 55%, rgba(244, 238, 226, 0) 100%); }
.vign { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(244, 238, 226, 0) 60%, rgba(236, 228, 210, .7) 100%); }
.rail { display: none; }
.cine .rail { display: block; position: absolute; right: 30px; top: 50%; width: 1px; height: 34vh; transform: translateY(-50%); background: var(--line); }
.rail-fill { position: absolute; inset: 0; background: var(--sea); transform-origin: 50% 0; transform: scaleY(0); }

/* шаги */
.steps { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.step { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px max(6vw, 24px) 90px; }
.step[data-side="r"] { justify-content: flex-end; }
.step[data-side="c"] { justify-content: center; }
.step + .step { margin-top: 18vh; }
.step-lead { margin-top: 0 !important; }
.card { position: relative; width: min(560px, 100%); padding: 44px 48px 42px; background: rgba(251, 248, 241, .985);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(29, 42, 38, .35); }
.card::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hair); pointer-events: none; }
.card-wide { width: min(760px, 100%); }
/* где браузер умеет размывать фон — карта под карточкой размыта, иначе фон почти сплошной */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(251, 248, 241, .9); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); }
}
.card h2 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.1; margin-bottom: 22px; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > * { display: block; }
.pname { font-style: italic; color: var(--sea); }
.card .lead { font-size: 17px; line-height: 1.75; color: var(--text); }
.step-lead .lead { font: 400 clamp(19px, 1.6vw, 23px)/1.62 var(--serif); color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.badges li { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.badges .i { width: 20px; height: 20px; color: var(--sea); }

/* вступление */
.step-intro { justify-content: center; align-items: flex-start; text-align: center; padding-top: max(17vh, 112px); padding-bottom: 150px; }
.intro { max-width: 1100px; }
.intro .kicker { justify-content: center; }
.intro .kicker::before, .intro .kicker::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.intro h1 { font-size: clamp(42px, 6.6vw, 104px); line-height: 1.0; letter-spacing: -.012em; }
.intro h1 em { font-style: italic; color: var(--sea); }
.intro .cta { justify-content: center; margin-top: 42px; }
.intro .btn-ghost { background: rgba(251, 248, 241, .72); }
.hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 14px;
  font: 600 10.5px/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); text-align: center; width: max-content; max-width: 90vw; }
.hint i { position: relative; display: block; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hint i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--sea); }

/* =====================================================================
   БЕГУЩАЯ СТРОКА
   ===================================================================== */
.tk-wrap { position: relative; z-index: 2; border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ticker { overflow: hidden; }
.tk-track { display: flex; width: max-content; }
.tk-list { display: flex; flex: none; }
.tk-list li { display: inline-flex; align-items: center; gap: 26px; padding: 18px 0 18px 26px; white-space: nowrap; font: italic 400 19px/1 var(--serif); color: var(--ink); }
.tk-list li::after { content: ''; width: 6px; height: 6px; border: 1px solid var(--amber); transform: rotate(45deg); }

/* =====================================================================
   РАЗДЕЛЫ
   ===================================================================== */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.sec.alt { background: var(--paper); border-block: 1px solid var(--hair); }
.sec h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; }
.sec .sub { max-width: 760px; margin-top: 24px; font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--serif); color: var(--muted); }
.lead { font-size: 18px; }

/* оглавление «Was wir tun» */
#what h2 { max-width: 980px; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); counter-reset: a; }
.area { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 34px 34px 30px 0; border-bottom: 1px solid var(--line); }
.area + .area { }
.a-ic { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--sea); margin-bottom: 26px;
  transition: transform .7s var(--ease), background-color .5s, color .5s; }
.a-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.area:hover .a-ic { background: var(--sea); color: var(--paper); transform: rotate(-8deg); }
.a-n { position: absolute; right: 30px; top: 34px; font: italic 400 15px/1 var(--serif); color: var(--amber); }
.area h3 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.area p { color: var(--muted); font-size: 16px; }
.area .more { margin-top: 20px; justify-self: start; }
@media (min-width: 700px) { .area { padding-left: 0; } .areas { column-gap: 40px; } }

/* подробные разделы */
.dhead { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 26px; margin-bottom: clamp(44px, 6vw, 80px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dhead .no { grid-row: span 2; font: italic 400 clamp(64px, 9vw, 128px)/.8 var(--serif); color: var(--amber); opacity: .85; }
.dhead .kicker { margin: 0 0 8px; }
.dhead h2 { font-size: clamp(36px, 5vw, 70px); }
.dgrid { display: grid; gap: 48px; }
.dside { min-width: 0; }
.ill { margin: 0; position: relative; background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.alt .ill { background: var(--cream); }
.ill::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hair); pointer-events: none; }
.ill-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dbody { min-width: 0; }
.dbody > :first-child { margin-top: 0; }
@media (min-width: 1000px) {
  .dgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .dside { position: sticky; top: 110px; }
}
.h-mid { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; margin: 64px 0 28px; }
.dbody > .h-mid:first-child { margin-top: 0; }

/* «как работает» */
.how { display: grid; gap: 0; border-top: 1px solid var(--line); }
.how li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.how-n { grid-row: span 3; font: italic 400 34px/1 var(--serif); color: var(--amber); }
.how .i { width: 26px; height: 26px; color: var(--sea); margin-bottom: 10px; }
.how h4 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.how p { color: var(--muted); font-size: 16px; }

/* функции */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; }
.feat { padding: 26px 0 24px; border-top: 1px solid var(--line); }
.f-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--sea); margin-bottom: 16px;
  transition: transform .7s var(--ease), background-color .5s, color .5s; }
.f-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat:hover .f-ic, .group:hover .f-ic, .val:hover .f-ic { background: var(--sea); color: var(--paper); transform: rotate(-8deg); }
.feat h4 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.cta-row { margin-top: 44px; }
.cta-note { font: italic 400 18px var(--serif); color: var(--muted); }

/* TV: группы */
.groups { display: grid; gap: 0; border-top: 1px solid var(--line); }
.group { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.group .f-ic { grid-row: span 2; margin: 0; }
.group h3 { font-size: 25px; line-height: 1.2; margin: 4px 0 14px; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 16px; line-height: 1.6; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--sea); }
.dbody > .ticks { margin-bottom: 8px; }

/* Smart Home: статус и план */
.status { display: grid; gap: 14px; padding: 28px 30px; border: 1px solid var(--line); background: rgba(223, 233, 227, .45); margin-bottom: 56px; }
.st-badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sea); }
.st-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sea-2); }
.st-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--sea-2); opacity: 0; }
.status p { font: 400 19px/1.6 var(--serif); color: var(--ink); }
.plan { display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font: italic 400 19px/1.55 var(--serif); color: var(--ink); }
.plan .i { color: var(--amber); margin-top: 3px; }

/* референсы: Elmi, MEM Client */
.ref { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; margin-top: 56px; padding: 34px 34px 32px; background: var(--paper); border: 1px solid var(--line); }
.alt .ref { background: var(--cream); }
.ref::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hair); pointer-events: none; }
.ref-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sea); }
.ref-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ref .tag { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.ref h3 { font-size: 30px; font-style: italic; color: var(--sea); margin-bottom: 10px; }
.ref p { color: var(--text); font-size: 16.5px; }
.ref .chips { margin-top: 18px; }

/* модернизация: шаги и подпись к рисунку */
.proc { display: grid; gap: 0; position: relative; }
.proc li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 30px; }
.proc li::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 1px; background: var(--line); }
.proc li:last-child::before { display: none; }
.p-n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sea); border-radius: 50%; font: italic 400 18px/1 var(--serif); color: var(--sea); }
.proc h4 { font-size: 22px; line-height: 1.25; margin: 6px 0 6px; }
.proc p { color: var(--muted); font-size: 16px; }
.note { margin-top: 6px; font: italic 400 17px/1.6 var(--serif); color: var(--muted); }
.ba-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.ba-cap b { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.cap-new b { color: var(--sea); }
.cap-arr { color: var(--amber); }

/* недвижимость и мероприятия */
.duo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.duo-card { padding: 30px 0; border-bottom: 1px solid var(--line); }
.duo-card h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 12px; }
.duo-card p { font: 400 19px/1.6 var(--serif); color: var(--text); }

/* ценности */
.why { background: var(--sea-t); }
.why h2 { max-width: 900px; }
.vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 44px; margin-top: 60px; }
.val { padding: 30px 0; border-top: 1px solid rgba(31, 92, 87, .25); }
.val h3 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.val p { color: var(--text); font-size: 16px; }

/* контакт */
#contact { background: var(--sea-d); color: #e9e2d2; overflow: hidden; }
.cpanel { position: relative; display: grid; gap: 56px; }
#contact .kicker { color: var(--amber-l); }
#contact h2 { color: #f7f1e4; max-width: 760px; }
.cp-sub { margin-top: 24px; max-width: 680px; font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--serif); color: #d6d0c0; }
.btn-mail { margin-top: 36px; background: var(--paper); color: var(--sea-d); border-color: var(--paper); letter-spacing: .08em; text-transform: none; font-size: 16px; font-weight: 500; }
.btn-mail::before { background: var(--amber-l); }
.btn-mail .i { width: 20px; height: 20px; }
.cp-card { position: relative; padding: 34px 36px; border: 1px solid rgba(233, 226, 210, .25); align-self: start; }
.cp-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(233, 226, 210, .1); pointer-events: none; }
.cp-card .label { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-l); margin-bottom: 14px; }
.cp-card address { font: 400 20px/1.55 var(--serif); color: #f7f1e4; }
.facts { margin: 26px 0 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(233, 226, 210, .15); }
.facts dt { font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #b9b2a2; }
.facts dd { margin: 0; color: #f0eadc; font-size: 16px; }
@media (min-width: 960px) { .cpanel { grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; } }

/* подвал */
.foot { padding: 46px 0 50px; border-top: 1px solid var(--line); background: var(--cream); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; justify-content: space-between; }
.foot-brand { display: grid; gap: 10px; }
.foot-tag { color: var(--muted); font: italic 400 16px/1.4 var(--serif); }
.copy { color: var(--muted); font-size: 13.5px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { position: relative; color: var(--ink); text-decoration: none; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.foot-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.foot-links a:hover::after, .foot-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

/* =====================================================================
   ИЛЛЮСТРАЦИИ (общие элементы)
   ===================================================================== */
.ill-svg .o { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-svg .pap { fill: var(--paper); }
.alt .ill-svg .pap { fill: #fffdf8; }
.ill-svg .dash { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 3 5; }
/* HuVam */
.ill-hu .scr { fill: #f1ebdf; }
.ill-hu .bub.bl { fill: #e6dcc7; } .ill-hu .bub.br { fill: var(--sea); }
.ill-hu .tl { fill: #b6a888; } .ill-hu .tl.tw { fill: rgba(251, 248, 241, .7); }
.ill-hu .lk rect { fill: var(--sea); } .ill-hu .lk path { fill: none; stroke: var(--sea); stroke-width: 1.4; }
.ill-hu .lk-w rect { fill: var(--amber-l); } .ill-hu .lk-w path { stroke: var(--amber-l); }
.ill-hu .ph { fill: #cfe0da; } .ill-hu .phl { fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-linejoin: round; } .ill-hu .phs { fill: var(--amber-l); }
.ill-hu .typing circle { fill: #9c8f74; }
.ill-hu .seal { fill: var(--amber); }
.ill-hu .kh { fill: var(--ink); } .ill-hu .kh2 { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
/* TV */
.ill-tv .flash { fill: #fff; opacity: 0; }
.ill-tv .numbg { fill: rgba(251, 248, 241, .92); }
.ill-tv .nums text { font: italic 400 19px var(--serif); fill: var(--sea-d); text-anchor: middle; }
.ill-tv .btnr { fill: var(--amber); }
.ill-tv .sig path { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
/* Smart Home */
.ill-sh .lt { opacity: 0; }
.ill-sh .furn > * { fill: none; stroke: #a69a82; stroke-width: 1.2; }
.ill-sh .wall { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: miter; }
.ill-sh .wall2 { fill: none; stroke: var(--ink); stroke-width: 3; }
.ill-sh .door { fill: none; stroke: #a69a82; stroke-width: 1; stroke-dasharray: 3 3; }
.ill-sh .halo { fill: var(--glow); opacity: 0; }
.ill-sh .core { fill: #cfc3aa; }
.ill-sh .pbtn { fill: var(--sea); } .ill-sh .pbtn2 { fill: #cfc3aa; }
/* KI / n8n */
.ill-ai .aitag { font: 600 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; fill: var(--muted); }
.ill-ai .wires path { fill: none; stroke: #a99d84; stroke-width: 1.6; stroke-linejoin: round; }
.ill-ai .nb { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.alt .ill-ai .nb { fill: #fffdf8; }
.ill-ai .nh { fill: var(--glow); opacity: 0; }
.ill-ai .n2 .nb { fill: var(--sea); stroke: var(--sea); }
.ill-ai .ic { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-ai .n2 .ic { stroke: var(--paper); }
.ill-ai .port { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.ill-ai .pulse { fill: var(--amber); opacity: 0; }
.ill-ai .ok circle { fill: var(--sea-2); } .ill-ai .ok path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill-ai .ok { opacity: 0; }
/* модернизация */
.ill-mod .wo { fill: #e6e1d6; stroke: #7d7a72; stroke-width: 1.4; }
.ill-mod .wt { fill: #7f93a6; }
.ill-mod .wtl { fill: #e9eef3; }
.ill-mod .wb rect { fill: #d5d1c7; stroke: #6a675f; stroke-width: 1; }
.ill-mod .wmn { stroke: #6a675f; stroke-width: 4; }
.ill-mod .wl { fill: none; stroke: #a19d93; stroke-width: 1; }
.ill-mod .wf { fill: #fbfaf7; stroke: #8d8a82; stroke-width: 1; }
.ill-mod .wbtn { fill: #d9d5cb; stroke: #6a675f; stroke-width: 1; }
.ill-mod .cs { font: 600 12px Consolas, 'Courier New', monospace; fill: #6a675f; }
.ill-mod .no-f { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.ill-mod .no-l { stroke: var(--line); stroke-width: 1; }
.ill-mod .d1 { fill: #d98b6f; } .ill-mod .d2 { fill: var(--amber-l); } .ill-mod .d3 { fill: #8fb59b; }
.ill-mod .addr { fill: #efe9dc; }
.ill-mod .lkb rect { fill: var(--sea); } .ill-mod .lkb path { fill: none; stroke: var(--sea); stroke-width: 1.3; }
.ill-mod .al { fill: #c6bba5; } .ill-mod .al2 { fill: #d6ccb8; }
.ill-mod .side { fill: #efe9dc; } .ill-mod .si { fill: #d6ccb8; } .ill-mod .si.son { fill: var(--sea); }
.ill-mod .crd { fill: #fffdf8; stroke: var(--line); stroke-width: 1; }
.ill-mod .chart { fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill-mod .bar { fill: #9fc0b6; } .ill-mod .bar.b2 { fill: var(--amber-l); }
.ill-mod .ctab { fill: var(--sea); }
.ill-mod .neo { opacity: 0; }
.ill-mod .scan { fill: var(--amber-l); opacity: 0; }
/* недвижимость и мероприятия */
.ill-re .cord { stroke-width: 1.2; }
.ill-re .fl { stroke: none; }
.ill-re .f1, .ill-re .f5 { fill: var(--sea); } .ill-re .f2, .ill-re .f6 { fill: var(--amber-l); } .ill-re .f3, .ill-re .f7 { fill: #d98b6f; } .ill-re .f4, .ill-re .f8 { fill: #9fc0b6; }
.ill-re .floor { stroke: var(--ink); stroke-width: 1.6; } .ill-re .floor2 { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.ill-re .wallb { fill: #fffdf8; stroke: var(--ink); stroke-width: 1.4; }
.ill-re .fascia { fill: var(--sea); } .ill-re .f-amber { fill: var(--amber); }
.ill-re .ctr { fill: var(--sand); stroke: var(--ink); stroke-width: 1.4; }
.ill-re .win { fill: var(--amber-l); }
.ill-re .poster { fill: #cfe0da; } .ill-re .planp { fill: #f1ebdf; stroke: #a99d84; stroke-width: 1; }
.ill-re .thin { stroke-width: 1.2; }
.ill-re .sun { fill: var(--amber-l); }
.ill-re .p circle, .ill-re .p path { fill: #8a8070; }
.ill-re .pb circle, .ill-re .pb path { fill: var(--sea-2); }

/* =====================================================================
   ДВИЖЕНИЕ — только если человек не просил «меньше движения»
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* облака, блики, кораблики, огоньки */
  .cl { animation: drift 80s ease-in-out infinite alternate; }
  .c2 { animation-duration: 96s; animation-direction: alternate-reverse; } .c3 { animation-duration: 70s; } .c4 { animation-duration: 110s; animation-direction: alternate-reverse; }
  .c5 { animation-duration: 64s; } .c6 { animation-duration: 90s; animation-direction: alternate-reverse; } .c7 { animation-duration: 76s; }
  @keyframes drift { from { transform: translate3d(-6vw, 0, 0); } to { transform: translate3d(9vw, 1.5vh, 0); } }
  .glint { animation: glint 5.5s ease-in-out infinite alternate; }
  .glint.g2 { animation-duration: 4.2s; animation-delay: -2s; }
  @keyframes glint { from { opacity: .12; transform: translate3d(-6px, 0, 0); } to { opacity: .7; transform: translate3d(6px, 1px, 0); } }
  .boat { animation: sail 70s linear infinite alternate; }
  .boat.bt2 { animation-duration: 90s; animation-direction: alternate-reverse; }
  @keyframes sail { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(900%, 120%, 0); } }
  .mk-ring { animation: ring 2.8s var(--ease) infinite; }
  .mk:nth-child(odd) .mk-ring { animation-delay: -1.4s; }
  @keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
  .hint i::after { animation: hint 2.4s var(--ease-io) infinite; }
  @keyframes hint { 0% { transform: translateY(-16px); } 100% { transform: translateY(46px); } }
  .st-dot::after { animation: ring 2.4s var(--ease) infinite; }
  .ticker .tk-track { animation: tk 60s linear infinite; }
  .ticker:hover .tk-track { animation-play-state: paused; }
  @keyframes tk { to { transform: translate3d(-50%, 0, 0); } }

  /* вступление: строки заголовка выезжают при загрузке */
  .intro .kicker, .intro .cta, .hint { animation: fadeUp 1.2s var(--ease) both; }
  .intro .kicker { animation-delay: .15s; } .intro .cta { animation-delay: 1.05s; } .hint { animation-name: fadeIn; animation-delay: 1.6s; }
  .intro .ln > * { animation: lineUp 1.3s var(--ease) both; }
  .intro .ln:nth-child(1) > * { animation-delay: .35s; } .intro .ln:nth-child(2) > * { animation-delay: .6s; }
  @keyframes lineUp { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
  @keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .hint { animation-fill-mode: both; }

  /* карточки облёта: появляются, когда в кадре (класс .in ставит site.js) */
  .cine .card { opacity: 0; transform: translate3d(0, 50px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
  .cine .card > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .cine .card > h2 { opacity: 1; transform: none; }
  .cine .card .ln > * { transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--ease); }
  .cine .card.in { opacity: 1; transform: none; }
  .cine .card.in > *, .cine .card.in .ln > * { opacity: 1; transform: none; }
  .cine .card > :nth-child(1) { transition-delay: .15s; }
  .cine .card .ln:nth-child(1) > * { transition-delay: .25s; } .cine .card .ln:nth-child(2) > * { transition-delay: .4s; }
  .cine .card > :nth-child(3) { transition-delay: .55s; } .cine .card > :nth-child(4) { transition-delay: .7s; } .cine .card > :nth-child(5) { transition-delay: .85s; }
  .cine .step-lead .card > :nth-child(1) { transition-delay: .2s; } .cine .step-lead .card > :nth-child(2) { transition-delay: .45s; }

  /* появление блоков ниже: scroll-driven, где браузер умеет; иначе — IntersectionObserver (.in) */
  @supports (animation-timeline: view()) {
    .rv { animation: rvIn linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .ill-svg { animation: illPar linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  @supports not (animation-timeline: view()) {
    .js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
    .js .rv.in { opacity: 1; transform: none; }
  }
  @keyframes rvIn { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
  @keyframes illPar { from { transform: translate3d(0, 14px, 0); } to { transform: translate3d(0, -14px, 0); } }

  /* ---- иллюстрации ---- */
  .ill-svg * { transform-box: fill-box; }
  /* HuVam: пузыри по очереди, замок защёлкивается */
  .ill-hu .bb, .ill-hu .typing { animation: bub 10s var(--ease) infinite both; transform-origin: 50% 100%; }
  .ill-hu .bb2 { animation-delay: 1.1s; } .ill-hu .bb3 { animation-delay: 2.2s; } .ill-hu .bb4 { animation-delay: 3.3s; } .ill-hu .typing { animation-delay: 4.4s; }
  @keyframes bub { 0% { opacity: 0; transform: translateY(10px) scale(.94); } 5% { opacity: 1; transform: none; } 58% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: translateY(-4px); } }
  .ill-hu .typing circle { animation: dotb 1.2s ease-in-out infinite; }
  .ill-hu .typing circle:nth-child(3) { animation-delay: .15s; } .ill-hu .typing circle:nth-child(4) { animation-delay: .3s; }
  @keyframes dotb { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  .ill-hu .shk { animation: shk 5s var(--ease) infinite; }
  @keyframes shk { 0%, 18% { transform: translateY(-9px); } 26%, 86% { transform: none; } 94%, 100% { transform: translateY(-9px); } }
  .ill-hu .env { animation: float 6s ease-in-out infinite alternate; }
  @keyframes float { from { transform: translateY(4px) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
  /* TV: переключение каналов */
  .ill-tv .chs { animation: chs 10s var(--ease-io) infinite; }
  @keyframes chs { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-196px); } 50%, 70% { transform: translateY(-392px); } 75%, 95% { transform: translateY(-588px); } 100% { transform: translateY(-784px); } }
  .ill-tv .nums { animation: nums 10s steps(1) infinite; }
  @keyframes nums { 0% { transform: translateY(0); } 23% { transform: translateY(-26px); } 48% { transform: translateY(-52px); } 73% { transform: translateY(-78px); } 98% { transform: translateY(-104px); } }
  .ill-tv .flash { animation: flash 10s linear infinite; }
  @keyframes flash { 0%, 21%, 26%, 46%, 51%, 71%, 76%, 96%, 100% { opacity: 0; } 23%, 48%, 73%, 98% { opacity: .35; } }
  .ill-tv .sig path { animation: sig 2.5s ease-out infinite; }
  .ill-tv .sig path:nth-child(2) { animation-delay: .12s; }
  @keyframes sig { 0%, 60% { opacity: 0; } 72% { opacity: 1; } 90%, 100% { opacity: 0; } }
  .ill-tv .btnr { animation: press 2.5s ease-out infinite; transform-origin: 50% 50%; }
  @keyframes press { 0%, 62% { transform: none; } 68% { transform: scale(.75); } 76%, 100% { transform: none; } }
  /* Smart Home: свет по комнатам */
  .ill-sh .lt, .ill-sh .halo { animation: lamp 9s var(--ease) infinite both; }
  .ill-sh .l2, .ill-sh .b2 .halo { animation-delay: .9s; } .ill-sh .l3, .ill-sh .b3 .halo { animation-delay: 1.8s; }
  .ill-sh .l4, .ill-sh .b4 .halo { animation-delay: 2.7s; } .ill-sh .l5, .ill-sh .b5 .halo { animation-delay: 3.6s; }
  @keyframes lamp { 0% { opacity: 0; } 6% { opacity: 1; } 56% { opacity: 1; } 64%, 100% { opacity: 0; } }
  .ill-sh .halo { transform-origin: 50% 50%; }
  .ill-sh .pbtn { animation: press 9s ease-out infinite; }
  /* KI: импульсы бегут по узлам n8n */
  .ill-ai .p1 { animation: p1 8s linear infinite; } .ill-ai .p2 { animation: p2 8s linear infinite; } .ill-ai .p3 { animation: p3 8s linear infinite; }
  .ill-ai .p4 { animation: p4 8s linear infinite; } .ill-ai .p5 { animation: p5 8s linear infinite; }
  @keyframes p1 { 0% { opacity: 0; transform: none; } 2% { opacity: 1; } 14% { opacity: 1; transform: translateX(60px); } 16%, 100% { opacity: 0; transform: translateX(60px); } }
  @keyframes p2 { 0%, 22% { opacity: 0; transform: none; } 23% { opacity: 1; transform: none; } 27% { transform: translateX(28px); } 33% { transform: translate(28px, -72px); } 38% { opacity: 1; transform: translate(66px, -72px); } 40%, 100% { opacity: 0; transform: translate(66px, -72px); } }
  @keyframes p3 { 0%, 22% { opacity: 0; transform: none; } 23% { opacity: 1; transform: none; } 27% { transform: translateX(28px); } 33% { transform: translate(28px, 72px); } 38% { opacity: 1; transform: translate(66px, 72px); } 40%, 100% { opacity: 0; transform: translate(66px, 72px); } }
  @keyframes p4 { 0%, 46% { opacity: 0; transform: none; } 47% { opacity: 1; transform: none; } 50% { transform: translateX(18px); } 57% { transform: translate(18px, 72px); } 62% { opacity: 1; transform: translate(42px, 72px); } 64%, 100% { opacity: 0; transform: translate(42px, 72px); } }
  @keyframes p5 { 0%, 46% { opacity: 0; transform: none; } 47% { opacity: 1; transform: none; } 50% { transform: translateX(18px); } 57% { transform: translate(18px, -72px); } 62% { opacity: 1; transform: translate(42px, -72px); } 64%, 100% { opacity: 0; transform: translate(42px, -72px); } }
  .ill-ai .n2 .nh { animation: nh 8s ease-out infinite; animation-delay: 1.2s; }
  .ill-ai .n3 .nh, .ill-ai .n4 .nh { animation: nh 8s ease-out infinite; animation-delay: 3.1s; }
  .ill-ai .n5 .nh { animation: nh 8s ease-out infinite; animation-delay: 5s; }
  @keyframes nh { 0% { opacity: .55; } 12%, 100% { opacity: 0; } }
  .ill-ai .ok { animation: ok 8s var(--ease) infinite; transform-origin: 50% 50%; }
  @keyframes ok { 0%, 63% { opacity: 0; transform: scale(.4); } 68% { opacity: 1; transform: scale(1.1); } 72%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
  /* модернизация: старое окно превращается в браузер */
  .ill-mod .old { animation: oldw 9s var(--ease-io) infinite; transform-origin: 50% 50%; }
  .ill-mod .neo { animation: neow 9s var(--ease-io) infinite; transform-origin: 50% 50%; }
  .ill-mod .scan { animation: scan 9s var(--ease-io) infinite; }
  @keyframes oldw { 0%, 34% { opacity: 1; transform: none; } 46%, 90% { opacity: 0; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
  @keyframes neow { 0%, 38% { opacity: 0; transform: scale(1.05); } 50%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(1.03); } }
  @keyframes scan { 0%, 33% { opacity: 0; transform: none; } 36% { opacity: .9; } 48% { opacity: .9; transform: translateX(380px); } 52%, 100% { opacity: 0; transform: translateX(380px); } }
  .ill-mod .bar { animation: bar 9s var(--ease) infinite; transform-origin: 50% 100%; }
  @keyframes bar { 0%, 44% { transform: scaleY(.2); } 56%, 100% { transform: none; } }
  /* недвижимость и мероприятия: флажки колышутся, стенды вырастают */
  .ill-re .fl { animation: flag 2.6s ease-in-out infinite alternate; transform-origin: 50% 0; }
  .ill-re .f2, .ill-re .f6 { animation-delay: -.6s; } .ill-re .f3, .ill-re .f7 { animation-delay: -1.2s; } .ill-re .f4, .ill-re .f8 { animation-delay: -1.8s; }
  @keyframes flag { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
  .ill-re .stand { animation: stand 10s var(--ease) infinite both; transform-origin: 50% 100%; }
  .ill-re .s2 { animation-delay: .5s; } .ill-re .s3 { animation-delay: 1s; }
  @keyframes stand { 0% { opacity: 0; transform: scaleY(.1); } 8% { opacity: 1; transform: scaleY(1.03); } 11%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleY(.1); } }
  .ill-re .p { animation: walk 10s ease-in-out infinite alternate; }
  .ill-re .pb { animation-duration: 13s; animation-direction: alternate-reverse; }
  @keyframes walk { from { transform: translateX(-14px); } to { transform: translateX(14px); } }

  /* рисунки и сцена играют, только когда видны */
  .js .anim:not(.play) *, .js .anim:not(.play), .js .stage:not(.play) *, .js .ticker:not(.play) * { animation-play-state: paused !important; }
}

/* при reduced-motion: всё видно, ничего не движется */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ill-mod .neo { opacity: 1; } .ill-mod .old { opacity: 0; }
  .ill-sh .lt.l1, .ill-sh .lt.l4 { opacity: 1; } .ill-sh .b1 .halo, .ill-sh .b4 .halo { opacity: .6; }
  .ill-hu .shk { transform: none; }
  .ill-ai .ok { opacity: 1; }
}

/* =====================================================================
   ТЕЛЕФОН И ПЛАНШЕТ
   ===================================================================== */
@media (max-width: 819px) {
  body { font-size: 16px; }
  .top-in { gap: 10px; width: calc(100% - 32px); }
  .wm, .wm-tile { font-size: 21px; }
  .step { padding: 46vh 16px 40px; align-items: flex-end; justify-content: center !important; }
  .step + .step { margin-top: 10vh; }
  .step-intro { align-items: flex-start; padding: 110px 16px 150px; }
  .step-lead { padding-top: 22vh; }
  .card { padding: 30px 24px 28px; }
  .card h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .card .lead { font-size: 16px; line-height: 1.7; }
  .step-lead .lead { font-size: 18.5px; }
  .intro h1 { font-size: clamp(38px, 11.4vw, 54px); }
  .intro .cta { margin-top: 32px; }
  .intro .cta .btn { width: 100%; }
  .kicker { letter-spacing: .2em; gap: 10px; }
  .kicker .no::after { width: 14px; margin-left: 8px; }
  .intro .kicker::before, .intro .kicker::after { width: 18px; }
  .badges { gap: 12px 20px; }
  .mk-l { font-size: 9.5px; padding: 5px 7px; letter-spacing: .16em; }
  .c5, .c6, .c7 { display: none; }
  .cine .rail { display: none; }
  .cl { width: 70vmax; height: 34vmax; }
  .wrap { width: calc(100% - 32px); }
  .area { padding-right: 0; }
  .a-n { right: 0; }
  .ill { padding: 14px; }
  .ref { grid-template-columns: 1fr; padding: 28px 24px; }
  .how li, .group, .proc li { grid-template-columns: 46px 1fr; column-gap: 14px; }
  .cp-card { padding: 28px 24px; }
  .dhead { column-gap: 18px; }
  .tk-list li { font-size: 17px; padding: 15px 0 15px 22px; gap: 22px; }
}
@media (max-width: 370px) {
  .lang button { width: 30px; }
  .lang::before { width: 30px; }
  .lang[data-i="1"]::before { transform: translateX(30px); } .lang[data-i="2"]::before { transform: translateX(60px); } .lang[data-i="3"]::before { transform: translateX(90px); }
  .wm, .wm-tile { font-size: 19px; } .wm { letter-spacing: .1em; }
  .card { padding: 26px 20px 24px; }
  .btn { padding: 0 20px; letter-spacing: .16em; }
}

/* =====================================================================
   ПРАВОВЫЕ СТРАНИЦЫ И 404 (без тяжёлых сцен)
   ===================================================================== */
.page-head { position: relative; padding: calc(var(--top) + 70px) 0 56px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: var(--cream) url('/coast.svg') right -40px bottom -10px / min(820px, 120%) auto no-repeat; }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; margin: 18px 0 26px; }
.blob { display: none; }
.back { display: inline-flex; gap: 10px; color: var(--sea); text-decoration: none; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.back:hover { color: var(--sea-d); }
.jump { display: flex; gap: 10px; flex-wrap: wrap; }
.jump a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 13px/1.2 var(--sans);
  transition: background-color .4s var(--ease), color .4s var(--ease); }
.jump a:hover { background: var(--sea); color: var(--paper); border-color: var(--sea); }
.legal { padding: 56px 0 90px; display: grid; gap: 28px; max-width: 900px; }
.legal-card { position: relative; padding: clamp(28px, 4vw, 52px); background: var(--paper); border: 1px solid var(--line); }
.legal-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hair); pointer-events: none; }
.legal-card h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; margin: 34px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 20px; margin: 22px 0 8px; }
.legal-card p, .legal-card li, .legal-card address { font-size: 16px; color: var(--text); }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { list-style: none; display: grid; gap: 6px; margin: 10px 0; }
.legal-card li { position: relative; padding-left: 24px; }
.legal-card li::before { content: ''; position: absolute; left: 0; top: .82em; width: 12px; height: 1px; background: var(--sea); }
.legal-card.part { }
.stand { color: var(--muted); font: italic 400 16px var(--serif); }
.nf { position: relative; min-height: calc(100vh - 140px); display: flex; align-items: center; padding: calc(var(--top) + 40px) 0 70px; overflow: hidden;
  background: var(--cream) url('/coast.svg') center bottom -20px / min(1100px, 160%) auto no-repeat; }
.nf .wrap { max-width: 820px; }
.nf .nf-code { font: italic 400 clamp(110px, 20vw, 220px)/.85 var(--serif); color: var(--amber); margin-bottom: 16px; }
.nf h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin-bottom: 20px; }
.nf p { font: 400 19px/1.6 var(--serif); color: var(--text); max-width: 640px; }
.nf p + p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.nf .cta { margin-top: 34px; }
.grad { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .page-head h1, .page-head .jump, .nf-code, .nf h1, .nf p, .nf .cta { animation: fadeUp 1.1s var(--ease) both; }
  .page-head .jump { animation-delay: .2s; } .nf h1 { animation-delay: .15s; } .nf p { animation-delay: .3s; } .nf .cta { animation-delay: .45s; }
}
