/* СИБРЕЙН — общие стили сайта. Шрифт Golos Text (SIL OFL, assets/fonts/golos-text-LICENSE.txt). */
@font-face { font-family: "Golos Text"; font-display: swap; font-weight: 400 900; src: url("fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-display: swap; font-weight: 400 900; src: url("fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212; }

:root {
  --bg: #f6f4ef;
  --bg-2: #eeebe3;
  --card: #ffffff;
  --ink: #15171b;
  --ink-2: #4c5361;
  --ink-3: #7c8391;
  --line: #e2ded4;
  --sky: #2f7fe0;
  --sky-soft: #dceaf9;
  --sun: #f0a531;
  --device: #101317;
  --shadow: 0 30px 60px -32px rgba(21, 30, 45, 0.35), 0 8px 18px -12px rgba(21, 30, 45, 0.18);
  --r-lg: 28px;
  --r-md: 18px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-2: #15181d;
    --card: #191c22;
    --ink: #eef0f3;
    --ink-2: #b2b8c3;
    --ink-3: #858c99;
    --line: #262a32;
    --sky: #7ab4ff;
    --sky-soft: #172436;
    --sun: #f4b452;
    --device: #05070a;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 8px 18px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.mark { font-weight: 800; letter-spacing: 0.18em; font-size: 15px; text-decoration: none; }
.crumb { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.crumb img { width: 28px; height: 28px; border-radius: 8px; }
.sep { color: var(--ink-3); }
.top__nav { margin-left: auto; display: flex; gap: 4px; }
.top__nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.top__nav a:hover { color: var(--ink); background: var(--bg-2); }
.top__in > .btn { flex: none; }
@media (max-width: 820px) { .top__nav { display: none; } .top__in > .btn { margin-left: auto; } }
@media (max-width: 420px) { .top__in { gap: 12px; } .mark { letter-spacing: .12em; } .crumb span { display: none; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 88%, var(--sky)); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Типографика ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin: 0 0 18px; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: .98; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 24px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 10px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); margin: 0 0 32px; max-width: 32em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { margin: 0; max-width: 30em; color: var(--ink-2); }

/* ---------- Устройства ---------- */
.phone { position: relative; border-radius: 44px; padding: 9px; background: var(--device); box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 36px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--sky-soft); }
.tablet { position: relative; border-radius: 30px; padding: 12px; background: var(--device); box-shadow: var(--shadow); }
.tablet img { width: 100%; border-radius: 19px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--sky-soft); }
.phone--land { border-radius: 40px; padding: 9px; }
.phone--land img { aspect-ratio: 844 / 390; border-radius: 32px; }

/* ---------- Галерея ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 15px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 32px; margin: 0 -24px; scroll-padding: 0 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail[hidden] { display: none; }
@media (min-width: 1208px) { .rail { margin-right: calc(50% - 50vw); padding-right: 48px; } }
.shot { flex: none; scroll-snap-align: start; margin: 0; cursor: zoom-in; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.shot--phone { width: 248px; }
.shot--tablet { width: min(620px, 86vw); }
.shot figcaption, .shot .cap { margin-top: 16px; font-size: 15px; font-weight: 600; }
.shot .cap span { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 20px; height: 20px; }

/* Просмотр снимка крупно */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(8, 10, 13, .92); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__stage { height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 64px 0 72px; min-width: 0; grid-column: 2; grid-row: 1; }
.lb__prev { grid-column: 1; grid-row: 1; }
.lb__next { grid-column: 3; grid-row: 1; }
.lb__stage img { max-height: 100%; max-width: 100%; width: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.lb__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { position: absolute; top: 16px; right: 16px; }
.lb__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .75); }
@media (max-width: 640px) { .lb { grid-template-columns: 0 1fr 0; } .lb__prev, .lb__next { display: none; } .lb__stage { padding: 64px 12px 72px; } }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 15px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
