@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #E8784A;
  --color-secondary: #7BA05B;
  --color-accent: #F5A623;
  --color-warm: #F5EDE0;
  --color-dark: #3D2B1F;
  --color-white: #FFFFFF;
  --font-main: 'Roboto', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-warm);
}

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

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

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #d4673a;
  border-color: #d4673a;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Card */
.card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(61, 43, 31, 0.08);
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(61, 43, 31, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.site-header__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

.site-header__cta {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 14px;
  padding: 10px 20px;
}

/* Nav active states */
.nav__link.active,
.nav__link--active {
  color: var(--color-primary);
  font-weight: 500;
}

.nav__link--active {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-dark);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-primary);
  background-color: rgba(232, 120, 74, 0.06);
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  text-decoration: none;
}

.site-footer__logo-icon {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.site-footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.site-footer__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--color-accent);
}

.site-footer__social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__support {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__ministry-logo {
  display: block;
  width: 40px;
  height: 50px;
  flex-shrink: 0;
  /* Invert to white on dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

@media (max-width: 480px) {
  .site-footer__support {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.site-footer__bottom {
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #F5EDE0 0%, #FDF6EE 100%);
  padding: 80px 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(232, 120, 74, 0.12);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 44px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 18px;
  color: #6b5a50;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 36px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 13px;
  color: #9e8075;
  margin-top: 4px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(61, 43, 31, 0.12);
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.hero__card-icon {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 20px;
}

.hero__card-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

/* ─── How it works ────────────────────────────────────── */
.how-it-works {
  background-color: var(--color-white);
}

.how-it-works__title {
  text-align: center;
  margin-bottom: 48px;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-it-works__step {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background-color: var(--color-warm);
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step__icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 15px;
  color: #6b5a50;
  line-height: 1.6;
}

/* ─── Leisure preview ─────────────────────────────────── */
.leisure-preview {
  background-color: var(--color-warm);
}

.leisure-preview__subtitle {
  font-size: 17px;
  color: #6b5a50;
  margin-top: -8px;
  margin-bottom: 36px;
}

.leisure-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leisure-card {
  display: flex;
  flex-direction: column;
}

.leisure-card__icon {
  display: block;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.leisure-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.leisure-card__desc {
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.leisure-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.leisure-card__link:hover {
  opacity: 0.75;
}

/* ─── News preview ────────────────────────────────────── */
.news-preview {
  background-color: var(--color-white);
}

.news-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

/* Медиа в карточке (картинка / видео) — необязательно, из Google-таблицы */
.news-card__media {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-warm);
}

.news-card__media--video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.news-card__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__date {
  display: block;
  font-size: 13px;
  color: #9e8075;
  margin-bottom: 10px;
}

.news-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.news-card__text {
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.news-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.news-card__link:hover {
  opacity: 0.75;
}

/* ─── Video section ───────────────────────────────────── */
.video-section {
  background-color: var(--color-warm);
}

.video-section__title {
  text-align: center;
  margin-bottom: 32px;
}

.video-section__wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-section__player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #d4c8be;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-section__play,
.video-section__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(61, 43, 31, 0.5);
  pointer-events: none;
}

.video-section__play {
  font-size: 52px;
  transform: translate(-50%, -50%) translateY(-24px);
}

.video-section__placeholder {
  font-size: 15px;
  transform: translate(-50%, -50%) translateY(24px);
}

.video-section__caption {
  text-align: center;
  font-size: 15px;
  color: #6b5a50;
}

/* ─── CTA section ─────────────────────────────────────── */
.cta-section {
  background-color: var(--color-primary);
  padding: 72px 0;
}

.cta-section__inner {
  text-align: center;
}

.cta-section__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-section__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.btn-white {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-white:hover {
  opacity: 0.92;
}

.btn-white:active {
  transform: scale(0.98);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .leisure-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 16px 20px 20px;
    box-shadow: 0 4px 12px rgba(61, 43, 31, 0.1);
  }

  .nav.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav__link {
    font-size: 16px;
    padding: 10px 12px;
    width: 100%;
  }

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

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__card {
    max-width: 100%;
    padding: 32px 24px;
  }

  .hero__card-icon {
    max-width: 220px;
  }

  /* Steps */
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Leisure */
  .leisure-preview__grid {
    grid-template-columns: 1fr;
  }

  /* News */
  .news-preview__grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section__title {
    font-size: 26px;
  }

  .cta-section__subtitle {
    font-size: 15px;
  }

  /* Diagnostics */
  .diag-scale {
    gap: 10px;
  }

  .scale-btn {
    width: 52px;
    height: 52px;
  }

  .scale-btn__num {
    font-size: 20px;
  }

  .diag-title {
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   DIAGNOSTICS PAGE
   ═══════════════════════════════════════════════════════ */

/* ─── Screens & transitions ──────────────────────────── */
.diag-wrap {
  background-color: var(--color-warm);
  min-height: calc(100vh - 68px);
}

.diag-screen {
  animation: fadeIn 0.35s ease;
}

.diag-screen--hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Header block ───────────────────────────────────── */
.diag-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.diag-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.diag-subtitle {
  font-size: 17px;
  color: #6b5a50;
  line-height: 1.6;
}

/* ─── Progress bar ───────────────────────────────────── */
.diag-progress {
  max-width: 640px;
  margin: 0 auto 32px;
}

.diag-progress__bar {
  height: 8px;
  background-color: #e0d5cc;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.diag-progress__fill {
  height: 100%;
  background-color: var(--color-secondary);
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s ease;
}

.diag-progress__label {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #9e8075;
}

/* ─── Question card ──────────────────────────────────── */
.diag-question {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.diag-question__text {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 40px;
  min-height: 72px;
  transition: opacity 0.15s ease;
}

/* ─── Scale buttons ──────────────────────────────────── */
.diag-scale {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.scale-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  height: 64px;
  background-color: var(--color-warm);
  border: 2px solid #d4c8be;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
  padding: 8px 4px 4px;
}

.scale-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.scale-btn.selected {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.scale-btn.selected .scale-btn__num,
.scale-btn.selected .scale-btn__label {
  color: var(--color-white);
}

.scale-btn__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.scale-btn__label {
  font-size: 10px;
  color: #9e8075;
  line-height: 1;
  height: 12px;
}

/* ─── Result: value cards ────────────────────────────── */
.result-values {
  max-width: 640px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-card {
  padding: 20px 24px;
}

.value-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.value-card__medal {
  display: block;
  width: 32px;
  height: 38px;
  flex-shrink: 0;
}

.value-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  flex: 1;
}

.value-card__percent {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.value-card__bar {
  height: 8px;
  background-color: #e0d5cc;
  border-radius: 4px;
  overflow: hidden;
}

.value-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s ease;
}

/* ─── Result: recommendation card ───────────────────── */
.result-rec {
  max-width: 640px;
  margin: 0 auto 32px;
}

.rec-card {
  padding: 24px;
}

.rec-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.rec-card__body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rec-card__emoji {
  display: block;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px;
  max-height: 72px;
  flex-shrink: 0;
  align-self: flex-start;
  object-fit: contain;
}

.rec-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.rec-card__desc {
  font-size: 15px;
  color: #6b5a50;
  line-height: 1.6;
  margin-bottom: 16px;
}

.rec-card__link {
  font-size: 14px;
  padding: 10px 20px;
}

/* ─── Result: email form ─────────────────────────────── */
.result-email {
  max-width: 640px;
  margin: 0 auto 24px;
}

.result-email__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.result-email__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .result-email__form {
    flex-direction: column;
  }
  .result-email__input,
  .result-email__form .btn-primary {
    width: 100%;
  }
}

.result-email__input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-dark);
  background-color: var(--color-warm);
  border: 2px solid #d4c8be;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.result-email__input:focus {
  border-color: var(--color-primary);
}

/* ─── Result: actions ────────────────────────────────── */
.result-actions {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════
   LEISURE LIST PAGE  (leisure.html)
   ═══════════════════════════════════════════════════════ */

/* ─── Page hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #F5EDE0 0%, #FDF6EE 100%);
  padding-bottom: 32px;
}

.page-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 18px;
  color: #6b5a50;
  line-height: 1.6;
}

/* ─── Leisure grid ───────────────────────────────────── */
.leisure-list {
  background-color: var(--color-warm);
}

.leisure-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── Leisure card ───────────────────────────────────── */
.lcard {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61, 43, 31, 0.08);
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.14);
}

.lcard__head {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lcard__emoji {
  display: block;
  width: 80px;
  height: 80px;
}

.lcard__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin: 0;
}

.lcard__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.lcard__desc {
  font-size: 15px;
  color: #6b5a50;
  line-height: 1.6;
  flex: 1;
}

.lcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lcard__tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-warm);
  color: #6b5a50;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.lcard__btn {
  font-size: 14px;
  padding: 10px 20px;
  align-self: flex-start;
}

/* ─── Bottom CTA ─────────────────────────────────────── */
.leisure-cta {
  background-color: var(--color-warm);
  border-top: 1px solid #e8ddd4;
  padding: 48px 0;
}

.leisure-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.leisure-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.leisure-cta__subtitle {
  font-size: 16px;
  color: #6b5a50;
}

/* ═══════════════════════════════════════════════════════
   LEISURE DETAIL PAGE  (leisure-detail.html)
   ═══════════════════════════════════════════════════════ */

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.breadcrumb__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-white);
}

.breadcrumb__sep {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb__current {
  font-size: 14px;
  color: var(--color-white);
  font-weight: 500;
}

/* ─── Detail hero ────────────────────────────────────── */
.detail-hero {
  padding: 40px 0 48px;
}

.detail-hero__body {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.detail-hero__emoji {
  display: block;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.detail-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.detail-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 20px;
}

.detail-hero__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-hero__value-tag {
  display: inline-block;
  padding: 4px 14px;
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}

.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-hero__meta-tag {
  display: inline-block;
  padding: 3px 12px;
  background-color: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  border-radius: 20px;
}

/* ─── Detail section wrapper ─────────────────────────── */
.detail-section__narrow {
  max-width: 760px;
}

/* ─── Needs list ─────────────────────────────────────── */
.needs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.needs-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.5;
}

.needs-list__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─── Steps list ─────────────────────────────────────── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
}

.step-card__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.step-card__desc {
  font-size: 15px;
  color: #6b5a50;
  line-height: 1.6;
}

/* ─── Psychologist tip ───────────────────────────────── */
.psych-tip {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: rgba(123, 160, 91, 0.08);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  margin: 0;
}

.psych-tip__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.psych-tip__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.psych-tip__text {
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.7;
  font-style: italic;
}

/* ─── Detail actions ─────────────────────────────────── */
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-actions__pdf {
  font-size: 14px;
  padding: 10px 20px;
}

.detail-actions__share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.detail-actions__share-label {
  font-size: 14px;
  color: #9e8075;
}

.share-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.82;
}

.share-btn--vk {
  background-color: #0077FF;
  color: var(--color-white);
}

.share-btn--tg {
  background-color: #29B5E8;
  color: var(--color-white);
}

/* ─── Other scenarios ────────────────────────────────── */
.others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.other-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.12);
}

.other-card__emoji {
  display: block;
  width: 56px;
  height: 56px;
}

.other-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.other-card__tags {
  font-size: 13px;
  color: #9e8075;
}

/* ─── Stub card ──────────────────────────────────────── */
.stub-card {
  text-align: center;
  padding: 48px 24px;
}

.stub-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.stub-card__text {
  font-size: 16px;
  color: #6b5a50;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — leisure pages
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .leisure-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .page-hero__title {
    font-size: 28px;
  }

  .page-hero__subtitle {
    font-size: 16px;
  }

  .leisure-list__grid {
    grid-template-columns: 1fr;
  }

  .leisure-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .detail-hero__body {
    flex-direction: column;
    gap: 16px;
  }

  .detail-hero__emoji {
    font-size: 52px;
  }

  .detail-hero__title {
    font-size: 28px;
  }

  .detail-hero__subtitle {
    font-size: 16px;
  }

  .detail-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-actions__share {
    margin-left: 0;
  }

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

  .step-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   VIDEOS PAGE  (videos.html)
   ═══════════════════════════════════════════════════════ */

.vpage-section__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.vpage-section__title--light {
  color: var(--color-white);
}

.vpage-section--warm {
  background-color: var(--color-warm);
}

.vpage-section--dark {
  background-color: var(--color-dark);
}

/* ─── Video card grid ────────────────────────────────── */
.vcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vcards-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

/* ─── Video card ─────────────────────────────────────── */
.vcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vcard__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #cfc4bb;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.vcard__thumb:hover {
  filter: brightness(0.92);
}

.vcard__iframe,
.video-section__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vcard__thumb:has(.vcard__iframe) {
  cursor: default;
}
.vcard__thumb:has(.vcard__iframe):hover {
  filter: none;
}

.vcard__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: rgba(61, 43, 31, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}

.vcard__play:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

.vcard__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.vcard__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}

.vcard__dur {
  flex-shrink: 0;
  font-size: 13px;
  color: #9e8075;
  font-variant-numeric: tabular-nums;
}

/* ─── Invite block ───────────────────────────────────── */
.vpage-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 28px;
  background-color: var(--color-warm);
  border-radius: 12px;
}

.vpage-invite__text {
  font-size: 16px;
  color: #6b5a50;
}

/* ─── Video tips ─────────────────────────────────────── */
.vtips {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.vtip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.vtip__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtip__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   MATERIALS PAGE  (materials.html)
   ═══════════════════════════════════════════════════════ */

.materials-list {
  background-color: var(--color-warm);
}

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

/* ─── Material card ──────────────────────────────────── */
.mcard {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
}

.mcard__icon {
  flex-shrink: 0;
  width: 56px;
  height: 68px;
  background-color: #E53935;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.mcard__body {
  flex: 1;
  min-width: 0;
}

.mcard__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.mcard__desc {
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.5;
  margin-bottom: 8px;
}

.mcard__meta {
  font-size: 13px;
  color: #9e8075;
}

.mcard__btn {
  flex-shrink: 0;
  font-size: 14px;
  padding: 10px 24px;
}

/* ─── Updates banner ─────────────────────────────────── */
.materials-banner {
  background-color: var(--color-warm);
  border-top: 1px solid #e8ddd4;
  padding: 40px 0;
}

.materials-banner__msg {
  font-size: 16px;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.materials-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.materials-banner__link {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.materials-banner__link:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════
   CONTEST PAGE  (contest.html)
   ═══════════════════════════════════════════════════════ */

/* ─── About grid ─────────────────────────────────────── */
.contest-about__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

/* ─── Rules list ─────────────────────────────────────── */
.crules-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8ddd4;
  border-radius: 12px;
  overflow: hidden;
}

.crules-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8ddd4;
}

.crules-item:last-child {
  border-bottom: none;
}

.crules-item__label {
  font-size: 14px;
  font-weight: 600;
  color: #9e8075;
}

.crules-item__val {
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.5;
}

/* ─── Contest aside ──────────────────────────────────── */
.contest-about {
  background-color: var(--color-white);
}

.contest-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contest-aside__pdf {
  font-size: 14px;
  padding: 12px 20px;
  text-align: center;
}

.contest-dates__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.contest-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e8e0;
  font-size: 14px;
}

.contest-date:last-child {
  border-bottom: none;
}

.contest-date__label {
  color: #9e8075;
}

.contest-date__val {
  font-weight: 600;
  color: var(--color-dark);
}

/* ─── Contest form ───────────────────────────────────── */
.contest-form-wrap {
  max-width: 720px;
}

.contest-form {
  margin-top: 28px;
  padding: 32px;
}

/* ─── Shared form elements ───────────────────────────── */
.cform-row {
  margin-bottom: 20px;
}

.cform-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.cform-req {
  color: var(--color-primary);
}

.cform-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-dark);
  background-color: var(--color-warm);
  border: 2px solid #d4c8be;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.cform-input:focus {
  border-color: var(--color-primary);
}

.cform-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.cform-row--check {
  margin-bottom: 24px;
}

.cform-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.5;
  cursor: pointer;
}

.cform-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cform-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 12px;
}

.cform-note {
  font-size: 13px;
  color: #9e8075;
  text-align: center;
}

.cform-policy-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Contest gallery ────────────────────────────────── */
.contest-gallery {
  background-color: var(--color-warm);
}

.cgallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.cgallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cgallery-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #cfc4bb;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.cgallery-thumb:hover {
  filter: brightness(0.9);
}

.cgallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(61, 43, 31, 0.5);
}

.cgallery-family {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

.cgallery-value {
  font-size: 13px;
  color: #9e8075;
}

/* ═══════════════════════════════════════════════════════
   CONTACTS PAGE  (contacts.html)
   ═══════════════════════════════════════════════════════ */

.contacts-body {
  background-color: var(--color-warm);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}

/* ─── Info column ────────────────────────────────────── */
.cinfo-block {
  margin-bottom: 36px;
}

.cinfo-block:last-child {
  margin-bottom: 0;
}

.cinfo-block__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.cinfo-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ddd4;
  align-items: baseline;
}

.cinfo-row:last-child {
  border-bottom: none;
}

.cinfo-row__label {
  flex-shrink: 0;
  width: 120px;
  font-size: 13px;
  color: #9e8075;
  font-weight: 500;
}

.cinfo-row__val {
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.4;
}

.cinfo-row__val--link {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cinfo-row__val--link:hover {
  opacity: 0.75;
}

/* ─── Social links ───────────────────────────────────── */
.cinfo-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cinfo-social__link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 12px 16px;
  background-color: var(--color-white);
  border-radius: 10px;
  border: 1px solid #e8ddd4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cinfo-social__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(232, 120, 74, 0.1);
}

.cinfo-social__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: #0077FF;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinfo-social__link:last-child .cinfo-social__icon {
  background-color: var(--color-secondary);
  font-size: 18px;
}

.cinfo-social__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.cinfo-social__url {
  font-size: 13px;
  color: #9e8075;
  margin-top: 2px;
}

/* ─── Docs & rekvizity ───────────────────────────────── */
.cinfo-doc-link {
  display: inline-block;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}

.cinfo-doc-link:hover {
  opacity: 0.75;
}

.cinfo-rekviz {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9e8075;
}

/* ─── Contact form ───────────────────────────────────── */
.contacts-form {
  padding: 32px;
}

.contacts-form__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — inner pages
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vcards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contest-about__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .vcards-grid,
  .vcards-grid--two {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .vpage-invite {
    flex-direction: column;
    text-align: center;
  }

  .mcard {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .mcard__btn {
    width: 100%;
    text-align: center;
  }

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

  .crules-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contest-form {
    padding: 20px;
  }

  .contacts-form {
    padding: 20px;
  }

  .cinfo-row {
    flex-direction: column;
    gap: 4px;
  }

  .cinfo-row__label {
    width: auto;
  }
}

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE  (about.html)
   ═══════════════════════════════════════════════════════ */

/* ─── What-section ───────────────────────────────────── */
.about-what {
  background-color: var(--color-warm);
}

.about-what__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: center;
}

.about-what__lead {
  font-size: 17px;
  color: #6b5a50;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

/* ─── About steps ────────────────────────────────────── */
.about-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(61, 43, 31, 0.06);
}

.about-step__icon {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: 0;
}

.about-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.about-step__desc {
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.5;
}

/* ─── Compass visual ─────────────────────────────────── */
.about-what__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-what__compass {
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(61, 43, 31, 0.1);
  flex-shrink: 0;
}

/* ─── Team ───────────────────────────────────────────── */
.team-section__title {
  margin-bottom: 36px;
}

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

.team-card {
  text-align: center;
  padding: 32px 24px;
}

.team-card__icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.team-card__role {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.team-card__desc {
  font-size: 14px;
  color: #6b5a50;
  line-height: 1.6;
}

/* ─── Partners ───────────────────────────────────────── */
.partners-section {
  background-color: var(--color-warm);
}

.partners-section__title {
  margin-bottom: 32px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
}

.partner-card__icon {
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.partner-card__note {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.partner-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

/* ─── News section ───────────────────────────────────── */
.news-section__subtitle {
  font-size: 16px;
  color: #6b5a50;
  margin-top: -6px;
  margin-bottom: 32px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* news-card styles reuse .news-card from index.html (already in CSS) */

/* ─── News social row ────────────────────────────────── */
.news-social {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid #e8ddd4;
}

.news-social__text {
  font-size: 15px;
  color: #6b5a50;
}

.news-social__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.news-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #0077FF;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-social__btn:hover {
  opacity: 0.85;
}

.news-social__vk-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ─── About page responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .about-what__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-what__visual {
    order: -1;
  }

  .about-what__compass {
    width: 200px;
    height: 200px;
  }

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

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .news-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about-what__lead {
    font-size: 15px;
  }
}

/* ─── Privacy policy page ────────────────────────────── */
.privacy-page {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-page__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.privacy-page__pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.privacy-page__points-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.privacy-page__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
}

.privacy-point__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.privacy-point__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 6px;
}

.privacy-point__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-dark);
  margin: 0;
}

.privacy-point__link {
  color: var(--color-primary, #1640A8);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .privacy-page__lead { font-size: 15px; }
  .privacy-point { padding: 18px; gap: 14px; }
  .privacy-point__icon { font-size: 24px; }
}

/* ─── Print: clean leisure-detail PDF ──────────────────── */
@media print {
  /* Hide site chrome and irrelevant sections */
  #header,
  #footer,
  .breadcrumb,
  .detail-hero__emoji,
  .detail-section:has(.detail-actions),
  .detail-section:has(.others-grid) {
    display: none !important;
  }

  /* White background, dark text */
  body {
    background: #fff !important;
    color: #000 !important;
  }

  /* Strip colored hero */
  .detail-hero {
    background: #fff !important;
    color: #000 !important;
    padding: 0 0 16px !important;
  }
  .detail-hero__title,
  .detail-hero__subtitle,
  .section-title,
  .step-card__title,
  .step-card__desc,
  .needs-list__item,
  .psych-tip__text,
  .psych-tip__label {
    color: #000 !important;
  }
  .detail-hero__value-tag,
  .detail-hero__meta-tag {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #999 !important;
  }

  /* Flatten cards */
  .detail-section {
    padding: 16px 0 !important;
    background: #fff !important;
  }
  .step-card,
  .card {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  .psych-tip {
    background: #f5f5f5 !important;
    page-break-inside: avoid;
  }
  .needs-list__check,
  .step-card__num {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #999 !important;
  }
  * {
    box-shadow: none !important;
  }

  /* Project attribution at bottom of printed page */
  main::after {
    content: "Проект «Ценностный навигатор для семьи» — idialogi.nko31.ru";
    display: block;
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
  }

  /* A4 без полей — браузер не сможет нарисовать колонтитулы (URL/дата/номер) */
  @page {
    size: A4;
    margin: 0;
  }
  body {
    padding: 14mm !important;
  }
}

/* reCAPTCHA widget row inside forms */
.cform-captcha {
  margin: 8px 0 4px;
  display: flex;
  justify-content: flex-start;
}
.cform-captcha .g-recaptcha {
  transform-origin: top left;
}
@media (max-width: 360px) {
  .cform-captcha .g-recaptcha {
    transform: scale(0.85);
  }
}

/* Contest gallery — placeholder while contest is running */
.cgallery-empty {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
}
.cgallery-empty__icon {
  display: block;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 20px;
}
.cgallery-empty__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 14px;
}
.cgallery-empty__text {
  font-size: 15px;
  line-height: 1.6;
  color: #6b5a50;
  margin-bottom: 24px;
}
