/* golos-text-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* golos-text-cyrillic-wght-normal */
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/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;
}

/* golos-text-latin-ext-wght-normal */
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* golos-text-latin-wght-normal */
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* source-serif-4-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-serif-4-cyrillic-wght-normal */
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-serif-4-latin-ext-wght-normal */
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-wght-normal */
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Sanaly Adam — сайт. Спокойное оформление: белый лист, тёмно-синий текст, тонкие линии;
   красный — только для главной кнопки и отметки на ленте времени. */
:root {
  --ink: #1b2140;
  --night: #131831;
  --red: #c8402f;
  --red-deep: #a8332a;
  --gold: #e9b44c;
  --blue: #2c6fd6;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --muted: #5a6079;
  --line: rgba(27, 33, 64, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
  --sans: "Golos Text Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.lead {
  max-width: 36em;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ───── Шапка ───── */
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 30px;
  margin-left: auto;
  font-size: 0.97rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}

.nav a:hover {
  color: var(--ink);
}

.langs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  background: var(--mist);
  border-radius: 8px;
}

.langs a {
  display: block;
  min-width: 40px;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
}

.langs a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 33, 64, 0.16);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .langs {
    margin-left: 0;
  }
}

/* ───── Первый экран: текст и два экрана приложения, которые «стоят» на ленте времени ───── */
.hero {
  background: var(--mist);
}

.hero-in {
  display: grid;
  gap: 40px;
  padding-top: clamp(40px, 7vw, 88px);
}

.hero-text .lead {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition:
    background-color 140ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn:hover {
  background: var(--red-deep);
}

.btn:active {
  transform: scale(0.98);
}

.soon {
  font-size: 0.97rem;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: min(100%, 460px);
  height: clamp(300px, 78vw, 440px);
  margin-inline: auto;
  overflow: hidden;
}

.phone {
  overflow: hidden;
  background: var(--night);
  border: 7px solid var(--night);
  border-radius: 34px;
  box-shadow: 0 24px 48px -24px rgba(19, 24, 49, 0.45);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.hero-art .phone {
  flex: 0 0 auto;
}

.phone-back {
  width: 44%;
  margin-top: 9%;
  margin-right: -9%;
}

.phone-front {
  position: relative;
  width: 51%;
}

@media (min-width: 900px) {
  .hero-in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 48px;
  }
  .hero-text {
    padding-bottom: clamp(48px, 7vw, 96px);
  }
  .hero-art {
    height: clamp(380px, 38vw, 470px);
    margin-inline: auto 0;
  }
}

/* Лента времени: ось, засечки, отметка на выбранной дате */
.eras {
  display: grid;
  grid-template-columns: 1fr auto minmax(0, auto) auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding-bottom: 24px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.era-strip {
  --era: min(74vw, 290px);
  grid-column: 1 / -1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: calc(50% - var(--era) / 2);
  cursor: grab;
}

.era-strip::-webkit-scrollbar {
  display: none;
}

.era-strip.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.era {
  position: relative;
  flex: 0 0 var(--era);
  scroll-snap-align: center;
  padding: 34px 18px 20px;
  text-align: center;
  color: var(--muted);
  opacity: 0.5;
  transition:
    opacity 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.era::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--ink);
}

.era.on {
  color: var(--ink);
  opacity: 1;
}

.era.on::before {
  top: -6px;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  background: var(--red);
  rotate: 45deg;
}

.era-year {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.era-text {
  display: block;
  margin-top: 8px;
  font-size: 0.97rem;
  line-height: 1.45;
}

.era-nav {
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition:
    border-color 140ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.era-nav svg {
  width: 18px;
  height: 18px;
}

.era-nav:hover:not([disabled]) {
  border-color: var(--ink);
}

.era-nav:active:not([disabled]) {
  transform: scale(0.94);
}

.era-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.era-prev {
  grid-column: 2;
}

.era-next {
  grid-column: 4;
}

.era-hint {
  grid-column: 3;
  grid-row: 2;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

/* ───── Что внутри ───── */
.inside {
  padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 104px);
}

.inside .lead {
  margin-top: 16px;
}

.note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.shots {
  --shot: min(64vw, 240px);
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding: 0 var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 var(--shot);
  scroll-snap-align: center;
}

.shot .phone {
  border-width: 6px;
  border-radius: 30px;
}

.shot .phone img {
  border-radius: 24px;
}

.shot h3 {
  margin-top: 26px;
}

.shot p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--muted);
}

@media (min-width: 1000px) {
  .shots {
    --shot: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }
}

/* ───── Факты ───── */
.facts {
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--night);
  color: #fff;
}

.facts h2 {
  max-width: 18em;
}

.facts .lead {
  margin-top: 20px;
  color: #b9bfdc;
}

.steps {
  display: grid;
  gap: 32px;
  margin-top: 52px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.steps p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: #b9bfdc;
}

.facts-note {
  margin-top: 44px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* ───── Родителям ───── */
.parents {
  padding-block: clamp(64px, 9vw, 112px);
}

.parents-in {
  display: grid;
  gap: 36px;
}

.parents .lead {
  margin-top: 16px;
}

.cares {
  display: grid;
  gap: 0 40px;
}

.care {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.care dt {
  font-size: 1.08rem;
  font-weight: 600;
}

.care dd {
  margin-top: 6px;
  font-size: 0.97rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .parents-in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
  .cares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───── Вопросы ───── */
.faq {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--mist);
}

.faq-in {
  display: grid;
  gap: 28px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: 0 0 9px;
  height: 9px;
  margin-top: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  rotate: 45deg;
  transition: rotate 180ms var(--ease-out);
}

details[open] summary::after {
  rotate: -135deg;
  margin-top: 11px;
}

details p {
  max-width: 40em;
  padding: 0 2px 20px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq-in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

/* ───── Подвал ───── */
.foot {
  padding-block: 48px 40px;
  background: var(--night);
  color: #fff;
  font-size: 0.97rem;
}

.foot-in {
  display: grid;
  gap: 28px;
}

.foot-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.foot-tag {
  margin-top: 4px;
  color: #b9bfdc;
}

.foot-links {
  display: grid;
  gap: 10px;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
}

.foot-legal {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #b9bfdc;
}

.foot :focus-visible {
  outline-color: var(--gold);
}

@media (min-width: 800px) {
  .foot-in {
    grid-template-columns: 1fr auto;
  }
  .foot-links {
    grid-template-columns: repeat(2, auto);
    gap: 10px 40px;
  }
  .foot-legal {
    grid-column: 1 / -1;
  }
}

/* ───── Юридические страницы ───── */
.legal-in {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
}

.legal article {
  max-width: 68ch;
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
}

.updated {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal article > .lead {
  margin-top: 22px;
  max-width: none;
  color: var(--ink);
}

.legal section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}

.legal section h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.legal section p,
.legal section ul,
.legal section ol {
  margin-top: 14px;
}

.legal section ul,
.legal section ol {
  padding-left: 1.3em;
}

.legal section ul {
  list-style: disc;
}

.legal section ol {
  list-style: decimal;
}

.legal section li + li {
  margin-top: 6px;
}

.legal section li::marker {
  color: var(--muted);
}

.legal article a {
  color: var(--blue);
}

.toc {
  order: -1;
  padding: 20px 22px;
  background: var(--mist);
  border-radius: 12px;
  font-size: 0.93rem;
}

.toc p {
  font-weight: 600;
}

.toc ol {
  margin-top: 10px;
  padding-left: 1.4em;
  list-style: decimal;
  color: var(--muted);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.toc li + li {
  margin-top: 6px;
}

@media (min-width: 1000px) {
  .legal-in {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 72px;
    align-items: start;
  }
  .toc {
    order: 0;
    position: sticky;
    top: 24px;
  }
}

/* ───── Корень и 404 ───── */
.root {
  background: var(--mist);
}

.root-in {
  padding-block: 18vh;
}

.root-in section {
  margin-top: 28px;
}

.root-in h2 {
  font-size: 1.4rem;
}

.root-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  font-size: 1.15rem;
}

/* ───── Движение: экраны один раз поднимаются при загрузке ───── */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .phone {
    animation: rise 700ms var(--ease-out) both;
  }
  .hero-art .phone-back {
    animation-delay: 90ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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