/*
Theme Name: СинхрО2
Theme URI: https://xn--2-otbpejd4a.xn--p1ai/
Author: СинхрО2
Description: Современная тема для школы плавания и синхронного плавания «СинхрО2». Одностраничный лендинг с плавными переходами, всплывающими окнами и интерактивными элементами.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sinhro2
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: 'Nunito Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--c-ink);
	background: var(--c-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; margin: 0 0 .5em; line-height: 1.2; color: var(--c-ink); }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

:root {
	--c-primary: #2fb6a3;
	--c-primary-dark: #1c8f7f;
	--c-mint: #a8ded0;
	--c-mint-light: #eefaf7;
	--c-ink: #182226;
	--c-ink-soft: #55666c;
	--c-bg: #ffffff;
	--c-bg-alt: #f4faf9;
	--c-accent: #ffb648;
	--c-border: #e3eeec;
	--shadow-sm: 0 2px 10px rgba(20, 40, 40, .07);
	--shadow-md: 0 14px 34px rgba(20, 40, 40, .12);
	--shadow-lg: 0 30px 70px rgba(20, 40, 40, .18);
	--radius: 22px;
	--radius-sm: 14px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 100px; font-weight: 700; font-size: 15px;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
	white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border: 2px solid var(--c-primary); color: var(--c-primary-dark); background: #fff; }
.btn-outline:hover { background: var(--c-mint-light); transform: translateY(-3px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { color: var(--c-primary-dark); font-weight: 700; }
.link-btn:hover { text-decoration: underline; }

.text-accent { color: var(--c-mint); -webkit-text-fill-color: initial; }

/* ---------- Header ---------- */
/* Solid by default everywhere (safe, always readable). Only the front-page
   hero opts into a transparent header via .site-header--transparent, and
   even then only before scrolling — see the light-text overrides below. */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 500;
	padding: 18px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm);
	transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled { padding: 10px 0; }
.site-header--transparent { background: transparent; box-shadow: none; }
.site-header--transparent.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo, .brand img { height: 52px; width: auto; transition: height .35s var(--ease), filter .35s var(--ease); }
.site-header.is-scrolled .brand-logo, .site-header.is-scrolled .brand img { height: 40px; }
.site-header--transparent:not(.is-scrolled) .brand-logo,
.site-header--transparent:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.main-nav { min-width: 0; }
.main-nav ul { display: flex; gap: 18px; flex-wrap: nowrap; }
.nav-link { font-weight: 600; font-size: 14px; position: relative; padding: 6px 0; color: var(--c-ink); white-space: nowrap; transition: color .35s var(--ease); }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--c-primary); transition: right .3s var(--ease); }
.nav-link:hover::after { right: 0; }
.site-header--transparent:not(.is-scrolled) .nav-link { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { font-weight: 700; font-size: 15px; color: var(--c-primary-dark); white-space: nowrap; transition: color .35s var(--ease); }
.site-header--transparent:not(.is-scrolled) .header-phone { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; flex-shrink: 0; }
.burger span { display: block; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .35s var(--ease); }
.site-header--transparent:not(.is-scrolled) .burger span { background: #fff; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	/* translateX (not a "right" offset) keeps the off-screen drawer out of the
	   document's scrollable area — an offset-based hide still gets counted
	   toward page scrollWidth and causes horizontal scroll on mobile. */
	position: fixed; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100vh; z-index: 700;
	background: #fff; box-shadow: var(--shadow-lg); padding: 100px 28px 28px; transform: translateX(100%);
	transition: transform .4s var(--ease);
	display: flex; flex-direction: column; gap: 28px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav .nav-link { font-size: 18px; }
.mobile-nav-social { display: flex; gap: 16px; flex-wrap: wrap; }
.mobile-nav-social a { font-weight: 700; color: var(--c-primary-dark); }
.mobile-nav-overlay {
	position: fixed; inset: 0; background: rgba(15,25,28,.45); z-index: 650; opacity: 0; visibility: hidden;
	transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 110px; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,32,.72) 0%, rgba(10,40,42,.55) 45%, rgba(10,30,32,.85) 100%); }
.hero-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bubbles span {
	position: absolute; bottom: -80px; display: block; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(168,222,208,.15));
	opacity: .55; animation: floatUp linear infinite;
}
.hero-bubbles span:nth-child(1) { left: 8%; width: 18px; height: 18px; animation-duration: 9s; animation-delay: 0s; }
.hero-bubbles span:nth-child(2) { left: 22%; width: 34px; height: 34px; animation-duration: 13s; animation-delay: 1s; }
.hero-bubbles span:nth-child(3) { left: 42%; width: 14px; height: 14px; animation-duration: 8s; animation-delay: 2.5s; }
.hero-bubbles span:nth-child(4) { left: 62%; width: 26px; height: 26px; animation-duration: 11s; animation-delay: .5s; }
.hero-bubbles span:nth-child(5) { left: 78%; width: 40px; height: 40px; animation-duration: 15s; animation-delay: 3s; }
.hero-bubbles span:nth-child(6) { left: 90%; width: 20px; height: 20px; animation-duration: 10s; animation-delay: 1.8s; }
@keyframes floatUp { to { transform: translateY(-120vh) translateX(20px); opacity: 0; } }

.hero-content { position: relative; z-index: 2; color: #fff; padding: 60px 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; color: var(--c-mint); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); color: #fff; max-width: 820px; }
.hero-subtitle { font-size: 18px; max-width: 620px; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 900; color: #fff; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); max-width: 180px; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.scroll-hint span::before { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 22px; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.lead { font-size: 17px; color: var(--c-ink-soft); }

/* ---------- Features ---------- */
.features { padding: 64px 0 40px; position: relative; z-index: 3; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
	background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-md);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 30px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--c-mint-light); border-radius: 16px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--c-ink-soft); font-size: 14px; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-badge {
	position: absolute; bottom: -20px; right: -20px; background: #fff; border-radius: var(--radius-sm);
	padding: 16px 20px; box-shadow: var(--shadow-md); max-width: 220px; border-left: 4px solid var(--c-primary);
}
.about-badge strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 15px; margin-bottom: 4px; }
.about-badge span { font-size: 13px; color: var(--c-ink-soft); }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--c-ink-soft); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--c-mint-light); color: var(--c-primary-dark); border-radius: 50%; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.about-text .btn { margin-top: 12px; }

/* ---------- Trainers ---------- */
.section.trainers { background: var(--c-bg-alt); }
.trainers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.trainer-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.trainer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.trainer-photo { aspect-ratio: 3/4; overflow: hidden; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.trainer-card:hover .trainer-photo img { transform: scale(1.06); }
.trainer-info { padding: 18px; }
.trainer-info h3 { font-size: 15px; margin-bottom: 4px; }
.trainer-exp { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c-primary-dark); background: var(--c-mint-light); padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.trainer-info ul li { font-size: 12.5px; color: var(--c-ink-soft); margin-bottom: 5px; padding-left: 12px; position: relative; }
.trainer-info ul li::before { content: '—'; position: absolute; left: 0; color: var(--c-mint); }

/* ---------- Pools ---------- */
.pools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pool-card { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; gap: 14px; }
.pool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pool-badge { position: absolute; top: -12px; right: 20px; background: var(--c-accent); color: #241a00; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.pool-card h3 { font-size: 18px; }
.pool-address { color: var(--c-ink-soft); font-size: 14px; margin: 0; }
.pool-schedule summary { cursor: pointer; font-weight: 700; color: var(--c-primary-dark); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.pool-schedule summary::-webkit-details-marker { display: none; }
.pool-schedule summary::after { content: '▾'; transition: transform .3s var(--ease); }
.pool-schedule[open] summary::after { transform: rotate(180deg); }
.pool-schedule ul { padding: 4px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.pool-schedule li { font-size: 13.5px; color: var(--c-ink-soft); padding-left: 16px; position: relative; }
.pool-schedule li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-mint); }
.pool-card .btn { margin-top: auto; }

/* ---------- Pricing ---------- */
.section.pricing { background: var(--c-bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-card { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-lg); }
.price-card.is-popular { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.price-tag { position: absolute; top: -13px; left: 26px; background: var(--c-primary); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 100px; }
.price-card h3 { font-size: 16px; margin-bottom: 10px; }
.price-amount { font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 900; color: var(--c-primary-dark); margin-bottom: 16px; }
.price-amount span { display: block; font-size: 12px; font-weight: 600; color: var(--c-ink-soft); }
.price-card ul { margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-card ul li { font-size: 13px; color: var(--c-ink-soft); padding-left: 18px; position: relative; }
.price-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--c-mint); font-weight: 900; }

/* ---------- Extra services ---------- */
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.extra-card { background: linear-gradient(160deg, var(--c-mint-light), #fff); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.extra-icon { font-size: 34px; margin-bottom: 12px; }
.extra-card h3 { font-size: 20px; }
.extra-note { display: block; font-size: 13px; color: var(--c-ink-soft); margin: 10px 0 18px; font-style: italic; }
.extra-card .check-list { margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(20,40,42,0); color: #fff; opacity: 0; transition: opacity .3s var(--ease), background .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-zoom { opacity: 1; background: rgba(15,30,32,.35); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .4s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card.is-hidden { display: none; }
.news-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.08); }
.news-date { position: absolute; top: 12px; left: 12px; background: rgba(20,40,42,.72); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 100px; }
.news-body { padding: 18px 20px 22px; }
.news-body h3 { font-size: 16px; margin-bottom: 8px; }
.news-body p { font-size: 13.5px; color: var(--c-ink-soft); margin: 0; }
.news-more-wrap { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.section.faq { background: var(--c-bg-alt); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq-head { margin: 0; text-align: left; }
.faq-head .btn { margin-top: 10px; }
.accordion-item { background: #fff; border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 700; font-size: 15.5px; }
.accordion-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--c-mint-light); color: var(--c-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .35s var(--ease), background .35s var(--ease); }
.accordion-item.is-open .accordion-icon { transform: rotate(135deg); background: var(--c-primary); color: #fff; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-panel p { padding: 0 24px 20px; color: var(--c-ink-soft); font-size: 14.5px; margin: 0; }
.accordion-item.is-open .accordion-panel { max-height: 320px; }

/* ---------- CTA ---------- */
.section.cta { padding-bottom: 110px; }
.cta-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; background: linear-gradient(135deg, var(--c-ink), #0e3b38); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.cta-text { padding: 46px 46px 46px 0; color: #fff; }
.cta-text .eyebrow { color: var(--c-mint); }
.cta-text h2 { color: #fff; }
.cta-text .lead { color: rgba(255,255,255,.78); }
.cta-contacts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; font-weight: 700; }
.cta-contacts a:hover { color: var(--c-mint); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #101c1f; color: rgba(255,255,255,.82); padding: 72px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; transition: background .3s var(--ease), transform .3s var(--ease); }
.footer-social a:hover { background: var(--c-primary); transform: translateY(-3px); border-color: var(--c-primary); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col p, .footer-links li { margin-bottom: 10px; font-size: 13.5px; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: var(--c-mint); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }

/* ---------- Back to top ---------- */
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-primary); color: #fff; font-size: 20px; box-shadow: var(--shadow-md); z-index: 400;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Modal ---------- */
.modal-overlay {
	position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(10,20,22,.55); backdrop-filter: blur(4px);
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-window {
	background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto;
	box-shadow: var(--shadow-lg); position: relative; transform: translateY(24px) scale(.96); opacity: 0;
	transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.modal-overlay.is-open .modal-window { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--c-bg-alt); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .25s var(--ease), transform .25s var(--ease); }
.modal-close:hover { background: var(--c-mint-light); transform: rotate(90deg); }
.modal-body { padding: 40px 32px 32px; }
.modal-body h3 { font-size: 24px; margin-bottom: 6px; }
.modal-subtitle { color: var(--c-ink-soft); font-size: 14px; margin-bottom: 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--c-ink-soft); }
.field input[type="text"], .field input[type="tel"], .field textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
	font-family: inherit; font-size: 14.5px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-mint-light); }
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.field-checkbox input { margin-top: 3px; }
.field-checkbox span { font-size: 12.5px; font-weight: 400; color: var(--c-ink-soft); margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-message { margin: 14px 0 0; font-size: 13.5px; font-weight: 700; min-height: 18px; }
.form-message.is-success { color: var(--c-primary-dark); }
.form-message.is-error { color: #d3423e; }
.request-form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
	position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center;
	background: rgba(6,14,16,.92); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-image { max-width: 88vw; max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); transform: scale(.95); transition: transform .35s var(--ease); }
.lightbox-overlay.is-open .lightbox-image { transform: scale(1); }
.lightbox-close { position: absolute; top: 24px; right: 28px; color: #fff; font-size: 32px; width: 48px; height: 48px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; transition: background .25s var(--ease); border-radius: 50%; }
.lightbox-nav:hover { background: rgba(255,255,255,.12); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- Cursor bubble trail (decorative, desktop only) ---------- */
.bubble-cursor { display: none; }

/* ---------- Simple pages / posts (fallback templates) ---------- */
.simple-page-content, .simple-post-excerpt { padding-top: 130px; }
.simple-posts { padding-top: 130px; display: flex; flex-direction: column; gap: 32px; }

/* ---------- Responsive ---------- */
/* The header nav collapses to the burger menu well before the grid
   breakpoints below — 8 links + logo + phone + CTA button don't fit
   in one row once the viewport drops under ~1300px, and letting them
   squeeze causes text wrapping and an oversized fixed header. */
@media (max-width: 1300px) {
	.main-nav { display: none; }
	.burger { display: flex; }
	.header-phone { display: none; }
}

@media (max-width: 1080px) {
	.trainers-grid { grid-template-columns: repeat(3, 1fr); }
	.pricing-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.faq-grid { grid-template-columns: 1fr; }
	.cta-inner { grid-template-columns: 1fr; }
	.cta-media { display: none; }
	.cta-text { padding: 40px; }
}

@media (max-width: 860px) {
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; gap: 36px; }
	.about-badge { position: static; margin-top: -40px; margin-left: 20px; }
	.trainers-grid { grid-template-columns: repeat(2, 1fr); }
	.pools-grid { grid-template-columns: 1fr; }
	.extra-grid { grid-template-columns: 1fr; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.container { padding: 0 18px; }
	.section { padding: 64px 0; }
	.features { padding-top: 40px; }
	.features-grid { grid-template-columns: 1fr; }
	.pricing-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid { grid-template-columns: 1fr; }
	.trainers-grid { grid-template-columns: 1fr; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn { width: 100%; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.modal-body { padding: 34px 22px 26px; }
}
