/* ============================================================
   Сайт психолога. Базовые переменные
   Цвета и шрифты меняются здесь, в одном месте.
   ============================================================ */
/* Палитра и шрифты взяты с dushesish.ru (файл стилей оригинала) */
:root {
  --bg: #f9f6f1;
  --surface: #f4eee7;
  --surface-2: #ebe5db;
  --text: #3c2d25;
  --muted: #6f5d52;
  --accent: #be8c74;
  --accent-dark: #a1684f;
  --accent-soft: #efe8e1;
  --warm: #a1684f;
  --warm-soft: #e8ded4;
  --border: #d6cec2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px -8px rgba(190, 140, 116, 0.14);
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding: 88px 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 241, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.nav .btn {
  margin-left: 8px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Герой ---------- */
.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-contacts a {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.hero-contacts a:hover {
  color: var(--accent-dark);
  text-decoration: none;
  border-color: var(--accent);
}

.hero-photo {
  position: relative;
}

.hero-photo .photo-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}

.hero-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 28px;
  background: var(--accent-soft);
  z-index: -1;
}

/* Заглушка фото: показывается, пока нет своей фотографии */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--accent-soft));
}

/* ---------- Обо мне ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 1.08rem;
}

.quote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.35;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.fact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-dark);
  line-height: 1.1;
}

.fact span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Запросы ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Подход ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.service h3 {
  font-size: 1.7rem;
  margin: 0;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--accent-dark);
  white-space: nowrap;
  line-height: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.meta span {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

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

.service ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.service li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.service .btn {
  margin-top: auto;
  align-self: flex-start;
}

.games-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.games-head h3 {
  font-size: 2rem;
  margin: 0;
}

.games-head p {
  color: var(--muted);
}

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game {
  background: var(--warm-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.game h4 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.game .price {
  font-size: 1.5rem;
  color: var(--warm);
  margin-bottom: 8px;
}

.game .meta span {
  background: rgba(255, 255, 255, 0.7);
}

.game p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.game .btn-outline {
  border-color: var(--warm);
  color: var(--warm);
  align-self: flex-start;
}

.game .btn-outline:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.review-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.review p {
  flex: 1;
  font-size: 1.02rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Квалификация ---------- */
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Квадратная рамка: горизонтальный и вертикальный документы показываются в одном масштабе */
.cert-img {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
  padding: 16px;
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 2px 10px rgba(60, 45, 37, 0.12);
}

.cert-body {
  padding: 18px 20px 22px;
}

.cert-body small {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cert-body strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cert-body span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.cert-body .cert-field {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Лайтбокс для сертификатов */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- Призыв к действию ---------- */
.cta {
  background: var(--accent-dark);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta .btn-primary {
  background: #fff;
  color: var(--accent-dark);
}

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

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.cta-links a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-links a:hover {
  text-decoration: none;
  border-color: #fff;
}

/* ---------- Подвал ---------- */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 14px;
}

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

.footer li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ---------- Страницы документов ---------- */
.nav-static,
.nav-static.nav {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: none;
  flex-direction: row;
  gap: 20px;
}

.nav-static.nav a {
  padding: 0;
  border: 0;
}

.nav-static.nav .btn {
  margin: 0 0 0 8px;
}

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.doc .doc-date {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.doc h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
}

.doc ol,
.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc .requisites {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.doc .requisites p {
  margin: 0 0 6px;
}

.doc-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---------- Дополнительные элементы ---------- */

/* Центрированные заголовки разделов */
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-lg {
  font-size: 1rem;
}

/* Широкие заголовки разделов: ограничение ширины снято с родителя */
.section-head.head-wide {
  max-width: none;
}

.lead-wide {
  max-width: none;
}

/* Подводка к играм: ширина под три строки */
.lead-games {
  max-width: 940px;
}

/* Обо мне: два столбца, слева текст, справа цитата */
.about-grid {
  align-items: center;
}

.about-quote {
  margin: 0;
  text-align: left;
  font-size: 1.35rem;
  padding: 36px 40px;
}

/* Единый блок-цитата (Обо мне, Подход) */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 36px;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#approach .quote-block {
  margin-top: 48px;
}

/* Карточки запросов без иконок, по центру */
.card {
  text-align: center;
}

/* Шаги в столбик, появляются по очереди */
.steps {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.steps .step:nth-child(2) { transition-delay: 0.12s; }
.steps .step:nth-child(3) { transition-delay: 0.24s; }
.steps .step:nth-child(4) { transition-delay: 0.36s; }

/* Услуги: одинаковая сетка строк в обеих карточках, чтобы всё стояло на одном уровне */
.service {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  align-content: start;
}

.service-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.service h3 {
  font-size: 1.7rem;
  margin: 0 0 6px;
  min-height: 2.3em;
  color: var(--text);
}

.service .price {
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.service .meta span,
.game .meta span {
  color: var(--muted);
}

.service > p {
  color: var(--text);
  min-height: 5.2em;
}

.service ul {
  min-height: 6.5em;
}

.service .btn {
  margin-top: 0;
  justify-self: start;
}

/* Игры: та же логика, фиксированная высота подзаголовка */
.game {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
}

.game h4 {
  min-height: 1.2em;
  color: var(--text);
}

.game-tagline {
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 2.9em;
}

.game .price {
  color: var(--text);
}

.game p:not(.game-tagline) {
  color: var(--text);
}

.game .btn {
  justify-self: start;
}

.games-head {
  display: block;
  margin-bottom: 32px;
}

.games-head h3 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

/* Сертификаты по играм: маленькие картинки */
.games-certs {
  margin-top: 48px;
  text-align: center;
}

.games-certs-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.games-certs-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cert-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cert-mini:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cert-mini img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Кнопка подписки на канал */
.cta-channel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 12px 20px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.cta-channel:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-channel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-channel-icon svg {
  width: 22px;
  height: 22px;
}

.cta-channel strong {
  display: block;
  font-size: 1rem;
}

.cta-channel small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Подвал: разделитель между услугами */
.footer-tagline .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 10px;
  vertical-align: middle;
}

.cta-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  margin-top: 20px;
  color: #fff;
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .cards,
  .games,
  .reviews,
  .certs {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .hero-grid,
  .about-grid,
  .steps,
  .services,
  .cta {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .cta {
    padding: 44px 28px;
  }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav .btn {
    margin: 14px 0 0;
    justify-content: center;
    border: none;
  }
  .burger {
    display: block;
  }
  .burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .cards,
  .games,
  .reviews,
  .certs,
  .facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service {
    padding: 28px 22px;
  }
  .service-top {
    flex-direction: column;
    gap: 6px;
  }
  .step {
    grid-template-columns: 44px 1fr;
    padding: 22px;
  }
}
