/* ====== Base / Theme ====== */
:root{
  --bg:#0A0A0C; --bg2:#121218; --panel:#161620;
  --text:#E8EAF2; --muted:#B8BFD0; --line:#2A2A36;
  --red:#E32735; --blue:#2979FF; --white:#F4F6FB; --blue2:#9EC5FF;
  /* Hover/Active states */
  --red-hover:#FF3D4A; --red-active:#C51D2A;
  --blue-hover:#4D93FF; --blue-active:#1A5FD9;
  --success:#4ADE80; --success-bg:rgba(74,222,128,0.1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #101018 0%, var(--bg) 100%);
  line-height:1.6;
  width: 100vw;
  overflow-x: hidden;
}

h1,h2,h3,h4{font-family:'Montserrat',sans-serif; letter-spacing:.3px; color:#fff}
h1{font-size:clamp(28px,6.5vw,60px); line-height:1.1; margin:.2em 0 .4em}
h2{font-size:clamp(22px,4.8vw,42px); margin:.2em 0 .6em}
h3{font-size:clamp(20px,2.2vw,28px); margin:.2em 0 .4em}
p{margin:.6em 0; color:var(--muted)}
.container{width:min(1160px,92%); margin:0 auto}
a{color:var(--white); text-decoration:none}

/* ====== Focus States (Accessibility) ====== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.burger:focus-visible,
.thumb:focus-visible,
.accordion summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.card:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ====== Cursor & Touch Targets ====== */
.card,
.thumb,
.accordion summary,
.download-card {
  cursor: pointer;
}

/* Touch targets minimum 44x44px */
.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a {
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* No-scroll class for menu/modal overlay */
.no-scroll{overflow:hidden;overflow-x:hidden;width:100%}

a.link {
    color: var(--blue2);
}

/* Header */
.site-header{position: fixed; width: 100vw; top:0; z-index:40; background:#0A0A0C; border-bottom:1px solid var(--line)}

/* backdrop-filter только для поддерживающих браузеров */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: #0A0A0C;
  }
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px}
.logo{width:44px; height:auto; /*filter:grayscale(100%) contrast(110%) brightness(130%)*/}
.logo.small{width:36px}
.brand-title{font-family:'Montserrat',sans-serif; font-weight:800; letter-spacing:1px}
.nav{display:flex; gap:22px}
.nav a{color:var(--text); text-transform:uppercase; font-weight:600; font-size:.85rem; opacity:.95; padding:10px 0; cursor: pointer}
.nav a:hover{color:var(--red)}

/* Nav backdrop for mobile menu */
.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s,visibility 0.3s;
  z-index:998;
}
.nav-backdrop.open{
  opacity:1;
  visibility:visible;
}

.burger{display:none; background:none; border:0; width:42px; height:36px; position:relative; cursor:pointer}
.burger span{display:block; height:2px; background:var(--white); position:absolute; left:8px; right:8px; transition:.25s}
.burger span:nth-child(1){top:8px} .burger span:nth-child(2){top:16px} .burger span:nth-child(3){top:24px}

/* Sections */
.section{position:relative; padding:72px 0; overflow:hidden}
section[id]{scroll-margin-top:80px;}
.kicker{display:inline-block; padding:6px 12px; border-radius:10px; font-size:.85rem; color:#fff; background:var(--line)}
.kicker.red{background:linear-gradient(90deg,#611016,#E32735)}
.kicker.blue{background:linear-gradient(90deg,#0E1C49,#2979FF)}
.section-head{margin-bottom:28px}

/* HERO — использует WebP, если браузер умеет; параллакс на inner */
.hero{
  min-height:88svh; display:flex; align-items:center;
  background-image:url('/img/hero_og.webp'), url('/img/hero_og.jpg');
  background-position:center; background-size:cover; background-repeat:no-repeat;
  background-attachment:fixed;
}
.hero .overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 100%)}
.hero-inner{position:relative; will-change: transform;} /* parallax target */
@media (max-width: 960px){
  .hero{ min-height:92svh; background-attachment:scroll; }
}

/* CTA / Buttons */
.badge{display:inline-block; background:var(--red); color:#fff; padding:8px 14px; border-radius:10px; font-weight:700; letter-spacing:.5px}
.hero .cta{display:flex; flex-wrap:wrap; gap:16px; margin-top:18px}
.btn{display:inline-block; padding:14px 22px; border-radius:10px; font-weight:700; letter-spacing:.3px; color:#fff; -webkit-tap-highlight-color:transparent}
.btn-red{background:linear-gradient(180deg,#F34A55,#C51D2A)}
.btn-ghost{border:2px solid #fff; color:#fff}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px;
}

/* Унифицированные кнопки Яндекс-Карт */
.map-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(180deg, #F34A55, #C51D2A);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 39, 53, 0.3);
    color: white;
    text-decoration: none;
}

/* Cards / Grid */
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:24px}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.card{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px}
.card-accent{height:6px; width:100%; border-radius:8px; margin:-22px 0 14px 0}
.card-accent.red{background:linear-gradient(90deg,#611016,#E32735)}
.card-accent.blue{background:linear-gradient(90deg,#0E1C49,#2979FF)}
.list{padding-left:18px; margin:10px 0; color:var(--text)}
.list li{margin:6px 0; font-size:clamp(14px,2.6vw,16px)}
.prices{list-style:none; padding:0; margin:10px 0}
.prices li{display:flex; justify-content:space-between; border-bottom:1px dashed var(--line); padding:6px 0}
.prices .free{color:#4ADE80}

/* Coaches */
.coach-photo{width:100%; height:240px; object-fit:cover; border-radius:10px; border:1px solid var(--line)}
.muted{color:var(--muted)}

/* Reviews */
.section-reviews .reviews-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px}
.iframe-box{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px}
.yandex-reviews-frame{width:100%; height:340px; border:0; background:#0B0B0D}

/* .yandex-reviews-frame{width:100%; height:340px; border:0; filter:grayscale(100%) contrast(105%) brightness(95%); background:#0B0B0D}*/
.iframe-box h3{margin:6px 0 10px}

/* Gallery with WebP bg */
.section-gallery{
  background-image:url('/img/gallery_bg.webp'), url('/img/gallery_bg.jpg');
  background-position:center; background-size:cover; background-repeat:no-repeat;
  background-attachment:fixed; color:#fff
}
.section-gallery .overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85))}
.section-gallery .container{position:relative}
.masonry{columns:4 280px; column-gap:12px}
.thumb{width:100%; border-radius:10px; margin:0 0 12px; border:1px solid var(--line); cursor:zoom-in; display:block; filter: blur(12px); transform:scale(1.02); transition:filter .35s ease, transform .35s ease}
.thumb.loaded{filter: blur(0); transform:none}

/* FAQ */
.accordion details {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    background: var(--panel);
    transition: background 0.2s ease;
}

.accordion summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--muted);
}

.accordion details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion .answer {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

/* Contacts & Footer 
.section-contacts .grid-2{display:grid; grid-template-columns:1fr 1fr; gap:24px}*/
.site-footer{background:#050506; border-top:1px solid var(--line); padding:18px 0; margin-top:24px}
.footer-inner{display:flex; align-items:center; justify-content:space-between}
.footer-brand{display:flex; align-items:center; gap:10px}
.vk{color:#9EC5FF}

/* Lightbox nav buttons */
.lightbox .lb-nav{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none;
}
.lightbox .lb-btn{
  pointer-events:auto; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.35);
  color:#fff; width:48px; height:48px; border-radius:50%; font-size:22px; line-height:44px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; margin:0 10px;
}

/* ====== Новые стили для страниц оферты и политики ====== */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header .subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.content-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--line);
}

.offer-info, .policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.offer-info h2, .policy-content h2 {
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.offer-info h3, .policy-content h3 {
  margin-top: 24px;
  color: var(--blue2);
}

.offer-info h4, .policy-content h4 {
  margin-top: 20px;
  color: var(--white);
}

.offer-info ul, .policy-content ul {
  padding-left: 20px;
  margin: 16px 0;
}

.offer-info li, .policy-content li {
  margin: 8px 0;
  color: var(--muted);
}

.alert {
  background: rgba(227, 39, 53, 0.1);
  border-left: 4px solid var(--red);
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
}

.alert strong {
  color: var(--red);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.download-card {
  background: var(--bg2);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.download-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.download-card h4 {
  margin: 12px 0;
  color: var(--white);
}

.download-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.notice {
  background: rgba(41, 121, 255, 0.1);
  border-left: 4px solid var(--blue);
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 0.95rem;
}

.last-updated {
  background: var(--bg2);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid var(--blue);
}

.consent-section {
  background: rgba(41, 121, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  margin-top: 32px;
  border: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.nav a.active {
  color: var(--red);
  font-weight: 700;
}

/* Адаптивность для навигации */
@media (max-width: 768px) {
  .nav {
    gap: 16px;
  }
  
  .nav a {
    font-size: 0.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .content-card {
    padding: 24px;
  }
}

/* ====== Cookie Notification ====== */
.cookie-notification {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 16px 20px;
  z-index: 1000;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-sizing: border-box;
}

.cookie-notification.show {
  transform: translateY(0);
}

.cookie-notification p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-notification a {
  color: var(--blue2);
  text-decoration: underline;
}

.cookie-notification a:hover {
  color: var(--blue);
}

.cookie-notification .btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cookie-notification .btn:hover {
  background: #c11e2a;
}

/* ====== Phase 2: Performance & Layout ====== */

/* Floating Header */
.site-header {
  top: 12px;
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Adjust body for floating header */
body {
  padding-top: 84px;
}

/* Scroll margin for fixed header */
section[id] {
  scroll-margin-top: 100px;
}

/* Сплошной фон: герой не просвечивает сквозь плавающую шапку */
.site-header {
  background: #0A0A0C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: #0A0A0C;
  }
}

/* ====== prefers-reduced-motion ====== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero,
  .section-gallery {
    background-attachment: scroll;
  }
  
  .thumb {
    filter: none;
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* ====== Phase 3: Animation & Style ====== */

/* Card Hover Effects */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Coach photo hover */
.coach-photo {
  transition: transform 0.3s ease;
}

.card:hover .coach-photo {
  transform: scale(1.02);
}

/* Enhanced Button States */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-red:hover {
  box-shadow: 0 8px 24px rgba(227, 39, 53, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red);
  color: var(--red);
}

/* Enhanced Badge */
.badge {
  background: linear-gradient(135deg, var(--red) 0%, #FF4D5A 100%);
  box-shadow: 0 4px 16px rgba(227, 39, 53, 0.3);
}

/* Enhanced Kicker */
.kicker {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Gallery Thumbnail Hover */
.thumb {
  transition: filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.thumb.loaded:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Improved Accordion */
.accordion details {
  transition: border-color 0.2s ease;
}

.accordion details[open] {
  border-color: var(--red);
}

/* ====== Coaches Page Styles ====== */
.coaches-page .main-content {
  padding-top: 0;
}

.coaches-page .page-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg2), var(--panel));
  border-bottom: 1px solid var(--line);
}

.coaches-page .hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.coaches-page .hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.coaches-page .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 1.5rem 0;
}

.coaches-page .hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.coaches-page .hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.coaches-page .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coaches-page .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.coaches-page .stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Coaches Grid */
.coaches-grid-section {
  padding: 3rem 0;
}

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.coaches-count {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg2);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.coaches-count .count-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-right: 0.5rem;
}

.coaches-count .count-text {
  font-size: 1.125rem;
  color: var(--muted);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg2);
  border-radius: 20px;
  border: 2px dashed var(--line);
}

.no-results-icon {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.no-results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.no-results-text {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking Section */
.booking-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg2), var(--panel));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-container {
  max-width: 800px;
  margin: 0 auto;
}

.booking-header {
  text-align: center;
  margin-bottom: 3rem;
}

.booking-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.booking-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.booking-step {
  background: var(--panel);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--blue);
}

.booking-step .step-number {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.booking-step .step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.booking-step .step-content {
  flex: 1;
}

.booking-step .step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.booking-step .step-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.booking-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.faq-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: var(--bg2);
}

.faq-question.active {
  background: var(--bg2);
}

.faq-question-text {
  flex: 1;
  margin-right: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--red), #c92a2a);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: white;
}

.cta-text {
  font-size: 1.25rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--red);
  border-color: white;
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.cta-section .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Coach Modals Container */
.coach-modals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Loading Indicator */
.coaches-grid.loading {
  position: relative;
  min-height: 300px;
}

.coaches-grid.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Card Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coach-card {
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
  opacity: 0;
}

/* Accessibility Improvements */
.coach-card:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.filter-btn:focus,
.sort-btn:focus,
.faq-question:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Performance Optimization */
.coach-photo {
  content-visibility: auto;
}

.accordion details[open] summary {
  background: rgba(227, 39, 53, 0.1);
}

/* ====== Phase 4: Enhancement ====== */

/* Scroll-to-top Button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(227, 39, 53, 0.3);
  border: none;
  color: #fff;
  font-size: 20px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(227, 39, 53, 0.4);
  background: var(--red-hover);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Scroll-triggered Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grid elements */
.grid-2 .card:nth-child(1) { transition-delay: 0.1s; }
.grid-2 .card:nth-child(2) { transition-delay: 0.2s; }
.grid-3 .card:nth-child(1) { transition-delay: 0.1s; }
.grid-3 .card:nth-child(2) { transition-delay: 0.2s; }
.grid-3 .card:nth-child(3) { transition-delay: 0.3s; }

/* Loading Skeleton Animation */
.thumb:not(.loaded) {
  background: linear-gradient(
    90deg,
    var(--panel) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--panel) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.thumb.loaded {
  animation: none;
  background: none;
}

/* Typography improvements */
p {
  max-width: 65ch;
}

h4 {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--white);
  font-weight: 600;
}