/*
Theme Name: CLB Cờ Vua Bạch Đằng
Theme URI: https://clbbachdang.com
Description: Giao diện website CLB Cờ Vua Bạch Đằng (Đông Hà, Quảng Trị). Dựng trên nền theme JobPlus: gọn nhẹ, không phụ thuộc plugin, tương thích WordPress 7.x.
Author: CLB Cờ Vua Bạch Đằng
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bachdang
*/

/* Bố cục: dải navy (sông Bạch Đằng) xen dải trắng/xanh nhạt; bàn cờ là họa tiết chủ đạo.
   Màu lấy từ logo: xanh trời #53B7E9 + navy sâu + vàng cúp cho nút kêu gọi. */
:root {
	--sky: #53b7e9;
	--sky-700: #1d7fb6;
	--sky-100: #d7eefb;
	--sky-50: #edf7fd;
	--navy: #0c2b4b;
	--navy-800: #123a61;
	--navy-700: #1a4a78;
	--ink: #14273b;
	--muted: #55697e;
	--line: #dbe6ef;
	--bg: #ffffff;
	--tint: #f3f8fc;
	--gold: #f5b73e;
	--gold-600: #e09d18;
	--on-dark: #e8f3fb;
	--on-dark-muted: #a9c3d9;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 12px 32px rgba(12, 43, 75, .08);
	--shadow-lg: 0 28px 64px rgba(12, 43, 75, .18);
	--font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sky-700); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.container--narrow { max-width: 820px; }
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
	white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(245, 183, 62, .35); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
	font-size: .82rem; font-weight: 600; color: var(--sky-700); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: conic-gradient(var(--sky) 25%, transparent 0 50%, var(--sky) 0 75%, transparent 0); background-size: 7px 7px; border: 1px solid var(--sky); }
.eyebrow--light { color: var(--sky); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy); white-space: nowrap; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent;
	transition: box-shadow .2s, border-color .2s;
}
.admin-bar .site-header { top: 32px; }
.is-scrolled .site-header { box-shadow: 0 6px 24px rgba(12, 43, 75, .08); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); text-transform: uppercase; }
.brand__text small { font-size: .7rem; letter-spacing: .2em; color: var(--sky-700); font-weight: 600; margin-bottom: 4px; }
.brand__text b { font-size: 1.45rem; letter-spacing: .04em; font-weight: 700; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__text small { color: var(--sky); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; }
.site-nav .menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a { color: var(--sky-700); background: var(--sky-50); }
.site-nav .menu .sub-menu { display: none; }
.site-nav__actions { display: flex; align-items: center; gap: 14px; }
.site-nav__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.site-nav__tel .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: var(--on-dark);
	background:
		radial-gradient(900px 520px at 85% 30%, rgba(83, 183, 233, .35), transparent 65%),
		linear-gradient(160deg, var(--navy-800) 0%, var(--navy) 60%);
}
.hero::after { /* sóng sông Bạch Đằng */
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
	background: var(--bg);
	-webkit-mask: radial-gradient(40px 22px at 50% 0, transparent 98%, #000) 0 0 / 80px 60px repeat-x;
	mask: radial-gradient(40px 22px at 50% 0, transparent 98%, #000) 0 0 / 80px 60px repeat-x;
	opacity: 1;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 72px 110px; }
.hero__copy { min-width: 0; }
.pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; margin-bottom: 22px;
	border-radius: 999px; background: rgba(83, 183, 233, .16); border: 1px solid rgba(83, 183, 233, .4);
	color: #fff; font-weight: 600; font-size: .88rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 183, 62, .25); }
.hero__title {
	font-family: var(--display); text-transform: uppercase; font-weight: 700; color: #fff;
	font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: .005em; margin-bottom: 22px;
}
.hero__accent { display: block; color: var(--sky); font-size: .62em; line-height: 1.2; margin-top: .35em; letter-spacing: .02em; }
.hero__lead { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 34em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--on-dark); font-weight: 500; font-size: .95rem; }
.hero__perks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__perks .ico { color: var(--gold); }

.hero__visual { position: relative; min-height: 470px; display: flex; align-items: flex-end; justify-content: center; }
.hero__board {
	position: absolute; left: 50%; bottom: 10px; width: min(500px, 100%); aspect-ratio: 1; max-width: 100%;
	transform: translateX(-50%) perspective(900px) rotateX(58deg); transform-origin: 50% 100%;
	background: repeating-conic-gradient(rgba(83, 183, 233, .55) 0 25%, rgba(255, 255, 255, .08) 0 50%) 0 0 / 25% 25%;
	border: 6px solid rgba(83, 183, 233, .6); border-radius: 6px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.hero__files, .hero__ranks { position: absolute; display: flex; font-family: var(--display); font-size: .8rem; color: var(--sky); }
.hero__files { left: 0; right: 0; bottom: -26px; }
.hero__ranks { top: 0; bottom: 0; left: -22px; flex-direction: column; }
.hero__files i, .hero__ranks i { flex: 1; text-align: center; font-style: normal; display: flex; align-items: center; justify-content: center; }
.hero__pieces { position: relative; width: min(370px, 78%); margin-bottom: 70px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); animation: bd-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero__chip {
	position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
	background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3;
}
.hero__chip b { color: var(--navy); }
.hero__chip--a { top: 40px; left: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero__chip--a b { font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; }
.hero__chip--b { bottom: 30px; right: 0; }
.hero__chip--b .ico { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--gold); color: var(--navy); }
.hero__chip--b span { display: flex; flex-direction: column; }
@keyframes bd-rise { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Stats ---------- */
.stats { position: relative; margin-top: -40px; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding-block: 0; overflow: hidden; }
.stats__grid.container { padding: 0; max-width: calc(var(--container) - 40px); }
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.stats--light { margin: 0; padding-block: 0 20px; }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy .section__title { color: #fff; }
.section--navy .section__lead { color: var(--on-dark-muted); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section__head--split > div { max-width: 680px; min-width: 0; }
.section__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: .01em; font-weight: 700; margin-bottom: 14px; line-height: 1.12; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Why chess */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why__visual { position: relative; min-width: 0; }
.why__board {
	aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; position: relative;
	background:
		radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .25), transparent 55%),
		repeating-conic-gradient(var(--sky) 0 25%, #86cdf0 0 50%) 0 0 / 25% 20%;
	box-shadow: var(--shadow-lg);
}
.why__board span { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(9rem, 20vw, 15rem); color: #fff; text-shadow: 0 20px 40px rgba(12, 43, 75, .35); line-height: 1; }
.why__quote { position: absolute; left: -20px; bottom: 28px; max-width: 290px; background: var(--navy); color: var(--on-dark-muted); padding: 18px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .85rem; margin: 0; }
.why__quote b { display: block; color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; font-weight: 600; margin-bottom: 4px; }
.why__copy { min-width: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 36px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--sky-50); color: var(--sky-700); display: grid; place-items: center; }
.feature__icon .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.coach { min-width: 0; }
.coach__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--sky), var(--navy-700)); margin-bottom: 16px; }
.coach__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.coach:hover .coach__photo img { transform: scale(1.04); }
.coach__ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--display); font-size: 5.5rem; font-weight: 700; color: rgba(255, 255, 255, .92);
	background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 25%, transparent 0 50%) 0 0 / 50% 40%;
}
.coach__badge { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 10px; background: rgba(12, 43, 75, .86); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(4px); }
.coach__name { font-size: 1.1rem; margin-bottom: 2px; }
.coach__role { color: var(--sky-700); font-weight: 600; font-size: .9rem; margin: 0; }
.coach__bio { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; border-top: 2px dashed var(--sky-100); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
	position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px;
	border-radius: 16px; background: var(--navy); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 700;
	box-shadow: 0 0 0 8px var(--bg);
}
.step:nth-child(even) .step__num { background: var(--sky); color: var(--navy); }
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Session */
.session { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.session__copy { min-width: 0; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); }
.ticks .ico { color: var(--gold); margin-top: 4px; }
.session__video { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; color: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.session__video:hover { color: #fff; }
.session__board {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(12, 43, 75, 0) 40%, rgba(12, 43, 75, .85)),
		repeating-conic-gradient(var(--navy-700) 0 25%, var(--sky) 0 50%) 0 0 / 12.5% 20%;
}
.session__play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(245, 183, 62, .25); transition: transform .2s; }
.session__play .ico { width: 34px; height: 34px; margin-left: 4px; }
.session__video:hover .session__play { transform: translate(-50%, -50%) scale(1.06); }
.session__cap { position: absolute; left: 24px; bottom: 20px; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; }

/* Levels */
.levels__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 26px; }
.levels__tab {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
	border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-align: left;
	transition: border-color .15s, background .15s, color .15s;
}
.levels__tab:hover { border-color: var(--sky); }
.levels__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--sky-50); color: var(--sky-700); font-family: var(--display); font-size: 1.1rem; }
.levels__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.levels__tab[aria-selected="true"] .levels__num { background: var(--gold); color: var(--navy); }
.levels__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.levels__panel[hidden] { display: none; }
.levels__media { min-height: 320px; position: relative; }
.levels__media img { width: 100%; height: 100%; object-fit: cover; }
.levels__board {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: repeating-conic-gradient(var(--sky) 0 25%, #9fd8f3 0 50%) 0 0 / 25% 25%;
}
.levels__board b { font-size: 8rem; line-height: 1; color: var(--navy); text-shadow: 0 10px 0 rgba(255, 255, 255, .35); font-weight: 400; }
.levels__copy { padding: 40px; min-width: 0; }
.levels__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.levels__eyebrow span { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--sky-100); color: var(--sky-700); }
.levels__text { color: var(--muted); }
.levels__goal { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: #fff; border-left: 4px solid var(--gold); }
.levels__goal span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-600); margin-bottom: 4px; }
.levels__goal p { margin: 0; font-weight: 600; color: var(--navy); }

/* Placeholder (khi chưa có ảnh) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-conic-gradient(var(--sky-100) 0 25%, var(--sky-50) 0 50%) 0 0 / 25% 25%; }
.ph__g { font-size: 4.6rem; line-height: 1; color: var(--navy); opacity: .85; }

/* Events */
.events { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: auto; gap: 22px; }
.events--all { grid-template-columns: repeat(3, 1fr); }
.event-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; min-width: 0; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.event-card--big { grid-row: span 2; }
.event-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.event-card--big .event-card__media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card--big .ph__g { font-size: 8rem; }
.event-card__tag, .event-card__soon { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.event-card__tag { left: 14px; background: var(--navy); color: #fff; }
.event-card__soon { right: 14px; background: var(--gold); color: var(--navy); }
.event-card__body { padding: 18px 20px 20px; }
.event-card__title { font-size: 1.08rem; margin-bottom: 8px; }
.event-card--big .event-card__title { font-size: 1.35rem; }
.event-card__title a { color: var(--navy); }
.event-card__title a:hover { color: var(--sky-700); }
.event-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .88rem; }
.event-card__meta .ico { color: var(--sky-700); }

/* Moments */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.moment { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.moment:hover img { transform: scale(1.05); }
.moment figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(12, 43, 75, .85)); }
.moment:nth-child(3n+2) .ph { background: repeating-conic-gradient(var(--navy-700) 0 25%, var(--navy-800) 0 50%) 0 0 / 25% 25%; }
.moment:nth-child(3n+2) .ph__g { color: var(--sky); }

/* Branch */
.branch { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); padding: 0; max-width: calc(var(--container) - 40px); }
.branch__card { padding: 44px; min-width: 0; }
.branch__list { list-style: none; display: grid; gap: 18px; margin: 10px 0 28px; }
.branch__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.branch__list .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sky-50); color: var(--sky-700); }
.branch__list b { display: block; color: var(--navy); font-size: 1rem; }
.branch__list b a { color: var(--navy); }
.branch__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.branch__map { min-height: 380px; background: var(--sky-50) repeating-linear-gradient(45deg, transparent 0 22px, rgba(83, 183, 233, .12) 22px 24px); }
.branch__map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 380px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 6px; background: var(--sky-50); color: var(--sky-700); font-size: .78rem; font-weight: 700; }
.post-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.post-card__title a { color: var(--navy); }
.post-card__title a:hover { color: var(--sky-700); }
.post-card__excerpt { color: var(--muted); font-size: .94rem; margin-bottom: 10px; }
.post-card__meta { color: var(--muted); font-size: .84rem; margin: auto 0 0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; min-width: 0; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); transition: transform .2s, background .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq__a { padding: 0 22px 18px; color: var(--muted); }
.faq__a p:last-child { margin: 0; }

/* Register */
.register { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-800), var(--navy) 55%); color: var(--on-dark); }
.register::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(rgba(83, 183, 233, .07) 0 25%, transparent 0 50%) 0 0 / 120px 120px; -webkit-mask: linear-gradient(90deg, #000, transparent 60%); mask: linear-gradient(90deg, #000, transparent 60%); }
.register__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.register__copy { position: relative; min-width: 0; }
.register__title { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; margin-bottom: 16px; }
.register__lead { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 30em; }
.register__info { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.register__info li { display: flex; align-items: center; gap: 12px; }
.register__info .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(83, 183, 233, .18); color: var(--sky); }
.register__info a { color: #fff; font-weight: 600; }
.register__pieces { width: 210px; margin-top: 30px; opacity: .9; }

.reg-form { background: #fff; color: var(--ink); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); min-width: 0; }
.reg-form__title { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 2px; }
.reg-form__lead { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.reg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400;
	color: var(--ink); background: var(--tint); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(83, 183, 233, .18); }
.ages legend { padding: 0; margin-bottom: 8px; }
.ages__list { display: flex; flex-wrap: wrap; gap: 8px; }
.age input { position: absolute; opacity: 0; pointer-events: none; }
.age span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--ink); background: #fff; transition: all .15s; }
.age input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.age input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.notice { padding: 12px 16px; border-radius: 10px; font-size: .92rem; font-weight: 600; }
.notice--success { background: #e5f7ec; color: #136c3a; }
.notice--error { background: #fdecec; color: #a32020; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-800), var(--navy)); color: var(--on-dark); }
.page-hero__inner { position: relative; z-index: 1; padding-block: 56px 64px; }
.page-hero__title { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin-bottom: 10px; max-width: 18em; }
.page-hero__sub { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 40em; margin: 0; }
.page-hero__board { position: absolute; right: -40px; top: -40px; width: 360px; height: 360px; transform: rotate(12deg); background: repeating-conic-gradient(rgba(83, 183, 233, .22) 0 25%, transparent 0 50%) 0 0 / 25% 25%; -webkit-mask: radial-gradient(circle at 60% 40%, #000 30%, transparent 70%); mask: radial-gradient(circle at 60% 40%, #000 30%, transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 16px; }
.crumbs a { color: var(--sky); }

.entry { font-size: 1.05rem; }
.entry h2 { font-size: 1.55rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: 12px; }
.entry blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--sky); background: var(--sky-50); border-radius: 0 12px 12px 0; }
.entry__thumb { margin: 0 0 28px; }
.entry__thumb img { border-radius: var(--radius); width: 100%; }
.entry__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 24px; padding: 22px 24px; border-radius: 16px; background: var(--sky-50); border: 1px solid var(--sky-100); }
.entry__cta p { margin: 0; flex: 1 1 300px; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.facts div { padding: 16px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--sky); color: var(--sky-700); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.about__copy { min-width: 0; }
.about__logo { margin: 0; }
.about__logo img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.value__g { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--sky); font-size: 2.2rem; line-height: 1; margin-bottom: 18px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; }

.contact__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact__card { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); min-width: 0; transition: box-shadow .2s, border-color .2s; }
a.contact__card:hover { border-color: var(--sky); box-shadow: var(--shadow); color: var(--ink); }
.contact__card .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--sky-50); color: var(--sky-700); margin-bottom: 10px; }
.contact__card span { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact__card b { color: var(--navy); overflow-wrap: anywhere; }
.contact__note { margin-top: 32px; }
.map-full iframe { display: block; width: 100%; height: 420px; border: 0; }

.notfound { text-align: center; }
.notfound__code { font-family: var(--display); font-size: 7rem; line-height: 1; color: var(--sky); margin-bottom: 10px; font-weight: 700; }
.empty { color: var(--muted); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #081f37; color: var(--on-dark-muted); font-size: .94rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__slogan { margin: 18px 0 6px; color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
.site-footer__muted { margin: 0; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer__social a:hover { background: var(--sky); color: var(--navy); }
.site-footer__title { color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.site-footer__list { list-style: none; display: grid; gap: 12px; }
.site-footer__list li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__list .ico { color: var(--sky); margin-top: 4px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--sky); }
.site-footer__links, .site-footer .menu { list-style: none; display: grid; gap: 10px; }
.site-footer__map iframe { width: 100%; height: 190px; border: 0; border-radius: 12px; filter: saturate(.85); background: rgba(255, 255, 255, .06); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; }

.float-contact { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-contact__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; box-shadow: 0 8px 20px rgba(12, 43, 75, .25); transition: transform .15s; }
.float-contact__btn:hover { transform: scale(1.08); color: #fff; }
.float-contact__btn .ico { width: 24px; height: 24px; }
.float-contact__btn--zalo { background: #0068ff; }
.float-contact__btn--call { background: var(--gold); color: var(--navy); animation: bd-ring 2.4s infinite; }
.float-contact__btn--call:hover { color: var(--navy); }
.float-contact__btn--top { background: var(--navy); opacity: 0; pointer-events: none; transition: opacity .2s; }
.is-scrolled .float-contact__btn--top { opacity: 1; pointer-events: auto; }
@keyframes bd-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 183, 62, .55); } 50% { box-shadow: 0 0 0 12px rgba(245, 183, 62, 0); } }
.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.is-pending { transform: translateY(16px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.site-nav__tel span { display: none; }
	.site-nav { gap: 14px; }
	.site-nav .menu a { padding: 8px 9px; }
}
@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; left: 0; right: 0; top: var(--nav-top, 76px); bottom: 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 24px max(20px, env(safe-area-inset-left, 0px)) 40px;
		background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; pointer-events: none;
	}
	.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav__actions { flex-direction: column; align-items: stretch; }
	.site-nav__tel span { display: inline; }
	.hero__inner { grid-template-columns: 1fr; padding-block: 48px 100px; gap: 20px; }
	.hero__visual { min-height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
	.why, .session, .register__inner, .faq-wrap, .about { grid-template-columns: 1fr; gap: 40px; }
	.why__visual { max-width: 460px; }
	.why__quote { left: 12px; }
	.coaches { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.steps::before { display: none; }
	.levels__tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
	.levels__tab { scroll-snap-align: start; }
	.levels__panel { grid-template-columns: 1fr; }
	.levels__media { min-height: 220px; }
	.events, .events--all { grid-template-columns: 1fr 1fr; }
	.event-card--big { grid-column: 1 / -1; grid-row: auto; }
	.moments { grid-template-columns: repeat(2, 1fr); }
	.branch { grid-template-columns: 1fr; }
	.posts { grid-template-columns: 1fr 1fr; }
	.values { grid-template-columns: 1fr; }
	.contact__cards { grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.about__logo { max-width: 320px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	body { padding-bottom: 64px; }
	.section { padding-block: 64px; }
	.site-header__inner { min-height: 66px; }
	.brand img { width: 44px; height: 44px; }
	.brand__text b { font-size: 1.25rem; }
	.hero__visual { min-height: 330px; }
	.hero__chip--a { display: none; }
	.hero__chip--b { bottom: 0; }
	.hero__ranks { left: -16px; }
	.stats__grid { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; width: auto; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.section__head--split { flex-direction: column; align-items: flex-start; }
	.features { grid-template-columns: 1fr; }
	.coaches { gap: 16px; }
	.coach__ph { font-size: 4rem; }
	.steps { grid-template-columns: 1fr; }
	.levels__copy { padding: 26px 22px; }
	.events, .events--all, .posts, .contact__cards { grid-template-columns: 1fr; }
	.moments { gap: 10px; }
	.branch__card { padding: 28px 22px; }
	.reg-form { padding: 24px 20px; }
	.reg-form__grid { grid-template-columns: 1fr; }
	.register__pieces { display: none; }
	.facts { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; padding-block: 48px 32px; }
	.float-contact { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.float-contact__btn--call { display: none; }
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
		padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
		background: #fff; box-shadow: 0 -6px 20px rgba(12, 43, 75, .12);
	}
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700; }
	.mobile-bar__call { background: var(--sky-50); color: var(--navy); }
	.mobile-bar__cta { background: var(--gold); color: var(--navy); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
