:root {
  --bg: #0d0f12;
  --bg-soft: #14171c;
  --panel: rgba(18, 20, 25, 0.8);
  --panel-strong: rgba(26, 28, 34, 0.92);
  --line: rgba(205, 186, 136, 0.18);
  --text: #f1efe8;
  --muted: #b1aba1;
  --accent: #7a1f26;
  --accent-soft: #b68d57;
  --steel: #8e98a3;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 31, 38, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(182, 141, 87, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0d10 0%, #111318 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(182, 141, 87, 0.45);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(182, 141, 87, 0.22), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(182, 141, 87, 0.18);
  border-radius: 12px;
}

.brand-mark-core {
  width: 16px;
  height: 22px;
  border: 2px solid #d7c49f;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  position: relative;
}

.brand-mark-core::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: #d7c49f;
  transform: translateX(-50%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.02em;
}

.brand-copy strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  color: #d3cdc4;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.section {
  padding: 92px 0 0;
}

.hero {
  padding-top: 72px;
}

.hero-scene {
  position: relative;
  min-height: 760px;
  padding: 72px 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.92) 0%, rgba(8, 9, 12, 0.74) 24%, rgba(8, 9, 12, 0.36) 46%, rgba(8, 9, 12, 0.08) 70%),
    linear-gradient(180deg, rgba(122, 31, 38, 0.14), transparent 22%),
    url("./back.png?v=2") 72% center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(128, 26, 34, 0.22), transparent 20%),
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 20%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 95%);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-lead,
.section-description,
.about-card p,
.feature-card p,
.program-card p,
.benefit-card p,
.gallery-card p,
.brand-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #d2cbc1;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #7f222a, #541318);
  color: #fff5f2;
  box-shadow: 0 16px 40px rgba(122, 31, 38, 0.3);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(182, 141, 87, 0.16), rgba(182, 141, 87, 0.06));
  border-color: rgba(182, 141, 87, 0.3);
}

.button-outline,
.button-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.about-card,
.feature-card,
.program-card,
.benefit-card,
.gallery-card,
.brand-card,
.contact-panel,
.contact-form,
.slogan-card,
.table-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.92), rgba(14, 16, 19, 0.92));
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-bottom: 32px;
}

.about-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.about-card,
.contact-panel,
.contact-form {
  padding: 28px;
}

.about-card-primary {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 100%;
  min-height: 720px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(122, 31, 38, 0.48), rgba(19, 20, 24, 0.95)),
    linear-gradient(135deg, rgba(182, 141, 87, 0.12), transparent 45%);
}

.about-card-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, rgba(15, 17, 22, 0.05), rgba(15, 17, 22, 0.3) 46%, rgba(8, 9, 11, 0.86) 100%);
  pointer-events: none;
}

.about-carousel {
  position: relative;
  min-height: 720px;
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 500ms ease,
    transform 900ms ease;
}

.about-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.about-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}

.about-dot.is-active {
  background: #f0d39c;
}

.about-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(10, 11, 14, 0.5);
  color: #f2ece2;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.about-arrow:hover {
  background: rgba(122, 31, 38, 0.7);
  border-color: rgba(240, 211, 156, 0.32);
}

.about-arrow-left {
  left: 20px;
}

.about-arrow-right {
  right: 20px;
}

.about-card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding: 380px 30px 30px;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0), rgba(10, 11, 14, 0.12) 10%, rgba(9, 10, 13, 0.84) 34%, rgba(9, 10, 13, 0.98) 100%);
}

.about-card-primary p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #efe7dc;
}

.about-grid,
.benefit-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card,
.benefit-card,
.brand-card,
.program-card,
.slogan-card {
  padding: 24px;
}

.feature-card h3,
.benefit-card h3,
.brand-card h3,
.program-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-card {
  min-height: 162px;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-soft), rgba(122, 31, 38, 0.96));
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-label {
  color: #d9d1c7;
}

.filter-select {
  min-width: 240px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(182, 141, 87, 0.24);
  background: rgba(17, 19, 24, 0.95);
}

.table-shell {
  overflow: hidden;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-table th {
  background: rgba(255, 255, 255, 0.02);
  color: #f4eadc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.schedule-table td {
  color: #d8d1c6;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr.hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent 10%, rgba(10, 11, 14, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(182, 141, 87, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(113, 28, 35, 0.36), rgba(18, 20, 25, 0.98));
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025), transparent 28%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.016),
      rgba(255, 255, 255, 0.016) 2px,
      transparent 2px,
      transparent 12px
    );
}

.gallery-card-large {
  grid-row: 1 / span 2;
}

.gallery-card span {
  position: relative;
  z-index: 1;
  font-family: "Russo One", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.gallery-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.coach-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.92), rgba(14, 16, 19, 0.92));
  box-shadow: var(--shadow);
}

.coach-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(122, 31, 38, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(35, 39, 47, 0.92), rgba(11, 13, 16, 0.98));
}

.coach-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #e6ddd0;
  font-family: "Russo One", sans-serif;
  font-size: 1.08rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.coach-card-body {
  padding: 22px;
}

.coach-card h3 {
  margin: 0;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.coach-role {
  margin: 10px 0 0;
  color: #f0d39c;
  font-weight: 700;
}

.coach-description {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.team-admin {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 22, 27, 0.96), rgba(11, 13, 16, 0.98));
  box-shadow: var(--shadow);
}

.team-admin-header,
.team-admin-actions,
.team-admin-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-admin-header h3,
.team-admin-item-title {
  margin: 0;
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
}

.team-admin-header h3 {
  font-size: 1.3rem;
}

.team-admin-list {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.team-admin-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.team-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.team-admin-field {
  display: grid;
  gap: 8px;
}

.team-admin-field-full {
  grid-column: 1 / -1;
}

.team-admin-field span {
  color: #d8d0c4;
}

.team-admin-field input,
.team-admin-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 8, 11, 0.9);
  color: var(--text);
  padding: 12px 14px;
}

.team-admin-field textarea {
  min-height: 96px;
  resize: vertical;
}

.team-admin-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(122, 31, 38, 0.44), rgba(17, 18, 22, 0.95)),
    linear-gradient(135deg, rgba(182, 141, 87, 0.16), transparent);
}

.contact-panel a:first-child {
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #ddd5ca;
}

.contact-form input {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 13, 0.75);
  color: var(--text);
  padding: 0 16px;
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .about-layout,
  .contacts-layout,
  .program-grid,
  .slogan-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .benefit-grid,
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-scene {
    min-height: 920px;
    padding: 44px 32px;
    background-position: 62% center;
  }

  .gallery-card-large {
    grid-row: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar {
    padding: 12px 14px;
    top: 10px;
  }

  .button-ghost {
    display: none;
  }

  .section {
    padding-top: 72px;
  }

  .hero-scene {
    min-height: 700px;
    padding: 32px 20px;
    border-radius: 28px;
    background-position: 64% center;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

  .about-grid,
  .benefit-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .team-admin-header,
  .team-admin-actions,
  .team-admin-item-header {
    align-items: stretch;
    flex-direction: column;
  }

  .team-grid,
  .team-admin-fields {
    grid-template-columns: 1fr;
  }

  .about-carousel {
    min-height: 520px;
  }

  .about-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 14px 12px;
    font-size: 0.92rem;
  }

  .schedule-table {
    min-width: 680px;
  }

  .table-shell {
    overflow-x: auto;
  }
}
