/* ========== Шрифт ==========
   Manrope (переменная толщина 200–800), файлы лежат на нашем сайте в папке fonts/, лицензия — fonts/OFL.txt.
   Три набора знаков: кириллица, латиница и latin-ext (в нём знак рубля ₽). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  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;
}

/* ========== Токены ==========
   Цвета — как в приложении (акцент = цвет знака «F», #DDF130). */
:root {
  --color-bg: #0e1011;          /* фон приложения */
  --color-card: #161a1b;        /* карточки */
  --color-border: #232829;      /* рамки и разделители */
  --color-text: #f3f5f2;        /* основной текст, ~17:1 на фоне */
  --color-text-muted: #8d9592;  /* вторичный текст: 6.2:1 на фоне, 5.7:1 на карточке */
  --color-text-soft: #c2c8c5;   /* светлый серый для важных пояснений: 11.2:1 на фоне */
  --color-accent: #ddf130;      /* салатовый: знак «F», «Основная карта», кнопка «+» */
  --color-on-accent: #0e1011;   /* текст на лайме, ~15:1 */
  --color-blue: #9db4ff;        /* «Накопительные счета» */
  --color-lilac: #c3a9ff;       /* «Долгосрочные сбережения» */
  --color-coral: #fe987b;       /* точка «Поездка в США» */

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: 16px;
}

/* ========== База ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, p, ul { margin: 0; }

img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========== Шапка ========== */
.header { padding: 16px 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__mark { width: auto; height: 20px; }
.logo__word { width: auto; height: 14px; }

a.logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ========== Первый экран (мобильная версия по умолчанию) ========== */
/* Свечение за телефоном (.hero__media::before) на 10% шире колонки с каждой стороны.
   Обрезаем его по горизонтали на секции: её края совпадают с краями экрана, поэтому
   срез не виден, а телефоны и их тени лежат внутри секции и не обрезаются.
   hidden — запасной вариант для браузеров без clip (Safari < 16). */
.hero {
  padding: 12px 0 40px;
  overflow-x: hidden;
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "subtitle"
    "cta"
    "media"
    "perks";
}

.hero__title {
  grid-area: title;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__subtitle {
  grid-area: subtitle;
  margin-top: 14px;
  font-size: 17px;
  color: var(--color-text-muted);
}

.hero__cta {
  grid-area: cta;
  margin-top: 24px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(221, 241, 48, 0.18);
  transition: filter 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover { filter: brightness(1.06); }
.button:active { transform: translateY(1px); }
.button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.hero__note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

/* подпись под первой кнопкой (закрытое тестирование) — главное сообщение сейчас, поэтому крупнее и светлее */
.hero__note--launch {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text-soft);
}

/* ========== Телефоны ========== */
.hero__media {
  grid-area: media;
  position: relative;
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* мягкое лаймовое свечение за телефоном */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(closest-side, rgba(221, 241, 48, 0.12), transparent);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(260px, 72vw);
  padding: 7px;
  border-radius: 40px;
  background: #000;
  border: 1px solid #2c3234;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.phone__screen {
  aspect-ratio: 700 / 1515;         /* пропорции экрана телефона, как у снимков 1170×2532 */
  border-radius: 33px;
  overflow: hidden;
  background: var(--color-bg);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* второй телефон только на компьютере */
.phone--back { display: none; }

/* ========== Плюсы ========== */
.perks {
  grid-area: perks;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.perks__item {
  --perk-color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.perks__item--lilac { --perk-color: var(--color-lilac); }
.perks__item--blue  { --perk-color: var(--color-blue); }
.perks__item--coral { --perk-color: var(--color-coral); }

.perks__icon {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid var(--perk-color);
  fill: none;
  stroke: var(--perk-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== Узкие телефоны ========== */
@media (max-width: 374px) {
  .hero__title { font-size: 28px; }
  .perks__item { font-size: 14px; }
}

/* ========== Планшет ========== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .header { padding: 22px 0; }

  .hero { padding: 24px 0 64px; }

  .hero__grid {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hero__title { font-size: 42px; }
  .hero__subtitle { font-size: 19px; }
  .hero__note--launch { font-size: 17px; }

  .button {
    display: inline-flex;
    width: auto;
    min-width: 340px;
  }

  .phone { width: 280px; }

  .perks { gap: 12px; }
  .perks__item {
    flex-direction: row;
    justify-content: center;
    padding: 14px 10px;
    font-size: 16px;
  }
}

/* ========== Компьютер ========== */
@media (min-width: 1024px) {
  .header { padding: 28px 0; }

  .hero { padding: 32px 0 80px; }

  .hero__grid {
    max-width: 1120px;
    text-align: left;
    grid-template-columns: minmax(0, 1fr) 472px;   /* 260 + 232 − 472 = 20 px перекрытия: левый край второго экрана виден */
    grid-template-rows: auto auto auto 1fr;
    column-gap: 28px;
    grid-template-areas:
      "title    media"
      "subtitle media"
      "cta      media"
      "perks    media";
  }

  .hero__title { font-size: 54px; margin-top: 48px; }
  .hero__subtitle { margin-top: 20px; font-size: 20px; max-width: 34em; }
  .hero__cta { margin-top: 36px; display: inline-flex; flex-direction: column; align-items: flex-start; }
  .hero__note { text-align: left; }

  /* два телефона внахлёст: (а) спереди слева, (б) сзади справа */
  .hero__media {
    margin-top: 0;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 8px;
  }

  .phone { width: 260px; }

  .phone--front { z-index: 2; }

  .phone--back {
    display: block;
    position: absolute;
    z-index: 1;
    top: 48px;
    right: 0;
    width: 232px;
    opacity: 0.92;
  }

  .perks {
    align-self: start;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .perks__item { padding: 12px 18px 12px 14px; }
}

/* ========== Блок «Проблема» ========== */
.problem { padding: 24px 0 56px; }

.section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.problem__list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.problem__item {
  --marker-color: var(--color-accent);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  font-size: 17px;
  line-height: 1.45;
  color: var(--color-text-muted);   /* 5.7:1 на фоне карточки */
}

.problem__item--lime  { --marker-color: var(--color-accent); }
.problem__item--blue  { --marker-color: var(--color-blue); }
.problem__item--lilac { --marker-color: var(--color-lilac); }
.problem__item--coral { --marker-color: var(--color-coral); }

/* иконка-маркер: кольцо с точкой, как точки счетов в приложении */
.problem__icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 50%;
  border: 1px solid var(--marker-color);
  fill: var(--marker-color);
}

.problem__outro {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text);         /* ~17:1 */
}

@media (min-width: 640px) {
  .problem { padding: 32px 0 72px; }
  .problem__inner { max-width: 640px; }
  .section-title { font-size: 34px; }
}

@media (min-width: 1024px) {
  .problem { padding: 48px 0 96px; }

  .problem__inner {
    max-width: calc(720px + 2 * var(--gutter));
    text-align: center;
  }

  .section-title { font-size: 40px; }

  .problem__list {
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
  }

  .problem__item { padding: 20px; }

  .problem__outro {
    margin-top: 32px;
    font-size: 22px;
  }
}

/* ========== Блок «Как это работает» ========== */
.how { padding: 24px 0 56px; }

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 28px;
}

.steps__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* номер шага: лаймовое кольцо, как кнопка «$» в приложении */
.steps__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: var(--color-card);
  color: var(--color-accent);       /* 14:1 на фоне карточки */
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

/* тонкая линия от номера к следующему шагу (телефон: вертикальная) */
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -20px;
  width: 1px;
  background: var(--color-border);
}

.steps__body { min-width: 0; padding-top: 10px; }

/* повторная главная кнопка под шагами; отступ = промежуток между шагами */
.how__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
}

.steps__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.steps__text {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-muted);   /* 6.3:1 на фоне */
}

@media (min-width: 640px) {
  .how { padding: 32px 0 72px; }
  .how__inner { max-width: 640px; }
  .how__cta { align-items: center; }
}

@media (min-width: 1024px) {
  .how { padding: 48px 0 96px; }

  .how__inner {
    max-width: calc(1040px + 2 * var(--gutter));
  }

  .how .section-title { text-align: center; }
  .how__cta { margin-top: 40px; }

  .steps {
    margin-top: 40px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .steps__item {
    flex-direction: column;
    gap: 20px;
  }

  .steps__body { padding-top: 0; }

  /* компьютер: горизонтальная линия от номера до следующей колонки */
  .steps__item:not(:last-child)::after {
    left: 64px;
    right: -32px;
    top: 24px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* ========== Блок «Возможности» ==========
   Карточки как пункты блока «Проблема»; заголовок и описание — классы .steps__title и .steps__text,
   завершающая строка — .problem__outro. */
.features { padding: 24px 0 56px; }

.features__inner { max-width: calc(1040px + 2 * var(--gutter)); }

.features__list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.features__item {
  --marker-color: var(--color-accent);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
}

.features__item--lime  { --marker-color: var(--color-accent); }
.features__item--lilac { --marker-color: var(--color-lilac); }
.features__item--blue  { --marker-color: var(--color-blue); }
.features__item--coral { --marker-color: var(--color-coral); }

.features__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--marker-color);
}

.features__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--marker-color);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features__body { min-width: 0; padding-top: 7px; }

/* описание в карточке на фоне карточки: 5.7:1 */
.features__item .steps__text { margin-top: 6px; }

@media (min-width: 640px) {
  .features { padding: 32px 0 72px; }
}

@media (min-width: 768px) {
  .features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .features__item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .features__body { padding-top: 0; }
}

@media (min-width: 1024px) {
  .features { padding: 48px 0 96px; }

  .features .section-title { text-align: center; }

  .features__list {
    margin-top: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features__outro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* ========== Вводная строка под заголовком блока ==========
   Используется в блоках «Что с вашими данными» и «Тарифы» вместе с .hero__subtitle. */
@media (min-width: 1024px) {
  .section-intro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* ========== Блок «Тарифы» (#pricing) ==========
   Карточки — .features__item; название — .steps__title; вводная — .hero__subtitle.section-intro;
   мелкий текст — .hero__note; главная кнопка — .how__cta. */
.pricing { padding: 24px 0 56px; }

.pricing__inner { max-width: calc(1040px + 2 * var(--gutter)); }

/* промежуток 16 px, чтобы метка «Выгоднее всего» на верхней рамке не наезжала на соседнюю карточку */
.pricing__list { gap: 16px; }

.plan {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px;
}

.plan__info { margin: 0; }

.plan__price {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.plan__per {
  margin-top: 4px;
  font-size: 15px;
  color: var(--color-text-muted);   /* 5.7:1 на фоне карточки */
}

/* выделенная карточка: лаймовая рамка и метка на верхней рамке */
.plan--best { border-color: var(--color-accent); }

.plan__badge {
  position: absolute;
  top: 0;
  left: 20px;
  transform: translateY(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);    /* 15:1 */
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* строки под карточками: на телефоне по левому краю, на компьютере по центру */
.pricing__notes { margin-top: 24px; }

/* «Оплата откроется после запуска»: заметнее мелкого текста, но не кнопка */
.pricing__status {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
/* условия под тарифами: не «мелкий шрифт» — 14 px на телефоне, 15 px от 640 px, светлый серый */
.pricing__term {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

@media (min-width: 640px) {
  .pricing { padding: 32px 0 72px; }
  .pricing__term { font-size: 15px; }
}

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

  .plan__price { font-size: 30px; }
}

@media (min-width: 1024px) {
  .pricing { padding: 48px 0 96px; }

  .pricing .section-title { text-align: center; }

  .pricing__list {
    max-width: 880px;
    margin: 32px auto 0;
  }

  .plan__price { font-size: 36px; }

  .pricing__notes {
    max-width: 720px;
    margin: 28px auto 0;
  }

  .pricing__term,
  .pricing__status { text-align: center; }
}

/* ========== Блок «Что с вашими данными» (#privacy) ==========
   Карточки — классы блока «Возможности»; вводная — .hero__subtitle.section-intro. */
.privacy { padding: 24px 0 56px; }

.privacy__inner { max-width: calc(800px + 2 * var(--gutter)); }

/* ссылка в мелком тексте: светлее серого текста и с подчёркиванием, 17:1 на фоне */
.text-link {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (min-width: 640px) {
  .privacy { padding: 32px 0 72px; }
}

@media (min-width: 768px) {
  /* 2×2, все четыре карточки одной высоты */
  .privacy__list { grid-auto-rows: 1fr; }
}

@media (min-width: 1024px) {
  .privacy { padding: 48px 0 96px; }

  .privacy .section-title { text-align: center; }

  .privacy__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== Блок «Частые вопросы» (#faq) ==========
   Нативные <details>/<summary>, без скриптов. Карточки — те же фон, рамка и скругление,
   что у .features__item; ответ — .steps__text (17 px, серый); ссылки — .text-link. */
.faq { padding: 24px 0 56px; }

.faq__inner { max-width: calc(760px + 2 * var(--gutter)); }

.faq__list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.faq__item {
  border-radius: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  list-style: none;                 /* убрать стандартный треугольник */
  -webkit-tap-highlight-color: transparent;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* индикатор «+» из двух полосок; при открытии вертикальная пропадает и остаётся «−» */
.faq__sign {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: var(--color-accent);  /* 14:1 на фоне карточки */
}

.faq__sign::after { transform: rotate(90deg); }

.faq__item[open] .faq__sign::after { display: none; }

.faq__a { padding: 0 16px 16px; }

.faq__a .steps__text { margin-top: 0; }

@media (min-width: 640px) {
  .faq { padding: 32px 0 72px; }
  .faq__q { padding: 16px 20px; font-size: 19px; }
  .faq__a { padding: 0 20px 20px; }
}

@media (min-width: 1024px) {
  .faq { padding: 48px 0 96px; }
  .faq .section-title { text-align: center; }
  .faq__list { margin-top: 32px; }
}

/* ========== Подвал ==========
   Название — .logo; ссылки — .text-link. От последнего блока отделён тонкой линией. */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0 24px;
}

.footer__inner { max-width: calc(1040px + 2 * var(--gutter)); }

.footer__grid {
  display: grid;
  gap: 28px;
}

.footer__brand .logo { margin: 0; }
.footer__brand .logo__mark { height: 18px; }
.footer__brand .logo__word { height: 12px; }

.footer__tagline {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-text-muted);   /* 6.2:1 на фоне */
}

/* заголовки колонок: маленькие, заглавными, как метки в приложении */
.footer__title {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);   /* 6.2:1 */
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* зона нажатия не ниже 44 px; длинные названия переносятся внутри ссылки */
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.footer__text {
  font-size: 15px;
  color: var(--color-text-muted);
}

.footer__copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);   /* 6.2:1 */
}

@media (min-width: 768px) {
  .footer { padding: 48px 0 32px; }

  /* название слева, контакты справа (колонка «Документы» скрыта до публикации документов) */
  .footer__grid {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }

  .footer__copy { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* ========== Страница 404 (404.html) ==========
   Шапка — .header и .logo, кнопка — .button, ссылка на канал — .text-link.
   Блок занимает всю высоту экрана под шапкой, содержимое по центру. */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 0 64px;
}

.not-found__inner {
  max-width: calc(560px + 2 * var(--gutter));
  text-align: center;
}

.not-found__code {
  font-size: 96px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.not-found__title {
  margin-top: 20px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.not-found__text {
  margin-top: 14px;
  font-size: 17px;
  color: var(--color-text-muted);
  text-wrap: balance;
}

.not-found__button { margin-top: 32px; }

.not-found__channel {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .not-found__code { font-size: 140px; }
  .not-found__title { font-size: 42px; }
  .not-found__text { font-size: 19px; }
}

@media (min-width: 1024px) {
  .not-found { padding: 48px 0 120px; }
  .not-found__code { font-size: 180px; }
}
