:root {
  --paper: #ffffff;
  --ink: #121317;
  --muted: #747782;
  --line: #e7e9ef;
  --blue: #0f5fe8;
  --green: #31aa72;
  --amber: #ffb000;
  --purple: #8e62e8;
  --red: #ff4b4f;
  --soft-blue: #eaf4ff;
  --soft-green: #e9f7ef;
  --soft-yellow: #fff2cd;
  --soft-purple: #f0eafd;
  --soft-red: #ffe9e7;
  --shadow: 0 24px 70px rgba(35, 45, 85, 0.11);
  --radius: 30px;
  --container: min(1440px, calc(100vw - 112px));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(72px, 8vw, 128px) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1510px, calc(100vw - 72px));
  min-height: 104px;
  margin: 0 auto;
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 220px;
}

.brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.brand small,
.phone-text small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  animation: spin-slow 20s linear infinite;
}

.brand-mark i {
  position: absolute;
  left: 28px;
  top: 3px;
  width: 10px;
  height: 23px;
  border-radius: 999px;
  background: var(--c);
  transform: rotate(var(--r)) translateY(-1px);
  transform-origin: 5px 30px;
}

.brand-mark i:nth-child(1) { --r: 0deg; --c: #ff473b; }
.brand-mark i:nth-child(2) { --r: 45deg; --c: #ffb000; }
.brand-mark i:nth-child(3) { --r: 90deg; --c: #2fb36f; }
.brand-mark i:nth-child(4) { --r: 135deg; --c: #8f67ea; }
.brand-mark i:nth-child(5) { --r: 180deg; --c: #1161e9; }
.brand-mark i:nth-child(6) { --r: 225deg; --c: #25a0f2; }
.brand-mark i:nth-child(7) { --r: 270deg; --c: #ffb000; }
.brand-mark i:nth-child(8) { --r: 315deg; --c: #ffb000; }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 4vw, 62px);
  font-size: 15px;
  font-weight: 650;
}

.nav a {
  position: relative;
  padding: 12px 0;
  color: #20242a;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-bubble,
.mini-icon,
.round-link,
.modal-close {
  display: inline-grid;
  place-items: center;
}

.phone-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f5f6f8;
  color: var(--blue);
}

.phone-bubble svg,
.btn svg,
.text-button svg,
.round-link svg,
.modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-bubble svg {
  fill: currentColor;
  stroke: none;
}

.phone-text strong {
  font-size: 16px;
  font-weight: 850;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 31px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 850;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #1568f0, #0752d4);
  color: white;
  box-shadow: 0 18px 34px rgba(15, 95, 232, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(15, 95, 232, 0.32);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: #1f2430;
  box-shadow: 0 12px 28px rgba(18, 19, 23, 0.04);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-3px);
  border-color: #cfd5e2;
}

.btn-large {
  min-height: 68px;
  padding: 0 36px;
  border-radius: 24px;
}

.hero {
  min-height: calc(100vh - 104px);
  padding-top: clamp(56px, 6vw, 102px);
  display: grid;
  align-items: center;
}

.hero-grid,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.hero-copy,
.final-copy {
  position: relative;
  z-index: 2;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #222832;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.04);
}

.icon-heart,
.icon-star,
.icon-camera,
.outline-heart {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--red);
}

.icon-heart::before,
.outline-heart::before {
  position: absolute;
  inset: 2px;
  content: "";
  border: 3px solid currentColor;
  border-top: 0;
  border-left: 0;
  border-radius: 4px;
  transform: rotate(45deg);
}

.icon-star::before {
  position: absolute;
  inset: 0;
  content: "☆";
  color: var(--amber);
  font-size: 24px;
  line-height: 16px;
}

.icon-camera::before {
  position: absolute;
  inset: 1px;
  content: "";
  border: 3px solid var(--green);
  border-radius: 5px;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 26px;
  margin-top: 24px;
  font-size: clamp(55px, 6.2vw, 96px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.03;
  font-weight: 950;
}

h3 {
  font-size: 24px;
  line-height: 1.22;
  font-weight: 900;
}

.blue {
  color: var(--blue);
}

.green {
  color: var(--green);
}

.hero-copy > p,
.final-copy > p,
.section-intro p,
.split-heading p,
.reviews-copy p,
.gallery-copy p {
  max-width: 540px;
  color: #353945;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 42px 0 56px;
}

.hero-benefits,
.final-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 830px;
}

.hero-benefits article,
.final-benefits article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: center;
}

.hero-benefits strong,
.final-benefits strong {
  font-size: 14px;
  font-weight: 900;
}

.hero-benefits small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.mini-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.mini-icon svg,
.line-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon.amber { background: #fff3df; color: var(--amber); }
.mini-icon.green { background: var(--soft-green); color: var(--green); }
.mini-icon.purple { background: var(--soft-purple); color: var(--purple); }
.mini-icon.red { background: var(--soft-red); color: var(--red); }

.hero-media,
.final-media {
  position: relative;
  min-height: 620px;
}

.hero-media img,
.final-media > img {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  height: auto;
  margin-left: auto;
  border-radius: 46% 54% 49% 51% / 35% 39% 61% 65%;
  filter: drop-shadow(0 34px 50px rgba(39, 68, 114, 0.13));
  animation: float 7s ease-in-out infinite;
}

.hero-media::before,
.final-media::before {
  position: absolute;
  right: 1%;
  bottom: 10%;
  z-index: 1;
  width: 31%;
  height: 28%;
  content: "";
  border-radius: 54% 46% 60% 40%;
  background: var(--blue);
  animation: morph 9s ease-in-out infinite;
}

.hero-media::after,
.final-media::after {
  position: absolute;
  left: 8%;
  bottom: 19%;
  z-index: 1;
  width: 28%;
  height: 25%;
  content: "";
  border-radius: 57% 43% 45% 55%;
  background: var(--red);
  animation: morph 8s ease-in-out infinite reverse;
}

.burst-lines {
  position: absolute;
  top: 13%;
  left: 17%;
  z-index: 3;
  width: 64px;
  height: 52px;
  border-top: 6px solid var(--ink);
  transform: rotate(18deg);
}

.burst-lines::before,
.burst-lines::after {
  position: absolute;
  top: -20px;
  left: 24px;
  width: 6px;
  height: 26px;
  content: "";
  border-radius: 999px;
  background: var(--ink);
}

.burst-lines::after {
  left: 48px;
  height: 22px;
  transform: rotate(26deg);
}

.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.blob {
  border-radius: 54% 46% 64% 36% / 50% 57% 43% 50%;
  opacity: 0.92;
  filter: saturate(1.05);
  animation: morph 10s ease-in-out infinite;
}

.blob-mint {
  left: -70px;
  bottom: -90px;
  width: 260px;
  height: 145px;
  background: #cfebe3;
}

.blob-blue {
  right: -70px;
  bottom: 14%;
  width: 185px;
  height: 220px;
  background: #2e77f2;
}

.blob-green {
  right: -72px;
  top: 16%;
  width: 175px;
  height: 220px;
  background: #31aa72;
}

.blob-red {
  right: -64px;
  bottom: 22%;
  width: 170px;
  height: 190px;
  background: #ff4b4f;
}

.blob-red.left {
  right: auto;
  left: -86px;
  top: 35%;
}

.blob-yellow {
  left: -52px;
  bottom: -70px;
  width: 160px;
  height: 240px;
  background: #ffd56b;
}

.dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.dot-lilac {
  top: 22%;
  left: 47%;
  background: #d9d0f8;
}

.dot-green {
  top: 24%;
  right: 16%;
  background: #52be89;
}

.doodle {
  width: 78px;
  height: 44px;
  border: 5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 50px 50px;
  color: var(--blue);
  animation: float 8s ease-in-out infinite;
}

.doodle-blue {
  right: 6%;
  top: 20%;
  transform: rotate(8deg);
}

.doodle-blue.left {
  right: auto;
  left: -4px;
  top: 34%;
}

.star-outline {
  right: 7%;
  top: 19%;
  border: 0;
  color: var(--amber);
}

.star-outline::before {
  content: "☆";
  font-size: 86px;
  font-weight: 400;
}

.section-intro.left {
  max-width: 560px;
  margin-bottom: 52px;
}

.section-intro.center {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

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

.program-card {
  position: relative;
  display: flex;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  padding: 30px 30px 0;
  border-radius: 28px;
  transition:
    transform 0.36s var(--ease),
    box-shadow 0.36s var(--ease);
}

.program-card:hover,
.teacher-card:hover,
.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.program-card.warm { background: linear-gradient(145deg, #fff1cf, #fff8e7); }
.program-card.mint { background: linear-gradient(145deg, #def4ec, #f2fbf7); }
.program-card.lilac { background: linear-gradient(145deg, #ebe3ff, #f8f5ff); }
.program-card.coral { background: linear-gradient(145deg, #ffe2de, #fff4f1); }

.age {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #8b6114;
  font-weight: 800;
}

.program-card h3 {
  margin: 20px 0 12px;
}

.program-card p {
  max-width: 280px;
  color: #333945;
  line-height: 1.55;
}

.round-link {
  width: 56px;
  height: 56px;
  margin-top: 8px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  box-shadow: 0 12px 26px rgba(14, 35, 75, 0.08);
  transition: transform 0.28s var(--ease);
}

.round-link:hover {
  transform: translateX(5px);
}

.program-card img {
  width: calc(100% + 36px);
  height: 210px;
  margin: auto -18px 0;
  object-fit: cover;
  object-position: center 28%;
}

.program-cta {
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, auto) auto;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
  padding: 34px 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: 0 18px 58px rgba(35, 45, 85, 0.07);
}

.program-cta h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.program-cta p {
  margin: 0;
  color: #353945;
  line-height: 1.5;
}

.outline-heart {
  width: 50px;
  height: 50px;
  color: var(--red);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 54px;
}

.split-heading h2 {
  margin: 0;
}

.teacher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 28px rgba(24, 33, 54, 0.04);
  transition:
    transform 0.36s var(--ease),
    box-shadow 0.36s var(--ease);
}

.teacher-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center 20%;
}

.teacher-card div {
  padding: 28px 22px 26px;
}

.teacher-card h3 {
  margin-bottom: 8px;
}

.teacher-card p {
  margin-bottom: 18px;
  color: #2f3440;
  font-size: 15px;
}

.teacher-card small {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3d424d;
}

.bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bullet.amber { background: var(--amber); }
.bullet.green { background: var(--green); }
.bullet.purple { background: var(--purple); }
.bullet.blue { background: #3894e8; }

.approach {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 0;
  margin-top: 84px;
}

.approach-title,
.approach article {
  min-height: 164px;
  padding: 0 28px;
}

.approach-title {
  padding-left: 0;
}

.approach-title h3 {
  margin-bottom: 20px;
  font-size: 34px;
}

.approach-title p,
.approach article p {
  color: #5b606c;
  line-height: 1.55;
}

.approach article {
  border-left: 1px solid var(--line);
  text-align: center;
}

.line-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  color: var(--c);
}

.line-icon.amber { --c: var(--amber); }
.line-icon.green { --c: var(--green); }
.line-icon.purple { --c: var(--purple); }
.line-icon.blue { --c: var(--blue); }
.line-icon.red { --c: var(--red); }

.approach h4 {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.3;
}

.schedule-card {
  padding: 32px 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.schedule-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 38px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tabs button {
  min-width: 132px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  color: #2d3340;
  font-weight: 750;
  transition:
    background 0.24s var(--ease),
    color 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.tabs button.active,
.tabs button:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 95, 232, 0.22);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 850;
}

.schedule-table {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(112px, 1fr));
  gap: 22px 14px;
  align-items: center;
  min-width: 960px;
}

.schedule-card {
  overflow-x: auto;
}

.day {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.time,
.dash {
  color: #4d535e;
  text-align: center;
  font-size: 18px;
}

.dash {
  color: #b1b7c3;
}

.class-card {
  min-height: 58px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #29303b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.class-card:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
}

.class-card.yellow { background: #fff4d4; }
.class-card.green { background: #e4f5ed; }
.class-card.peach { background: #fff0df; }
.class-card.purple { background: #efe7ff; }
.class-card.rose { background: #ffe6e5; }
.class-card.blue { background: #e5f3ff; }

.schedule-note {
  margin: 24px 0 56px 28px;
  color: #818692;
  font-size: 14px;
}

.why h3 {
  text-align: center;
  font-size: 34px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.why-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.why-grid strong {
  font-size: 18px;
}

.why-grid small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 64px;
  align-items: center;
}

.reviews-copy h2 {
  margin-top: 28px;
}

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

.review-card {
  min-height: 340px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  transition:
    transform 0.36s var(--ease),
    box-shadow 0.36s var(--ease);
}

.quote {
  display: block;
  height: 52px;
  font-size: 76px;
  line-height: 0.95;
  font-weight: 900;
}

.quote.amber { color: var(--amber); }
.quote.green { color: var(--green); }
.quote.purple { color: var(--purple); }

.review-card p {
  min-height: 120px;
  color: #252a35;
  font-size: 17px;
  line-height: 1.65;
}

.person {
  display: flex;
  gap: 15px;
  align-items: center;
}

.person img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.person strong,
.person small,
.person span {
  display: block;
}

.person small {
  margin: 5px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.person span {
  color: var(--amber);
  letter-spacing: 2px;
}

.gallery-wrap {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: 96px;
}

.gallery-copy h2 {
  font-size: clamp(34px, 3.7vw, 48px);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.9fr 1fr 0.92fr;
  gap: 16px;
}

.gallery-strip img {
  width: 100%;
  height: 248px;
  border-radius: 18px;
  object-fit: cover;
  transition:
    transform 0.36s var(--ease),
    filter 0.36s var(--ease);
}

.gallery-strip img:hover {
  transform: translateY(-8px) scale(1.02);
  filter: saturate(1.06);
}

.center-btn {
  grid-column: 2;
  justify-self: center;
  margin-top: 30px;
}

.final-cta {
  padding-top: 98px;
  border-bottom: 1px solid var(--line);
}

.final-copy h2 {
  max-width: 780px;
}

.final-benefits {
  max-width: 780px;
  margin-top: 38px;
}

.final-media {
  min-height: 610px;
}

.final-media > img {
  width: min(100%, 720px);
}

.inline-form {
  position: absolute;
  right: 0;
  bottom: 5%;
  z-index: 4;
  width: min(520px, 88%);
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(18, 25, 48, 0.16);
  backdrop-filter: blur(16px);
}

.inline-form h3 {
  margin-bottom: 18px;
  text-align: center;
  font-size: 18px;
}

.inline-form h3 span {
  font-weight: 600;
}

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

label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

input,
select {
  height: 52px;
  padding: 0 16px;
}

textarea {
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 95, 232, 0.1);
}

.inline-form .btn {
  width: 100%;
  margin-top: 12px;
}

.inline-form small {
  display: block;
  margin-top: 10px;
  color: #8b909c;
  text-align: center;
  font-size: 12px;
}

.footer {
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 0.7fr 1.25fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 330px;
  color: #545b67;
  line-height: 1.55;
}

.footer-brand > a:not(.brand),
.footer-col a,
.footer-col button,
.footer-map a {
  display: block;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #404753;
  text-align: left;
}

.footer-col h4,
.footer-map h4 {
  margin: 0 0 22px;
  font-size: 17px;
}

.footer-col a,
.footer-col button {
  font-size: 14px;
}

.footer-map img {
  width: 100%;
  height: 170px;
  margin-bottom: 24px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-map p {
  color: #555d68;
  line-height: 1.55;
}

.footer-map a {
  color: var(--blue);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #8b909b;
  font-size: 13px;
}

.footer-bottom button {
  border: 0;
  background: transparent;
  color: inherit;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 37, 0.48);
  backdrop-filter: blur(8px);
  animation: fade-in 0.24s var(--ease);
}

.modal-card {
  position: relative;
  z-index: 2;
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: 38px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  animation: modal-in 0.32s var(--ease);
}

.modal-card h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.booking-modal {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  width: min(860px, calc(100vw - 40px));
}

.booking-modal p,
.text-modal p {
  color: #565e6c;
  line-height: 1.6;
}

.booking-modal ul {
  padding-left: 20px;
  color: #353b47;
  line-height: 1.8;
}

.booking-modal form {
  display: grid;
  gap: 14px;
}

.gallery-modal {
  width: min(1120px, calc(100vw - 40px));
}

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

.modal-gallery img {
  width: 100%;
  height: 185px;
  border-radius: 16px;
  object-fit: cover;
}

.price-modal,
.text-modal {
  width: min(680px, calc(100vw - 40px));
}

.price-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cfd5df;
}

.price-list strong {
  color: var(--blue);
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f5f6f8;
  color: #252b35;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: reveal 0.7s var(--ease) forwards;
}

.success-message {
  display: grid;
  min-height: 220px;
  place-items: center;
  border-radius: 18px;
  background: var(--soft-green);
  color: #176542;
  text-align: center;
  font-weight: 850;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 54% 46% 64% 36% / 50% 57% 43% 50%;
  }
  50% {
    border-radius: 42% 58% 46% 54% / 58% 42% 58% 42%;
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
}

@media (max-width: 1180px) {
  :root {
    --container: min(100% - 48px, 1040px);
  }

  .site-header {
    grid-template-columns: auto auto;
    width: min(100% - 48px, 1040px);
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 18px;
    overflow-x: auto;
  }

  .phone-text {
    display: none;
  }

  .hero-grid,
  .final-grid,
  .split-heading,
  .reviews-grid,
  .gallery-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .final-media {
    min-height: auto;
  }

  .hero-media img,
  .final-media > img {
    margin: 0 auto;
  }

  .program-grid,
  .teacher-grid,
  .review-cards,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 0;
  }

  .approach-title {
    grid-column: 1 / -1;
  }

  .gallery-strip {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .center-btn {
    grid-column: 1;
  }

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

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 560px);
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    width: min(100% - 28px, 560px);
    min-height: 82px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
    gap: 12px;
  }

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

  .brand-mark i {
    left: 20px;
    width: 8px;
    height: 17px;
    transform-origin: 4px 22px;
  }

  .brand strong {
    font-size: 23px;
  }

  .brand small {
    font-size: 11px;
  }

  .header-contact .btn {
    display: none;
  }

  .phone-bubble {
    width: 48px;
    height: 48px;
  }

  .nav {
    gap: 22px;
    padding-bottom: 4px;
    font-size: 14px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-actions,
  .hero-benefits,
  .final-benefits,
  .program-cta,
  .form-row,
  .booking-modal,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-bottom {
    align-items: stretch;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .soft-pill {
    order: 1;
  }

  .hero-media {
    order: 2;
    width: 100%;
    margin: -10px 0 -6px;
  }

  .hero-media img {
    width: min(86vw, 360px);
  }

  .hero-copy h1 {
    order: 3;
    margin-top: 0;
    margin-bottom: 18px;
  }

  .hero-copy > p {
    order: 4;
  }

  .hero-actions {
    order: 5;
    margin: 22px 0 18px;
  }

  .hero-benefits {
    order: 6;
  }

  .hero-actions .btn,
  .program-cta .btn {
    width: 100%;
  }

  .hero-benefits,
  .final-benefits {
    gap: 18px;
  }

  .program-grid,
  .teacher-grid,
  .review-cards,
  .why-grid,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 430px;
  }

  .program-cta {
    padding: 28px;
  }

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

  .approach article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
  }

  .schedule-card {
    padding: 22px 18px;
    margin-inline: -8px;
  }

  .schedule-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    gap: 10px;
  }

  .tabs button {
    min-width: 104px;
    min-height: 44px;
    border-radius: 16px;
    font-size: 14px;
  }

  .schedule-table {
    min-width: 860px;
  }

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

  .gallery-copy {
    margin-bottom: 24px;
  }

  .inline-form {
    position: relative;
    width: 100%;
    margin-top: -24px;
  }

  .final-media::before,
  .final-media::after,
  .hero-media::before,
  .hero-media::after {
    opacity: 0.75;
  }

  .footer-bottom {
    display: grid;
    gap: 14px;
  }

  .modal-card {
    padding: 28px 18px 22px;
    border-radius: 22px;
  }
}

@media (max-width: 380px) {
  .btn-large,
  .btn {
    padding-inline: 18px;
  }

  .soft-pill {
    max-width: 100%;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
