/* Final layout layer for phones, tablets and desktop. */
html { scroll-padding-top: 112px; }
body { font-size: 16px; }
.container { width: min(1240px, calc(100% - 64px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
.header { position: sticky; top: 0; z-index: 30; }
.header-inner { height: 82px; gap: 20px; }
.desktop-nav { display: flex; gap: 20px; font-size: 14px; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; flex-shrink: 0; }
.header-cta { display: inline-flex; font-size: 13px; flex-shrink: 0; }
.cta-short-label { display: none; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 28px #0005; }
.mobile-nav a { min-height: 48px; padding: 12px; font-size: 16px; }
.mobile-quick-actions { display: none; }
.about-intro > *, .coaches-intro > *, .first-grid > *, .faq-grid > *, .contact-grid > *, .review-grid > *, .athletes-intro > *, .sources-intro > *, .tournament-card > * { min-width: 0; }
.intro-copy, .coaches-intro > p, .first-heading > p, .steps p, .hero-description, .sources-intro > p, .athletes-intro > div, .athlete-guide > p:not(.eyebrow), .athlete-guide > ul { font-size: 15px; line-height: 1.85; }
.eyebrow { font-size: 12px; letter-spacing: 1.2px; }
.section-number, .section-tag { font-size: 11px; }
.section-top { gap: 18px; flex-wrap: wrap; }
.text-link { font-size: 14px; min-height: 44px; }
.button, .button-small { font-size: 14px; min-height: 48px; }
.coach-role { font-size: 11px; }
.coach-price { flex-wrap: wrap; }
.coach-price > span, .coach-note { font-size: 13px; }
.coach-action, .coach-phone, .coach-telegram { font-size: 14px; min-height: 44px; }
.coach-phone { display: inline-flex; align-items: center; }
.faq-list summary { font-size: 16px; min-height: 52px; }
.faq-list details > div { font-size: 15px; line-height: 1.85; }
.faq-heading > p:not(.eyebrow), .bag-checklist > p, .check-items label { font-size: 14px; }
.check-items label { min-height: 48px; }
.bag-progress { font-size: 12px; flex-wrap: wrap; }
.bag-progress button { min-height: 44px; }
.message-card form > label, .form-row label, .location-fields > label { font-size: 14px; }
.message-card input, .message-card select, .message-card textarea { font-size: 16px; min-height: 48px; max-width: 100%; }
.message-card textarea { font-size: 16px; line-height: 1.65; min-height: 200px; }
.message-intro, .venue-help, .message-footnote, .copy-status { font-size: 14px; line-height: 1.75; }
.message-card > .eyebrow { font-size: 11px; }
.copy-button { width: 100%; gap: 16px; }
.copy-button > span { min-width: 0; overflow-wrap: anywhere; }
.club-phones span { font-size: 12px; letter-spacing: .5px; }
.club-phones strong { font-size: clamp(19px, 2vw, 23px); }
.contact-telegram, .contact-vk-message, .message-telegram, .open-vk { font-size: 14px; min-height: 48px; }
.venue-card h4 { font-size: 18px; }
.venue-card > p, .venue-details { font-size: 14px; }
.venue-details dt { font-size: 12px; }
.venue-card p.venue-group-note, .venue-card p.venue-entry-note, .venue-card p.venue-directions-help { font-size: 14px; }
.venue-entry-note a { white-space: normal; }
.venue-map summary, .venue-map-full, .venue-directions-links .venue-route-link { font-size: 14px; min-height: 48px; }
.source-description, .source-open, .source-download { font-size: 14px; }
.source-open, .source-download { min-height: 44px; }
.source-kind { font-size: 11px; }
.review-list .review-quote figcaption small { font-size: 12px; }
.review-list .review-quote blockquote { font-size: 17px; }
.tournament-podium { table-layout: fixed; width: 100%; font-size: 14px; }
.tournament-podium th, .tournament-podium td { overflow-wrap: anywhere; }
.tournament-podium:not(.arena-places) th:first-child { width: 24%; }
.tournament-source, .arena-table-note, .favorit-team figcaption, .arena-team figcaption { font-size: 12px; }
.footer-top > p, .footer-up, .footer-bottom { font-size: 12px; }

@media (max-width: 1199px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
  .about-intro, .coaches-intro, .sources-intro, .athletes-intro { gap: 36px; }
  .first-grid, .faq-grid, .contact-grid, .review-grid { gap: 36px; }
  .venue-grid, .sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .about-intro, .first-grid, .faq-grid, .contact-grid, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .coaches-intro, .athletes-intro, .sources-intro { grid-template-columns: minmax(0, 1fr); }
  .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .coach-price { flex-direction: row; align-items: center; }
  .athlete-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .message-card { width: 100%; max-width: 720px; }
  .hero-text { width: 75%; }
  .tournament-card { grid-template-columns: minmax(0, 1fr); }
  .tournament-result { border-left: 0; border-top: 1px solid #493349; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .container { width: calc(100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
  .header { padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { height: 70px; gap: 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 9px; letter-spacing: .8px; }
  .header-cta { padding: 10px 14px; gap: 10px; font-size: 14px; }
  .cta-full-label { display: none; }
  .cta-short-label { display: inline; }
  .mobile-nav { padding: 14px 16px; }
  .mobile-nav a { font-size: 15px; }
  .mobile-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: #100a13; border-top: 1px solid #493349; }
  .mobile-quick-actions a { display: flex; align-items: center; justify-content: center; min-height: 46px; font-size: 15px; font-weight: 700; border: 1px solid #725064; color: #f5edf7; }
  .mobile-quick-actions .quick-record { background: var(--red); color: var(--ink); border-color: var(--red); }
  .hero, .hero-content { min-height: 620px; }
  .hero-content { padding-top: 38px; }
  .hero-text { width: 100%; }
  .hero h1 .hero-club-name { font-size: clamp(44px, 14vw, 78px); }
  .hero h1 .hero-club-slogan { font-size: clamp(28px, 7.5vw, 42px); }
  .hero-description { font-size: 16px; max-width: 440px; }
  .hero-brand-art { width: 290px; right: -70px; top: 190px; opacity: .28; }
  .hero-actions { flex-wrap: wrap; gap: 12px 24px; }
  .hero-actions .button { width: 100%; }
  .hero-bottom { flex-wrap: wrap; margin-top: 34px; padding: 20px 0; }
  .hero-bottom p { font-size: 11px; letter-spacing: .4px; }
  .hero-bottom .hero-location { font-size: 11px; }
  .scroll-link { font-size: 11px; min-height: 44px; }
  .about, .coaches, .first, .reviews, .athletes, .venues, .faq, .contact, .sources, .achievements, .training-gallery, .membership { padding-top: 52px; padding-bottom: 52px; }
  h2, .about-intro h2, .first-heading h2, .coaches-intro h2, .athletes-intro h2, .sources-intro h2, .membership h2, .faq-heading h2 { font-size: clamp(28px, 7.8vw, 42px); }
  .section-top { margin-bottom: 28px; }
  .section-top .eyebrow, .athletes .section-top .eyebrow { font-size: 11px; letter-spacing: .7px; gap: 9px; }
  .section-tag { display: none; }
  .intro-copy, .coaches-intro > p, .first-heading > p, .steps p, .sources-intro > p, .athletes-intro > div { font-size: 16px; }
  .first-heading > p { max-width: 100%; }
  .principles-band span { font-size: 14px; }
  .principles-band i { display: none; }
  .principles-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
  .club-facts > div { flex-wrap: wrap; gap: 7px 16px; }
  .club-facts span { font-size: 11px; }
  .club-facts strong { font-size: 15px; }
  .club-affiliation > p:not(.eyebrow), .club-affiliation > a { font-size: 14px; }
  .training-tabs { grid-template-columns: minmax(0, 1fr); }
  .training-tabs button { font-size: 16px; min-height: 54px; padding: 14px 16px; gap: 14px; border-right: 0; border-bottom: 1px solid #c9c9c3; }
  .training-tabs button > span:first-child { font-size: 12px; }
  .training-panel { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; }
  .panel-copy > p:not(.eyebrow) { font-size: 15px; }
  .coach-grid, .venue-grid, .sources-grid { grid-template-columns: minmax(0, 1fr); }
  .coach-grid { max-width: 480px; gap: 24px; }
  .coach-price strong { font-size: 26px; }
  .coach-body { padding: 24px; }
  .venue-card { padding: 24px; }
  .venue-card > p, .venue-details dd { font-size: 15px; }
  .review-list .review-quote blockquote { font-size: 16px; }
  .review-list .review-quote figcaption strong { font-size: 14px; }
  .message-card { padding: 24px; box-shadow: none; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .club-phones strong { font-size: clamp(19px, 5.4vw, 24px); }
  .tournament-podium { font-size: 14px; }
  .arena-places { font-size: 13px; }
  .arena-places thead th { font-size: 12px; }
  .arena-places th:first-child { width: 52%; }
  .tournament-story, .tournament-result, .arena-details-body { padding-left: 22px; padding-right: 22px; }
  .tournament-story h3 { font-size: 25px; }
  .athlete-guide > p:not(.eyebrow), .athlete-guide > ul { font-size: 15px; }
  .athlete-guide > a { font-size: 14px; min-height: 48px; }
  .athlete-guide > p.guide-detail, .athlete-source-note, .athlete-resources p:not(.eyebrow) { font-size: 13px; }
  .belt-sequence strong, .belt-name, .belt-age { font-size: 12px; }
  .training-gallery-videos video { max-width: 380px; max-height: 70vh; max-height: 70svh; }
  .footer-top, .footer-bottom { gap: 18px; flex-wrap: wrap; }
  .footer-top > p, .footer-bottom { font-size: 12px; }
}

@media (max-width: 480px) {
  .header .brand small { display: none; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
  .header-inner { gap: 8px; }
  .header .logo-window { width: 36px; height: 36px; }
  .header .brand { gap: 7px; }
  .header .brand strong { font-size: 18px; }
  .header .brand small { display: none; }
  .header-cta { padding: 10px 11px; font-size: 13px; }
  .message-card, .coach-body, .venue-card { padding: 20px; }
  .training-panel { padding: 20px; }
  .tournament-win { gap: 16px; }
}

@media (max-height: 500px) and (max-width: 760px) {
  .mobile-quick-actions { position: static; }
  body { padding-bottom: 0; }
  .header { position: relative; }
}
