:root {
  --accent: #C8202A;
  --bg: #0F1012;
  --bg-alt: #17181B;
  --bg-deep: #0A0B0C;
  --surface: #1E2024;
  --line: #26282C;
  --line-strong: #4A4C51;
  --text: #F2F0EB;
  --text-soft: #C9C7C1;
  --text-muted: #9A9893;
  --light: #F2F0EB;
  --ink: #141416;
  --ink-soft: #3E3D3A;
  --ink-muted: #5E5C57;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-title: 'Oswald', sans-serif;
  --radius: 6px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #FFFFFF; }
h1, h2, h3, p, blockquote { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--light { background: var(--light); color: var(--ink); border-bottom: 0; }
.section--alt { background: var(--bg-alt); }
.section__inner { display: flex; flex-direction: column; gap: 48px; }

.title { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; }
.h2 { font-size: 44px; line-height: 1.1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--accent); }
.eyebrow--plain::before { display: none; }
.section--light .eyebrow { color: var(--ink-muted); }

.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.section-head__titles { display: flex; flex-direction: column; gap: 16px; }
.section-lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--text-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
}
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: #AE1A23; color: #FFFFFF; }
.btn--outline { border: 1.5px solid var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--light { background: var(--light); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; color: var(--ink); }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
  color: #8E8C87;
}
.placeholder--light {
  background-color: #E2DFD8;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 2px, transparent 2px 14px);
  color: var(--ink-muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,16,18,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--text); }
.brand__sub { font-size: 12px; color: var(--text-muted); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.header .btn { height: 46px; padding: 0 22px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero__content { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero__title { font-size: 72px; line-height: 1.02; letter-spacing: -.01em; }
.hero__title .hero__accent { color: var(--accent); }
.hero__kicker { font-family: var(--font-body); line-height: 1.4; margin-bottom: 28px; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--text-soft); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { flex: 1 1 460px; min-width: 0; min-height: 520px; border-radius: var(--radius); position: relative; overflow: hidden; background: var(--surface); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bg);
  border-top: 3px solid var(--accent);
}
.hero__stats > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.hero__stats > div:last-child { border-right: 0; }

.stat__value { font-family: var(--font-title); font-weight: 700; font-size: 28px; color: var(--text); }
.stat__label { font-size: 13px; color: var(--text-muted); }

/* Principles */
.about-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.about-head__titles { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.about-head p { flex: 1 1 380px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.principle { background: var(--light); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 180px; }
.principle__num { font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--accent); }
.principle__name { font-family: var(--font-title); font-weight: 700; font-size: 19px; }
.principle__ko { font-size: 14px; line-height: 1.5; color: #4A4946; }

/* Head coach */
.coach { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.coach__photo { flex: 1 1 400px; min-width: 0; height: 560px; border-radius: var(--radius); position: relative; overflow: hidden; background: #2A2B2E; }
.coach__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.coach__badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 3px;
}
.coach__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.coach__body .h2 { font-size: 48px; line-height: 1.08; }
.coach__body p { font-size: 18px; line-height: 1.65; color: var(--text-soft); }
.coach__quote { margin-top: 8px; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 20px; line-height: 1.5; font-weight: 600; color: var(--text); }
.coach__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.coach__stats > div { background: var(--bg); padding: 20px; }
.coach__stats .stat__value { font-size: 26px; }
.coach__stats .stat__label { margin-top: 4px; }

/* Branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.branch { background: var(--bg); border: 1px solid #2C2E33; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.branch .placeholder { height: 220px; }
.branch__photo { width: 100%; height: 220px; object-fit: cover; object-position: 50% 45%; }
.branch__body { padding: 32px; display: flex; flex-direction: column; gap: 22px; flex-grow: 1; }
.branch__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.branch__head h3 { font-size: 24px; text-transform: none; }
.branch__street { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.branch__contacts { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--text-soft); }
.branch__contacts > div { display: flex; gap: 12px; align-items: center; }
.branch__contacts svg { flex-shrink: 0; }
.branch__contacts a { text-decoration: none; }
.schedule { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.schedule__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.schedule__row { display: flex; justify-content: space-between; gap: 16px; }
.schedule__row span:last-child { color: var(--text-soft); text-align: right; }
.branch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.branch__actions .btn { flex: 1 1 140px; }

/* Coaches */
.section-head .lead-muted { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.trainer { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.trainer__head { display: flex; align-items: center; gap: 14px; }
.trainer__avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
}
.trainer__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trainer__id h3 { font-size: 17px; line-height: 1.25; }
.trainer__rank { font-size: 13px; color: var(--text-muted); }
.trainer__info { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.trainer__branch { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.trainer__info p { font-size: 14px; line-height: 1.45; color: var(--text-soft); }

/* News */
.link-more { color: var(--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.link-more:hover { color: var(--accent); }
.news-featured { display: flex; flex-wrap: wrap; background: var(--ink); color: var(--text); border-radius: var(--radius); overflow: hidden; }
.news-featured__media { flex: 1 1 460px; min-height: 360px; position: relative; overflow: hidden; background: var(--surface); }
.news-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.news-featured__body { flex: 1 1 420px; padding: 40px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; border: 1px solid var(--line-strong); }
.tag--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 800; }
.news-featured__title { display: flex; gap: 20px; align-items: center; }
.news-featured__title h3 { font-size: 26px; line-height: 1.2; text-transform: none; }
.date-box { display: flex; flex-direction: column; align-items: center; border: 2px solid var(--text); padding: 10px 16px; border-radius: var(--radius-sm); }
.date-box__day { font-family: var(--font-title); font-weight: 700; font-size: 32px; line-height: 1; }
.date-box__month { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.news-featured__body p { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.news-featured__body .btn { align-self: flex-start; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 16px; }
.news-card img, .news-card .placeholder { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.news-card img { object-fit: cover; object-position: 50% 30%; }
.news-card .placeholder { font-size: 13px; }
.news-card__meta { font-size: 13px; font-weight: 700; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }
.news-card h3 { font-size: 19px; line-height: 1.3; text-transform: none; }
.news-card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq__item p { margin: 0; padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--text-soft); max-width: 760px; }

/* Signup */
.signup { background: var(--accent); color: #FFFFFF; }
.signup__inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.signup__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.signup__text .h2 { font-size: 48px; line-height: 1.05; }
.signup__text p { font-size: 18px; line-height: 1.6; }
.form { flex: 1 1 440px; background: var(--bg); color: var(--text); padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select {
  height: 50px;
  padding: 0 16px;
  background: #1A1B1E;
  border: 1px solid #3A3C41;
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}
.form select { padding: 0 12px; }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .btn { height: 56px; margin-top: 8px; font-weight: 800; font-size: 16px; }

/* Footer */
.footer { background: var(--bg-deep); }
.footer__inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col--brand { gap: 12px; }
.footer__logos { display: flex; align-items: center; gap: 12px; }
.footer__logos img:first-child { width: 56px; height: 56px; border-radius: 50%; }
.footer__logos img:last-child { width: 58px; height: 56px; }
.footer__name { font-family: var(--font-title); font-weight: 700; font-size: 22px; }
.footer__about { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.footer__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.footer__col span, .footer__col a { color: var(--text-soft); text-decoration: none; }
.footer__col a:hover { color: #FFFFFF; }
.footer__social { display: flex; align-items: center; gap: 10px; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #8E8C87; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero__title { font-size: 44px; }
  .h2, .coach__body .h2, .signup__text .h2 { font-size: 32px; }
  .section { padding: 64px 0; }
  .hero__media { min-height: 420px; }
  .coach__photo { height: 460px; }
}

@media (max-width: 520px) {
  .brand__sub { display: none; }
  .branches { grid-template-columns: minmax(0, 1fr); }
  .news-featured__body, .branch__body, .form { padding: 24px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
