/* KidsCan — demo site. Brand: Instagram (@kidscan.lviv) + interior (green carpet, apple-tree mural). */

/* Palette E (default): white background + fresh green. "--green*" = the primary brand color;
   other palettes override the same tokens under [data-theme] at the end of this file (?theme=blue|terracotta|plum|cream). */
:root {
  --cream: #FFFFFF;
  --paper: #F6FAF3;
  --ink: #2F2E2A;
  --muted: #5E5C52;
  --muted-2: #4F4E45;
  --line: #E3EDDC;
  --line-2: #D3E3C9;
  --green: #1F8047;
  --green-dark: #155A31;
  --green-deep: #186A3A;
  --brand-green: #4FA25C;
  --lime: #E9F7A8;
  --apple: #B8CE4A;
  --space-bg: #F1F7EA;
  --header-bg: rgba(255, 255, 255, .94);
  --header-line: rgba(20, 30, 40, .07);
  --yellow: #F3BC14;
  --yellow-soft: #FCEBC0;
  --yellow-text: #6B5310;
  --pink: #D679AA;
  --pink-soft: #F8DCEA;
  --pink-text: #A83F72;
  --blue: #426DAF;
  --blue-soft: #DCE9F6;
  --blue-text: #2E568E;
  --green-soft: #E1F1DE;
  --green-text: #1B6E3C;

  --font: 'Nunito', 'Trebuchet MS', ui-rounded, system-ui, sans-serif;
  --script: 'Pangolin', 'Comic Sans MS', cursive;
  --section-y: clamp(56px, 7.5vw, 112px);
  --header-h: 72px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Icons ---------- */
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { width: 22px; height: 22px; }
.c-green { color: var(--green-text); }
.c-pink { color: var(--pink-text); }
.c-blue { color: var(--blue-text); }
.c-yellow { color: var(--yellow-text); }
.c-lime { color: var(--lime); }

.bg-yellow { background: var(--yellow-soft); }
.bg-green { background: var(--green-soft); }
.bg-pink { background: var(--pink-soft); }
.bg-blue { background: var(--blue-soft); }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 800 17px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn .ico { stroke-width: 2.4; }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-dark); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 0 var(--green-dark); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { color: var(--ink); background: rgba(47, 46, 42, .06); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1.3;
}
.chip-pink { background: var(--pink-soft); color: var(--pink-text); }
.chip-yellow { background: var(--yellow-soft); color: var(--yellow-text); }
.chip-blue { background: var(--blue-soft); color: var(--blue-text); }
.chip-green { background: var(--green-soft); color: var(--green-text); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.tag {
  display: inline-block; padding: 7px 16px; border-radius: 16px;
  font-family: var(--script); font-size: 20px; line-height: 1.3;
}
.tag-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 rgba(47, 46, 42, .14); }
.tag-pink { background: var(--pink-soft); color: var(--pink-text); }
.tag-green { background: var(--green); color: var(--lime); transform: rotate(-2deg); }

.script { display: block; font-family: var(--script); font-size: clamp(20px, 1.2vw + 14px, 24px); line-height: 1.3; }
.script.c-green { color: var(--green-text); }

.hl { display: inline-block; padding: 0 .22em .08em; border-radius: .3em; }
.hl-green { background: var(--green); color: var(--lime); transform: rotate(-2deg); }
.hl-yellow { background: var(--yellow); color: var(--ink); transform: rotate(1.5deg); }

.sticker { position: absolute; pointer-events: none; }
.deco-branch { position: absolute; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-line);
}
.header-in { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { width: auto; height: 42px; }

/* Mobile / tablet menu: full-height sheet under the header, links slide in one by one. */
.nav { display: flex; }
.nav-links { display: flex; flex-direction: column; }
@media (max-width: 1099.98px) {
  .nav {
    position: absolute; top: 100%; left: -20px; right: -20px;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--cream);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .22s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links, .nav-extra, .nav-art { width: 100%; max-width: 560px; margin-inline: auto; }
  .nav-links a {
    --d: calc(var(--i, 0) * 45ms + 70ms);
    display: flex; align-items: center; gap: 14px;
    min-height: 66px; border-bottom: 1.5px solid var(--line);
    color: var(--ink); text-decoration: none;
    font-size: clamp(24px, 6.4vw, 30px); font-weight: 900; letter-spacing: -.3px;
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s ease var(--d), transform .5s cubic-bezier(.2, .8, .2, 1) var(--d), color .15s ease;
  }
  .nav-links a::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--green)); }
  .nav-links a:nth-child(1) { --dot: #50A357; }
  .nav-links a:nth-child(2) { --dot: #D679AA; }
  .nav-links a:nth-child(3) { --dot: #E8BE43; }
  .nav-links a:nth-child(4) { --dot: #426DAF; }
  .nav-links a:nth-child(5) { --dot: #CF3B3E; }
  .nav-links a:nth-child(6) { --dot: #50A357; }
  .nav-links a::after {
    content: ""; flex-shrink: 0; margin-left: auto;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--paper) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F2E2A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-links a:hover, .nav-links a:focus-visible { color: var(--green); }
  .nav-links a:hover::after, .nav-links a:focus-visible::after { transform: translateX(4px); background-color: var(--green-soft); }
  .nav.is-open .nav-links a { opacity: 1; transform: none; }

  .nav-extra {
    display: flex; flex-direction: column; gap: 18px; margin-top: 26px;
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s ease .36s, transform .5s cubic-bezier(.2, .8, .2, 1) .36s;
  }
  .nav.is-open .nav-extra { opacity: 1; transform: none; }
  .nav-extra .btn { width: 100%; }
  .nav-contacts { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--muted); }
  .nav-contacts a { color: var(--ink); font-size: 20px; font-weight: 900; text-decoration: none; }
  .nav-art {
    display: block; height: 96px; margin-top: auto; padding-top: 24px;
    opacity: 0; transform: translateY(20px) scale(.9);
    transition: opacity .4s ease .45s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .45s;
  }
  .nav.is-open .nav-art { opacity: 1; transform: none; }

  html.menu-open { overflow: hidden; }
  html.menu-open .site-header { background: var(--cream); border-bottom-color: transparent; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 800;
}
.header-phone:hover { color: #fff; background: var(--green-dark); }
.header-phone span { display: none; white-space: nowrap; }
.header-cta { display: none; white-space: nowrap; }
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--cream); }
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5.75px; }
.burger span:nth-child(3) { top: 11.5px; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 12px 0 var(--section-y); overflow-x: clip; }
.hero-in { display: grid; grid-template-areas: "copy" "visual" "facts"; gap: 32px; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 2.6vw + 22px, 60px); letter-spacing: -.5px; }
.lead { margin-top: 18px; font-size: clamp(17px, .35vw + 15.6px, 20px); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; width: 100%; }

.hero-visual { grid-area: visual; position: relative; width: min(100%, 560px); aspect-ratio: 560 / 650; justify-self: center; }
.shape { position: absolute; overflow: hidden; clip-path: url(#clip-flower); -webkit-clip-path: url(#clip-flower); }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.shape-shadow { position: absolute; background: var(--brand-green); clip-path: url(#clip-flower); -webkit-clip-path: url(#clip-flower); }
.hero-visual .shape { inset: 0 4% 4.6% 0; }
.hero-visual .shape img { object-position: 50% 58%; }
.hero-visual .shape-shadow { inset: 4.3% 0 0 4%; }
.hero-branch { width: 58%; aspect-ratio: 420 / 300; right: -14%; top: -9%; }
.hero-mon { width: 24%; aspect-ratio: 120 / 130; left: -4%; bottom: 3%; }
.hero-tag { position: absolute; right: -2%; bottom: 6%; font-size: clamp(20px, 1vw + 14px, 27px); transform: rotate(-4deg); }

.facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 20px; background: var(--paper); }
.fact-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.fact-txt { display: flex; flex-direction: column; }
.fact-txt strong { font-size: 16px; font-weight: 900; line-height: 1.25; }
.fact-txt small { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-paper { background: var(--paper); }
.section h2 { font-size: clamp(32px, 1.7vw + 26px, 50px); letter-spacing: -.5px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: clamp(28px, 3.5vw, 52px); }
.section-head > p { font-size: clamp(16px, .25vw + 15px, 19px); color: var(--muted); max-width: 34em; }
.section-head .script + h2 { margin-top: -4px; }
.section-head.narrow { max-width: 720px; }

/* Why */
.why-grid { display: grid; gap: 12px; }
.why-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 26px; background: var(--cream); }
.bubble { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; }
.bubble-art { width: 80%; height: 80%; }
.why-txt { display: flex; flex-direction: column; gap: 6px; }
.why-card h3 { font-size: clamp(20px, .4vw + 18px, 24px); line-height: 1.2; }
.why-card p { font-size: 16px; color: var(--muted); }

/* Quote */
.section-green { background: var(--green); color: var(--cream); overflow-x: clip; }
.quote-in { display: grid; gap: 32px; align-items: center; }
.big-quote { margin: 10px 0 0; font-family: var(--script); font-size: clamp(36px, 2vw + 28px, 56px); line-height: 1.12; color: #fff; }
.quote-lead { margin-top: 18px; font-size: clamp(18px, .3vw + 17px, 21px); }
.section-green hr { height: 2px; margin: 26px 0 0; border: 0; background: rgba(255, 255, 255, .25); }
.quote-sub { margin-top: 22px; font-size: clamp(16px, .2vw + 15.5px, 18px); color: rgba(255, 255, 255, .86); }
.quote-visual { position: relative; width: min(100%, 470px); aspect-ratio: 470 / 580; justify-self: center; }
.blob-img { position: absolute; inset: 0 2% 2% 0; overflow: hidden; border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%; background: var(--brand-green); }
.blob-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.quote-tag { position: absolute; left: -2%; top: 9%; transform: rotate(-6deg); font-size: clamp(20px, .6vw + 17px, 24px); }
.quote-mon { width: 26%; aspect-ratio: 120 / 130; right: -5%; bottom: -3%; }

/* Groups */
.groups-grid { display: grid; gap: 20px; }
.group-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.group-media { position: relative; }
.group-media img { width: 100%; height: clamp(230px, 24vw, 360px); object-fit: cover; object-position: 50% 42%; }
.group-mon { width: clamp(80px, 7vw, 112px); aspect-ratio: 120 / 130; right: 20px; bottom: -44px; }
.group-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 38px) clamp(22px, 2.8vw, 40px) clamp(26px, 2.8vw, 40px); }
.group-body h3 { margin-top: 12px; font-size: clamp(32px, .6vw + 29px, 40px); }
.group-lead { margin-top: 8px; color: var(--muted); font-size: clamp(16px, .2vw + 15.5px, 18px); }
.dots { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dots li { position: relative; padding-left: 22px; font-size: 16px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; }
.dots-yellow li::before { background: #E8BE43; }
.dots-blue li::before { background: var(--blue); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; text-decoration: none; }
.more-link .ico { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .15s ease; }
.more-link:hover .ico { transform: translateX(3px); }

/* Space / interior */
.section-space { position: relative; background: var(--space-bg); overflow: hidden; }
.section-space .wrap { position: relative; }
.space-branch { width: clamp(220px, 34vw, 480px); aspect-ratio: 420 / 300; right: -40px; top: -20px; }
.section-space .section-head > p { color: var(--muted-2); }
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "room room" "shelves teacher" "feat feat";
}
.gallery > img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.g-room { grid-area: room; aspect-ratio: 350 / 400; object-position: 50% 55%; }
.g-shelves { grid-area: shelves; aspect-ratio: 169 / 220; object-position: 50% 45%; }
.g-teacher { grid-area: teacher; aspect-ratio: 169 / 220; object-position: 55% 40%; }
.g-feat { grid-area: feat; padding: 24px; border-radius: 24px; background: var(--green); color: var(--cream); }
.g-feat h3 { font-size: 21px; color: #fff; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 16px; line-height: 1.4; }
.checks li { display: flex; gap: 10px; }
.checks .ico { stroke-width: 2.6; color: var(--lime); }
.checks-green .ico { color: var(--green); }

/* Week */
.week-grid { display: grid; gap: 10px; }
.week-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); }
.week-ico { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; }
.week-ico .ico { width: 23px; height: 23px; }
.week-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.week-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.week-title h3 { font-size: 18px; line-height: 1.3; }
.week-day { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.week-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Park */
.park-in { display: grid; gap: 32px; align-items: center; }
.park-visual { position: relative; width: min(100%, 540px); aspect-ratio: 540 / 590; justify-self: center; }
.park-visual .shape, .park-visual .shape-shadow { clip-path: url(#clip-park); -webkit-clip-path: url(#clip-park); }
.park-visual .shape { inset: 2% 3% 3% 3%; }
.park-visual .shape img { object-position: 50% 7%; }
.park-visual .shape-shadow { inset: 4% 3% 1% 3%; }
.shape-shadow.lime { background: var(--apple); }
.park-mon { width: 23%; aspect-ratio: 1; right: -3%; bottom: -2%; }
.park-copy { display: flex; flex-direction: column; align-items: flex-start; }
.park-copy .tag { font-size: clamp(19px, .6vw + 16px, 24px); }
.park-copy h2 { margin-top: 20px; }
.park-lead { margin-top: 16px; font-size: clamp(17px, .3vw + 16px, 20px); color: var(--muted-2); }
.park-sub { margin-top: 12px; font-size: clamp(16px, .2vw + 15.5px, 18px); color: var(--muted); }
.park-copy .chips { margin-top: 22px; }

/* Price */
.status { margin-bottom: 12px; }
.price-grid { display: grid; gap: 12px; }
.price-card { display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 32px); border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.price-card h3 { font-size: clamp(21px, .3vw + 20px, 24px); line-height: 1.2; }
.price-age { margin-top: 6px; font-size: 16px; font-weight: 800; }
.price-age.c-yellow { color: var(--yellow-text); }
.price-rows { margin: 18px 0 0; font-size: 16px; }
.price-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1.5px solid var(--line); }
.price-rows div:last-child { border-bottom: 1.5px solid var(--line); }
.price-rows dt { color: var(--muted); }
.price-rows dd { margin: 0; font-weight: 800; text-align: right; }
.price { margin-top: 20px; font-size: clamp(34px, .6vw + 31px, 40px); font-weight: 900; line-height: 1; }
.price span { font-size: .55em; }
.price-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.price-split { margin: 14px 0 0; padding-top: 10px; border-top: 1.5px dashed var(--line-2); font-size: 15px; }
.price-split div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.price-split dt { color: var(--muted); }
.price-split dd { margin: 0; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-card .btn { margin-top: 20px; }
.price-extra { display: grid; gap: 12px; margin-top: 12px; }
.fee-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px clamp(22px, 2.2vw, 32px); border-radius: 28px; background: var(--yellow-soft); }
.fee-card span { font-weight: 800; color: var(--yellow-text); }
.fee-card strong { font-size: clamp(30px, .8vw + 26px, 40px); font-weight: 900; line-height: 1; white-space: nowrap; }
.fee-card small { font-size: .55em; }
.incl-card { padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.4vw, 36px); border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.incl-card h3 { font-size: clamp(20px, .2vw + 19px, 22px); }
.incl-card .checks { color: var(--muted-2); }

/* Reviews */
.rating { display: flex; align-items: center; gap: 14px; }
.rating-num { font-size: clamp(56px, 1.4vw + 50px, 72px); font-weight: 900; line-height: 1; }
.rating-meta { display: flex; flex-direction: column; gap: 4px; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 21px; height: 21px; }
.rating-meta a { font-weight: 800; font-size: 15px; }
.reviews-grid { display: grid; gap: 12px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: 0; padding: clamp(24px, 2.2vw, 32px); border-radius: 28px; background: var(--cream); }
.review blockquote { margin: 0; font-size: clamp(17px, .1vw + 16.6px, 18px); line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.review strong { font-weight: 900; font-size: 16px; }
.review small { font-size: 14px; color: var(--muted); }
.review .review-src { font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.review .review-src:hover { color: var(--green-text); text-decoration-color: currentColor; }
.avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 900; font-size: 18px; }
.bg-pink-solid { background: var(--pink); }
.bg-blue-solid { background: var(--blue); }
.bg-green-solid { background: var(--green); }

/* Contact */
.contact-card { display: grid; gap: 28px; padding: 28px 20px; border-radius: 32px; background: var(--green); color: var(--cream); }
.contact-info h2 { color: #fff; }
.contact-lead { margin-top: 12px; font-size: clamp(17px, .3vw + 16px, 20px); max-width: 32em; }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-size: clamp(16px, .2vw + 15.5px, 18px); line-height: 1.4; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: #fff; }
.c-ico { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-deep); color: var(--lime); }
.route-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--lime); font-weight: 800; font-size: 17px; text-decoration: none; }
.route-link:hover { color: #fff; }
.route-link .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.section-green :focus-visible, .contact-card :focus-visible, .g-feat :focus-visible { outline-color: var(--lime); }

.tour-form { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 40px) clamp(20px, 2.6vw, 40px); border-radius: 26px; background: var(--cream); color: var(--ink); }
.tour-form h3 { font-size: clamp(23px, .4vw + 21px, 28px); line-height: 1.2; }
.form-lead { margin-top: 6px; font-size: 15px; color: var(--muted); }
.tour-form label { margin-top: 16px; font-size: 14px; font-weight: 800; }
.tour-form input, .tour-form select {
  width: 100%; height: 54px; margin-top: 6px; padding: 0 16px;
  border: 2px solid var(--line-2); border-radius: 14px; background: #fff;
  font: 600 16px var(--font); color: var(--ink);
}
.tour-form input::placeholder { color: #8A887C; }
.tour-form [aria-invalid="true"] { border-color: #C0392B; }
.tour-form input:focus, .tour-form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.tour-form .btn { margin-top: 22px; width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; }
.tour-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tour-form { position: relative; }
.tour-form .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.form-consent { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.form-note.form-note-ok { background: var(--green-soft); color: var(--green-text); }
.form-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); font-size: 15px; font-weight: 700; }
.form-note a { color: var(--green-dark); }

/* Footer */
.site-footer { padding: 40px 0 28px; }
.footer-top { display: grid; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.footer-brand img { align-self: flex-start; width: auto; height: 52px; }
.footer-brand p { font-size: 15px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 48px; font-weight: 700; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; }
.socials a:hover { background: var(--green-dark); color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 16px; border-top: 1.5px solid var(--line-2); font-size: 13px; line-height: 1.5; color: var(--muted); }

section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Single-column grids never grow past the viewport */
.hero-in, .why-grid, .quote-in, .groups-grid, .week-grid, .park-in, .price-grid, .price-extra, .reviews-grid, .contact-card, .footer-top { grid-template-columns: minmax(0, 1fr); }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; width: auto; }
  .facts li { flex-direction: row; align-items: center; gap: 12px; padding: 0; background: none; }
  .fact-ico { width: 46px; height: 46px; }
  .fact-txt strong { font-size: 18px; white-space: nowrap; }
  .fact-txt small { font-size: 14px; }
  .price-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .fee-card { flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
  :root { --header-h: 84px; }
  .logo img { height: 54px; }
  .header-phone { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font-size: 17px; }
  .header-phone:hover { background: none; color: var(--green); }
  .header-phone .ico { color: var(--green); }
  .header-phone span { display: inline; }
  .header-cta { display: inline-flex; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .reviews-grid .review:last-child { grid-column: 1 / -1; }
  .contact-card { padding: clamp(32px, 4.5vw, 64px); }
  .gallery { gap: 20px; }
  .section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .section-head.split > h2, .section-head.split > div { max-width: 640px; }
  .section-head.split > p { max-width: 460px; }
}

/* ---------- ≥ 1100px (desktop) ---------- */
@media (min-width: 1100px) {
  :root { --header-h: 96px; }
  .logo img { height: 58px; }
  .nav-links { flex-direction: row; gap: clamp(18px, 2.2vw, 32px); }
  .nav-links a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; white-space: nowrap; }
  .nav-links a:hover { color: var(--green); }
  .nav-extra, .nav-art { display: none; }
  .menu-toggle { display: none; }
  .header-actions { gap: 16px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; }
  .header-phone:hover { background: var(--green-dark); color: #fff; }
  .header-phone .ico { color: #fff; }
  .header-phone span { display: none; }

  .hero { padding-top: 28px; }
  .hero-in {
    grid-template-columns: minmax(0, 584px) minmax(0, 560px);
    grid-template-areas: "copy visual" "facts visual";
    justify-content: space-between; column-gap: 56px; row-gap: 44px;
    align-items: center;
  }
  .hero-copy { align-self: end; }
  .facts { align-self: start; display: flex; gap: 32px; }
  .hero-visual { justify-self: end; }
  .hero h1 { margin-top: 28px; }
  .lead { margin-top: 26px; }
  .hero-ctas { margin-top: 36px; }

  .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .why-card { flex-direction: column; gap: 24px; padding: 28px; border-radius: 28px; }
  .bubble { width: 120px; height: 120px; }
  .why-txt { gap: 10px; }
  .why-card p { font-size: 17px; }

  .quote-in { grid-template-columns: minmax(0, 640px) minmax(0, 470px); justify-content: space-between; gap: 72px; }
  .quote-visual { justify-self: end; }

  .groups-grid { gap: 32px; }
  .group-mon { right: 26px; bottom: -48px; }
  .dots { gap: 12px; margin-top: 22px; }
  .dots li { font-size: 17px; }

  .gallery {
    grid-template-columns: 572fr 290fr 290fr;
    grid-template-rows: 318px 318px;
    grid-template-areas: "room shelves teacher" "room feat teacher";
    gap: 24px;
  }
  .g-room, .g-shelves, .g-teacher { aspect-ratio: auto; border-radius: 32px; }
  .gallery > img { border-radius: 32px; }
  .g-feat { padding: 30px 28px; border-radius: 32px; }

  .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .week-card { position: relative; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px; }
  .week-ico { width: 52px; height: 52px; border-radius: 16px; }
  .week-ico .ico { width: 26px; height: 26px; }
  .week-day { position: absolute; top: 38px; right: 28px; padding: 6px 12px; border-radius: 999px; background: var(--cream); font-size: 14px; }
  .week-title h3 { font-size: 22px; }
  .week-card p { font-size: 17px; }
  .week-body { gap: 8px; }

  .park-in { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 88px; }

  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .price-extra { grid-template-columns: 384px minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  .incl-card .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 18px; }

  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .reviews-grid .review:last-child { grid-column: auto; }

  .contact-card { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; border-radius: 40px; }
  .contact-list { gap: 14px; margin-top: 34px; }
  .c-ico { width: 44px; height: 44px; }

  .site-footer { padding: 48px 0 36px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 56px; }
  .footer-brand img { height: 64px; }
  .footer-bottom { margin-top: 40px; padding-top: 22px; font-size: 14px; }
}

/* ---------- ≥ 1280px: room for the phone number next to the CTA ---------- */
@media (min-width: 1280px) {
  .header-actions { gap: 22px; }
  .header-phone { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); }
  .header-phone:hover { background: none; color: var(--green); }
  .header-phone .ico { color: var(--green); }
  .header-phone span { display: inline; }
}

/* ---------- Alternative palettes (demo): ?theme=blue | terracotta | plum | cream ---------- */
[data-theme="blue"] {
  --paper: #F4F8FD; --line: #E3EAF4; --line-2: #D3DEEC; --space-bg: #EEF4FB;
  --green: #2F5FA0; --green-dark: #1F4273; --green-deep: #244C80; --brand-green: #426DAF;
  --lime: #FFD95A; --green-soft: #DCE9F6; --green-text: #2E568E; --apple: #BFD5F2;
}
[data-theme="terracotta"] {
  --paper: #FFF6F3; --line: #F5E3DD; --line-2: #EDD2C9; --space-bg: #FFF1EC;
  --green: #B8372F; --green-dark: #86261F; --green-deep: #962C25; --brand-green: #D0524A;
  --lime: #FFE3A3; --green-soft: #FCE3DF; --green-text: #A5322D; --apple: #F5B9AB;
}
[data-theme="plum"] {
  --paper: #FCF6FA; --line: #F1E3EC; --line-2: #E7D0DE; --space-bg: #F9EFF6;
  --green: #8C3A76; --green-dark: #652955; --green-deep: #712F60; --brand-green: #A94D90;
  --lime: #FFD95A; --green-soft: #F8DCEA; --green-text: #8C3A76; --apple: #E6B9D6;
}
[data-theme="cream"] {
  --cream: #F9F5E2; --paper: #FFFDF5; --line: #EDE5C6; --line-2: #E2D9B6; --space-bg: #EEF1D6;
  --green: #237A45; --green-dark: #17532F; --green-deep: #1A5E35; --brand-green: #288D4F;
  --lime: #D5EC7A; --green-soft: #DDF0DC; --green-text: #1F6E3E;
  --header-bg: rgba(249, 245, 226, .94); --header-line: rgba(226, 217, 182, .6);
}
