/* Patriot Fighting — v-1. Единый чистый CSS.
 * Палитра и шрифты — из оригинальной темы (youko), дизайн переписан.
 */

/* ---------- Токены ---------- */
:root {
	--c-bg:     #0a0d1b;
	--c-bg-2:   #13182a;
	--c-line:   #222739;
	--c-text:   #a4a9b9;
	--c-head:   #ffffff;
	--c-accent: #e43d4e;
	--c-muted:  #738c99;

	--font-h: "Oswald", "Arial Narrow", sans-serif;
	--font-b: "Poppins", Arial, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
	--font-kick: "Science Gothic", var(--font-b);

	--container: 1170px;
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-b);
	font-size: 16px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-head); text-decoration: none; transition: color .25s; }
a:hover { color: var(--c-accent); }
p { margin: 0 0 14px; }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; color: var(--c-head); font-family: var(--font-h); font-weight: 600; line-height: 1.15; text-transform: none; }
em { color: var(--c-head); }

.container { max-width: calc(var(--container) + 32px); margin: 0 auto; padding-inline: 16px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-block;
	padding: 14px 30px;
	background: var(--c-accent);
	color: #fff;
	font-family: var(--font-h);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: background .25s, transform .25s;
}
.btn:hover { background: #c8323f; color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Шапка ---------- */
#header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 14px;
	background: rgba(10,13,27,.97);
	border-bottom: 1px solid rgba(255,255,255,.09); /* аналог .section-hr темы */
	transition: box-shadow .3s;
}
#header.is-fixed { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.header__in { display: flex; align-items: center; gap: 24px; }
.logo { flex-shrink: 0; }
.logo img { display: block; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav__link { color: var(--c-head); font-family: var(--font-h); font-size: 16px; text-transform: uppercase; letter-spacing: .05em; padding-block: 6px; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-accent); transition: width .25s; }
.nav__link:hover::after, .nav__link.is-current::after { width: 100%; }
.header__phone { flex-shrink: 0; font-family: var(--font-h); font-size: 16px; letter-spacing: .03em; white-space: nowrap; }
.header__right { display: flex; align-items: center; gap: 18px; }
.soc-link { display: inline-flex; align-items: center; justify-content: center; color: var(--c-head); transition: color .25s; }
.soc-link:hover { color: var(--c-accent); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(620px, 39.5vw, calc(100vh - 100px)); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img::after, .hero__slide::before { content: ""; position: absolute; inset: 0; background: rgba(10,13,27,.55); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 90px; }
.hero__kicker { margin-bottom: 18px; font-family: var(--font-kick); font-size: 15px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #fff; line-height: 1.5; }
.hero__title { font-size: clamp(44px, 7vw, 88px); text-transform: uppercase; letter-spacing: .01em; }
.hero__subtitle { margin: -8px 0 18px; font-size: clamp(24px, 3.6vw, 44px); font-family: var(--font-h); color: #fff; text-transform: uppercase; }
.hero__text { max-width: 480px; font-size: 17px; color: #fff; }
.hero__btn { margin-top: 12px; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 5; width: 46px; height: 64px;
	background: transparent; border: 0; color: rgba(255,255,255,.8); cursor: pointer;
	transition: color .25s;
}
.hero__arrow:hover { color: var(--c-accent); }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
.chevron { width: .48em; height: 1em; font-size: 34px; fill: currentColor; }
.chevron--flip { transform: scaleX(-1); }

.hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .25s, width .25s; padding: 0; }
.hero__dot.is-active { background: var(--c-accent); width: 36px; }

/* ---------- Полоса контактов (сверено с оригиналом) ---------- */
.infobar { background: #091952; }
.infobar__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.infobar__item { position: relative; padding-block: 34px; text-align: center; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.infobar__item::before { content: ""; position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; background: center / contain no-repeat; opacity: .25; pointer-events: none; }
.infobar__item:nth-child(1)::before { background-image: url("../img/info-icon-1.png"); }
.infobar__item:nth-child(2)::before { background-image: url("../img/info-icon-2.png"); }
.infobar__item:nth-child(3)::before { background-image: url("../img/info-icon-3.png"); }
.infobar__label { font-family: var(--font-h); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.infobar__value { font-family: var(--font-h); font-size: 26px; font-weight: 500; color: #fff; text-transform: uppercase; letter-spacing: .03em; }

/* Колонка FAQ на широких экранах */
.faq-col { max-width: 900px; margin-inline: auto; }

/* Полоса контактов сразу под хиро (внутренние страницы) */
.infobar.sectionless .infobar__item { padding-block: 36px; }

/* ---------- Секции ---------- */
.section { padding-block: 80px; }
.section-title { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; }
.hl { color: var(--c-accent); }
.divider { width: 70px; height: 3px; background: var(--c-accent); margin-bottom: 26px; }

/* Про клуб + видео */
.about__grid, .disciplines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 6px; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* «Про наш клуб»: текст по центру, видео под ним */
.about__grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
.about__text { max-width: 820px; text-align: center; }
.about__text .divider { margin-inline: auto; }
.about__video { width: 100%; max-width: 820px; }

/* Дисциплины */
.disciplines { background: var(--c-bg-2); }
.list-check { margin: 0; padding: 0; list-style: none; }
.list-check li { position: relative; margin-bottom: 12px; padding-left: 28px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px; background: var(--c-accent); border-radius: 50%; }
.disciplines__join { background: var(--c-bg); background: transparent; border: 1px solid var(--c-line); border-radius: 6px; padding: 30px 28px; }
.disciplines__join h3 { font-size: 24px; }
.join-phone { display: block; margin-bottom: 18px; font-family: var(--font-h); font-size: 28px; color: var(--c-accent); font-weight: 600; }
.disciplines__join .btn { margin-top: 6px; }

/* Программы (табы) — сверено со скриншотом оригинала.
 * Фон привязан к ШИРИНЕ (не cover): при переключении вкладок высота меняется,
 * но фон не масштабируется и не «дёргается» */
.programs {
	position: relative;
	padding-block: 110px 120px;
	background: var(--c-bg-2);
	overflow: hidden;
}
.programs::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 0;
	padding-top: 66.67%; /* натуральная пропорция img_26.jpg; растягиваем по ширине */
	background:
		linear-gradient(rgba(19,24,42,.92), rgba(19,24,42,.92)), /* завеса как в оригинале (0.9) */
		url("../img/programs-bg.jpg") top center / 100% auto no-repeat;
}
.programs > .container { position: relative; z-index: 1; max-width: calc(970px + 32px); }
.programs .section-title { text-align: center; }
.programs .divider { margin-inline: auto; }
.tabs {
	background: var(--c-bg-2); /* подложка линейки вкладок */
}
.tabs__bar { position: relative; display: flex; flex-wrap: wrap; margin-bottom: 0; }
.tabs__bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-accent); }
.tabs__tab {
	flex: 1 1 0;
	min-width: 0;
	padding: 17px 12px;
	background: var(--c-bg-2);
	color: var(--c-text);
	font-family: var(--font-h);
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .04em;
	border: 0;
	border-left: 1px solid var(--c-line);
	border-radius: 0;
	cursor: pointer;
	transition: background .25s, color .25s;
	white-space: nowrap;
}
.tabs__tab:first-child { border-left: 0; }
.tabs__tab:hover { color: #fff; }
.tabs__tab.is-active { position: relative; background: var(--c-accent); color: #fff; border-left-color: transparent; }
.tabs__tab.is-active + .tabs__tab { border-left-color: transparent; }
.tabs__panel { background: var(--c-bg-2); padding: 35px; font-weight: 300; }
.tabs__panel[hidden] { display: none; }
.tabs--video .tabs__tab { white-space: normal; }
.tabs__panel--video { padding: 35px 35px 45px; }
.tabs__panel--video .video-container { max-width: 860px; margin-inline: auto; }
/* Видео: та же подложка-картинка, что у «Программ» (фон по ширине, не дёргается) */
.vidx { position: relative; padding-block: 110px 120px; background: var(--c-bg-2); overflow: hidden; }
.vidx::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 0;
	padding-top: 66.67%;
	background:
		linear-gradient(rgba(19,24,42,.92), rgba(19,24,42,.92)),
		url("../img/programs-bg.jpg") top center / 100% auto no-repeat;
}
.vidx > .container { position: relative; z-index: 1; }
.vidx .section-title { text-align: center; }
.vidx .divider { margin-inline: auto; }
.tabs__panel h4 { color: var(--c-head); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; text-transform: uppercase; }
.tabs__panel strong { color: var(--c-head); }
.tabs__panel ul { margin: 0; padding-left: 20px; }
.tabs__panel li { margin-bottom: 8px; }
.tabs__panel li > ul { margin-top: 8px; }

/* Инструкторы */
.trainers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trainer { text-align: center; }
.trainer > a { display: block; cursor: zoom-in; transition: transform .3s; }
.trainer > a:hover { transform: translateY(-3px); }
.trainer > a:hover img { border-color: var(--c-accent); }
.trainer img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--c-line); transition: border-color .3s; }
.trainer h3 { margin: 16px 0 4px; font-size: 22px; text-transform: uppercase; }
.trainer__role { margin: 0; color: var(--c-accent); font-family: var(--font-h); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }

/* Спарринги (аккордеон) — сверено со скриншотом оригинала.
 * Фон «плашки» привязан к ширине: открытие пунктов не меняет масштаб фона */
.sparring {
	position: relative;
	padding-block: 130px;
	background: var(--c-bg);
	overflow: hidden;
}
.sparring::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 0;
	padding-top: 41.67%; /* натуральная пропорция плашки 1920x800 */
	background:
		url("../img/sparring-bg.png") top center / 100% auto no-repeat;
}
.sparring__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.sparring > .container { position: relative; z-index: 1; }
.acc {
	background: transparent;
	border: 1px solid #2a3145;
	border-radius: 0;
	margin-bottom: 10px;
	overflow: hidden;
}
.acc summary {
	list-style: none;
	display: flex; align-items: center; gap: 16px;
	padding: 22px 29px;
	cursor: pointer;
	color: var(--c-text);
	font-family: var(--font-h);
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: var(--c-line);
	transition: background .3s, color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { /* «карандаш», как в оригинале */ content: ""; flex-shrink: 0; width: 15px; height: 15px; margin-right: 4px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') center / contain no-repeat; }
.acc summary > span:nth-of-type(1) { color: inherit; }
.acc summary:hover { background: var(--c-accent); color: #fff; }
.acc summary::before { background: var(--c-accent); } /* закрытый: красный карандаш */
.acc summary:hover::before, .acc[open] summary::before { background: #fff; }
.acc__icon { position: relative; flex-shrink: 0; margin-left: auto; width: 14px; height: 14px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--c-accent); }
.acc__icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.acc__icon::after { left: 6px; top: 0; width: 2px; height: 14px; transition: opacity .2s; }
.acc[open] summary { background: var(--c-accent); color: #fff; }
.acc[open] .acc__icon::before, .acc[open] .acc__icon::after { background: #fff; }
.acc[open] .acc__icon::after { opacity: 0; }
.acc__body { background: var(--c-bg); padding: 28px 40px 34px; }
.acc__body p { margin: 0; color: var(--c-text); font-weight: 300; }
.acc__body p, .acc__body li { max-width: 60ch; }
.acc__body ul { margin: 12px 0 0; padding-left: 20px; }
.acc__body li { margin-bottom: 6px; }

/* Карта */
.map { line-height: 0; }
.map iframe { width: 100%; height: 400px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Футер ---------- */
.footer {
	background: var(--c-bg-2) url("../img/footer-bg.jpg") center / cover no-repeat;
	position: relative;
	padding-block: 70px;
}
.footer::before { content: ""; position: absolute; inset: 0; background: rgba(10,13,27,.9); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; }
.footer__title { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.footer__logo { display: block; width: 150px; margin-bottom: 14px; }
.footer__sub { color: var(--c-text); }
.footer__contacts { margin: 16px 0 0; padding: 0; list-style: none; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer__contacts .icon { flex-shrink: 0; margin-top: 5px; color: var(--c-accent); }
.copyright { position: relative; border-top: 1px solid var(--c-line); padding-block: 18px; text-align: center; font-size: 14px; }
.copyright p { margin: 0; color: var(--c-muted); }
.copyright a { color: var(--c-text); text-decoration: underline; }

/* Наверх */
#to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 40;
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-accent); color: #fff; border-radius: 4px;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .3s, visibility .3s, transform .3s;
}
#to-top .chevron { font-size: 22px; transform: rotate(90deg); }
#to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Крошки (внутренние страницы) ---------- */
.page-hero { position: relative; padding-block: 60px; background: url("../img/breadcrumbs.jpg") center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10,13,27,.72); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); text-transform: uppercase; margin-bottom: 10px; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); }
.breadcrumbs a { color: var(--c-text); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__btn { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
	.section { padding-block: 56px; }
	.programs { padding-block: 60px 70px; }
	.tabs__tab { flex: 1 1 40%; white-space: normal; }
	.hero { height: 560px; }
	.about__grid, .disciplines__grid, .sparring__grid { grid-template-columns: 1fr; gap: 32px; }
	.sparring__grid > div:first-child { display: none; }
	.trainers__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.infobar__grid { grid-template-columns: 1fr; }
	.infobar__item { padding-block: 20px; }

	.header__in { gap: 12px; }
	.header__phone { display: none; }
	.nav-toggle {
		display: flex; flex-direction: column; gap: 5px;
		margin-left: auto; padding: 10px;
		background: transparent; border: 0; cursor: pointer;
	}
	.nav-toggle span { width: 24px; height: 2px; background: var(--c-head); transition: transform .3s, opacity .3s; }
	.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
	.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.nav { position: fixed; inset: 0; z-index: 60; background: rgba(10,13,27,.98); display: none; }
	.nav.is-open { display: flex; align-items: center; justify-content: center; }
	.nav__list { flex-direction: column; gap: 10px; text-align: center; }
	.nav__link { font-size: 24px; }
	#header { background: rgba(10,13,27,.97); }
}
@media (max-width: 600px) {
	.tabs__tab { padding: 12px 16px; }
	.tabs__panel { padding: 20px; }
}