:root {
  --bg: #f3f2ee;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6d6a64;
  --line: #ddd8ce;
  --accent: #f06847;
  --accent-dark: #c8462b;
  --green: #1f6f5b;
  --blue: #2d5c88;
  --max: 1180px;
  --header: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 242, 238, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: #292724;
}

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

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn.fill {
  background: var(--accent);
  color: #fff;
}

.btn.fill:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn.dark:hover {
  background: var(--ink);
  color: #fff;
}

.section {
  scroll-margin-top: calc(var(--header) + 24px);
  padding: 88px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.section.compact {
  padding: 56px 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

h2 + .lead {
  margin-top: 20px;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  max-width: 760px;
  color: #2b2925;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.32;
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
}

.hero {
  min-height: 560px;
  padding: 72px 0 56px;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: end;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo {
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.telegram-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.telegram-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.telegram-card--text {
  grid-template-columns: 1fr;
}

.telegram-card__image {
  align-self: start;
}

.telegram-card__image img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.telegram-card h3 {
  font-size: 18px;
}

.telegram-card p {
  color: var(--muted);
  font-size: 15px;
}

.telegram-feed + .actions {
  margin-top: 16px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.article-card h3 {
  font-size: 18px;
}

.article-card p {
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.card.paper {
  background: var(--paper);
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.book-cover {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  border-radius: 6px;
  background: #ddd;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.portrait {
  position: sticky;
  top: calc(var(--header) + 24px);
  border-radius: 8px;
  overflow: hidden;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-weight: 700;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.resource h3 {
  margin: 0;
  font-size: 20px;
}

.resource .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent-dark);
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer {
  padding: 40px 0;
  background: #111;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 32px;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: end;
}

.training-hero {
  padding: 92px 0 72px;
}

.training-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.training-hero-media {
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.training-hero-media img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.training-title {
  max-width: 960px;
}

.numbered-grid {
  counter-reset: item;
}

.numbered-grid .card {
  position: relative;
  padding-top: 54px;
}

.numbered-grid .card::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--accent);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.95fr;
  gap: 36px;
  align-items: start;
}

.app-showcase h2 {
  margin-bottom: 24px;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.phone-shot {
  overflow: hidden;
  border-radius: 14px;
  background: #090909;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.16);
}

.phone-shot img {
  width: 100%;
  height: auto;
}

.review-gallery {
  column-count: 3;
  column-gap: 18px;
}

.review-shot {
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-shot img {
  width: 100%;
  height: auto;
}

.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.price {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 800;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.schedule th,
.schedule td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.schedule th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
}

.faq p {
  padding: 0 22px 20px;
}

.form-placeholder {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 16px;
  font: inherit;
}

.legal {
  max-width: 840px;
}

.legal h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 28px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .hero-grid,
  .section-head,
  .about-grid,
  .training-hero-grid,
  .app-showcase,
  .price-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .portrait {
    position: static;
  }

  .grid.three,
  .contacts,
  .steps,
  .review-gallery,
  .telegram-feed,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-gallery {
    column-count: 2;
  }

  .footer-nav {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 60px 0;
  }

  .grid.two,
  .grid.three,
  .contacts,
  .steps,
  .phone-gallery,
  .stats {
    grid-template-columns: 1fr;
  }

  .review-gallery {
    column-count: 1;
  }

  .telegram-feed,
  .telegram-card,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .telegram-card__image img {
    aspect-ratio: 1.7;
  }

  .resource {
    grid-template-columns: 1fr;
  }

  .resource .links {
    justify-content: start;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .schedule {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
