/* Общие стили лендинга: подключаются всеми страницами. Шрифты отдаются с tempo-gym.ru (/fonts), Google Fonts не используется. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-cyrillic.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-weight: 400 700; font-display: swap; src: url(/fonts/manrope-latin.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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/space-grotesk-latin.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; }

/* Токены совпадают с web/src/styles.css и таблицей цветов DESIGN.MD. */
:root {
  --color-bg-outer: #E9EBEF;
  --color-bg: #F4F5F7;
  --color-surface: #FFFFFF;
  --color-fill: #F4F5F7;
  --color-raised: #FFFFFF;
  --color-border: #E7E9EE;
  --color-text: #16181D;
  --color-text-secondary: #5F6571;
  /* На лендинге вторичный текст лежит на фоне --color-bg, поэтому muted темнее, чем в Mini App: 5.4 : 1 вместо 4.3 : 1. */
  --color-text-muted: #5F6571;
  --color-accent: #F0531B;
  --color-accent-fill: #CF4314;
  /* Токены только лендинга (в DESIGN.MD их нет): наведение на кнопку, тон акцента, стекло шапки, Telegram и корпус телефона. */
  --color-accent-fill-hover: #B23C0D;
  --color-on-accent: #FFFFFF;
  --color-accent-text: #B23C0D;
  --color-accent-tone: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  --color-success: #137A3A;
  --color-success-bg: #E8F6EE;
  --color-glass: rgba(244, 245, 247, 0.86);
  --color-telegram: #2AABEE;
  --color-telegram-link: #2A8AD6;
  --color-device: #16181D;

  --shadow-card: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px rgba(22, 24, 29, 0.05);
  --shadow-phone: 0 24px 60px rgba(22, 24, 29, 0.16);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* У Space Grotesk нет кириллицы: русский текст берётся из Manrope, а не из системного шрифта. */
  --font-display: "Space Grotesk", Manrope, system-ui, sans-serif;
  --font-text: Manrope, system-ui, sans-serif;

  --h1-size: clamp(2.125rem, 5vw, 3.5rem);
  --h2-size: clamp(1.625rem, 3.2vw, 2.375rem);
  --h3-size: clamp(1.125rem, 1.6vw, 1.25rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-outer: #0B0C0F;
    --color-bg: #121418;
    --color-surface: #1C1F26;
    --color-fill: #2C313B;
    --color-raised: #3A3F4B;
    --color-border: #3A404C;
    --color-text: #F2F3F5;
    --color-text-secondary: #B9BEC8;
    --color-text-muted: #A3A9B4;
    --color-accent-text: #FF7A4D;
    --color-accent-tone: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface));
    --color-success: #3CCF74;
    --color-success-bg: #173324;
    --color-glass: rgba(18, 20, 24, 0.86);
    --color-telegram-link: #5BB5F0;
    --color-device: #3A404C;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-phone: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

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

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, .display, .btn-cta, .chip, .num {
  font-family: var(--font-display);
}

.num { font-variant-numeric: tabular-nums; }

/* Тексты на двух языках: показывается блок текущего языка страницы. */
html[lang="ru"] [data-lang="en"],
html[lang="en"] [data-lang="ru"] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Кнопка «Открыть Tempo» — единственное целевое действие страницы. */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .btn-cta:hover { transform: translateY(-1px); }
}

.btn-cta svg { flex-shrink: 0; }

.btn-cta--compact {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: none;
  gap: 4px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 10px;
}

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

@media (min-width: 960px) {
  .header-nav { display: flex; }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--color-fill);
  border-radius: var(--radius-sm);
}

.segmented button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--color-raised);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(22, 24, 29, 0.12);
}

/* На узком экране в шапке остаются логотип, язык и кнопка. */
@media (max-width: 420px) {
  .header-cta-label-long { display: none; }
}

/* Секции */
.section { padding: 64px 0; }

@media (min-width: 992px) {
  .section { padding: 96px 0; }
}

.section--alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.section--alt .card {
  background: var(--color-bg);
  box-shadow: none;
}

/* Hero */
.hero { padding: 40px 0 64px; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-telegram);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--color-accent-text); }

.hero-lead {
  max-width: 540px;
  margin-bottom: 32px;
  color: var(--color-text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 480px) {
  .hero-actions { align-items: flex-start; }
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-list svg { color: var(--color-success); }

/* Мокап телефона: экран активной тренировки Mini App */
.phone {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 10px;
  background: var(--color-device);
  border-radius: 44px;
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  overflow: hidden;
  background: var(--color-bg);
  border-radius: 34px;
}

.tg-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 16px 10px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
}

.tg-bar-close { color: var(--color-telegram-link); font-weight: 600; }
.tg-bar-title { text-align: center; line-height: 1.2; }
.tg-bar-title strong { display: block; font-size: 0.9375rem; }
.tg-bar-title span { color: var(--color-text-muted); font-size: 0.75rem; }
.tg-bar-more { justify-self: end; color: var(--color-text-muted); }

.phone-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.phone-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-accent);
  border-radius: inherit;
}

.ui-card {
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.ui-overline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.ui-sub {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.ui-title--page { font-size: 1.25rem; }

.ui-heading {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.history-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.history-strip span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.history-strip strong {
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.set-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--color-fill);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.set-row-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
}

.set-row-icons i { font-style: normal; }

.dashed-action {
  padding: 9px;
  border: 1.5px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-accent-text);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
}

.phone-footer {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  margin-top: 4px;
}

.phone-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
}

.ui-button {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: var(--color-accent-fill);
  color: var(--color-on-accent);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-fill);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Как это работает */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.step {
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--color-accent-tone);
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-weight: 700;
}

.step h3, .feature h3, .audience h3 {
  font-size: var(--h3-size);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.step p, .feature p, .audience p {
  color: var(--color-text-muted);
  font-size: 0.9688rem;
}

/* Возможности */
.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.feature-demo {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--color-fill);
  border-radius: var(--radius-md);
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.chip--selected {
  border-color: var(--color-accent);
  background: var(--color-accent-tone);
  color: var(--color-text);
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.section--alt .demo-row { background: var(--color-bg); }

.demo-row strong { font-weight: 700; }

.demo-row .num { font-weight: 700; white-space: nowrap; }

.demo-row--superset { border-left: 3px solid var(--color-accent); }

.demo-meta {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.honest-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.honest-note svg { flex-shrink: 0; margin-top: 2px; }

/* Шаблоны программ */
.templates {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .templates { grid-template-columns: 2fr 1fr; }
}

.template-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--h3-size);
}

.template-group h3 .num {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.template-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

@media (min-width: 640px) {
  .template-group--gym .template-list { grid-template-columns: repeat(2, 1fr); }
}

.template {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
}

.template strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.template p {
  color: var(--color-text-muted);
  font-size: 0.9063rem;
}

.template .chips { margin-top: 4px; }

/* Метка шаблона — не выбранное состояние, поэтому не чип. */
.tag {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--color-fill);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.tag--accent {
  background: var(--color-accent-tone);
  color: var(--color-text);
}

.section--alt .tag--accent { background: var(--color-accent-tone); }

/* Экраны приложения */
.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin: 0 -4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.screen {
  flex: 0 0 272px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 1024px) {
  .screen { flex-basis: 288px; }
}

.screen-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 400px;
  padding: 16px 14px 10px;
  background: var(--color-bg);
  border: 8px solid var(--color-device);
  border-radius: 32px;
}

.screen-view h4 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.screen-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.screen figcaption span {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.6563rem;
  font-weight: 600;
  text-align: center;
}

.tabbar .current { color: var(--color-accent-text); }

.status-done {
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Для кого */
.audiences {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .audiences { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.audience {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
}

.audience-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--color-accent-tone);
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Финальный призыв */
.final {
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
  text-align: center;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .final { padding: 72px 48px; }
}

.final-mark {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  opacity: 0.12;
  pointer-events: none;
}

.final h2 {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.final p {
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0.8;
}

/* Подвал */
.site-footer {
  padding: 32px 0 40px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 0.3s ease-out both; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* Внутренние страницы (посадочные): хлебные крошки, карточки шаблонов, «Смотрите также» */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding-top: 8px;
  font-size: 0.875rem;
}

.breadcrumbs li { display: inline-flex; align-items: center; }

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 4px;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.breadcrumbs a[aria-current="page"] { color: var(--color-text); }

@media (min-width: 640px) {
  .template-list--page { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .template-list--page { grid-template-columns: repeat(3, 1fr); }
}

.template h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.template .template-meta {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.steps--plain, .steps--two { counter-reset: none; }

@media (min-width: 768px) {
  .steps--plain { grid-template-columns: repeat(2, 1fr); }
  .steps--two { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .steps--plain { grid-template-columns: repeat(3, 1fr); }
}

.related {
  display: grid;
  gap: 12px;
  list-style: none;
}

@media (min-width: 768px) {
  .related { grid-template-columns: repeat(3, 1fr); }
}

.related-link {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 20px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
}

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

.footer-nav { display: flex; flex-direction: column; gap: 0; }

@media (min-width: 768px) {
  .footer-nav { flex-direction: row; gap: 24px; }
}
