/*
 * Лендинг платформы «Тысяча» в оформлении «зелёное сукно».
 *
 * Токены те же, что в блоке :root[data-theme='felt'] файла web/src/theme.css (тест сверяет их значения),
 * шрифты те же, что в приложении (PT Sans и Playfair Display) и лежат в сборке рядом со стилями. Метки
 * в адресах шрифтов (префикс «font:») сборка заменяет именами файлов с хешем. Встроенных стилей и внешних ресурсов нет.
 */

/* ---- шрифты ---- */
@font-face {
  font-family: 'PT Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(pt-sans-cyrillic-400-normal.f283e584.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(pt-sans-latin-400-normal.2dea6190.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(pt-sans-cyrillic-700-normal.05795f79.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(pt-sans-latin-700-normal.05ea99a4.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(playfair-display-cyrillic-700-normal.cfbfb0e3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(playfair-display-latin-700-normal.28453852.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- токены: «Зелёное сукно» ---- */
:root {
  color-scheme: dark;
  --g-bg: #0f3b2e;
  --g-bar: #14513f;
  --g-on-bg: #f4ebd6;
  --g-muted-on-bg: #b9c9be;
  --g-link-on-bg: #c9a24a;
  --g-card: #f4ebd6;
  --g-ink: #1b1b1b;
  --g-muted: #5b5444;
  --g-link: #0f3b2e;
  --g-line: #b9a77a;
  --g-line-soft: #e2d6ba;
  --g-accent: #c9a24a;
  --g-accent-hover: #d8b45e;
  --g-on-accent: #1b1b1b;
  --g-head-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --g-radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-on-bg);
  font-family: 'PT Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--g-link-on-bg);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--g-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--g-accent);
  color: var(--g-on-accent);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 10;
}

.skip:focus {
  top: 0;
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--g-head-font);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* ---- шапка ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--g-bar);
  border-bottom: 1px solid var(--g-line);
}

.header-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  font-family: var(--g-head-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g-on-bg);
  text-decoration: none;
}

.suit {
  color: var(--g-accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: var(--g-on-bg);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* ---- главный экран ---- */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-in {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.suits {
  margin: 0 0 0.5rem;
  color: var(--g-accent);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}

h1 {
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  margin-bottom: 0.25rem;
}

.slogan {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  color: var(--g-link-on-bg);
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--g-muted-on-bg);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.btn {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--g-accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.btn.primary {
  background: var(--g-accent);
  color: var(--g-on-accent);
}

.btn.primary:hover {
  background: var(--g-accent-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--g-on-bg);
}

.btn.ghost:hover {
  background: var(--g-bar);
}

.hero-shot img {
  display: block;
  width: auto;
  max-width: min(100%, 22rem);
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--g-line);
  border-radius: var(--g-radius-card);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
}

/* ---- разделы ---- */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--g-bar);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--g-card);
  color: var(--g-ink);
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-card);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--g-bar);
  color: var(--g-on-bg);
  font-family: var(--g-head-font);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 2.2rem;
  text-align: center;
}

.steps h3,
.card h3 {
  margin-bottom: 0.35rem;
}

.steps p,
.card p {
  margin: 0;
  color: var(--g-muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--g-card);
  color: var(--g-ink);
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-card);
}

.faq h3 {
  margin-top: 1.25rem;
}

.faq h3:first-child {
  margin-top: 0;
}

.faq p {
  margin-bottom: 0;
}

.shots {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--g-line);
  border-radius: 14px;
  background: var(--g-card);
}

/* Кадры телефона узкие: не растягиваем их на всю колонку (в имени файла перед хешем стоит «phone»). */
.shot img[src*='phone'] {
  max-width: 20rem;
  margin: 0 auto;
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--g-muted-on-bg);
  font-size: 0.95rem;
}

.support p {
  margin: 0 0 1rem;
  color: var(--g-muted-on-bg);
}

/* ---- подвал ---- */
.footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--g-muted-on-bg);
  font-size: 0.95rem;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* ---- широкий экран ---- */
@media (min-width: 52rem) {
  .hero-in {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .steps,
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .steps li {
    padding: 4.25rem 1.25rem 1.25rem;
  }

  .steps li::before {
    left: 1.25rem;
    top: 1.1rem;
  }
}
