﻿/*
Theme Name: Belyy Yozh
Theme URI: https://beliy-yozh.ru/
Author: Belyy Yozh
Description: Custom WordPress theme for the Belyy Yozh family health festival.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: belyy-yozh
*/
:root {
  --white: #fbfff8;
  --paper: #f1f8ec;
  --green: #2f7d45;
  --green-2: #66aa57;
  --mint: #dff2d6;
  --ink: #102015;
  --muted: #607064;
  --line: rgba(16, 32, 21, 0.14);
  --shadow: 0 24px 70px rgba(20, 48, 26, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 29, 14, 0.28);
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(251, 255, 248, 0.92);
  box-shadow: 0 14px 46px rgba(16, 32, 21, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand__mark {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.brand__logo--green {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--white {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--green {
  opacity: 1;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  opacity: 0.9;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover {
  background: var(--mint);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 140px max(24px, calc((100vw - var(--max)) / 2)) 44px;
  isolation: isolate;
}

.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--green);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 27, 12, 0.82), rgba(7, 27, 12, 0.34) 48%, rgba(7, 27, 12, 0.68)),
    linear-gradient(180deg, rgba(7, 27, 12, 0.36), rgba(7, 27, 12, 0.7));
}

.hero__content {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.site-footer .eyebrow {
  color: #b8f29d;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(58px, 11vw, 132px);
}

h2 {
  font-size: clamp(36px, 6vw, 76px);
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
}

.hero__lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #246837;
}

.button--ghost,
.button--outline {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--green);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.hero__panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__panel span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero__panel strong {
  font-size: 18px;
}

.section,
.kids {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section__title {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 46px;
}

.section__title .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -34px;
}

.section__lead {
  align-self: end;
  max-width: 560px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
}

.program__title {
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  align-items: end;
}

.program__title .eyebrow {
  margin-bottom: 24px;
}

.program__title h2 {
  max-width: 760px;
  font-size: clamp(48px, 5.2vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
  column-gap: clamp(48px, 7vw, 108px);
  row-gap: 58px;
  align-items: start;
}

.intro .section__title {
  display: block;
  margin-bottom: 0;
}

.intro .section__title .eyebrow {
  margin-bottom: 34px;
}

.intro h2 {
  max-width: 680px;
  font-size: clamp(48px, 4.65vw, 72px);
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: auto;
}

.intro__text {
  color: var(--muted);
  max-width: 720px;
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.58;
}

.intro__text p:first-child {
  margin-top: 0;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--green);
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.9;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.theme-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--green);
  color: var(--white);
}

.theme-band p:last-child {
  max-width: 790px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

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

.program-card {
  min-height: 520px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.program-card--accent {
  background: var(--ink);
  color: var(--white);
}

.program-card__number {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.program-card--accent .program-card__number {
  color: #b8f29d;
}

.program-card ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.program-card li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.program-card--accent li {
  color: rgba(255, 255, 255, 0.78);
}

.program-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
}

.kids {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.kids__visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: var(--shadow);
}

.kids__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.kids__content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chips span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-weight: 800;
}

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

.reviews__title {
  display: block;
  max-width: 980px;
  margin-bottom: 34px;
}

.reviews__title .eyebrow {
  margin-bottom: 24px;
}

.reviews__title h2 {
  max-width: 980px;
  font-size: clamp(48px, 5.4vw, 88px);
  line-height: 1;
  text-wrap: balance;
}

blockquote {
  margin: 0;
  padding: 30px;
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  background: var(--paper);
}

blockquote p {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
}

cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.organizers {
  padding-top: 32px;
}

.organizers__title {
  display: block;
  max-width: 980px;
  margin-bottom: 34px;
}

.organizers__title .eyebrow {
  margin-bottom: 24px;
}

.organizers__title h2 {
  max-width: 980px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.02;
  text-wrap: balance;
}

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

.organizer-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(20, 48, 26, 0.08);
}

.organizer-card h3 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(26px, 2.4vw, 34px);
}

.organizer-card__description {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
}

.organizer-card__city {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.organizer-links {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.organizer-links span {
  color: var(--ink);
  font-weight: 800;
}

.organizer-links a {
  color: var(--green);
  font-weight: 800;
}

.payment {
  padding-top: 56px;
}

.payment__title {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: end;
}

.payment__title .eyebrow {
  margin-bottom: 24px;
}

.payment__title h2 {
  max-width: 860px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.02;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.payment-form,
.payment-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.payment-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.payment-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.payment-fieldset:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-fieldset legend {
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.payment-fieldset__title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.payment-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
}

.payment-fieldset--customer .payment-control {
  grid-template-columns: 150px minmax(280px, 1fr);
}

.payment-control span,
.payment-check span {
  font-weight: 800;
}

.payment-control input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.payment-fieldset--customer .payment-control input {
  text-align: left;
}

.payment-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.payment-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--green);
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.payment-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
}

.payment-summary__head,
.payment-summary__line,
.payment-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.payment-summary__head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.payment-summary__head span,
.payment-summary__line span {
  color: rgba(255, 255, 255, 0.72);
}

.payment-summary__head strong {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
}

.payment-summary__line strong {
  text-align: right;
}

.payment-summary__line--discount strong {
  color: #b8f29d;
}

.payment-breakdown {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.payment-breakdown__row {
  color: rgba(255, 255, 255, 0.84);
}

.payment-summary .payment-note {
  color: rgba(255, 255, 255, 0.68);
}

.payment-summary__check a {
  color: #d9ffc8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-button {
  width: 100%;
  margin-top: 2px;
}

.payment-button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.payment-max-link {
  color: #b8f29d;
  font-weight: 850;
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

.cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 0;
}

.cta h2 {
  max-width: 860px;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 20px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.footer-grid,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid {
  align-items: end;
}

.footer-grid h2 {
  max-width: 720px;
  font-size: clamp(32px, 5vw, 58px);
}

.footer-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-actions .button {
  width: auto;
  flex: 0 1 auto;
  white-space: nowrap;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 18px;
  font-size: 14px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document-page {
  background: var(--paper);
  color: var(--ink);
}

.legal-document {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-document__back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 900;
}

.legal-document h1 {
  margin: 0 0 28px;
  color: var(--green);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

.legal-document section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.legal-document p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cookie-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(560px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 58px;
    padding: 8px;
  }

  .brand__text {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
    background: var(--paper);
  }

  .hero {
    min-height: 720px;
    padding-top: 120px;
  }

  .hero__panel,
  .stats,
  .program-grid,
  .kids,
  .review-grid,
  .organizers-grid,
  .payment-layout,
  .section__title {
    grid-template-columns: 1fr;
  }

  .intro {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .intro .section__title .eyebrow {
    margin-bottom: 18px;
  }

  .intro h2 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 54px);
    overflow-wrap: break-word;
  }

  .intro h2 br {
    display: none;
  }

  .hero__panel {
    margin-top: 36px;
  }

  .section,
  .kids {
    padding: 70px 0;
  }

  .section__title {
    gap: 18px;
  }

  .section__title .eyebrow {
    margin-bottom: 0;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .program-card {
    min-height: auto;
  }

  .kids__visual {
    min-height: 340px;
  }

  .kids__visual img {
    min-height: 340px;
  }

  .cta,
  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-summary {
    position: static;
  }

  .payment-control {
    grid-template-columns: 1fr;
  }

  .payment-fieldset--customer .payment-control {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-notice {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 760px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero__actions,
  .cta-actions,
  .footer-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .cta-actions,
  .footer-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .cta-actions .button,
  .footer-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    padding: 12px 9px;
    font-size: 13px;
    line-height: 1.1;
    white-space: normal;
  }

  .footer-actions .button {
    padding: 11px 7px;
    font-size: 12px;
  }

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

  .hero__lead {
    font-size: 17px;
  }

  .section,
  .kids,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  blockquote,
  .program-card,
  .site-footer {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

