:root {
    --deep-blue: #14284B;
    --deep-blue-2: #22386a;
    --coral: #E8693A;
    --coral-dark: #b9461b;
    --teal: #0B6E73;
    --teal-deep: #06393c;
    --cream-bg: #F7F4EF;
    --cream-2: #e7e4dc;
    --soft-text: #5d5160;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--deep-blue);
    background: var(--cream-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: transform .2s ease;
    transition: transform .2s ease;
}
.pill:hover { -webkit-transform: translateX(2px); transform: translateX(2px); }
.pill--light { background: #FFFFFF; color: var(--deep-blue) !important; }
.pill--dark { background: var(--deep-blue); color: #fff !important; }
.pill--outline { border-color: var(--deep-blue); color: var(--deep-blue) !important; background: transparent; }
.pill--ghost { border-color: #cfc6c9; background: #fff; color: var(--deep-blue) !important; }
.arrow-icon { flex: none; }
.tag { display: inline-block; padding: 1px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: .85rem; line-height: 1.6; }
.tag--soft { border-color: #c8bfc4; color: var(--soft-text); }

.site-top { background: #fff; border-bottom: 2px solid var(--deep-blue); position: relative; z-index: 40; }
.site-top__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.site-top__logo img { width: 160px; }
.site-top__utility { display: flex; align-items: center; gap: 14px; }
.site-top__phone { display: none; text-decoration: none; }
.site-top__register { padding: 6px 16px; border: 2px solid var(--deep-blue); border-radius: 4px; font-weight: 700; text-decoration: none; }
.site-top__burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.site-top__burger span,
.site-top__burger span:before,
.site-top__burger span:after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--deep-blue); content: ''; }
.site-top__burger span { top: 21px; }
.site-top__burger span:before { top: -7px; left: 0; }
.site-top__burger span:after { top: 7px; left: 0; }
.site-top__nav { display: none; padding: 0 16px 16px; border-top: 1px solid var(--cream-2); }
.site-top__nav.is-open { display: block; }
.site-top__list { list-style: none; margin: 0px 0 12px; padding: 0px; }
.site-top__link { display: block; padding: 12px; text-decoration: none; }
.site-top__link--active { background: var(--deep-blue); color: #fff; }
.next-group { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid #d6cfd2; border-radius: 4px; text-decoration: none; }
.next-group__label { font-size: .8rem; color: var(--soft-text); }
.next-group__date { font-weight: 700; margin-right: auto; }
.next-group__btn { display: inline-flex; padding: 6px; border-left: 1px solid #d6cfd2; color: var(--coral-dark); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 16px 110px;
    background: radial-gradient(120% 90% at 10% 100%, #0b6e73 0%, rgba(11,110,115,0) 45%), linear-gradient(135deg, #14284b 0%, #0a1430 100%);
    color: #fff;
}
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape { position: absolute; display: block; }
.hero__shape--fold { right: -40px; top: 30px; width: 240px; height: 240px; background: linear-gradient(135deg, #e8693a, #6b1f3f 70%); clip-path: polygon(30% 0, 100% 70%, 0 100%); opacity: .85; }
.hero__shape--disc { left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: conic-gradient(from 200deg, #0B6E73, #4fd1d6, #0b6e73 60%); opacity: .55; }
.hero__content { position: relative; max-width: 760px; margin-left: auto; }
.hero__title { margin: 0 0 22px; font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.hero__lead { margin: 0 0 30px; font-size: 1.25rem; line-height: 1.45; }

.manifest { display: grid; gap: 26px; padding: 60px 16px; background: var(--cream-bg); border-radius: 26px 26px 0 0; margin-top: -26px; position: relative; }
.manifest__title { margin: 0px; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: .98; font-weight: 600; letter-spacing: -.03em; }
.manifest__text p { margin: 0 0 18px; font-size: 1.3rem; line-height: 1.4; color: var(--soft-text); }

.cards-carousel { padding: 10px 0px 60px; }
.cards-carousel__track { display: flex; gap: 10px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.plan-card {
    position: relative;
    flex: 0 0 82%;
    min-height: 440px;
    padding: 26px 24px;
    border-radius: 22px;
    color: #fff;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.kart--teal { background: linear-gradient(180deg, #06393C 0%, #0b6e73 100%); }
.kart--wine { background: linear-gradient(180deg, #14284b 0%, #2a4a86 100%); }
.kart--sunset { background: linear-gradient(180deg, #0b6e73 0%, #2a7c7f 55%, #e9b48f 100%); }
.plan-card__shape { position: absolute; top: 26px; right: 26px; width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(#4fd1d6, #e8693a, #4fd1d6); opacity: .8; }
.kart--wine .plan-card__shape { border-radius: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(#b05ce0, #14284b); }
.plan-card__tag { position: absolute; top: 22px; left: 24px; margin: 0; padding: 0 12px; border: 1px solid #fff; border-radius: 999px; font-size: .85rem; }
.plan-card__kicker { margin: 0 0 4px; font-weight: 700; color: #ffe0d3; }
.plan-card__title { margin: 0 0 12px; font-size: 1.9rem; line-height: 1.08; font-weight: 600; }
.plan-card__text { margin: 0; font-size: .98rem; }
.cards-carousel__nav { display: flex; align-items: center; gap: 18px; padding: 18px 16px 0; }
.cards-carousel__progress { flex: 1; height: 3px; background: var(--cream-2); position: relative; max-width: 220px; margin-right: auto; }
.cards-carousel__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; background: var(--deep-blue); -webkit-transition: width .3s; transition: width .3s; }
.cards-carousel__arrow { width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; color: var(--deep-blue); cursor: pointer; }

.stadium {
    display: grid;
    gap: 26px;
    margin: 0 8px 70px;
    padding: 50px 24px;
    border-radius: 40px;
    background: linear-gradient(135deg, #1d3566 0%, #14284b 55%, #0b1631 100%);
    border-top: 6px solid var(--coral);
    color: #fff;
}
.stadium__label { margin: 0 0 8px; font-weight: 700; }
.stadium__title { margin: 0 0 14px; font-size: 1.9rem; line-height: 1.12; font-weight: 600; }
.stadium__left p { margin: 0 0 22px; }
.stadium__right p { margin: 0 0 16px; font-size: .98rem; }

.topics { padding: 0 16px 70px; }
.topics__title { margin: 0 0 12px; text-align: center; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; }
.topics__lead { max-width: 720px; margin: 0 auto 30px; text-align: center; font-size: 1.2rem; color: var(--soft-text); }
.topics__tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--cream-2); margin-bottom: 26px; }
.topics__tab { padding: 12px 14px 26px; border: 0; border-left: 1px solid #d8d1d4; background: none; text-align: left; font: inherit; font-weight: 700; color: #6f6470; cursor: pointer; }
.topics__tab--active { border-left: 2px solid var(--deep-blue); color: var(--deep-blue); background: linear-gradient(180deg, #fff, rgba(255,255,255,0)); }
.topics__panel { margin-bottom: 18px; }
.js .topics__panel { margin-bottom: 0; }
.topics__feature { padding: 0 0 26px; background: var(--teal-deep); color: #fff; border-radius: 22px; overflow: hidden; }
.topics__img { width: 100%; aspect-ratio: 64 / 38; object-fit: cover; }
.topics__feature h3 { margin: 22px 24px 8px; font-size: 1.6rem; font-weight: 600; }
.topics__feature p { margin: 0 24px; }
.topics__rows { margin-top: 26px; }
.topics__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #d8d1d4; text-decoration: none; }
.topics__row > span:first-child { grid-column: 1 / -1; }
.topics__row-title { font-size: 1.2rem; }

.photo-band { position: relative; margin: 0 16px 70px; border-radius: 22px; overflow: hidden; background: #000; }
.photo-band__img { width: 100%; height: 520px; object-fit: cover; opacity: .82; }
.photo-band__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 24px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.photo-band__title { margin: 0 0 12px; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; font-weight: 600; }
.photo-band__text p { margin: 0 0 20px; max-width: 520px; font-size: 1.15rem; }

.two-col { display: grid; gap: 20px; padding: 0 16px 60px; }
.two-col__title { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.two-col__text p { margin: 0 0 16px; font-size: 1.2rem; color: var(--soft-text); }

.limits { padding: 0 16px 60px; }
.limits__title { margin: 0 0 20px; font-size: 1.8rem; font-weight: 600; }
.limits__grid { display: grid; gap: 10px; }
.limits__item { margin: 0; padding: 16px 18px 16px 46px; border: 1px solid #d8d1d4; border-radius: 14px; background: #fff; position: relative; }
.limits__item:before { content: '\2715'; position: absolute; left: 18px; top: 16px; color: var(--coral-dark); font-weight: 700; }

.groups { padding: 0 16px 60px; }
.groups__title { margin: 0 0 18px; font-size: 1.8rem; font-weight: 600; }
.groups__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px 22px; margin-bottom: 10px; border-radius: 16px; background: #fff; border: 1px solid #e0d9dc; text-decoration: none; }
.groups__item .arrow-icon { grid-row: span 2; color: var(--coral-dark); }
.groups__name { font-size: 1.3rem; font-weight: 700; }
.groups__dates { color: var(--soft-text); font-size: .98rem; }

.qna { padding: 0 16px 80px; }
.qna__title { margin: 0 0 16px; font-size: 1.8rem; font-weight: 600; }
.qna__list { margin: 0; }
.qna__list dt { margin-top: 18px; font-weight: 700; font-size: 1.1rem; }
.qna__list dd { margin: 6px 0 0; padding-bottom: 16px; border-bottom: 1px solid #d8d1d4; color: var(--soft-text); }

.page-hero { padding: 56px 16px 46px; background: linear-gradient(135deg, #14284b, #0B6E73); color: #fff; }
.page-hero--light { background: var(--cream-2); color: var(--deep-blue); }
.page-hero__inner { max-width: 900px; margin: 0 auto; }
.page-hero__title { margin: 0 0 10px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.05; font-weight: 600; }
.page-hero__lead { margin: 0; font-size: 1.2rem; }
.page-body { max-width: 900px; margin: 0 auto; padding: 40px 16px 80px; }
.page-body h2 { margin: 34px 0 10px; font-size: 1.6rem; font-weight: 600; }
.page-body__img { width: 100%; aspect-ratio: 110 / 62; object-fit: cover; border-radius: 18px; margin: 0 0 26px; }
.sample-card { margin: 24px 0; padding: 22px 24px; border-radius: 18px; background: #fff; border: 2px dashed var(--teal); }
.sample-card p { margin: 0 0 6px; overflow-wrap: anywhere; }
.sample-card__head { font-weight: 700; color: var(--teal) !important; }
.tagged { padding: 16px 0 6px; border-top: 1px solid #ddd6d9; }
.tagged__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.tagged p:last-child { margin: 0 0 10px; }
.note-box { padding: 22px 24px; border-radius: 18px; background: #fff; border-left: 5px solid var(--coral); margin-bottom: 20px; }

.apply-form { margin-bottom: 30px; }
.apply-form__set { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.apply-form__set legend { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.apply-form__choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #ddd6d9; }
.apply-form__choice input { margin-top: 5px; flex: none; }
.apply-form__choice span { min-width: 0; }
.apply-form__label { display: block; margin: 16px 0 6px; font-weight: 700; }
.apply-form__input { width: 100%; padding: 12px 16px; border: 1px solid #b9aeb3; border-radius: 12px; background: #fff; font: inherit; }
.apply-form__error { margin: 4px 0 0; color: #a3261b; font-size: .95rem; }
.apply-form__error:empty { margin: 0; }
.apply-form__status { margin: 12px 0 0; }
.apply-form__bait { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.colophon { padding: 60px 16px 26px; background: #0d1a33; color: #e7dfe2; }
.colophon__grid { display: grid; gap: 30px; max-width: 1200px; margin: 0 auto; }
.colophon__col img { width: 170px; margin-bottom: 14px; }
.colophon__title { margin: 0 0 10px; font-weight: 700; color: #ffe0d3; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 6px; }
.colophon a { text-decoration: none; }
.colophon__mail { overflow-wrap: anywhere; }
.colophon__cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.colophon__legal { max-width: 1200px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

.cookie-sheet { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.25); font-size: .95rem; }
.cookie-sheet__title { margin: 0 0 6px; font-weight: 700; }
.cookie-sheet p { margin: 0 0 10px; }
.cookie-sheet__extra { display: flex; gap: 8px; margin-bottom: 10px; }
.cookie-sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.vest-line { padding: 0 16px 60px; }
.vest-line__title { margin: 0 0 18px; font-size: 1.8rem; font-weight: 600; }
.vest-line__text { margin: 0 0 12px; max-width: 760px; color: var(--soft-text); }
.vest-line__text--warn { padding-left: 16px; border-left: 3px solid var(--coral); color: var(--deep-blue); }
@media (min-width: 1024px) {
    .vest-line { padding: 0 48px 80px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 640px) {
    .plan-card { flex-basis: 46%; }
    .limits__grid { grid-template-columns: 1fr 1fr; }
    .topics__tabs { grid-template-columns: repeat(4, 1fr); }
    .cookie-sheet { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
}

@media (max-width: 1023.9px) {
    .site-top__nav .next-group { margin-top: 4px; }
    .photo-band__img { height: 460px; }
}

@media (min-width: 1024px) {
    .site-top__top { padding: 12px 24px; }
    .site-top__logo img { width: 200px; }
    .site-top__phone { display: inline; }
    .site-top__burger { display: none; }
    .site-top__nav { display: flex !important; align-items: stretch; justify-content: space-between; padding: 0 24px; border-top: 1px solid var(--cream-2); }
    .site-top__list { display: flex; margin: 0; }
    .site-top__link { padding: 16px 12px; }
    .next-group { margin: 6px 0; }
    .hero { padding: 120px 6% 150px; }
    .manifest { grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 6%; }
    .cards-carousel__track { padding: 0 6% 6px; }
    .plan-card { flex-basis: 30%; min-height: 520px; padding: 30px; }
    .cards-carousel__nav { padding: 22px 6% 0; }
    .stadium { grid-template-columns: 1fr 1fr; gap: 70px; padding: 90px 9%; border-radius: 300px; margin: 0 0 80px; }
    .topics { padding: 0 6% 80px; }
    .topics__wrap { display: grid; }
    .topics__feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 0; }
    .topics__feature .topics__img { height: 100%; aspect-ratio: auto; }
    .topics__feature h3 { margin-top: 0; }
    .photo-band { margin: 0 6% 80px; }
    .photo-band__text { right: auto; top: 0; width: 55%; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,0)); }
    .two-col { grid-template-columns: 1fr 1fr; gap: 60px; padding: 0 6% 80px; }
    .limits, .groups, .qna { padding-left: 6%; padding-right: 6%; }
    .colophon__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.colophon__col--about p { max-width: 400px; opacity: .9; }
.page-body--legal { font-size: .98rem; }
.photo-band__text .pill { align-self: flex-start; }
.topics__copy { min-width: 0; padding-bottom: 4px; }
@media (min-width: 1024px) { .topics__copy { padding: 30px 30px 30px 0; } .topics__feature p { margin: 0 24px 0 0; } }
