/* ============================================
   Sun Camp — Refined Summer Editorial
   style.css
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  /* Primary — глубокая зелень Sun School */
  --color-primary:        #1F4A3A;
  --color-primary-deep:   #0E2C20;
  --color-primary-soft:   #4F7A6A;

  /* Accent — летние тёплые */
  --color-accent-sun:     #F5B544;
  --color-accent-coral:   #E76F51;
  --color-accent-coral-d: #C95738;
  --color-accent-sand:    #D4B58A;

  /* Surface */
  --color-surface-cream:  #F7F1E6;
  --color-surface-sand:   #ECE0CC;
  --color-surface-paper:  #FBF7EE;
  --color-surface-ink:    #122018;

  /* Ink */
  --color-ink:            #1A2620;
  --color-ink-soft:       #5A6A63;
  --color-ink-mute:       #8A958F;

  /* Lines & shadows */
  --color-line:           rgba(31, 74, 58, 0.16);
  --color-line-soft:      rgba(31, 74, 58, 0.08);
  --shadow-sm:            0 2px 8px rgba(14, 44, 32, 0.06);
  --shadow-md:            0 8px 28px rgba(14, 44, 32, 0.10);
  --shadow-lg:            0 24px 60px rgba(14, 44, 32, 0.18);

  /* Typography */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-h1:   clamp(2.4rem, 5.5vw, 4.6rem);
  --fs-h2:   clamp(1.9rem, 3.6vw, 3.2rem);
  --fs-h3:   clamp(1.3rem, 2.2vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body: clamp(1rem, 1.1vw, 1.0625rem);
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  --lh-tight:  1.05;
  --lh-snug:   1.25;
  --lh-normal: 1.55;
  --lh-relax:  1.7;

  /* Layout */
  --container-max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3rem, 6vw, 5rem);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-med:  360ms;
  --t-slow: 720ms;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-surface-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img { color: transparent; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

ul, ol { list-style: none; }

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  width: 100%;
}

textarea { resize: vertical; }

/* Selection */
::selection {
  background: var(--color-accent-sun);
  color: var(--color-primary-deep);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-primary-deep);
}

h1 { font-size: var(--fs-h1); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; font-weight: 500; }
h2 { font-size: var(--fs-h2); font-variation-settings: "opsz" 90, "SOFT" 50, "WONK" 1; }
h3 { font-size: var(--fs-h3); font-variation-settings: "opsz" 24, "WONK" 1; font-weight: 600; }

em {
  font-style: italic;
  font-variation-settings: "opsz" 90, "SOFT" 80, "WONK" 1;
  color: var(--color-primary);
}

p { line-height: var(--lh-relax); }
p + p { margin-top: 1rem; }

.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-coral);
  margin-bottom: 1.25rem;
  padding-left: 2.25rem;
  position: relative;
}
.section__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.75rem;
  height: 1px;
  background: var(--color-accent-coral);
  transform: translateY(-50%);
}

.section__title {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.section__title em { display: block; }

.section__lead {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  max-width: 56ch;
  line-height: var(--lh-relax);
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--cream { background: var(--color-surface-cream); }
.section--sand  { background: var(--color-surface-sand); }
.section--paper { background: var(--color-surface-paper); }
.section--ink   { background: var(--color-surface-ink); color: var(--color-surface-cream); }

/* ============================================
   5. HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 0.85rem;
  background: rgba(247, 241, 230, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-line-soft);
  transition: background var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(247, 241, 230, 0.94);
  box-shadow: var(--shadow-sm);
  padding-block: 0.6rem;
}
.site-header .site-header__phone { color: var(--color-primary-deep); }
.site-header .social-icon { color: var(--color-primary); }

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-self: start;
}
.site-header__logo img {
  height: auto;
  width: 170px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.site-header__center {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
}
.site-header__phone {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--color-primary-deep);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out);
}
.site-header__phone:hover { color: var(--color-accent-coral); }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}
.site-header__social {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.social-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(31, 74, 58, 0.08);
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.social-icon:hover {
  color: var(--color-accent-coral);
  background: rgba(231, 111, 81, 0.12);
  transform: rotate(-8deg) scale(1.1);
}

.site-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.site-header__burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-primary-deep);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
}
.site-header__burger span:nth-child(1) { top: 13px; }
.site-header__burger span:nth-child(2) { top: 19px; }
.site-header__burger span:nth-child(3) { top: 25px; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-surface-cream);
  padding: 7rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu a {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 90, "SOFT" 50, "WONK" 1;
  font-size: 1.75rem;
  color: var(--color-primary-deep);
  font-weight: 500;
  display: inline-block;
  padding-block: 0.25rem;
}
.mobile-menu__phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: auto;
}
.mobile-menu__cta { align-self: flex-start; margin-top: 1rem; }

/* ============================================
   6. HERO — облачный коллаж
   ============================================ */
.hero {
  position: relative;
  padding-block: clamp(6rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
  background: var(--color-surface-cream);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-coral);
  padding: 0.5rem 1rem;
  background: rgba(231, 111, 81, 0.1);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* In-hero pill navigation (справа от eyebrow) */
.hero__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
}
.hero__nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary-deep);
  padding-block: 0.3rem;
  transition: color var(--t-fast) var(--ease-out);
}
.hero__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-coral);
  transition: width var(--t-med) var(--ease-out);
}
.hero__nav a:hover { color: var(--color-accent-coral); }
.hero__nav a:hover::after { width: 100%; }

.hero__title {
  margin-block: 1.5rem 1.5rem;
  max-width: 100%;
  color: var(--color-primary-deep);
  font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0;
  font-weight: 500;
  line-height: 1.05;
}
.hero__title em {
  color: var(--color-accent-coral);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relax);
  color: var(--color-ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-deep);
}
.hero__bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-sun);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(245, 181, 68, 0.18);
}

.hero__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Hero media — крупный фото-коллаж с облачной маской */
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 820px;
  margin: 5rem auto 0;
}
.hero__cloud {
  position: absolute;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-paper);
}
.hero__cloud img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.hero__cloud--1 {
  top: 0;
  left: 0;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 60% 40% 50% 50% / 55% 50% 50% 45%;
  animation: cloud-float 8s ease-in-out infinite;
}
.hero__cloud--2 {
  bottom: 0;
  right: 0;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  animation: cloud-float 10s ease-in-out -2s infinite reverse;
}
@keyframes cloud-float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50%      { transform: translate(4px, -8px) rotate(2deg); }
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  color: var(--color-surface-paper);
  z-index: 1;
}

/* ============================================
   7. ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.about__photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.about__polaroid {
  position: relative;
  padding: 12px 12px 36px;
  background: var(--color-surface-paper);
  box-shadow: var(--shadow-md);
  border-radius: 4px;
}
.about__polaroid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}
.about__polaroid--1 {
  transform: rotate(-3deg);
  margin-top: 0;
}
.about__polaroid--2 {
  transform: rotate(2.5deg);
  margin-top: 2rem;
  position: sticky;
  top: 120px;
}

.about__badge {
  position: absolute;
  bottom: 0;
  right: -8px;
  background: var(--color-accent-coral);
  color: var(--color-surface-paper);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: rotate(-4deg);
  z-index: 2;
}
.about__badge-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}
.about__badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.about__text { padding-top: 1rem; }
.about__lead {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  line-height: var(--lh-relax);
  max-width: 56ch;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.about__stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.about__stats dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.about__stats dd {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 1;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary-deep);
  line-height: 1.1;
}

/* ============================================
   8. ADVANTAGES — rail / editorial list
   ============================================ */
.advantages__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.advantages__intro {
  position: sticky;
  top: 100px;
  max-width: 360px;
}
.advantages__intro .section__eyebrow { margin-bottom: 1.25rem; }
.advantages__intro .section__title { margin-bottom: 1.5rem; }
.advantages__intro p {
  font-size: 1rem;
  color: var(--color-ink-soft);
  line-height: var(--lh-relax);
}

.advantages__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.advantages__card {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: background var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
  position: relative;
}
.advantages__card:hover {
  background: var(--color-surface-paper);
  padding-inline: 1.25rem;
}

.advantages__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 1;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent-coral);
  font-style: italic;
}

.advantages__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "WONK" 1;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary-deep);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.advantages__desc {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  line-height: var(--lh-relax);
  max-width: 60ch;
}

.advantages__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-paper);
  border: 1px solid var(--color-line-soft);
  transition: transform var(--t-med) var(--ease-out);
}
.advantages__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.advantages__card:hover .advantages__icon { transform: rotate(-4deg) scale(1.05); }

.advantages__footnote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "WONK" 1, "SOFT" 60;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  text-align: center;
  max-width: 56ch;
  margin: 2.5rem auto 0;
  position: relative;
  padding-block: 1rem;
}
.advantages__footnote::before,
.advantages__footnote::after {
  content: "—";
  color: var(--color-accent-sun);
  margin: 0 0.5rem;
  font-style: normal;
}

/* ============================================
   9. PROGRAMS
   ============================================ */
.programs__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  background: var(--color-surface-paper);
  padding: 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-line-soft);
}
.programs__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-pill);
  color: var(--color-ink-soft);
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
  position: relative;
}
.programs__tab:hover { color: var(--color-primary); }
.programs__tab.is-active {
  background: var(--color-primary);
  color: var(--color-surface-paper);
}
.programs__tab.is-active .programs__tab-age { color: var(--color-accent-sun); }
.programs__tab-age {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  transition: color var(--t-med) var(--ease-out);
}
.programs__tab-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 1;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.programs__panels {
  position: relative;
  min-height: 320px;
}
.programs__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.programs__panel[hidden] { display: none; }

.programs__photo {
  aspect-ratio: 4/5;
  border-radius: 50% 40% 55% 45% / 55% 50% 50% 45%;
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-paper);
}
.programs__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs__panel-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--color-primary-deep);
  position: relative;
  padding-bottom: 1rem;
}
.programs__panel-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent-coral);
  border-radius: 2px;
}
.programs__panel-text p {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  margin-bottom: 1.5rem;
  line-height: var(--lh-relax);
}
.programs__points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.programs__points li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-primary-deep);
  font-weight: 500;
}
.programs__points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent-coral);
  font-weight: 700;
}

/* ============================================
   10. EXTRAS
   ============================================ */
.extras__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.extras__group-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 1;
  font-size: 1.4rem;
  color: var(--color-primary-deep);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}
.extras__group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--color-accent-sun);
  border-radius: 3px;
  opacity: 0.35;
}

.extras__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.extras__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary-deep);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  cursor: default;
}
@media (hover: hover) {
  .extras__chip:hover {
    background: var(--color-primary);
    color: var(--color-surface-cream);
    border-color: var(--color-primary);
    transform: translateY(-2px);
  }
}

/* ============================================
   11. TEAM
   ============================================ */
.team__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.team__card {
  background: var(--color-surface-paper);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--color-line-soft);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .team__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.team__photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-cream);
  box-shadow: 0 0 0 4px var(--color-surface-paper), 0 0 0 6px var(--color-accent-sun);
  transition: transform var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .team__card:hover .team__photo-wrap { transform: rotate(-3deg) scale(1.04); }
}
.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team__photo.is-broken { display: none; }
.team__photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-surface-paper);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-sun));
}
.team__photo-wrap:has(.team__photo.is-broken) .team__photo-placeholder { display: flex; }
/* Fallback for browsers without :has() */
@supports not selector(:has(*)) {
  .team__photo-placeholder { display: flex; }
  .team__photo:not(.is-broken) + .team__photo-placeholder { display: none; }
}

.team__photo-note {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-ink-mute);
  text-transform: uppercase;
  white-space: nowrap;
}

.team__name {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
  color: var(--color-primary-deep);
}
.team__role {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}

.team__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-coral);
  padding: 0.5rem 0;
  transition: color var(--t-fast) var(--ease-out);
}
.team__toggle:hover { color: var(--color-accent-coral-d); }
.team__toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.team__toggle[aria-expanded="true"] .team__toggle-icon {
  transform: rotate(45deg);
  background: currentColor;
  color: var(--color-surface-paper);
}

.team__bio {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-line);
  text-align: left;
  animation: bioReveal var(--t-slow) var(--ease-out);
}
.team__bio[hidden] { display: none; }
.team__bio p {
  font-size: 0.95rem;
  line-height: var(--lh-relax);
  color: var(--color-ink-soft);
}
@keyframes bioReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   12. REVIEWS
   ============================================ */
.reviews__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.review-card {
  position: relative;
  background: var(--color-surface-cream);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}
.review-card__quote-mark {
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-accent-coral);
  opacity: 0.18;
  font-weight: 700;
}
.review-card__quote {
  flex: 1;
}
.review-card__quote p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18, "SOFT" 50, "WONK" 0;
  font-size: 1.05rem;
  line-height: var(--lh-relax);
  color: var(--color-primary-deep);
  font-weight: 400;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line-soft);
}
.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent-sand);
}
.review-card__name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-deep);
}
.review-card__sub {
  display: block;
  font-size: 0.8rem;
  color: var(--color-ink-mute);
}

/* ============================================
   13. FORM CARDS
   ============================================ */
.form-card {
  background: var(--color-surface-paper);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--color-line-soft);
  box-shadow: var(--shadow-sm);
}
.form-card--accent {
  background: var(--color-surface-cream);
  border: 1px solid var(--color-line);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(245, 181, 68, 0.10), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(231, 111, 81, 0.08), transparent 50%);
}
.form-card--warm {
  background: var(--color-surface-sand);
  color: var(--color-ink);
  border: 1px solid rgba(31, 74, 58, 0.10);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(245, 181, 68, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(31, 74, 58, 0.06), transparent 50%);
}
.form-card--warm .form-card__title { color: var(--color-primary-deep); }
.form-card--warm .form-card__sub { color: var(--color-ink-soft); }

.form-card--spaced { margin-top: 4rem; }

.form-card--ink {
  background: var(--color-surface-ink);
  color: var(--color-surface-cream);
  background-image: radial-gradient(circle at 100% 0%, rgba(245, 181, 68, 0.18), transparent 50%);
}
.form-card--ink .form-card__title { color: var(--color-surface-cream); }
.form-card--ink .form-card__sub { color: rgba(247, 241, 230, 0.7); }

.form-card__head { margin-bottom: 1.5rem; }
.form-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}
.form-card__sub {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: var(--lh-relax);
}

/* ============================================
   14. FORMS
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.form-card--ink .form__field label { color: rgba(247, 241, 230, 0.7); }

.form__input, .form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-surface-paper);
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--color-ink);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.form-card--ink .form__input,
.form-card--ink input[type="text"],
.form-card--ink input[type="tel"],
.form-card--ink input[type="email"],
.form-card--ink textarea {
  background: rgba(247, 241, 230, 0.06);
  border-color: rgba(247, 241, 230, 0.15);
  color: var(--color-surface-cream);
}
.form input[type="text"]:focus, .form input[type="tel"]:focus, .form input[type="email"]:focus, .form textarea:focus {
  outline: none;
  border-color: var(--color-accent-coral);
  background: var(--color-surface-paper);
}
.form-card--ink input:focus {
  background: rgba(247, 241, 230, 0.10);
  border-color: var(--color-accent-sun);
}
.form textarea { min-height: 80px; font-family: var(--font-body); }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  cursor: pointer;
  user-select: none;
}
.form-card--ink .form__check { color: rgba(247, 241, 230, 0.7); }
.form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent-coral);
  cursor: pointer;
}
.form__check a { text-decoration: underline; text-underline-offset: 2px; }

.form__submit { align-self: flex-start; margin-top: 0.5rem; }

.form__success {
  padding: 1.25rem 1.5rem;
  background: rgba(79, 122, 106, 0.12);
  border: 1.5px solid var(--color-primary-soft);
  border-radius: var(--r-md);
  color: var(--color-primary-deep);
  font-size: 0.95rem;
  line-height: var(--lh-relax);
  margin-top: 0.5rem;
}
.form-card--ink .form__success {
  background: rgba(245, 181, 68, 0.12);
  border-color: var(--color-accent-sun);
  color: var(--color-accent-sun);
}
.form__success strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }

.form.is-submitted .form__row,
.form.is-submitted .form__field,
.form.is-submitted .form__check,
.form.is-submitted .form__submit { display: none; }
.form.is-submitted .form__success { display: block; }

/* ============================================
   15. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--lg { padding: 1.125rem 2rem; font-size: 1rem; }
.btn--md { padding: 0.95rem 1.5rem; font-size: 0.95rem; }
.btn--sm { padding: 0.625rem 1rem; font-size: 0.85rem; }

.btn--coral {
  background: var(--color-accent-coral);
  color: var(--color-surface-paper);
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.32);
}
.btn--coral:hover {
  background: var(--color-accent-coral-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(231, 111, 81, 0.40);
}
.btn--coral:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary-deep);
  border: 1.5px solid var(--color-primary-deep);
}
.btn--ghost:hover {
  background: var(--color-primary-deep);
  color: var(--color-surface-cream);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface-paper);
}
.btn--primary:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   16. GALLERY — horizontal strip
   ============================================ */
.gallery .section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 2.5rem;
}
.gallery .section__header--row > div { max-width: 720px; }

.gallery__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary-deep);
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
  transition: color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.gallery__more:hover { color: var(--color-accent-coral); }
.gallery__more-arrow {
  display: inline-block;
  transition: transform var(--t-med) var(--ease-out);
}
.gallery__more:hover .gallery__more-arrow { transform: translateX(6px); }

.gallery__strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery__strip-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-surface-paper);
}
.gallery__strip-item:nth-child(even) {
  margin-top: 1.5rem;
  aspect-ratio: 3/4;
}
.gallery__strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery__strip-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 44, 32, 0.5));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .gallery__strip-item:hover img { transform: scale(1.06); }
  .gallery__strip-item:hover::after { opacity: 1; }
}

/* ============================================
   17. 3D TOUR
   ============================================ */
.tour__frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--color-surface-paper);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line-soft);
}
.tour__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   18. CONTACTS
   ============================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contacts__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contacts__item { display: flex; flex-direction: column; gap: 0.4rem; }
.contacts__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.contacts__value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 1;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary-deep);
  line-height: 1.3;
}
.contacts__value--lg { font-size: 1.5rem; }
.contacts__value:hover { color: var(--color-accent-coral); }

.contacts__map {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  background: var(--color-surface-paper);
}
.contacts__map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   19. FOOTER
   ============================================ */
.site-footer {
  background: var(--color-primary-deep);
  color: var(--color-surface-cream);
  padding-block: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 181, 68, 0.10), transparent 50%);
  pointer-events: none;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.site-footer__logo img {
  width: 140px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.site-footer__name {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "WONK" 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-surface-cream);
  line-height: 1.1;
}
.site-footer__sub {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.6);
}
.site-footer__copy {
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.6);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.site-footer__nav a {
  color: rgba(247, 241, 230, 0.85);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease-out);
}
.site-footer__nav a:hover { color: var(--color-accent-sun); }

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__legal a {
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__legal a:hover { color: var(--color-accent-sun); }

/* ============================================
   20. ANIMATIONS & REVEAL
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}
@keyframes clipReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   20.5. HERO V1 (variant of #hero)
   ============================================ */
.hero-v1 {
  position: relative;
  min-height: 100vh;
  padding: clamp(5.5rem, 7.5vw, 7rem) 0 clamp(2rem, 3vw, 3rem);
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.55) 0%, rgba(247, 241, 230, 0.85) 60%, var(--color-surface-cream) 100%),
    url("foto/2026-06-09_18-11-33.png") center / cover no-repeat;
  overflow: hidden;
}
.hero-v1__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-v1__container { grid-template-columns: 1fr; }
}

.hero-v1__left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: -0.75rem; /* подбираем выравнивание плашки "Лето 2026" с плашкой "Экскурсия бесплатно" */
  align-self: start;
}
.hero-v1__card { align-self: start; }

/* Горизонтальное подменю внутри hero (как было в старой версии) */
.hero-v1__nav-wrap {
  max-width: var(--container-max);
  margin: -0.65rem auto 0.5rem; /* чуть-чуть поднимаем подменю */
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.5rem;
}
@media (max-width: 720px) {
  .hero-v1__nav-wrap { justify-content: center; text-align: center; }
  .hero-v1__nav-wrap .hero__nav ul { gap: 0.4rem 1rem; }
}

.hero-v1__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: var(--color-surface-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary-deep);
  box-shadow: var(--shadow-sm);
}
.hero-v1__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent-coral);
  box-shadow: 0 0 0 4px rgba(231, 111, 81, 0.18);
}

.hero-v1__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--color-primary-deep);
  letter-spacing: -0.01em;
  max-width: 14ch;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero-v1__title em {
  color: var(--color-primary);
  font-style: italic;
}
.hero-v1__lead {
  font-size: var(--fs-lead);
  color: var(--color-ink-soft);
  max-width: 52ch;
  line-height: var(--lh-relax);
}

.hero-v1__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 560px;
}
.hero-v1__benefit {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary-deep);
  backdrop-filter: blur(4px);
}
.hero-v1__benefit-ico {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: var(--color-accent-sun);
}
.hero-v1__benefit-ico svg { width: 20px; height: 20px; }

.hero-v1__card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-v1__card { justify-self: stretch; max-width: none; }
}
.hero-v1__card-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-coral);
  margin-bottom: 0.6rem;
}
.hero-v1__card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--color-primary-deep);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.hero-v1__card-sub {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.hero-v1__form { display: flex; flex-direction: column; gap: 0.85rem; }
.hero-v1__field { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-v1__field label {
  font-size: var(--fs-sm); font-weight: 500; color: var(--color-ink);
}
.hero-v1__field input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-surface-paper);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.hero-v1__field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.hero-v1__check {
  display: flex; gap: 0.4rem; align-items: flex-start;
  font-size: 0.8125rem; color: var(--color-ink-soft);
  line-height: 1.4;
}
.hero-v1__check input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
}
.hero-v1__check span { flex: 1 1 auto; }
.hero-v1__check a { color: var(--color-primary); }
.hero-v1__submit {
  margin-top: 0.25rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-accent-coral);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.hero-v1__submit:hover { background: var(--color-accent-coral-d); }
.hero-v1__submit:active { transform: translateY(1px); }
.hero-v1__note {
  text-align: center; font-size: 0.8125rem; color: var(--color-ink-mute);
  margin-top: 0.25rem;
}
.hero-v1__note strong { color: var(--color-primary); }

.hero-v1__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem;
  padding-top: 1rem;
  margin-top: 1.25rem;
  border-top: 1px dashed var(--color-line);
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
}
.hero-v1__meta b { color: var(--color-primary-deep); font-weight: 600; }

.hero-v1__quotes {
  max-width: var(--container-max);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .hero-v1__quotes { grid-template-columns: 1fr; }
}
.hero-v1__quote {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink);
  backdrop-filter: blur(4px);
}
.hero-v1__quote strong { color: var(--color-primary); display: block; margin-top: 0.4rem; }

/* Page load — initial state on hero */
.hero__title, .hero__eyebrow, .hero__lead, .hero__bullets, .hero__cta, .hero__media, .site-header__inner {
  animation: fadeUp 0.9s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.hero__media {
  animation: scaleIn 1.1s var(--ease-out) 0.4s both;
}

/* ============================================
   21. CUSTOM CURSOR
   ============================================ */
.cursor, .cursor-follower {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  display: none;
}
.cursor {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  transition: width var(--t-fast) var(--ease-out), height var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  transform: translate(-50%, -50%);
  transition: width var(--t-med) var(--ease-out), height var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
body.has-custom-cursor .cursor,
body.has-custom-cursor .cursor-follower { display: block; }
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor .gallery__item {
  cursor: none;
}
body.has-custom-cursor .cursor.is-hover {
  width: 0;
  height: 0;
}
body.has-custom-cursor .cursor-follower.is-hover {
  width: 60px;
  height: 60px;
  background: var(--color-accent-sun);
  border-color: var(--color-accent-sun);
  mix-blend-mode: difference;
}

/* ============================================
   22. RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .extras__groups { grid-template-columns: 1fr 1fr; }
  .team__list { grid-template-columns: 1fr 1fr; }
  .reviews__list { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__legal { grid-column: 1 / -1; }
  .gallery__strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .site-header__burger { display: none; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .hero__media { margin: 0; }
  .about__grid { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .programs__panel { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
  .contacts__grid { grid-template-columns: 1.2fr 1fr; }
  .extras__groups { grid-template-columns: repeat(3, 1fr); }
  .reviews__list { grid-template-columns: repeat(3, 1fr); }
  .gallery__strip { grid-template-columns: repeat(6, 1fr); }
  .advantages__layout { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
}

@media (min-width: 1180px) {
  body.has-cursor-potential .cursor,
  body.has-cursor-potential .cursor-follower { display: block; }
  .team__list { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .site-header__burger { display: block; }
  .site-header__center { display: none; }
}

@media (max-width: 639px) {
  .contacts__list { grid-template-columns: 1fr; }
  .site-header__logo img { width: 136px; }
  .site-header__right .site-header__social { display: none; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__nav ul { gap: 0.3rem 0.9rem; }
  .hero__nav a { font-size: 0.82rem; }
}

/* ============================================
   23. LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 44, 32, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: fadeIn 0.3s var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(247, 241, 230, 0.12);
  color: var(--color-surface-cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--color-accent-coral); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(4px); }

/* ============================================
   24. ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 3px solid var(--color-accent-sun);
  outline-offset: 4px;
  border-radius: 4px;
}
.btn:focus-visible, .form input:focus-visible, .form textarea:focus-visible {
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor, .cursor-follower { display: none !important; }
  body.has-custom-cursor { cursor: auto; }
}
