:root {
  color-scheme: dark;
  --bg: #111b24;
  --text: #f1f0e9;
  --muted: #bac4c9;
  --accent: #b9e6b4;
  --line: rgba(226, 237, 239, .19);
  --gutter: clamp(24px, 4.25vw, 88px);
  --transition: 1500ms;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; background: var(--bg); }
body { color: var(--text); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; border-radius: 2px; }
a:hover { color: var(--accent); }
.site { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 550px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto 3px; overflow: hidden; background: var(--bg); }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 35px var(--gutter) 28px; position: relative; z-index: 3; }
.brand { display: flex; gap: 14px; align-items: center; font-size: clamp(27px, 2.5vw, 36px); font-weight: 700; letter-spacing: -.065em; }
.brand-mark { width: 29px; height: 29px; color: var(--accent); flex: 0 0 auto; }
.brand-dot { color: var(--accent); }
.masthead-caption { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0; text-align: right; }
.stage { position: relative; display: grid; min-height: 0; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) 24%; align-items: center; padding: 0 var(--gutter) 30px; opacity: 0; visibility: hidden; transition: opacity var(--transition) ease, visibility 0s var(--transition); }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--transition) ease, visibility 0s; }
.slide-copy { z-index: 2; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 24px; font-size: 14px; line-height: 1.5; letter-spacing: .045em; color: var(--accent); margin: 0 0 clamp(24px, 4vh, 48px); }
.index { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .05em; }
h1, h2 { font-size: clamp(46px, 6.8vw, 120px); font-weight: 400; line-height: 1.09; letter-spacing: -.055em; margin: 0; overflow-wrap: normal; }
h1 em, h2 em { font-weight: 400; font-style: normal; color: var(--accent); }
.description { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.6; color: var(--muted); margin: clamp(24px, 3.6vh, 42px) 0 0; max-width: 720px; }
.details { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(24px, 4vh, 48px); color: #e0e4e2; font-size: 14px; line-height: 1.5; }
.details span + span { border-left: 1px solid var(--line); margin-left: 18px; padding-left: 18px; }
.scene-type { align-self: end; margin-bottom: 16px; color: rgba(193, 219, 216, .14); text-align: right; user-select: none; }
.scene-type > span { display: block; font-size: clamp(85px, 16vw, 280px); line-height: .82; font-weight: 400; letter-spacing: -.11em; padding-right: .09em; }
.scene-type > small { display: block; color: #99b2b2; font-size: 12px; line-height: 1.5; letter-spacing: .12em; margin-top: 28px; }
.footer { z-index: 3; position: relative; margin: 0 var(--gutter); min-height: 105px; padding: 27px 0; border-top: 1px solid var(--line); display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.footer-caption { margin: 0; font-size: 14px; line-height: 1.6; white-space: nowrap; }
.footer-caption span { color: var(--muted); margin-left: 5px; }
.footer-caption i { color: #869998; font-style: normal; padding: 0 10px; }
.contacts { display: flex; gap: clamp(18px, 2.8vw, 48px); align-items: center; }
.contact-link { display: grid; gap: 5px; font-size: 15px; transition: color 180ms ease; padding: 3px 0; }
.contact-link > span:first-child { color: var(--muted); font-size: 13px; }
.contact-value { overflow-wrap: anywhere; }
.max-link { border: 1px solid #668072; border-radius: 4px; padding: 13px 18px; font-size: 14px; line-height: 1.5; white-space: nowrap; transition: color 180ms ease, border-color 180ms ease; }
.max-link:hover { border-color: var(--accent); }
.max-link > span { margin-left: 18px; }
.sequence { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; height: 3px; position: relative; z-index: 4; }
.sequence > span { background: rgba(230, 239, 237, .1); transition: background-color var(--transition) ease; }
.sequence > .is-current { background: var(--accent); }
.atmosphere { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.halo { position: absolute; width: 110vw; height: 150vh; top: -24vh; right: -62vw; border-radius: 50%; background: radial-gradient(ellipse, rgba(140, 189, 156, .27) 0, rgba(71, 142, 138, .13) 33%, rgba(37, 82, 87, .02) 62%, transparent 67%); transition: transform 4s ease, opacity 4s ease; }
.horizon { position: absolute; top: -45vh; right: -80vw; width: 132vw; height: 180vh; border: 1px solid rgba(156, 195, 181, .18); border-radius: 50%; transform: rotate(-28deg); box-shadow: 0 0 130px 6px rgba(160, 206, 175, .05), -24px -8px 80px rgba(116, 184, 175, .04); transition: transform 4s ease; }
.site[data-scene="1"] .halo { transform: translate(-12vw, 5vh) scale(1.1); }
.site[data-scene="1"] .horizon { transform: translateX(-4vw) rotate(-18deg); }
.site[data-scene="2"] .halo { transform: translate(-4vw, -15vh) scale(1.15); opacity: .75; }
.site[data-scene="2"] .horizon { transform: translate(-7vw, -8vh) rotate(-37deg); }
.site[data-scene="3"] .halo { transform: translate(-16vw, 12vh); }
.site[data-scene="3"] .horizon { transform: translate(-2vw, 8vh) rotate(-20deg); }

@media (min-width: 1600px) { .stage { margin: 0 auto; width: 100%; max-width: 2200px; } }
@media (max-width: 1180px) { .footer:has(.contacts:not([hidden])) .footer-caption span { display: none; } }
@media (max-width: 900px) {
  .slide { grid-template-columns: minmax(0, 1fr); }
  .slide-copy { align-self: center; }
  .scene-type { position: absolute; right: var(--gutter); bottom: 30px; opacity: .35; z-index: 0; }
  .scene-type > span { font-size: 120px; }
  .scene-type > small { display: none; }
  .description { max-width: 630px; }
  .footer:has(.contacts:not([hidden])) .footer-caption { display: none; }
  .contacts { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .site { min-height: 610px; }
  .masthead { padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: 22px; }
  .brand { font-size: 29px; gap: 10px; }
  .brand-mark { width: 24px; height: 24px; }
  .masthead-caption { font-size: 12px; }
  .slide { padding-bottom: 24px; }
  .eyebrow { font-size: 12px; gap: 12px; letter-spacing: .025em; margin-bottom: 26px; }
  h1, h2 { font-size: clamp(32px, 7.4vw, 46px); line-height: 1.13; letter-spacing: -.045em; }
  .description { font-size: 16px; line-height: 1.55; margin-top: 25px; }
  .desktop-break { display: none; }
  .details { font-size: 13px; gap: 9px 0; margin-top: 28px; }
  .details span + span { margin-left: 10px; padding-left: 10px; }
  .scene-type { bottom: 22px; opacity: .18; }
  .scene-type > span { font-size: 92px; }
  .footer { min-height: 86px; padding: 19px 0 max(21px, env(safe-area-inset-bottom)); }
  .footer-caption { font-size: 12px; white-space: normal; }
  .footer-caption span { margin-left: 2px; }
  .footer-caption i { padding: 0 5px; }
  .contacts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; }
  .contact-link { font-size: 14px; gap: 3px; }
  .contact-link > span:first-child { display: none; }
  .max-link { grid-column: 2; grid-row: 1 / span 2; padding: 10px 11px; }
  .max-link > span { margin-left: 5px; }
  .horizon { width: 200vw; height: 130vh; right: -170vw; top: -5vh; }
  .halo { right: -100vw; width: 170vw; }
}
@media (max-height: 740px) and (min-width: 601px) {
  .masthead { padding-top: 22px; padding-bottom: 20px; }
  h1, h2 { font-size: clamp(44px, 5.8vw, 85px); }
  .eyebrow { margin-bottom: 23px; }
  .description { margin-top: 22px; }
  .details { margin-top: 22px; }
  .footer { min-height: 85px; padding-top: 18px; padding-bottom: 18px; }
}
/* При увеличении текста или на очень низком экране сохраняем весь текст,
   позволяя естественную прокрутку вместо обрезания содержания. */
@media (max-height: 549px) {
  .site { height: auto; min-height: 100svh; }
  .stage { min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html.static-layout .site { height: auto; min-height: 100svh; }
html.static-layout .stage { display: block; }
html.static-layout .slide { display: block; opacity: 1; visibility: visible; padding-top: 36px; padding-bottom: 42px; }
html.static-layout .slide + .slide { border-top: 1px solid var(--line); }
html.static-layout .scene-type { display: none; }
html.static-layout .sequence { display: none; }
@media print {
  :root { color-scheme: light; --bg: white; --text: #101c25; --muted: #3d4b53; --accent: #285f41; --line: #cbd1d0; }
  .site { display: block; height: auto; overflow: visible; }
  .stage { display: block; }
  .slide { display: block; opacity: 1; visibility: visible; padding-top: 20px; padding-bottom: 30px; break-inside: avoid; }
  h1, h2 { font-size: 32px; }
  .atmosphere, .scene-type, .sequence { display: none; }
  .details { color: var(--text); }
}

.site[data-scene="4"] .halo { transform: translate(-7vw, -3vh) scale(1.05); }
.site[data-scene="4"] .horizon { transform: translate(-9vw, 2vh) rotate(-30deg); }
