/* perspektiva v1, 24.10.2026 — лендинг шахматного клуба «Перспектива».
   Цвета клуба: коричневый #463115 (текст сайта), оранжевый #FFA602 (акцент сайта), красный знака #DB3838,
   голубой и жёлтый авторских фигур. Шрифт клуба TildaSans → Manrope (OFL, локально). Только светлая тема. */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --ink: #463115;
  --ink-deep: #2B1D0A;
  --muted: #6E5B43;
  --bg: #FBFAF6;
  --paper: #FFFFFF;
  --grey: #EFEDE7;
  --line: #E1DDD3;
  --red: #DB3838;
  --red-btn: #C62F2D;
  --red-deep: #B02A28;
  --orange: #FFA602;
  --orange-soft: #FFE7B8;
  --blue: #0098E0;
  --yellow: #F8E800;
  --radius: 28px;
  --radius-s: 18px;
  --wrap: 1200px;
  --gut: 16px;
  --top-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink-deep); line-height: 1.08; margin: 0; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 768px) { :root { --gut: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink-deep); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn, .step-link { max-width: 100%; min-width: 0; }
.btn .nowrap, .step-link .nowrap { overflow-wrap: anywhere; }
@media (max-width: 479px) { .btn .nowrap, .step-link .nowrap { white-space: normal; } }
.btn-big { min-height: 60px; padding: 16px 28px; font-size: 1.0625rem; }
.btn-red { background: var(--red-btn); color: #fff; box-shadow: 0 8px 22px -10px rgba(198, 47, 45, .7); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink-deep); border-color: var(--ink-deep); }
.btn-line:hover { background: var(--ink-deep); color: #fff; }
.btn-ink { background: var(--ink-deep); color: #fff; }
.btn-orange { background: var(--orange); color: var(--ink-deep); }
.btn-orange:hover { background: #FFB733; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 246, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(70, 49, 21, .08);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; background: url("assets/persp/logo.webp?v=20261024") center / contain no-repeat; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-txt b { font-size: 1.125rem; color: var(--ink-deep); letter-spacing: -0.01em; }
.brand-txt span { font-size: .8125rem; color: var(--muted); }
.top-nav { display: none; gap: 4px; }
.top-nav a { text-decoration: none; font-weight: 700; font-size: .9375rem; padding: 10px 12px; border-radius: 999px; }
.top-nav a:hover { background: var(--grey); }
.top-call { min-height: 44px; padding: 10px 18px; flex: none; }
.top-call-n { display: none; }
@media (min-width: 1040px) { .top-nav { display: flex; } }
@media (min-width: 1220px) { .top-call-l { display: none; } .top-call-n { display: inline; } }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; }
.hero-in { display: grid; gap: 24px; align-items: center; }
.hero-txt { min-width: 0; }
.kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kicker span { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.kicker span:nth-child(1) { background: var(--orange-soft); border-color: transparent; }
h1 { position: relative; z-index: 0; font-size: clamp(2.75rem, 6.6vw + 1rem, 6.5rem); letter-spacing: -0.045em; line-height: .98; }
h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 0; right: .2em; bottom: .02em; height: .14em; background: var(--orange); border-radius: 4px; z-index: -1; }
.lead { margin-top: 20px; font-size: clamp(1.0625rem, .5vw + 1rem, 1.3125rem); max-width: 34em; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 260px; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 1 auto; } }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .9375rem; color: var(--muted); font-weight: 700; }
.trust-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(219, 56, 56, .18); }

.hero-art { position: relative; margin: 8px auto 0; width: min(100%, 300px); aspect-ratio: 635 / 760; isolation: isolate; }
.hero-persp { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(43, 29, 10, .18)); }
.shape { position: absolute; z-index: 1; display: block; }
.shape-sun { width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); left: 7%; top: 14%; }
.shape-bar { width: 16%; height: 66%; background: var(--ink-deep); right: 8%; top: 4%; transform: rotate(14deg); border-radius: 6px; }
.shape-q { width: 34%; aspect-ratio: 1; background: var(--blue); left: 0; bottom: 6%; border-radius: 100% 0 0 0; }
.bubble {
  position: absolute; z-index: 3; left: 0; bottom: -6px; max-width: 220px;
  background: var(--paper); border: 2px solid var(--ink-deep); border-radius: 18px 18px 18px 4px;
  padding: 10px 14px; font-size: .8125rem; line-height: 1.35; box-shadow: 6px 6px 0 var(--ink-deep);
}
.bubble b { color: var(--red); }

@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; }
  .hero-art { margin-top: 0; width: min(100%, 440px); }
  .bubble { left: -14%; bottom: 8%; max-width: 240px; font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-persp { animation: rise .9s cubic-bezier(.2, .8, .2, 1) 1 both; }
  @keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Цифры */
.stats { background: var(--ink-deep); color: #fff; padding: 36px 0; }
.stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.stat dd { margin: 0; font-size: clamp(2.25rem, 4vw + 1rem, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat dt { font-size: .9375rem; color: #E8DCC8; }
.stat-hl dd { color: var(--orange); }
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats { padding: 48px 0; } }

/* Секции */
.sec { padding: 72px 0; }
.sec-tight { padding: 48px 0; }
.sec-grey { background: var(--grey); }
@media (min-width: 900px) { .sec { padding: 112px 0; } .sec-tight { padding: 64px 0; } }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.tag { display: inline-block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 14px; }
.tag-light { color: var(--orange); }
.sec h2, .mission h2 { font-size: clamp(2rem, 3.4vw + 1rem, 3.75rem); letter-spacing: -0.035em; }
.sec-lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 40em; }

/* Форматы — бенто */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-n { font-size: .875rem; font-weight: 700; color: var(--red) !important; margin-bottom: 18px; letter-spacing: .06em; }
.card-ink { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; padding-bottom: 200px; }
.card-ink h3 { color: #fff; font-size: clamp(1.625rem, 1.5vw + 1rem, 2.25rem); }
.card-ink p { color: #E8DCC8; max-width: 26em; }
.card-ink .card-n { color: var(--orange) !important; }
.card-piece { position: absolute; right: 18px; bottom: -40px; width: 110px; height: auto; }
.card-orange { background: var(--orange); border-color: var(--orange); }
.card-orange p, .card-orange .card-n { color: var(--ink-deep) !important; }
.card-blue { background: #E3F3FC; border-color: #CBE8F8; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-big { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-big { grid-column: span 2; grid-row: span 2; padding: 40px; padding-bottom: 40px; }
  .card-ink p { max-width: 20em; }
  .card-piece { width: 150px; right: 28px; bottom: -30px; }
  .card-orange, .card-blue, .bento .card:last-child { grid-column: span 2; }
}

/* Миссия */
.mission { background: var(--red-deep); color: #fff; padding: 72px 0; overflow: hidden; }
.mission h2 { color: #fff; }
.mission-in { display: grid; gap: 32px; align-items: center; }
.mission-txt { min-width: 0; }
.mission-lead { margin-top: 16px; font-size: 1.25rem; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 1.125rem; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg) translateY(-2px); }
.mission-piece { width: 150px; justify-self: center; }
@media (min-width: 768px) {
  .mission { padding: 104px 0; }
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .mission-piece { width: 220px; }
}

/* Как начать */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink-deep); color: #fff; font-weight: 700; font-size: 1.375rem; margin-bottom: 20px; }
.step h3 { font-size: 1.375rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--red-btn); text-decoration: none; border-bottom: 2px solid currentColor; }
.step-hl { background: var(--orange-soft); border-color: transparent; }
.step-hl .step-n { background: var(--red-btn); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Турниры */
.tour { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tour-next { background: var(--ink-deep); color: #fff; border-radius: var(--radius); padding: 32px 28px; min-width: 0; }
.tour-next h3 { color: #fff; font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin: 6px 0 14px; }
.tour-next p { color: #E8DCC8; max-width: 34em; }
.tour-next .btn { margin-top: 24px; background: var(--orange); color: var(--ink-deep); }
.tour-date { color: var(--orange) !important; font-weight: 700; font-size: 1.125rem; }
.tour-date b { font-size: 2.5rem; letter-spacing: -0.03em; margin-right: 6px; }
.tour-card { background: var(--paper); border-radius: var(--radius); padding: 28px; min-width: 0; border: 1px solid var(--line); }
.tour-card h3 { font-size: 1.375rem; margin-bottom: 8px; }
.tour-card p { color: var(--muted); }
.tour-ico { width: 40px; height: 40px; color: var(--red); margin-bottom: 14px; }
.tour-artek { background: var(--yellow); border-color: var(--yellow); }
.tour-artek p { color: var(--ink-deep); }
@media (min-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .tour-next { grid-row: span 2; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
  .tour-next .btn { align-self: flex-start; }
}

/* Где мы */
.places { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.place { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; min-width: 0; }
.place h3 { display: flex; align-items: center; gap: 8px; font-size: 1.375rem; margin-bottom: 12px; }
.place h3 .ico { color: var(--red); }
.addr { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); grid-template-columns: minmax(0, 1fr); }
.addr li, .place h3 { overflow-wrap: anywhere; hyphens: auto; }
.place-big { background: var(--grey); border-color: transparent; }
.place-call { background: var(--orange-soft); border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.place-call h3 { margin-bottom: 0; }
.place-call .btn { margin-top: 6px; }
@media (min-width: 640px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-big { grid-column: span 2; }
  .place-big .addr { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 1000px) {
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-big { grid-column: span 3; padding: 36px; }
  .place-big .addr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Пресса */
.press-h { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem) !important; margin-bottom: 20px; }
.press { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.press-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; text-decoration: none; padding: 22px 24px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); transition: border-color .15s ease; }
.press-item:hover { border-color: var(--ink-deep); }
.press-src { grid-column: 1; font-size: .8125rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.press-t { grid-column: 1; font-weight: 700; font-size: 1.0625rem; color: var(--ink-deep); }
.press-item .ico { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); }
@media (min-width: 860px) { .press { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Вопросы */
.faq-in { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--radius-s); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1.0625rem; color: var(--ink-deep); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--red); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details a { color: var(--red-btn); font-weight: 700; }

/* Кабинет */
.cab { background: var(--ink-deep); color: #fff; }
.cab h2 { color: #fff; }
.cab-in { display: grid; gap: 24px; align-items: center; }
.cab-txt { min-width: 0; }
.cab-txt p { margin-top: 14px; color: #E8DCC8; max-width: 38em; font-size: 1.125rem; }
.cab .btn { justify-self: start; }
@media (min-width: 860px) { .cab-in { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

/* Подвал */
.foot { background: var(--grey); padding: 48px 0 24px; font-size: .9375rem; }
.foot-in { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.foot-org a, .foot-org span { overflow-wrap: anywhere; }
.foot-org { display: grid; gap: 10px; min-width: 0; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.125rem; color: var(--ink-deep); }
.foot-tel { font-weight: 700; }
.soc { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.soc a { font-weight: 700; }
.foot-legal { color: var(--muted); font-size: .8125rem; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 4px; }
.foot-nav a { font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-small { margin-top: 32px; color: var(--muted); font-size: .8125rem; }
@media (min-width: 768px) { .foot-in { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }

/* Нижняя панель на телефоне */
.dock { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .dock {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 246, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .dock .btn { min-height: 52px; padding: 10px 12px; }
  .dock .btn span { overflow-wrap: anywhere; min-width: 0; }
}
@media (max-width: 420px) {
  .brand-txt span { display: none; }
  .top-call { padding: 10px 14px; }
}

/* Галерея: телефон — лента с прокруткой и привязкой, с 640 px — сетка без JS */
.gal-head { margin-bottom: 24px; }
.gal-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 700; }
.gallery { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.g-item { scroll-snap-align: start; border-radius: var(--radius-s); overflow: hidden; background: var(--grey); aspect-ratio: 4 / 3; min-width: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (min-width: 640px) {
  .gal-hint { display: none; }
  .gallery { grid-auto-flow: row dense; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-rows: 220px; overflow: visible; padding: 0; }
  .g-item { aspect-ratio: auto; }
  .g-wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 14px; }
  .g-tall { grid-row: span 2; }
}

/* Видео карточками: CSP не пускает iframe, mp4 сайт не отдаёт */
.videos { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
.video { display: grid; gap: 8px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 22px; min-width: 0; transition: border-color .15s ease; }
.video:hover { border-color: var(--ink-deep); }
.video-cover { position: relative; display: block; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-deep); margin-bottom: 8px; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red-btn); box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .6); transition: transform .15s ease; }
.video-play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video:hover .video-play { transform: scale(1.08); }
.video-src, .video-t, .video-cta { padding: 0 10px; }
.video-src { font-size: .8125rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.video-t { font-weight: 700; font-size: 1.125rem; line-height: 1.3; color: var(--ink-deep); }
.video-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red-btn); }
.foto-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
@media (min-width: 860px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Карта: две вкладки на radio без JS; метки — Перспективчик, позиции в % (MAP ниже) */
.gde-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.maps { min-width: 0; }
.map-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.map-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--grey); margin-bottom: 14px; max-width: 100%; flex-wrap: wrap; }
.map-tab { cursor: pointer; font-weight: 700; font-size: .9375rem; padding: 10px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
#map-r:checked ~ .map-tabs .map-tab-r, #map-k:checked ~ .map-tabs .map-tab-k { background: var(--ink-deep); color: #fff; }
#map-r:focus-visible ~ .map-tabs .map-tab-r, #map-k:focus-visible ~ .map-tabs .map-tab-k { outline: 3px solid var(--blue); outline-offset: 2px; }
.map { margin: 0; display: none; }
#map-r:checked ~ .map-r, #map-k:checked ~ .map-k { display: block; }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #F7F0E3; }
.map-box img { width: 100%; height: auto; }
.map-k .map-box { max-width: 520px; }
.map-cap { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.pin {
  position: absolute; width: 40px; height: 48px; transform: translate(-50%, -96%); cursor: pointer; z-index: 1;
  background: url("assets/map/pin-48.webp?v=20261024") center bottom / contain no-repeat;
  background-image: image-set(url("assets/map/pin-48.webp?v=20261024") 1x, url("assets/map/pin-96.webp?v=20261024") 2x);
  filter: drop-shadow(0 3px 3px rgba(43, 29, 10, .45)); transition: transform .15s ease;
}
.pin:hover, .pin:focus-visible { transform: translate(-50%, -100%) scale(1.15); z-index: 3; }
.pin-tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--ink-deep); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.25; white-space: nowrap;
  padding: 6px 10px; border-radius: 10px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease;
}
.pin:hover .pin-tip, .pin:focus-visible .pin-tip { opacity: 1; visibility: visible; }
.pin-big { width: 52px; height: 62px; }
.pin-n { position: absolute; right: -10px; top: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--red-btn); color: #fff; font-size: .8125rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
@media (max-width: 639px) { .pin { width: 34px; height: 41px; } .pin-big { width: 46px; height: 55px; } }
@media (min-width: 1000px) {
  .gde-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; }
  .gde-grid .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gde-grid .place-big { grid-column: span 2; padding: 26px; }
  .gde-grid .place-big .addr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* MAP:BEGIN */
.pin-r01 { left: 38.81%; top: 7.23%; }
.pin-r02 { left: 39.42%; top: 8.55%; }
.pin-r03 { left: 26.51%; top: 37.59%; }
.pin-r04 { left: 76.74%; top: 46.19%; }
.pin-r05 { left: 78.35%; top: 61.13%; }
.pin-r06 { left: 52.55%; top: 73.2%; }
.pin-r01 { margin-left: -18px; } .pin-r02 { margin-left: 18px; }
.pin-kud { left: 38.98%; top: 86.23%; }
.pin-k01 { left: 45.83%; top: 91.23%; }
.pin-k02 { left: 41.93%; top: 85.09%; }
.pin-k03 { left: 56.05%; top: 76.26%; }
.pin-k04 { left: 54.67%; top: 39.08%; }
.pin-k05 { left: 26.57%; top: 76.55%; }
.pin-k06 { left: 20.07%; top: 81.86%; }
.pin-k07 { left: 24.29%; top: 71.95%; }
.pin-k08 { left: 22.18%; top: 85.53%; }
.pin-k09 { left: 76.91%; top: 81.37%; }
.pin-k10 { left: 65.61%; top: 86.39%; }
.pin-k11 { left: 74.88%; top: 76.52%; }
.pin-k12 { left: 32.43%; top: 11.37%; }
.pin-k13 { left: 55.84%; top: 8.48%; }
.pin-k14 { left: 62.29%; top: 12.98%; }
.pin-k15 { left: 33.75%; top: 18.32%; }
.pin-k16 { left: 65.3%; top: 16.82%; }
/* MAP:END */

/* Фото: размытая миниатюра, пока грузится снимок (24.10.2026) */
.foto-ph { background-size: cover; background-position: center; background-color: #E9E1D3; }
.foto-ph.ph-detskij-turnir { background-image: url("assets/foto/detskij-turnir-ph.webp"); }
.foto-ph.ph-hod { background-image: url("assets/foto/hod-ph.webp"); }
.foto-ph.ph-kubok { background-image: url("assets/foto/kubok-ph.webp"); }
.foto-ph.ph-otkrytie { background-image: url("assets/foto/otkrytie-ph.webp"); }
.foto-ph.ph-papa-doch { background-image: url("assets/foto/papa-doch-ph.webp"); }
.foto-ph.ph-partiya-chasy { background-image: url("assets/foto/partiya-chasy-ph.webp"); }
.foto-ph.ph-ruki-doska { background-image: url("assets/foto/ruki-doska-ph.webp"); }
.foto-ph.ph-ryady-dosok { background-image: url("assets/foto/ryady-dosok-ph.webp"); }
.foto-ph.ph-semya { background-image: url("assets/foto/semya-ph.webp"); }
.foto-ph.ph-turnir-deti { background-image: url("assets/foto/turnir-deti-ph.webp"); }
.foto-ph.ph-vzroslyj { background-image: url("assets/foto/vzroslyj-ph.webp"); }
.foto-ph.ph-za-odnim-stolom { background-image: url("assets/foto/za-odnim-stolom-ph.webp"); }
.foto-ph.ph-smirnov { background-image: url("assets/foto/smirnov-ph.webp"); }

/* Тренер: компактная карточка фото + текст */
.coach { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.coach-foto { width: 100%; height: auto; border-radius: var(--radius-s); }
.coach-txt { min-width: 0; padding: 0 8px 12px; display: grid; gap: 12px; }
.coach-txt .tag { margin-bottom: 0; }
.coach-txt h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.coach-role { font-weight: 700; color: var(--red); }
.coach-txt p { color: var(--muted); }
.coach-txt .coach-role { color: var(--red); }
.coach-more { font-size: .9375rem; }
.coach-more a { color: var(--red-btn); font-weight: 700; }
@media (min-width: 860px) { .coach { grid-template-columns: 420px minmax(0, 1fr); gap: 40px; padding: 20px; } .coach-txt { padding: 8px 16px 8px 0; } }
