/* ====== Базовые сбросы и изоляция ====== */
html, body { 
  margin: 0 !important; 
  padding: 0 !important; 
  overflow-x: clip; 
}

.cf-page { 
  overflow-x: clip; 
  margin: 0; 
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;

  /* Дизайн-токены */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text:        #333;
  --text-muted:  #666;
  --bg:          #ffffff;
  --accent:      #4caf50;
  --accent-soft: #e8f5e9;
  --accent-bg:   #d3f0d0;
  --footer-bg:   #000000;
  --footer-fg:   #ffffff;

  --radius-card:   10px;
  --radius-header: 0 0 20px 20px;
  --radius-btn:    5px;
  --radius-badge:  4px;

  --shadow-card:   0 5px 15px rgba(0,0,0,.10);
  --shadow-header: 0 2px 10px rgba(0,0,0,.08);

  --container: none;
  --gutter: 100px;
}

.cf-page *, .cf-page *::before, .cf-page *::after { box-sizing: border-box; }
.cf-page a { color: inherit; text-decoration: none; }
.cf-page img { display: block; max-width: 100%; }
.cf-page h1, .cf-page h2, .cf-page h3, .cf-page h4, .cf-page p { margin: 0; }

.cf-page .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ====== Header ====== */
.cf-page .header {
  background: #fff;
  border-radius: var(--radius-header);
  box-shadow: var(--shadow-header);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.cf-page .header-content {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 64px;
}
.cf-page .logo {
  display: flex; align-items: center; gap: 15px;
  color: var(--text);
}
.cf-page .logo-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: url("../img/kids-adults/logo-site.webp") center/cover no-repeat;
  flex-shrink: 0;
}
.cf-page .logo-text {
  font-size: 18px; font-weight: 600; line-height: 1.6;
  color: var(--text);
  white-space: nowrap;
}
.cf-page .header-nav .menu {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.cf-page .nav-dropdown { position: relative; }
.cf-page .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 500; color: var(--text);
  cursor: pointer;
}
.cf-page .nav-link:hover { color: var(--accent); }
.cf-page .dropdown-arrow {
  display: inline-block;
  width: 12px; height: 7px;
  background: url("../img/kids-adults/icon-faq-arrow.svg") center/contain no-repeat;
}
.cf-page .dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,.10);
  padding: 12px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.cf-page .nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.cf-page .dropdown-item {
  display: block; padding: 10px 22px;
  font-size: 14px; color: var(--text);
}
.cf-page .dropdown-item:hover { background: var(--accent-soft); color: var(--accent); }
.cf-page .mobile-menu-toggle { display: none; }

/* ====== Kids-hero ====== */
.cf-page .kids-hero {
  position: relative;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("../img/kids-adults/wall-bg.webp") center/cover no-repeat;
  border-bottom: 3px solid var(--accent);
}
.cf-page .kids-hero-title {
  font-size: 40px; font-weight: 700; line-height: 64px;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}
.cf-page .breadcrumb {
  position: absolute; bottom: 0; left: 50%; 
  transform: translateX(-50%);
  width: 100%; max-width: 1600px;
  display: flex; align-items: stretch;
  color: #fff;
}
.cf-page .breadcrumb-home {
  background: var(--accent);
  padding: 15px 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-page .breadcrumb-icon {
  display: block;
  width: 20px; height: 20px;
  background: url("../img/kids-adults/icon-home.svg") center/contain no-repeat;
}
.cf-page .breadcrumb-content {
  flex: 1;
  background: rgba(0,0,0,.8);
  padding: 15px 20px;
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; line-height: 1.6;
}
.cf-page .breadcrumb-text { font-size: 16px; font-weight: 500; color: #fff; }
.cf-page .breadcrumb-sep {
  display: inline-block;
  width: 20px; height: 20px;
  margin: 0 8px;
  background: url("../assets/icon-bcarrow.svg") center/contain no-repeat;
  vertical-align: middle;
}

/* ====== Sections & Layout ====== */
.cf-page section { padding: 60px 0; }
.cf-page .section-title {
  font-size: 28px; font-weight: 700; line-height: 44.8px;
  color: #111827;
  padding: 0 0 14px; margin: 0 0 12px;
  border-bottom: 1px solid #D1D5DB;
}
.cf-page .kids-section { padding: 40px 0 80px; }
.cf-page .kids-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}
.cf-page .side-menu {
  background: #fff;
  border-width: 3px 1px 1px;
  border-style: solid;
  border-color: #4CAF50 #E5E7EB #E5E7EB;
  position: sticky;
  top: 100px;
}
.cf-page .side-item {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: #1F2937;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
}
.cf-page .side-item.active { font-weight: 700; }
.cf-page .kids-content { display: flex; flex-direction: column; gap: 60px; min-width: 0; }
.cf-page .kids-content > section { padding: 0; }
.cf-page .kids-content .container { padding: 0; max-width: none; }

/* ====== S1 — Hero ====== */
.cf-page .s1 { padding-top: 0; }
.cf-page .s1-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.cf-page .badge {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-badge);
  padding: 6px 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
}
.cf-page .badge--soft { background: var(--accent-soft); }
.cf-page .s1-title {
  font-size: 36px; font-weight: 700; line-height: 1.2; color: #111827;
  margin: 16px 0;
}
.cf-page .s1-sub {
  font-size: 16px; line-height: 1.6; color: #374151;
  margin-bottom: 28px;
  max-width: 560px;
}
.cf-page .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 16px; font-weight: 500;
  padding: 12px 24px;
  border: 0; border-radius: var(--radius-btn);
  cursor: pointer; text-decoration: none;
  transition: background .15s ease;
}
.cf-page .btn:hover { background: #43a047; }
.cf-page .btn--lg { padding: 14px 32px; font-size: 16px; }

.cf-page .s1-image {
  border-radius: 12px;
  background: #E5E7EB url('../img/kids-adults/hero-classroom.webp') no-repeat center center / cover padding-box !important;
  width: 100%;
  min-height: 280px;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.cf-page .s1-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 30px;
}
.cf-page .feature {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-card);
  padding: 28px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cf-page .feature--accent {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.cf-page .feature h3 {
  font-size: 18px; font-weight: 700; line-height: 1.35;
  color: #111827; margin-bottom: 10px;
  transition: color .25s ease;
}
.cf-page .feature--accent h3 { color: #fff; }
.cf-page .feature p {
  font-size: 14px; line-height: 1.6; color: #374151;
  transition: color .25s ease;
}
.cf-page .feature--accent p { color: rgba(255,255,255,.92); }

@media (hover: hover) {
  .cf-page .feature:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(76,175,80,.25);
  }
  .cf-page .feature:hover h3 { color: #fff; }
  .cf-page .feature:hover p { color: rgba(255,255,255,.92); }
}

/* ====== S1.5 — Описание YCT ====== */
.cf-page .info-block {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 32px 36px;
}
.cf-page .info-block h3 { font-size: 22px; font-weight: 700; line-height: 1.35; color: #111827; margin-bottom: 16px; }
.cf-page .info-block p { font-size: 16px; line-height: 1.6; color: #374151; margin-bottom: 14px; }
.cf-page .info-block p:last-child { margin-bottom: 0; }

/* ====== S2 — Программа обучения ====== */
.cf-page .s2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cf-page .program-card { border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow-card); }
.cf-page .program-card.is-accent { background: var(--accent); color: #fff; box-shadow: none; }
.cf-page .program-card.is-light { background: #fff; color: var(--text); }
.cf-page .program-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.cf-page .program-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cf-page .program-list li { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; }
.cf-page .num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}

/* ====== S3 — Расписание и цены ====== */
.cf-page .s3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cf-page .price-card {
  position: relative; background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04); padding: 28px 28px 24px;
  display: flex; flex-direction: column; overflow: hidden;
}
.cf-page .price-card .badge { align-self: flex-start; padding: 12px 16px; font-weight: 600; border-radius: 4px; text-align: center; justify-content: center; line-height: 1.4; }
.cf-page .price-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 16px 0 18px; color: #111827; }
.cf-page .price-divider { height: 1px; background: #F3F4F6; margin: 4px 0 16px; }
.cf-page .price-meta { display: grid; gap: 12px; margin-bottom: 20px; padding: 0; font-size: 14px; color: #374151; list-style: none; }
.cf-page .price-meta li { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.cf-page .price-meta .price-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cf-page .price-meta .price-icon svg { width: 18px; height: 18px; }
.cf-page .price-block { margin-top: auto; padding-top: 16px; border-top: 1px solid #F3F4F6; }
.cf-page .price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-bottom: 16px; }
.cf-page .price-amount .price-from { font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.cf-page .price-amount .price-value { font-size: 24px; font-weight: 800; color: #111827; letter-spacing: -.01em; white-space: nowrap; }
.cf-page .price-amount .price-unit { font-size: 13px; color: var(--text-muted); white-space: nowrap; flex-basis: 100%; }
.cf-page .price-card .btn { width: 100%; padding: 14px 20px; font-weight: 600; border-radius: 10px; }

/* ====== S4 — Проведение занятий ====== */
.cf-page .s4-list { display: flex; flex-direction: column; gap: 30px; }
.cf-page .club-block { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: var(--radius-card); padding: 30px; display: flex; align-items: center; gap: 60px; }
.cf-page .club-block__left { flex: 1; min-width: 0; }
.cf-page .club-block__left h3 { font-size: 24px; font-weight: 700; line-height: 1.3; color: #111827; margin-bottom: 10px; }
.cf-page .club-block__left p { font-size: 14px; font-weight: 400; line-height: 1.6; color: #374151; }
.cf-page .club-block__right { flex-shrink: 0; width: 300px; height: 200px; border-radius: 12px; overflow: hidden; }
.cf-page .club-block__right img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ====== S5 — Отзывы ====== */
.cf-page .s5-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cf-page .review-card { background: #fff; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.cf-page .review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cf-page .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.cf-page .review-name { font-weight: 600; font-size: 16px; color: var(--text); line-height: 1.2; }
.cf-page .review-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cf-page .stars { color: #fbc02d; letter-spacing: 2px; font-size: 18px; margin-bottom: 12px; }
.cf-page .review-text { font-size: 14px; color: var(--text); line-height: 1.55; }

/* ====== S6 — Запись на пробное ====== */
.cf-page .s6-card { background: var(--accent-bg); border-radius: var(--radius-card); padding: 50px 60px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: stretch; }
.cf-page .s6-card h2 { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; color: var(--text); }
.cf-page .s6-list { display: grid; gap: 12px; margin-bottom: 32px; list-style: none; padding: 0; }
.cf-page .s6-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--text); }
.cf-page .check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; font-weight: 700; }

.cf-page .s6-image {
  border-radius: var(--radius-card);
  aspect-ratio: 1 / 1;
  background: var(--accent-bg) no-repeat center / cover padding-box;
  align-self: center;
  width: 100%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* ====== S7 — FAQ ====== */
.cf-page .faq { display: grid; gap: 12px; }
.cf-page .faq-item { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.cf-page .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 16px; font-weight: 500; color: var(--text); cursor: pointer; user-select: none; }
.cf-page .faq-q::after { content: "▾"; font-size: 14px; color: var(--accent); transition: transform .2s ease; }
.cf-page .faq-item.is-open .faq-q::after { transform: rotate(180deg); }
.cf-page .faq-a { padding: 0 24px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.55; display: none; }
.cf-page .faq-item.is-open .faq-a { display: block; }

/* ====== Slider архитектура ====== */
.cf-page .slider { position: relative; }
.cf-page .slider-viewport { overflow-x: clip; overflow-y: visible; padding: 8px 24px; margin: -8px -24px; }
.cf-page .slider-track { display: flex; transition: transform .4s cubic-bezier(.22, .61, .36, 1); will-change: transform; margin: 0 -12px; }
.cf-page .slider-slide { flex: 0 0 100%; min-width: 0; padding: 0 12px; }
.cf-page .slider--multi .slider-slide { flex-basis: 33.3333%; }

@media (max-width: 900px) {
  .cf-page .slider--multi .slider-slide { flex-basis: 100%; }
  .cf-page .slider[data-autoplay] .slider-viewport { overflow: hidden; touch-action: pan-y; }
  .cf-page .slider[data-autoplay] .slider-track { width: max-content; transition: none !important; will-change: transform; }
  .cf-page .slider[data-autoplay] .slider-slide { flex: 0 0 85vw !important; }
  .cf-page .slider[data-autoplay] .slider-controls { display: none !important; }
}

.cf-page .slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.cf-page .slider-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #E5E7EB; color: #111827;
  display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease; flex-shrink: 0;
}
.cf-page .slider-arrow svg { width: 18px; height: 18px; }
.cf-page .slider-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.cf-page .slider-arrow:disabled { opacity: .35; cursor: default; }
.cf-page .slider-dots { display: inline-flex; gap: 8px; align-items: center; }
.cf-page .slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #D1D5DB; cursor: pointer; transition: background .2s ease, width .2s ease, border-radius .2s ease; }
.cf-page .slider-dot.is-active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ====== Footer ====== */
.cf-page .footer { background: var(--footer-bg); color: var(--footer-fg); padding: 60px 0 40px; }
.cf-page .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.cf-page .footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; opacity: .9; }
.cf-page .footer p, .cf-page .footer a { font-size: 14px; line-height: 1.7; opacity: .85; }
.cf-page .footer-bottom { margin-top: 40px; opacity: .55; font-size: 12px; }

/* ====== Адаптив (Планшеты) ====== */
@media (max-width: 1100px) {
  .cf-page { --gutter: 40px; }
  .cf-page .kids-layout { grid-template-columns: 1fr; gap: 24px; }
  .cf-page .side-menu { position: static; }
  .cf-page .header-content { padding: 10px 24px; }
  .cf-page .header-nav { display: none; }
  .cf-page .mobile-menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .cf-page .mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }
}

/* ====== Адаптив (Мобильные) ====== */
@media (max-width: 900px) {
  .cf-page { --gutter: 20px; }
  .cf-page .header-content { padding: 10px 16px; }
  .cf-page .logo-text { font-size: 16px; }
  .cf-page .kids-hero { min-height: 280px; }
  .cf-page .kids-hero-title { font-size: 26px; line-height: 1.3; }
  .cf-page .breadcrumb-content { font-size: 14px; padding: 12px 16px; }
  .cf-page .breadcrumb-home { padding: 12px 16px; }
  .cf-page .breadcrumb-text { font-size: 13px;}
  .cf-page .s1-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .cf-page .s1-image { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .cf-page .s6-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .cf-page .s2-grid, .cf-page .s3-grid, .cf-page .s1-features, .cf-page .footer-grid { grid-template-columns: 1fr; }
  .cf-page .section-title { font-size: 22px; line-height: 1.4; }
  .cf-page .s1-title { font-size: 26px; }
  .cf-page .program-card { padding: 28px 20px; }
  .cf-page .info-block { padding: 24px 20px; }
  .cf-page .info-block h3 { font-size: 20px; }
  .cf-page .club-block { flex-direction: column; gap: 20px; align-items: stretch; }
  .cf-page .club-block__right { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

@media (max-width: 480px) {
  .cf-page { --gutter: 14px; }
  .cf-page .kids-hero-title { font-size: 22px; padding: 0 16px; }
  .cf-page .s1-title { font-size: 24px; }
}