:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5d6875;
  --line: #d9e0e7;
  --red: #b71925;
  --blue: #123a6f;
  --green: #2f7d50;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: var(--blue); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 28px; background: #101820; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
nav a.active, nav a:hover { background: rgba(255,255,255,.16); }
main { max-width: 1180px; margin: 0 auto; padding: 24px; }
.entity-strip { margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; font-size: 14px; }
.entity-strip span { color: var(--red); font-weight: 700; margin-right: 8px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 34px; background: var(--panel); border-radius: 8px; border: 1px solid var(--line); }
.hero h1, .page-head h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.12; }
.hero p, .page-head p { color: var(--muted); font-size: 18px; }
.hero img { width: 100%; max-height: 390px; object-fit: cover; border-radius: 8px; }
.direction-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.direction-head img { width: 100%; height: 360px; object-fit: cover; object-position: center 42%; border-radius: 8px; }
.direction-head img[src$="direction-preschool.jpg"] { object-position: center top; }
.direction-head img[src$="direction-adaptive.jpg"] { object-position: center top; }
.direction-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.direction-detail ul { margin: 0; padding-left: 20px; }
.direction-detail li + li { margin-top: 8px; }
.video-slot { min-height: 280px; display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #101820; color: #fff; }
.video-slot h2 { color: #fff; }
.video-slot p { color: rgba(255,255,255,.76); }
.direction-videos { display: grid; gap: 14px; }
.video-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.video-card h3 { margin: 0 0 10px; font-size: 18px; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #101820; border-radius: 6px; }
.direction-reasons h2 { margin-bottom: 16px; }
.taekwondo-menu h2 { margin-bottom: 14px; }
.taekwondo-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.taekwondo-menu-grid a { display: block; min-height: 118px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; }
.taekwondo-menu-grid a:hover, .taekwondo-menu-grid a.current { border-color: var(--blue); background: #f2f6fb; }
.taekwondo-menu-grid strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 18px; }
.taekwondo-menu-grid span { color: var(--muted); font-size: 14px; }
.source-section { overflow: hidden; }
.source-content h1 { margin-top: 0; font-size: 30px; line-height: 1.18; }
.source-content h2 { margin-top: 26px; }
.source-content h3, .source-content h4 { margin-bottom: 8px; }
.source-content img { max-width: 100%; height: auto; margin: 8px; border-radius: 6px; }
.source-content table { margin: 16px 0; background: #fff; }
.source-content td { min-width: 120px; }
.source-content a[href$=".pdf"] { font-weight: 700; }
.reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reason-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.reason-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--blue); }
.reason-card p { margin: 0; }
.notice.compact { margin-top: 16px; background: #fff; }
.notice.compact h3 { margin: 0 0 8px; }
.ip-hero img { object-position: center 20%; }
.eyebrow { margin: 0 0 8px; color: var(--red) !important; font-size: 13px !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border: 1px solid var(--blue); border-radius: 6px; text-decoration: none; font-weight: 700; color: var(--blue); background: #fff; }
.button.primary { background: var(--blue); color: #fff; }
.section, .page-head, .content-panel, .notice { margin-top: 20px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.section h2 { margin-top: 0; font-size: 26px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two-col > div { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.stats div { min-height: 112px; padding: 18px; background: #101820; color: #fff; border-radius: 8px; }
.stats strong { display: block; font-size: 34px; line-height: 1; margin-bottom: 10px; color: #fff; }
.stats span { color: rgba(255,255,255,.78); }
.news-section { display: grid; grid-template-columns: .45fr 1.55fr; gap: 22px; align-items: start; }
.vk-panel { height: 70vh; min-height: 760px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.vk-panel #vk_groups { width: 100%; height: 100%; }
.vk-panel iframe { width: 100% !important; max-width: 100% !important; height: 100% !important; min-height: 760px !important; }
.lead-form-frame { height: 720px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lead-form-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.trainer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trainer-card { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.trainer-card img, .photo-placeholder { width: 180px; height: 220px; object-fit: cover; border-radius: 8px; background: #dfe6ee; }
.photo-placeholder { display: grid; place-items: center; color: var(--blue); font-size: 34px; font-weight: 800; }
.trainer-copy h2 { margin: 0 0 6px; font-size: 20px; }
.trainer-title { margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.trainer-copy p { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.card-link { min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; text-decoration: none; color: var(--ink); }
.card-link img { width: 100%; height: 180px; object-fit: cover; object-position: center 42%; border-radius: 6px; margin: -2px 0 4px; }
.card-link img[src$="direction-preschool.jpg"] { object-position: center top; }
.card-link img[src$="direction-adaptive.jpg"] { object-position: center top; }
.card-link:hover { border-color: var(--blue); }
.card-link span { color: var(--muted); }
.notice { border-color: #f0c36a; background: #fff8e5; }
.facts { display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf2f6; }
.status-warn { color: #8a4a00; font-weight: 700; }
.status-ok { color: var(--green); font-weight: 700; }
.small-note { color: var(--muted); font-size: 14px; }
.checklist { padding-left: 20px; }
.partners-list { display: grid; gap: 18px; }
.partner-banner { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 22px; align-items: center; color: var(--ink); text-decoration: none; }
.partner-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.partner-banner img.partner-logo-dark { background: #080808; border-color: #080808; }
.partner-placeholder { min-height: 190px; display: grid; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #101820; color: #fff; font-size: 44px; font-weight: 800; text-align: center; }
.partner-banner span { color: var(--red); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.partner-banner h2 { margin: 6px 0 10px; }
.partner-banner strong { display: block; margin-bottom: 8px; color: var(--blue); }
.partner-banner p { margin: 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 18px; max-width: 1180px; margin: 26px auto 0; padding: 24px; background: #101820; color: #fff; }
.footer a { display: block; color: #fff; margin-bottom: 8px; }
@media (max-width: 820px) {
  .topbar, .footer { flex-direction: column; align-items: flex-start; }
  .hero, .direction-head, .direction-detail, .taekwondo-menu-grid, .reason-grid, .two-col, .grid, .stats, .news-section, .trainer-grid, .trainer-card, .partner-banner { grid-template-columns: 1fr; }
  .hero h1, .page-head h1 { font-size: 30px; }
  main { padding: 14px; }
  .facts div { grid-template-columns: 1fr; }
  .trainer-card img, .photo-placeholder { width: 100%; height: 260px; }
  .vk-panel { min-height: 560px; height: 70vh; }
  .vk-panel iframe { min-height: 560px !important; }
}
