/* Layout concept: «школьный автобус» — жёлтые заливки во всю ширину, чёрный массивный шрифт,
   фото как распечатки внахлёст, бегущая строка, ленты с прокруткой. Сознательно одна светлая тема. */
:root {
  --navy: #17418c;
  --blue: #2463d1;
  --sky: #e8f1ff;
  --sky-2: #f3f8ff;
  --green: #3da62a;
  --green-b: #6fd04a;     /* яркий зелёный для текста на синем */
  --yellow: #e8f1ff;      /* бывшая жёлтая заливка → светло-голубая */
  --yellow-2: #f3f8ff;
  --cream: #f3f8ff;
  --black: #17418c;       /* бывший чёрный → фирменный синий */
  --ink: #16264a;
  --paper: #ffffff;
  --gray: #f2f6fc;
  --muted: #4f5d78;
  --line: #d9e4f3;
  --red: #ef4f4f;

  --f-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 22px;
  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 { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.02; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); }
h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.8rem); }
h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 2px solid var(--black); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 46px; height: 46px; color: var(--ink); }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1rem; line-height: 1.05; display: block; }
.brand small { font-size: .78rem; color: var(--muted); display: block; margin-top: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; padding: 8px 9px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--yellow); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.tel { font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn { border: 2px solid var(--black); background: var(--paper); color: var(--ink); border-radius: 999px; height: 44px; min-width: 44px; display: inline-grid; place-items: center; cursor: pointer; font: inherit; padding: 0 10px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--yellow); }
.call { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--black); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.call svg { width: 18px; height: 18px; }
.call:hover { background: var(--yellow); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.burger { display: none; }
@media (max-width: 1440px) { .top-actions .tel { display: none; } }
@media (max-width: 1320px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--yellow); border-bottom: 2px solid var(--black); padding: 10px var(--gutter) 22px; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-family: var(--f-display); font-size: 1.4rem; border-radius: 0; }
  .nav a:hover { background: none; text-decoration: underline; }
  .burger { display: inline-grid; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 520px) { .call { width: 46px; padding: 0; justify-content: center; } .call span { display: none; } }
@media (max-width: 480px) { .brand small { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 28px; border-radius: 999px; font: 700 1.02rem/1.15 var(--f-body); text-decoration: none; border: 2px solid var(--black); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--black); }
.btn-main { background: var(--black); color: #fff; }
.btn-main:hover { color: #fff; box-shadow: 4px 4px 0 var(--red); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.sec-head p { color: var(--muted); font-size: 1.15rem; max-width: 58ch; }
.y { background: var(--yellow); }
.g { background: var(--gray); }
.k { background: var(--black); color: #fff; }
.c { background: var(--cream); }
.k .sec-head p { color: #c9d8f3; }
.hl { color: var(--red); }
.k .hl { color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--yellow); padding-block: clamp(36px, 5vw, 72px) 0; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.tagline { border-radius: 16px !important; display: inline-flex; gap: 8px; align-items: center; background: var(--black); color: #fff; font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: 999px; }
.hero h1 { margin-top: 24px; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); max-width: 30em; margin-top: 24px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.prints { position: relative; height: clamp(440px, 46vw, 620px); }
.prints figure { position: absolute; margin: 0; background: #fff; padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.prints img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.prints figcaption { font-size: .85rem; font-weight: 600; padding-top: 8px; }

.prints figure img { height: calc(100% - 28px); }
.prints .p1 figcaption { text-align: right; }
.prints .p1 { width: 64%; height: 66%; right: 3%; top: 0; transform: rotate(2.5deg); }
.prints .p2 { width: 46%; height: 44%; left: 0; top: 42%; transform: rotate(-5deg); z-index: 2; }
.prints .p3 { width: 40%; height: 38%; right: 0; bottom: 0; transform: rotate(4deg); z-index: 3; }
.badge-spin { position: absolute; left: 6%; top: 4%; z-index: 4; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; z-index: 3; }
.badge-spin .ring { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-spin .ring text { font: 700 10.5px var(--f-body); letter-spacing: 1px; fill: var(--black); text-transform: uppercase; }
.badge-spin .core { position: absolute; inset: 22%; background: var(--black); border-radius: 50%; display: grid; place-items: center; }
.badge-spin .core svg { width: 62%; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.marquee { background: var(--black); color: #fff; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); border-block: 2px solid var(--black); }
.marquee .track { display: flex; width: max-content; animation: run 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); padding: 16px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: ""; width: 12px; height: 12px; background: var(--red); border-radius: 50%; margin: 0 28px; }
@keyframes run { to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .prints { height: 440px; margin-top: 10px; }
  .prints .p1 { width: 74%; height: 62%; }
  .prints .p2 { width: 54%; height: 42%; }
  .prints .p3 { width: 46%; height: 36%; }
  .badge-spin { left: 0; top: 0; width: 104px; }
}

/* ---------- методика (чёрный блок) ---------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.big-eq { font-family: var(--f-display); font-size: clamp(4.5rem, 2.5rem + 9vw, 10rem); line-height: .9; color: #fff; letter-spacing: -.02em; }
.big-eq small { display: block; font-family: var(--f-body); font-size: 1.15rem; color: #fff; line-height: 1.4; margin-top: 18px; max-width: 30ch; letter-spacing: 0; }
.video { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16/9; border: 2px solid #333; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.vlink { display: block; position: relative; text-decoration: none; color: #fff; }
.vlink img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
.vlink:hover img { opacity: .95; transform: scale(1.02); }
.vlink .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--yellow); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vlink .play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 22px solid var(--black); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.vlink .vl-cap { position: absolute; left: 16px; bottom: 14px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.video-cap { font-size: .9rem; color: #c2d2ee; margin-top: 12px; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 30px 0 0; padding: 0; }
.pills li { list-style: none; border: 2px solid rgba(255,255,255,.3); border-radius: 999px; padding: 12px 14px; font-size: .95rem; text-align: center; display: grid; place-items: center; min-height: 52px; line-height: 1.25; }
.pills li:first-child { background: var(--yellow); color: var(--black); border-color: #fff; font-weight: 700; }
@media (max-width: 340px) { .pills { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pills li { font-size: .86rem; padding: 10px; border-radius: 16px; } .pills li:first-child { grid-column: span 2; } }
@media (max-width: 900px) { .method { grid-template-columns: minmax(0, 1fr); } }

/* ---------- отличия: строки с фото ---------- */
.rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.row:nth-child(even) .row-photo { order: -1; }
.row h2 { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.4rem); }
.row p { font-size: 1.12rem; color: var(--muted); margin-top: 20px; max-width: 46ch; }
.row .chips-s { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.row .chips-s span { background: var(--yellow); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; }
.row-photo { position: relative; }
.row-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 240px 240px var(--r) var(--r); }
.row:nth-child(2) .row-photo img { border-radius: var(--r) 240px 240px var(--r); }
.row:nth-child(3) .row-photo img { border-radius: var(--r); }
.row-photo .sticker { position: absolute; left: -14px; bottom: 24px; background: var(--red); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px; transform: rotate(-6deg); font-size: .95rem; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
@media (max-width: 860px) { .row { grid-template-columns: minmax(0, 1fr); } .row:nth-child(even) .row-photo { order: 0; } .row-photo .sticker { left: 10px; } }

/* ---------- день ---------- */
.now { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--black); border-radius: 16px; padding: 8px 16px; font-weight: 600; font-size: 1rem; justify-self: start; }
.now::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.day li { position: relative; background: var(--paper); border: 2px solid var(--black); border-radius: var(--r); padding: 22px 20px 24px; display: grid; gap: 8px; align-content: start; transition: transform .25s, background .25s; }
.day li:hover { transform: translateY(-4px) rotate(-1deg); }
.day li.is-now { background: var(--yellow); transform: translateY(-6px); box-shadow: 6px 6px 0 var(--black); }
.day li.is-now::after { content: "сейчас"; position: absolute; top: -13px; right: 16px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.day time { font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; }
.day b { font-size: 1.05rem; }
.day p { color: var(--muted); font-size: .95rem; }
.day-dots { display: none; }
@media (max-width: 1000px) {
  .day { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .day::-webkit-scrollbar { display: none; }
  .day li { scroll-snap-align: start; min-height: 190px; }
  .day li:hover { transform: none; }
  .day li.is-now { transform: none; box-shadow: 4px 4px 0 var(--black); }
  .day-dots { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
  .day-dots i { width: 8px; height: 8px; border-radius: 999px; background: #c5d4ee; transition: width .25s, background .25s; }
  .day-dots i.on { width: 26px; background: var(--black); }
}

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.price { background: var(--paper); border: 2px solid var(--black); border-radius: var(--r); padding: 28px 26px 30px; display: grid; gap: 16px; }
.price.feature { background: var(--yellow); box-shadow: 8px 8px 0 var(--black); }
.price .tag { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price.feature .tag { color: var(--ink); }
.price h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.price .sum { font-family: var(--f-display); font-size: clamp(2.4rem, 1.8rem + 1.4vw, 3.1rem); line-height: 1; }
.price .sum small { font-family: var(--f-body); font-size: 1rem; font-weight: 600; }
.price ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.price .opt { display: flex; justify-content: space-between; gap: 12px; border-top: 2px dashed var(--line); padding-top: 14px; align-items: baseline; }
.price .opt b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; white-space: nowrap; }
.price .opt small { color: var(--muted); }
.pay { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.pay div { background: var(--paper); border: 2px solid var(--black); border-radius: 999px; padding: 10px 18px; font-size: .98rem; }
.pay b { font-weight: 700; }
@media (max-width: 960px) { .prices { grid-template-columns: minmax(0, 1fr); max-width: 620px; } .price.feature { box-shadow: 6px 6px 0 var(--black); } }

/* ---------- питание ---------- */
.food { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.food .menu-prev { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.food .menu-prev span { border: 2px solid var(--black); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.food .menu-prev b { font-variant-numeric: tabular-nums; }
.calc { background: var(--paper); border: 2px solid var(--black); border-radius: var(--r); padding: 28px; display: grid; gap: 16px; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.calc legend { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 12px; line-height: 1.1; }
.chk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; }
.chk:has(input:checked) { border-color: var(--black); background: var(--yellow); }
.chk input { width: 20px; height: 20px; accent-color: var(--black); margin: 0; }
.chk span { flex: 1; }
.chk b { font-variant-numeric: tabular-nums; }
.range-row { display: grid; gap: 8px; }
.range-row input { width: 100%; accent-color: var(--black); }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 2px solid var(--black); padding-top: 16px; flex-wrap: wrap; }
.calc-out output { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
@media (max-width: 900px) { .food { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ленты с прокруткой ---------- */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 52px); }
.strip-head .sec-head { margin: 0; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
.arrows button:hover { background: var(--yellow); color: var(--black); border-color: var(--black); }
.strip { display: grid; grid-auto-flow: column; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scroll-padding-inline: var(--gutter); }
.strip > * { scroll-snap-align: start; }
.strip::-webkit-scrollbar { display: none; }
.strip { scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.dragging * { pointer-events: none; user-select: none; }
.strip img { -webkit-user-drag: none; user-select: none; }

/* team */
.team { grid-auto-columns: clamp(220px, 22vw, 280px); }
.person { margin: 0; display: grid; gap: 14px; align-content: start; }
.person .ph { aspect-ratio: 3/4; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--yellow); }
.person:nth-child(3n+2) .ph { background: var(--gray); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.person span { color: var(--muted); font-size: .95rem; line-height: 1.4; display: block; margin-top: 4px; }

/* albums */
.albums { grid-auto-columns: clamp(250px, 26vw, 330px); align-items: start; }
.album { display: grid; gap: 0; padding: 12px 12px 18px; background: #fff; border: 0; border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; font: inherit; transform: rotate(-1.6deg); transition: transform .2s; }
.album:nth-child(even) { transform: rotate(1.8deg); margin-top: 22px; }
.album:hover { transform: rotate(0) translateY(-4px); }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.album .cap { display: grid; gap: 2px; padding-top: 14px; }
.album .cap small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.album .cap b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.album .cap span { font-size: .9rem; color: var(--muted); }
.album.feature { background: var(--black); color: #fff; }
.album.feature .cap small, .album.feature .cap span { color: #fff; }
.album.feature p { font-size: .92rem; color: #d6e3f7; margin-top: 6px; }
.album .badge { display: inline-block; background: var(--red); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; justify-self: start; }
.album.more { background: var(--yellow); display: grid; align-content: end; min-height: 300px; padding: 26px; gap: 10px; }
.album.more b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }

/* gallery (страница новости) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 2px solid var(--black); background: var(--paper); color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 600 .95rem var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--gray); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, .95); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 8px max(16px, env(safe-area-inset-bottom, 0px)); }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lb img { max-height: calc(100vh - 120px); width: auto; border-radius: 6px; }
.lb figcaption { color: #eef3fb; font-size: .95rem; text-align: center; }
.lb button { background: var(--yellow); color: var(--black); border: 0; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; justify-self: center; }
.lb .lb-x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; }
@media (max-width: 600px) { .lb { grid-template-columns: 42px minmax(0, 1fr) 42px; } .lb button { width: 40px; height: 40px; } }

/* ---------- услуги ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service { display: grid; gap: 14px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r); border: 2px solid var(--black); background: var(--paper); text-decoration: none; color: var(--ink); align-content: start; transition: transform .15s, box-shadow .15s; }
.service:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--black); }
.service:nth-child(2) { background: var(--yellow-2); }
.service h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.service p { color: var(--muted); }
.service .sum { font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.more { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- поступление ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; background: var(--paper); border: 2px solid var(--black); border-radius: var(--r); padding: 24px; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-size: 3.6rem; line-height: .9; color: var(--black); }
.steps p { color: var(--muted); font-size: .98rem; }
.docs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.doc { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--black); border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 600; }
.doc:hover { background: var(--black); color: #fff; }
.doc svg { width: 18px; height: 18px; flex-shrink: 0; }
.doc small { opacity: .6; font-weight: 500; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 110px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 2px solid var(--black); border-radius: 18px; background: var(--paper); }
.faq details[open] { background: var(--yellow-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq-wrap .sec-head { position: static; } }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.big-tel { font-family: var(--f-display); font-size: clamp(1.7rem, 1rem + 2.6vw, 3.2rem); white-space: nowrap; color: #fff; text-decoration: none; display: inline-block; line-height: 1; margin: 18px 0 30px; }
.big-tel:hover { color: #fff; }
.c-list { display: grid; gap: 22px; margin: 0; }
.c-list dt { font-size: .9rem; color: #b5c7e8; font-weight: 600; }
.c-list dd { margin: 4px 0 0; font-size: 1.15rem; }
.c-list dd a { color: #fff; }
.maplinks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.k .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.k .btn-ghost:hover { box-shadow: 4px 4px 0 var(--yellow); }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; border: 2px solid var(--black); }
.form h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.form > p { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); background: var(--yellow-2); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .86rem; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; accent-color: var(--black); margin: 2px 0 0; }
.form .btn { justify-self: start; }
.form-msg { padding: 12px 16px; border-radius: 14px; font-size: .95rem; }
.form-msg.ok { background: var(--yellow); }
.form-msg.err { background: #fde3e0; }
@media (max-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.foot { background: var(--black); color: #fff; padding-block: 56px 32px; border-top: 2px solid rgba(255,255,255,.12); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot h4 { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; margin-bottom: 14px; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot p { color: #b5c7e8; }
.foot .brand { color: #fff; }
.foot .brand svg { color: #fff; }
.foot .brand small { color: #b5c7e8; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; color: #9fb4dc; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .legal a, .foot .legal button { color: #9fb4dc; text-decoration: underline; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- внутренние страницы ---------- */
.inner-head { background: var(--yellow); border-bottom: 2px solid var(--black); }
.crumbs { font-size: .92rem; padding-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink); }
.page-head { padding-block: 20px 44px; display: grid; gap: 18px; max-width: 900px; }
.page-head h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); }
.page-head p { font-size: 1.15rem; max-width: 60ch; }
.page-body { padding-block: 48px 88px; }
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose h2 { margin-top: 18px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.panel { background: var(--yellow); border: 2px solid var(--black); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.panel b { font-family: var(--f-display); font-weight: 400; }
.tbl-wrap { overflow-x: auto; border: 2px solid var(--black); border-radius: 18px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--yellow-2); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.meal { background: var(--paper); border: 2px solid var(--black); border-radius: var(--r); padding: 24px; }
.meal:nth-child(2) { background: var(--yellow-2); }
.meal h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; align-items: baseline; }
.meal h3 small { font-family: var(--f-body); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.meal ul { list-style: none; padding: 0; margin: 0; }
.meal li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.meal li:last-child { border-bottom: 0; }
.meal li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .92rem; }
.menu-day h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
@media (max-width: 860px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } }

.sv { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 40px; align-items: start; }
.sv-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.sv-nav a { text-decoration: none; color: var(--ink); padding: 9px 14px; font-size: .95rem; line-height: 1.3; border-radius: 12px; }
.sv-nav a:hover { background: var(--yellow-2); }
.sv-nav a[aria-current="page"] { background: var(--black); color: #fff; font-weight: 600; }
.sv-body { display: grid; gap: 22px; min-width: 0; }
.sv-body h2 { font-size: 1.6rem; margin-top: 10px; }
.kv { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); border: 2px solid var(--black); border-radius: 18px; overflow: hidden; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .94rem; background: var(--gray); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doclist a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; padding: 14px 18px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 500; }
.doclist a:hover { border-color: var(--black); background: var(--yellow-2); }
.doclist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.doclist small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) {
  .sv { grid-template-columns: minmax(0, 1fr); }
  .sv-nav { position: static; order: 2; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 4px; }
}

/* ---------- версия для слабовидящих ---------- */
.a11y-panel { background: var(--black); color: #fff; }
.a11y-panel .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-block: 12px; }
.a11y-panel .grp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.a11y-panel button { font: 600 1rem var(--f-body); border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: #fff; color: #000; }
html.vi { --f-display: Arial, Helvetica, sans-serif; --f-body: Arial, Helvetica, sans-serif; }
html.vi body { letter-spacing: .02em; }
html.vi .marquee, html.vi .badge-spin { display: none; }
html.vi .prints figure, html.vi .album { transform: none !important; }
html.vi.fs-2 { font-size: 125%; }
html.vi.fs-3 { font-size: 150%; }
html.vi.c-bw { --yellow: #fff; --yellow-2: #fff; --black: #000; --ink: #000; --paper: #fff; --gray: #fff; --muted: #000; --line: #000; --red: #000; }
html.vi.c-bw .k, html.vi.c-bw .foot, html.vi.c-bw .album.feature, html.vi.c-bw .day li:nth-child(5) { background: #fff; color: #000; }
html.vi.c-bw .big-eq, html.vi.c-bw .big-tel, html.vi.c-bw .foot h4, html.vi.c-bw .c-list dd a, html.vi.c-bw .foot a { color: #000; }
html.vi.c-wb { --yellow: #000; --yellow-2: #000; --black: #fff; --ink: #fff; --paper: #000; --gray: #000; --muted: #fff; --line: #fff; --red: #fff; color-scheme: dark; }
html.vi.c-wb .k, html.vi.c-wb .foot, html.vi.c-wb .album, html.vi.c-wb .day li:nth-child(5) { background: #000; color: #fff; }
html.vi.c-blue { --yellow: #9dd1ff; --yellow-2: #9dd1ff; --black: #063462; --ink: #063462; --paper: #9dd1ff; --gray: #9dd1ff; --muted: #063462; --line: #063462; --red: #063462; }
html.vi.c-blue .k, html.vi.c-blue .foot, html.vi.c-blue .album, html.vi.c-blue .day li:nth-child(5) { background: #9dd1ff; color: #063462; }
html.vi.noimg img, html.vi.noimg video { visibility: hidden; }
html.vi .btn:hover, html.vi .service:hover { transform: none; box-shadow: none; }

/* ================= v9: насыщенная палитра школы (синий + сочный зелёный) ================= */
h1, h2 { color: var(--navy); }
.k h1, .k h2, .y h2 { color: #fff; }
.hl { color: var(--green); }
.k .hl { color: var(--green-b); }

/* шапка и логотип */
.brand { gap: 10px; }
.brand .em { height: 54px; width: auto; }
.brand .tx { height: 30px; width: auto; }
@media (max-width: 420px) { .brand .em { height: 46px; } .brand .tx { height: 24px; } }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.call { background: var(--navy); color: #fff; }
.call:hover { background: var(--green); color: #fff; box-shadow: none; }
@media (max-width: 1320px) { .nav { background: var(--paper); } }

/* кнопки */
.btn-main { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-main:hover { color: #fff; box-shadow: 4px 4px 0 var(--green); }
.btn-ghost { color: var(--navy); }

/* первый экран: светлый, компактный */
.hero { background: radial-gradient(900px 420px at 88% 0%, #d9e9ff 0%, transparent 65%), linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%); padding-block: clamp(26px, 3.4vw, 50px) 0; }
.hero h1 { margin-top: 0; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.2rem); }
.brush { position: relative; display: inline-block; color: #fff; padding: 0 .22em .06em; z-index: 0; }
.brush::before { content: ""; position: absolute; inset: .02em 0 -.02em; z-index: -1; background: var(--green); border-radius: 16px 34px 14px 30px / 30px 16px 34px 14px; transform: rotate(-1.8deg); }
.hero .lead { margin-top: 20px; color: var(--muted); }
.hero .ctas { margin-top: 28px; }
.prints { height: clamp(400px, 40vw, 540px); }
.prints figure { cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.8,.2,1.15), box-shadow .35s; box-shadow: 0 16px 36px rgba(23, 65, 140, .2); }
.prints figure img { height: calc(100% - 28px); }
.prints figcaption { color: var(--navy); }
.prints .p1 { display: flex; flex-direction: column-reverse; width: 62%; height: 66%; right: 3%; top: 0; transform: rotate(2.5deg); z-index: 1; }
.prints .p1 figcaption { text-align: left; padding: 0 0 8px; }
.prints .p2 { width: 46%; height: 44%; left: 0; top: 44%; transform: rotate(-5deg); z-index: 2; }
.prints .p3 { width: 40%; height: 38%; right: 0; bottom: 0; transform: rotate(4deg); z-index: 3; }
.prints figure:hover, .prints figure.lift { transform: rotate(0deg) scale(1.12); z-index: 9; box-shadow: 0 30px 60px rgba(23, 65, 140, .35); }
.badge-spin { left: 4%; top: 2%; z-index: 4; pointer-events: none; }
.badge-spin .ring text { fill: var(--navy); }
.badge-spin .core { background: #fff; box-shadow: inset 0 0 0 2px var(--sky); }
.badge-spin .core img { width: 66%; height: auto; }
@media (max-width: 900px) {
  .prints { height: 360px; margin-top: 6px; }
  .prints .p1 { width: 70%; height: 66%; right: 2%; }
  .prints .p2 { width: 52%; height: 44%; top: 46%; }
  .prints .p3 { width: 44%; height: 38%; }
  .badge-spin { left: 0; top: 0; width: 96px; }
}
.marquee { background: var(--navy); color: #fff; border: 0; margin-top: clamp(30px, 4.5vw, 60px); }
.marquee span::after { background: var(--green-b); }

/* тёмные блоки — фирменный синий */
.k { background: linear-gradient(155deg, #17418c 0%, #1f55b5 100%); }
.pills li:first-child { background: var(--green); color: #fff; border-color: var(--green); }
.vlink .play { background: var(--green); }
.vlink .play::after { border-left-color: #fff; }

/* строки «учимся очно» */
.row .chips-s span { background: var(--sky); color: var(--navy); }

/* один день */
.day li:nth-child(1) { background: var(--paper); }
.day li:nth-child(5) { background: var(--navy); color: #fff; }
.day li:nth-child(5) p { color: #c9d8f3; }
.day li.is-now { background: var(--green); color: #fff; border-color: var(--green); }
.day li.is-now p { color: #eafbe2; }
.day-dots i.on { background: var(--navy); }

/* цены — насыщенно */
.price.feature { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 10px 10px 0 var(--green); }
.price.feature h3, .price.feature .sum { color: #fff; }
.price.feature .tag { color: var(--green-b); }
.price.feature ul { color: #e3ecfb; }
.price:not(.feature) { box-shadow: 6px 6px 0 var(--sky); }
.pay div:first-child { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 960px) { .price.feature { box-shadow: 6px 6px 0 var(--green); } }

/* еда — сочный зелёный блок */
.y { background: linear-gradient(150deg, #3da62a 0%, #2f9420 100%); color: #fff; }
.y .food > div > p { color: #f1fbec !important; }
.y .menu-prev span { border-color: #fff; color: #fff; }
.y .btn-main { background: #fff; color: var(--navy); border-color: #fff; }
.y .btn-main:hover { box-shadow: 4px 4px 0 var(--navy); }
.calc { color: var(--ink); box-shadow: 8px 8px 0 rgba(0, 0, 0, .14); }
.calc legend { color: var(--navy); }
.chk:has(input:checked) { background: var(--sky); border-color: var(--navy); }

/* педагоги и альбомы */
.person .ph { background: var(--sky); }
.person:nth-child(3n+2) .ph { background: #dff3d6; }
.album.feature { background: var(--navy); }
.album.feature .cap small, .album.feature .cap span { color: var(--green-b); }
.album.more { background: var(--green); color: #fff; }
.arrows button:hover { background: var(--sky); color: var(--navy); border-color: var(--navy); }

/* прочее */
.steps li::before { color: var(--green); }
.service:nth-child(2) { background: var(--sky); }
.doc:hover { background: var(--navy); color: #fff; }
.faq details[open] { background: var(--sky-2); }
.faq summary::after { background: var(--navy); color: #fff; }
.big-tel { color: var(--green-b); }
.big-tel:hover { color: #fff; }
.k .btn-ghost:hover { box-shadow: 4px 4px 0 var(--green-b); }
.form-msg.ok { background: #dff3d6; }
.lb button { background: #fff; color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sv-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.inner-head { background: radial-gradient(800px 300px at 90% 0%, #d9e9ff 0%, transparent 65%), linear-gradient(180deg, #f2f7ff, #fff); }
.panel { background: var(--sky); }
.meal:nth-child(2) { background: var(--sky-2); }

/* подвал */
.foot { background: var(--navy); }
.foot h4 { color: var(--green-b); }
.foot a:hover { color: var(--green-b); }
.foot-logo { display: inline-block; background: #fff; border-radius: 20px; padding: 14px 18px; justify-self: start; }
.foot-logo img { width: 150px; height: auto; }
.foot .slogan { font-family: var(--f-display); font-size: 1.05rem; color: var(--green-b); line-height: 1.2; }

/* ---------- приближение фото: наведение / касание ---------- */
.zoomable { cursor: zoom-in; }
.row-photo img { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.row-photo:hover img, .row-photo.lift img { transform: scale(1.04); box-shadow: 0 26px 50px rgba(23, 65, 140, .25); }
.person .ph { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.person .ph img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.person:hover .ph, .person.lift .ph { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(23, 65, 140, .22); }
.person:hover .ph img, .person.lift .ph img { transform: scale(1.08); }
.album { overflow: hidden; }
.lb img { animation: lbIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes lbIn { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lb img { animation: none; } }
.hero h1 { line-height: 1.12; }
.brush::before { inset: .1em 0 0; }
@media (max-width: 520px) { .pills li:first-child, .pills li:last-child { grid-column: span 2; } }
.price .sum { white-space: nowrap; font-size: clamp(2.1rem, 1.6rem + 1.2vw, 2.8rem); }
.page-head { min-width: 0; }
.page-head h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) { .page-head h1 { font-size: 1.85rem; } }
.price li b { color: var(--green); }

/* ---------- дзюдо: «Мой первый белый пояс» ---------- */
.judo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--green); }
.judo-photo { position: relative; min-height: 320px; }
.judo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.judo-photo:hover img { transform: scale(1.04); }
.judo-txt { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; }
.judo-tag { justify-self: start; background: var(--sky); color: var(--navy); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.judo h3 { font-family: var(--f-display); font-weight: 400; color: var(--navy); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; }
.judo p { color: var(--muted); }
.judo-more { border-top: 2px dashed var(--line); padding-top: 16px; display: grid; gap: 8px; }
.judo-more b { color: var(--navy); font-size: 1.08rem; }
.judo-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-ghost-w { background: #fff; color: var(--navy); border-color: var(--navy); }
@media (max-width: 860px) { .judo { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--green); } .judo-photo { min-height: 240px; } }

/* ---------- дзюдо: «Мой первый белый пояс» ---------- */
.judo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--green); }
.judo-photo { position: relative; min-height: 320px; }
.judo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.judo-photo:hover img { transform: scale(1.04); }
.judo-txt { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; }
.judo-tag { justify-self: start; background: var(--sky); color: var(--navy); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.judo h3 { font-family: var(--f-display); font-weight: 400; color: var(--navy); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; }
.judo p { color: var(--muted); }
.judo-more { border-top: 2px dashed var(--line); padding-top: 16px; display: grid; gap: 8px; }
.judo-more b { color: var(--navy); font-size: 1.08rem; }
.judo-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-ghost-w { background: #fff; color: var(--navy); border-color: var(--navy); }
@media (max-width: 860px) { .judo { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--green); } .judo-photo { min-height: 240px; } }
.judo-photo { aspect-ratio: auto; }
.judo-photo img { object-position: 45% 60%; }
@media (max-width: 860px) { .judo-photo { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .judo-photo { aspect-ratio: 1 / 1; } .judo-photo img { object-position: 40% 70%; } .judo-ctas .btn { width: 100%; } }
@media (min-width: 1600px) { .judo-photo { min-height: 420px; } }
@media (min-width: 861px) { .judo-photo img { object-position: 58% 65%; } }

/* дзюдо v3: раскрытие по кнопке, фото тренера */
.judo-photo img { object-position: 30% 50% !important; }
.judo-more { border-top: 0; padding-top: 0; display: block; }
.judo-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; user-select: none; transition: background .15s, color .15s; }
.judo-more summary::-webkit-details-marker { display: none; }
.judo-more summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.judo-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.judo-more summary:hover { background: var(--navy); color: #fff; }
.judo-more .close, .judo-more[open] .open { display: none; }
.judo-more[open] .close { display: inline; }
.judo-body { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); animation: judoIn .3s ease; }
.judo-body b { color: var(--navy); font-size: 1.08rem; }
@keyframes judoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 861px) { .judo { align-items: stretch; } .judo-photo { min-height: 380px; } }
@media (max-width: 860px) { .judo-photo { aspect-ratio: 3 / 2 !important; } }
@media (max-width: 480px) { .judo-photo { aspect-ratio: 4 / 3 !important; } .judo-more summary { width: 100%; justify-content: center; } }
@media (min-width: 861px) { .judo { align-items: start; } .judo-photo { min-height: 0 !important; aspect-ratio: 4 / 3; } .judo-more summary:hover { background: #fff; color: var(--navy); } .judo-more summary:focus-visible { background: var(--sky); } }
