@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/el-messiri-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "El Messiri";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/el-messiri-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fffdf6;
  --paper-soft: #f4fbff;
  --sand: #fff1c9;
  --sky: #d8eefb;
  --ocean: #157a8c;
  --ocean-deep: #075266;
  --leaf: #11643f;
  --leaf-soft: #dff1dc;
  --sun: #f4b718;
  --sun-soft: #fff4bf;
  --coral: #e9714c;
  --ink: #17343b;
  --muted: #5f7376;
  --line: rgba(20, 92, 101, 0.18);
  --shadow: 0 24px 70px rgba(13, 82, 92, 0.16);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 183, 24, 0.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(21, 122, 140, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--paper-soft) 34%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    "El Messiri",
    ui-rounded,
    "SF Pro Rounded",
    "Avenir Next",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(244, 183, 24, 0.28);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 3px solid rgba(244, 183, 24, 0.82);
  outline-offset: 4px;
}

button:focus-visible {
  outline: 3px solid rgba(244, 183, 24, 0.82);
  outline-offset: 4px;
}

address {
  font-style: normal;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

section,
.site-header {
  scroll-margin-top: 92px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ocean-deep);
  color: #ffffff;
  font-weight: 820;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  min-height: 100dvh;
  padding: 18px clamp(16px, 3vw, 34px) 0;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), 100%);
  min-height: 64px;
  margin: 0 auto 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 16px 45px rgba(7, 82, 102, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--leaf);
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--ocean));
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--ocean-deep);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.nav-links a {
  padding: 9px 4px;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--coral);
}

.nav-links a:active,
.primary-link:active,
.secondary-link:active {
  transform: translateY(1px);
}

.menu-button,
.menu-close {
  display: none;
}

.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

.hero {
  width: min(1420px, 100%);
  margin: 0 auto;
}

.hero-art {
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-art picture {
  display: block;
}

.hero-art img {
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.hero-summary {
  display: grid;
  grid-template-areas:
    "title actions"
    "copy actions";
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px clamp(24px, 4vw, 54px);
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: clamp(16px, 2.6vw, 30px) auto 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 22px 60px rgba(7, 82, 102, 0.16);
  backdrop-filter: blur(20px);
}

.hero-summary > div:first-child {
  grid-area: title;
  min-width: 0;
}

.hero-summary > p {
  grid-area: copy;
  min-width: 0;
}

.small-label {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--leaf);
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ocean-deep);
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
}

.hero-summary p {
  max-width: 520px;
  margin-bottom: 0;
}

.hero-actions {
  display: grid;
  grid-area: actions;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: #193c31;
  font-weight: 860;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-link {
  background: var(--sun);
  box-shadow: 0 14px 32px rgba(244, 183, 24, 0.35);
}

.secondary-link {
  border: 1px solid rgba(21, 122, 140, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ocean-deep);
  box-shadow: 0 10px 26px rgba(7, 82, 102, 0.09);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #ffd24a;
  box-shadow: 0 18px 38px rgba(244, 183, 24, 0.42);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(7, 82, 102, 0.14);
}

.primary-link.full {
  width: 100%;
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 122px) clamp(16px, 3vw, 34px);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-decor {
  position: absolute;
  z-index: 0;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 20px rgba(7, 82, 102, 0.12));
}

.decor-toucan {
  top: clamp(18px, 4vw, 54px);
  right: clamp(16px, 5vw, 96px);
  width: clamp(94px, 12vw, 172px);
  opacity: 0.72;
  transform: rotate(-7deg);
}

.decor-christ {
  left: clamp(-118px, -6vw, -38px);
  bottom: clamp(8px, 5vw, 54px);
  width: clamp(150px, 18vw, 255px);
  opacity: 0.2;
  transform: rotate(2deg);
}

.decor-ball {
  top: clamp(24px, 6vw, 88px);
  right: clamp(8px, 4vw, 74px);
  width: clamp(82px, 9vw, 126px);
  opacity: 0.5;
  transform: rotate(9deg);
}

.decor-surfboard {
  left: clamp(8px, 4vw, 74px);
  bottom: clamp(18px, 4vw, 62px);
  width: clamp(48px, 6vw, 84px);
  opacity: 0.46;
  transform: rotate(-8deg);
}

.decor-palm {
  top: clamp(12px, 4vw, 58px);
  right: clamp(-74px, -4vw, -28px);
  width: clamp(138px, 15vw, 220px);
  opacity: 0.26;
  transform: rotate(4deg);
}

.decor-beach {
  left: clamp(-118px, -5vw, -32px);
  bottom: clamp(10px, 4vw, 58px);
  width: clamp(220px, 25vw, 360px);
  opacity: 0.24;
}

.decor-flag {
  top: clamp(18px, 4vw, 58px);
  right: clamp(12px, 4vw, 76px);
  width: clamp(96px, 10vw, 150px);
  opacity: 0.44;
  transform: rotate(6deg);
}

.decor-drum {
  left: clamp(-52px, 2vw, 38px);
  bottom: -46px;
  width: clamp(90px, 10vw, 142px);
  opacity: 0.32;
  transform: rotate(-8deg);
}

.decor-flowers {
  top: -18px;
  right: clamp(-38px, 3vw, 58px);
  width: clamp(112px, 12vw, 174px);
  opacity: 0.3;
}

.decor-bus {
  top: clamp(16px, 4vw, 58px);
  right: clamp(-44px, 2vw, 42px);
  width: clamp(150px, 17vw, 245px);
  opacity: 0.28;
  transform: rotate(2deg);
}

.decor-sun {
  top: clamp(36px, 7vw, 112px);
  left: clamp(14px, 4vw, 76px);
  width: clamp(78px, 8vw, 116px);
  opacity: 0.42;
  transform: rotate(8deg);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.mission-copy p:not(.small-label) {
  max-width: 720px;
  margin-bottom: 0;
}

.mission-card,
.age-card,
.team-card,
.price-card,
.space-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(7, 82, 102, 0.1);
}

.mission-card {
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 244, 191, 0.92), rgba(223, 241, 220, 0.92)),
    #ffffff;
}

.mission-card ul,
.price-card ul,
.space-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.mission-card li,
.price-card li,
.space-card li {
  padding-left: 4px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading p,
.gallery-head p,
.price-copy p {
  max-width: 700px;
}

.age-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.age-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
}

.accent-card {
  background:
    linear-gradient(155deg, rgba(17, 100, 63, 0.94), rgba(7, 82, 102, 0.92)),
    var(--leaf);
}

.accent-card h3,
.accent-card p,
.accent-card .age-range {
  color: #ffffff;
}

.sand-card {
  background:
    linear-gradient(155deg, rgba(255, 244, 191, 0.94), rgba(255, 253, 246, 0.96) 48%, rgba(233, 113, 76, 0.14)),
    #ffffff;
}

.sand-card .age-range {
  background: rgba(17, 100, 63, 0.12);
  color: var(--leaf);
}

.age-card-top {
  display: grid;
  gap: 8px;
}

.age-range,
.price-status {
  width: fit-content;
  border-radius: 999px;
  background: rgba(244, 183, 24, 0.2);
  color: var(--ocean-deep);
  font-size: 13px;
  font-weight: 860;
  padding: 7px 12px;
}

.space-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 113, 76, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 246, 0), rgba(255, 244, 191, 0.4));
}

.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.space-copy p:not(.small-label) {
  max-width: 680px;
  margin-bottom: 0;
}

.space-card {
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(223, 241, 220, 0.76)),
    #ffffff;
}

.space-card h3 {
  margin-bottom: 16px;
}

.address-box {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 82, 102, 0.08);
  color: var(--ocean-deep);
}

.address-box span {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-box address {
  font-weight: 720;
}

.program-section {
  background: linear-gradient(180deg, rgba(255, 253, 246, 0), rgba(216, 238, 251, 0.44));
}

.program-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.program-image {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.program-image img {
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
}

.program-list {
  display: grid;
  gap: 18px;
}

.program-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.program-list article:last-child {
  border-bottom: 0;
}

.program-list .finale-item {
  margin-top: 4px;
  padding: 22px;
  border: 1px solid rgba(244, 183, 24, 0.34);
  border-radius: 20px;
  background: rgba(255, 244, 191, 0.48);
}

.program-list p {
  margin-bottom: 0;
}

.rhythm-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

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

.rhythm-item {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--ocean-deep);
  color: #ffffff;
}

.rhythm-item:nth-child(2) {
  background: var(--leaf);
}

.rhythm-item:nth-child(3) {
  background: #a95514;
}

.rhythm-item span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.rhythm-item p {
  margin-bottom: 0;
  color: #ffffff;
}

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

.team-card {
  padding: 24px;
}

.team-photo {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--leaf-soft);
}

.team-photo img {
  height: 100%;
  object-fit: cover;
}

.team-initials {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(244, 183, 24, 0.92), rgba(233, 113, 76, 0.88)),
    var(--sun);
  color: #ffffff;
  font-weight: 900;
}

.team-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.gallery-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 183, 24, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(216, 238, 251, 0.36), rgba(255, 253, 246, 0));
}

.gallery-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 82, 102, 0.1);
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.vertical {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:nth-child(1) img {
  object-position: 50% 78%;
}

.gallery-item:nth-child(2) img {
  object-position: 50% 52%;
}

.gallery-item:nth-child(3) img {
  object-position: 50% 48%;
}

.gallery-item:nth-child(4) img {
  object-position: 50% 50%;
}

.gallery-item:nth-child(5) img {
  object-position: 50% 48%;
}

.gallery-item:nth-child(6) img {
  object-position: 50% 42%;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
  color: var(--ocean-deep);
  font-size: 14px;
  font-weight: 820;
  backdrop-filter: blur(12px);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
}

.price-copy h2 {
  color: var(--leaf);
}

.price-copy {
  align-self: center;
}

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

.price-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(160deg, rgba(255, 244, 191, 0.84), rgba(255, 253, 246, 0.96)),
    #ffffff;
}

.price-card h3 {
  margin: 16px 0 10px;
  color: var(--leaf);
  font-size: clamp(30px, 3.4vw, 44px);
}

.price-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.price-status {
  display: inline-flex;
  background: rgba(233, 113, 76, 0.15);
  color: #a63e26;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.therapy-price {
  background:
    linear-gradient(155deg, rgba(216, 238, 251, 0.88), rgba(255, 253, 246, 0.96)),
    #ffffff;
}

.respect-callout {
  margin-top: clamp(24px, 4vw, 44px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(17, 100, 63, 0.98), rgba(7, 82, 102, 0.94)),
    var(--leaf);
  box-shadow: 0 18px 48px rgba(7, 82, 102, 0.14);
}

.respect-callout p {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.2;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 62px);
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(140deg, rgba(255, 253, 246, 0.94), rgba(223, 241, 220, 0.74)),
    #ffffff;
  box-shadow: var(--shadow);
}

.payment-copy {
  align-self: center;
}

.payment-copy h2 {
  color: var(--leaf);
}

.payment-copy p:not(.small-label) {
  margin-bottom: 0;
}

.payment-form {
  display: grid;
  gap: 18px;
}

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

.payment-form label {
  display: grid;
  gap: 8px;
  color: var(--ocean-deep);
  font-weight: 720;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(21, 122, 140, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 13px 14px;
}

.payment-form input,
.payment-form select {
  min-height: 50px;
}

.payment-form textarea {
  resize: vertical;
}

.payment-form input:focus-visible,
.payment-form select:focus-visible,
.payment-form textarea:focus-visible {
  outline: 3px solid rgba(244, 183, 24, 0.78);
  outline-offset: 2px;
  border-color: rgba(17, 100, 63, 0.42);
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--leaf);
}

.payment-form .full {
  justify-self: start;
  min-width: min(260px, 100%);
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 100, 63, 0.1);
  color: var(--leaf);
  font-weight: 720;
}

.footer {
  padding: 28px clamp(16px, 3vw, 34px) 36px;
  background: rgba(216, 238, 251, 0.58);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
  font-size: 15px;
}

.app-page {
  min-height: 100vh;
  background:
    linear-gradient(155deg, rgba(216, 238, 251, 0.72), rgba(255, 253, 246, 0.96)),
    var(--paper);
}

.auth-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  margin: 0 auto;
  padding: 34px 0;
}

.auth-card,
.app-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 44px);
}

.auth-card h1,
.app-heading h1 {
  margin: 0;
  color: var(--leaf);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
}

.auth-note {
  margin: 0;
  color: var(--muted);
}

.auth-note a {
  color: var(--ocean-deep);
  font-weight: 800;
}

.app-shell {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.app-shell.single {
  grid-template-columns: minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: var(--shadow);
}

.app-sidebar nav {
  display: grid;
  gap: 10px;
}

.app-sidebar a,
.app-sidebar button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(17, 100, 63, 0.08);
  color: var(--leaf);
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.app-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.app-heading,
.app-panel {
  padding: clamp(20px, 3vw, 34px);
}

.app-panel {
  display: grid;
  gap: 18px;
}

.app-panel h2 {
  margin: 0;
  color: var(--ocean-deep);
  font-size: clamp(28px, 3vw, 42px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  color: var(--leaf);
  font-size: 22px;
}

.compact-form {
  gap: 14px;
}

.simple-list,
.line-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.line-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--leaf);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1040px) {
  .section-decor {
    opacity: 0.18;
  }

  .decor-toucan,
  .decor-ball,
  .decor-flag,
  .decor-bus {
    transform: scale(0.82);
  }

  .topbar {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-links {
    overflow-x: auto;
    max-width: 58vw;
    padding-bottom: 3px;
  }

  .hero-summary,
  .mission-grid,
  .space-grid,
  .program-grid,
  .price-grid,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    grid-template-areas:
      "title"
      "copy"
      "actions";
    align-items: start;
  }

  .age-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .site-header {
    padding-inline: 12px;
  }

  .topbar {
    position: sticky;
    top: 10px;
    z-index: 40;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 9px 10px 9px 12px;
    border-radius: 999px;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    gap: 4px;
    border: 1px solid rgba(21, 122, 140, 0.2);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 82, 102, 0.12);
  }

  .menu-button span,
  .menu-close span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ocean-deep);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: block;
    background: rgba(7, 36, 46, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 49;
    display: grid;
    width: min(86vw, 360px);
    height: 100dvh;
    grid-template-rows: auto 1fr;
    gap: 22px;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 26px 0 0 26px;
    background:
      linear-gradient(160deg, rgba(255, 253, 246, 0.98), rgba(223, 241, 220, 0.94)),
      #ffffff;
    box-shadow: -22px 0 54px rgba(7, 82, 102, 0.2);
    transform: translateX(106%);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .mobile-menu .brand {
    min-width: 0;
  }

  .mobile-menu .brand span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .menu-close {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(21, 122, 140, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
  }

  .menu-close span {
    position: absolute;
  }

  .menu-close span:first-child {
    transform: rotate(45deg);
  }

  .menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu nav {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .mobile-menu nav a {
    border: 1px solid rgba(21, 122, 140, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ocean-deep);
    padding: 14px 16px;
    font-weight: 820;
    text-decoration: none;
  }

  .mobile-menu nav a:hover,
  .mobile-menu nav a:focus-visible {
    background: #ffffff;
    color: var(--leaf);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  body.menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .section-decor {
    display: block;
    max-width: 48vw;
    opacity: 0.16;
  }

  .decor-toucan {
    top: 20px;
    right: -24px;
    width: 88px;
    opacity: 0.24;
  }

  .decor-christ,
  .decor-surfboard {
    display: none;
  }

  .decor-ball {
    top: 18px;
    right: -18px;
    width: 76px;
    opacity: 0.18;
  }

  .decor-palm {
    top: 16px;
    right: -52px;
    width: 118px;
    opacity: 0.16;
  }

  .decor-beach {
    left: -86px;
    bottom: 18px;
    width: 210px;
    opacity: 0.14;
  }

  .decor-flag {
    top: 18px;
    right: -20px;
    width: 88px;
    opacity: 0.2;
  }

  .decor-drum {
    left: -28px;
    bottom: -22px;
    width: 78px;
    opacity: 0.16;
  }

  .decor-flowers {
    top: -8px;
    right: -30px;
    width: 96px;
    opacity: 0.18;
  }

  .decor-bus {
    top: 14px;
    right: -42px;
    width: 124px;
    opacity: 0.18;
  }

  .decor-sun {
    top: 20px;
    left: 16px;
    width: 68px;
    opacity: 0.18;
  }

  .hero-art {
    border-radius: 24px;
  }

  .hero-art img {
    min-height: 0;
    object-position: center;
  }

  .hero-summary {
    width: calc(100% - 12px);
    margin-top: 14px;
    padding: 20px;
  }

  .section {
    padding: 58px 16px;
  }

  .age-layout,
  .rhythm-grid,
  .team-grid,
  .gallery-grid,
  .price-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .age-card {
    grid-row: auto;
    min-height: auto;
  }

  .program-image img {
    aspect-ratio: 1 / 1;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.featured,
  .gallery-item.vertical,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-form .full {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  h2 {
    font-size: 31px;
  }

  p {
    font-size: 16px;
  }

  .hero-summary {
    gap: 16px;
    overflow: hidden;
    padding-inline: clamp(16px, 5vw, 20px);
  }

  .hero-summary h1 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .small-label {
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    padding-inline: 14px;
    line-height: 1.2;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 8px;
  }

  .hero-summary {
    width: calc(100% - 8px);
    padding: 18px 16px;
  }

  h1 {
    font-size: 27px;
  }

  .primary-link,
  .secondary-link {
    min-height: 46px;
    font-size: 15px;
  }
}
