:root {
  --purple: #bd67d6;
  --green: #72b23a;
  --pink: #d9548d;
  --yellow: #f4b029;
  --navy: #465994;
  --ink: #24305c;
  --muted: #667293;
  --paper: #f7fbff;
  --line: #d9e1ef;
  --white: #fff;
  --shadow: 0 22px 60px rgba(36, 48, 92, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(100% - 40px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(70, 89, 148, .12); background: rgba(247, 251, 255, .9); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 82px; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; border: 4px solid white; border-radius: 50%; box-shadow: 0 7px 18px rgba(36,48,92,.13); }
.brand > span { display: grid; }
.brand strong { font-size: 22px; line-height: 1; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.desktop-nav { display: flex; margin-left: auto; align-items: center; gap: 25px; }
.desktop-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 800; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 3px; border-radius: 10px; background: var(--green); content: ""; transform: scaleX(0); transition: transform .18s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.header-phone { display: inline-flex; min-height: 46px; align-items: center; padding: 0 17px; border-radius: 15px; background: var(--navy); color: white; font-size: 13px; font-weight: 850; box-shadow: 0 10px 24px rgba(70,89,148,.2); }
.menu-button, .mobile-nav { display: none; }

.catalog-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 74% 28%, rgba(114,178,58,.15) 0 19%, transparent 19.2%), radial-gradient(circle at 95% 86%, rgba(189,103,214,.13) 0 17%, transparent 17.2%), linear-gradient(180deg, #f7fbff, #eaf6ff); }
.catalog-hero::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(70,89,148,.13) 1px, transparent 1px); background-size: 25px 25px; content: ""; }
.hero-grid { position: relative; display: grid; min-height: 650px; align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: 40px; }
.hero-copy { position: relative; z-index: 2; padding: 80px 0; }
.eyebrow { display: inline-flex; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--navy); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h1 { max-width: 820px; margin: 27px 0 24px; font-size: clamp(3.3rem, 6.5vw, 6.9rem); font-weight: 880; letter-spacing: -.075em; line-height: .92; }
.hero-copy h1 em { color: var(--navy); font-style: normal; }
.hero-copy > p { max-width: 710px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.6; }
.hero-stats { display: flex; flex-wrap: wrap; margin-top: 40px; gap: 10px; }
.hero-stats span { display: grid; min-width: 138px; padding: 13px 16px; border: 1px solid rgba(70,89,148,.13); border-radius: 15px; background: rgba(255,255,255,.68); color: var(--muted); font-size: 11px; font-weight: 760; }
.hero-stats strong { color: var(--ink); font-size: 21px; }
.hero-mascot { position: relative; min-height: 480px; }
.hero-mascot img { position: absolute; z-index: 2; right: -30px; bottom: 0; width: min(100%, 460px); height: auto; filter: drop-shadow(0 28px 30px rgba(36,48,92,.2)); }
.orbit { position: absolute; border-radius: 999px; transform: rotate(-17deg); }
.orbit-purple { top: 20%; right: -10%; width: 90%; height: 22%; background: rgba(189,103,214,.5); }
.orbit-green { right: 18%; bottom: 8%; width: 62%; height: 15%; background: rgba(114,178,58,.38); transform: rotate(14deg); }

.catalog-section { padding: 100px 0 120px; }
.section-heading { max-width: 820px; }
.section-heading > span { color: var(--pink); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2 { margin: 14px 0 12px; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 870; letter-spacing: -.065em; line-height: .98; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 17px; }
.catalog-layout { display: grid; margin-top: 48px; align-items: start; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
.filter-panel { position: sticky; top: 105px; }
.filter-panel form { display: grid; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 8px 8px 0 rgba(130,199,254,.55); gap: 21px; }
.filter-title { display: flex; align-items: baseline; justify-content: space-between; }
.filter-title strong { font-size: 20px; }
.filter-title span { color: var(--muted); font-size: 11px; font-weight: 800; }
.filter-panel label:not(.radio-row) { display: grid; gap: 8px; }
.filter-panel label > span, .filter-panel legend { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.filter-panel input[type="search"], .filter-panel select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #f9fbff; color: var(--ink); }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(70,89,148,.12); }
.filter-panel fieldset { display: grid; margin: 0; padding: 0; border: 0; gap: 4px; }
.filter-panel legend { margin-bottom: 7px; }
.radio-row { display: flex; min-height: 38px; align-items: center; gap: 9px; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.radio-row span { color: var(--ink); font-size: 13px; font-weight: 760; }
.filter-submit { min-height: 48px; border: 0; border-radius: 14px; background: var(--navy); color: white; cursor: pointer; font-weight: 850; }
.filter-reset { text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-card { position: relative; display: flex; min-height: 390px; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: white; flex-direction: column; box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 72%, white); transition: transform .2s ease, box-shadow .2s ease; }
.course-card::before { position: absolute; top: -44px; right: -34px; width: 125px; height: 125px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, white); content: ""; }
.course-card:hover { transform: translateY(-5px); box-shadow: 10px 12px 0 color-mix(in srgb, var(--accent) 72%, white); }
.card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category { padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.ages { color: var(--muted); font-size: 10px; font-weight: 820; }
.course-card h3 { position: relative; margin: 29px 0 12px; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.045em; line-height: 1.05; }
.course-card > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.course-card dl { display: grid; margin: 24px 0; gap: 12px; }
.course-card dl div { display: grid; gap: 2px; }
.course-card dt { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.course-card dd { margin: 0; font-size: 12px; font-weight: 780; }
.course-card > a { display: flex; min-height: 44px; margin-top: auto; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--navy); font-size: 12px; font-weight: 900; }
.course-card > a span { font-size: 20px; }
.empty-state { padding: 60px 30px; border: 1px solid var(--line); border-radius: 24px; background: white; text-align: center; }
.empty-state strong { font-size: 24px; }.empty-state p { color: var(--muted); }.empty-state a { color: var(--navy); font-weight: 850; text-decoration: underline; }
.pagination { display: flex; margin-top: 35px; align-items: center; justify-content: center; gap: 18px; font-size: 12px; font-weight: 800; }
.pagination a, .pagination > span:first-child, .pagination > span:last-child { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.pagination [aria-disabled="true"] { opacity: .45; }

.how-section { padding: 100px 0 110px; background: var(--ink); color: white; }
.section-heading.light > span { color: var(--yellow); }.section-heading.light h2 { margin-bottom: 45px; }
.steps { display: grid; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
.steps li { min-height: 250px; padding: 28px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.steps li:first-child { border-radius: 24px 0 0 24px; }.steps li:last-child { border-radius: 0 24px 24px 0; }
.steps span { color: var(--yellow); font-size: 12px; font-weight: 900; }.steps strong { display: block; margin: 42px 0 12px; font-size: 22px; }.steps p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.6; }

.course-detail { min-height: calc(100svh - 82px); padding: 90px 0; background: radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--accent) 20%, transparent) 0 22%, transparent 22.2%), linear-gradient(180deg, #f7fbff, #eaf6ff); }
.detail-grid { display: grid; align-items: center; grid-template-columns: 1fr minmax(320px, 440px); gap: 70px; }
.back-link { display: inline-flex; margin-bottom: 45px; color: var(--navy); font-size: 13px; font-weight: 850; }
.detail-meta { display: flex; gap: 8px; }.detail-meta span { padding: 8px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, white); color: var(--accent); font-size: 11px; font-weight: 900; }
.detail-copy h1 { margin: 24px 0 22px; font-size: clamp(3.2rem, 7vw, 7rem); letter-spacing: -.075em; line-height: .92; }.detail-copy > p { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.primary-button { display: inline-flex; min-height: 56px; margin-top: 24px; align-items: center; gap: 16px; padding: 0 22px; border-radius: 17px; background: var(--navy); color: white; font-weight: 850; box-shadow: 0 14px 30px rgba(70,89,148,.22); }
.detail-card { display: grid; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 65%, white); gap: 0; }
.detail-card div { display: grid; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 5px; }.detail-card div:last-child { border: 0; }.detail-card small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.detail-card strong { font-size: 16px; }

.site-footer { border-top: 1px solid var(--line); background: white; }.footer-inner { display: flex; min-height: 90px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 750; }.footer-inner a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, 1240px); }
  .header-inner { min-height: 70px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }.brand strong { font-size: 19px; }.brand small { display: none; }
  .desktop-nav, .header-phone { display: none; }
  .menu-button { display: grid; width: 46px; height: 46px; margin-left: auto; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .menu-button span { display: block; width: 22px; height: 3px; border-radius: 4px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; padding: 0 14px; background: white; opacity: 0; visibility: hidden; transition: max-height .22s ease, padding .22s ease, opacity .16s ease; }
  .mobile-nav.is-open { max-height: 240px; padding-block: 8px 16px; border-top: 1px solid var(--line); opacity: 1; visibility: visible; }
  .mobile-nav a { display: flex; min-height: 48px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 850; }.mobile-nav a:last-child { margin-top: 7px; justify-content: center; border: 0; border-radius: 13px; background: var(--navy); color: white; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }.hero-copy { padding: 65px 0 15px; }.hero-copy h1 { font-size: clamp(3rem, 12vw, 5rem); }.hero-mascot { min-height: 330px; }.hero-mascot img { right: 50%; width: 330px; transform: translateX(50%); }
  .catalog-section { padding: 75px 0 90px; }.catalog-layout { grid-template-columns: 1fr; }.filter-panel { position: static; }.filter-panel form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.filter-title, .filter-panel fieldset, .filter-submit, .filter-reset { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 560px) {
  .hero-copy { padding-top: 48px; }.hero-copy h1 { margin-top: 20px; font-size: clamp(2.75rem, 13.5vw, 4rem); }.hero-copy > p { font-size: 16px; }.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }.hero-stats span { min-width: 0; padding: 10px; }.hero-stats strong { font-size: 17px; }
  .hero-mascot { min-height: 260px; }.hero-mascot img { width: 270px; }
  .section-heading h2 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .filter-panel form { grid-template-columns: 1fr; }.filter-panel label, .filter-panel fieldset, .filter-submit, .filter-reset { grid-column: auto; }
  .course-grid { grid-template-columns: 1fr; }.course-card { min-height: 350px; }.course-card:hover { transform: none; }
  .steps { grid-template-columns: 1fr; }.steps li { min-height: 205px; }.steps li:first-child { border-radius: 22px 22px 0 0; }.steps li:last-child { border-radius: 0 0 22px 22px; }.steps strong { margin-top: 28px; }
  .course-detail { padding: 55px 0 75px; }.back-link { margin-bottom: 30px; }.detail-copy h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }.detail-copy > p { font-size: 17px; }
  .pagination { gap: 8px; }.pagination > span:nth-child(2) { font-size: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
