/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --bg: #0c0e12;
  --bg-soft: #12151b;
  --card: rgba(255, 255, 255, .06);
  --text: #f2f5f9;
  --muted: #b9c2d0;
  --accent: #e31b23;
  --accent-2: #ff4b52;
  --border: rgba(255, 255, 255, .12);
  --radius: 14px;
  --radius-lg: 10px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .35);
  --container: 1160px;
  --grain: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity=".04"/></svg>');
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */
#BtnTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#BtnTop:hover {
  transform: translateY(-4px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px rgba(227, 27, 35, 0.4);
}

#BtnTop:active {
  transform: translateY(-2px);
}

#BtnTop svg {
  display: block;
  margin: auto;
}
/* Разрешить выделение текста */
.selectable {
  user-select: text;
  -webkit-user-select: text;
}

/* ============================================
   RESET & BASE
============================================ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background:
    radial-gradient(1000px 800px at -10% -20%, rgba(227, 27, 35, .16) 0%, transparent 55%),
    radial-gradient(1200px 900px at 120% 10%, rgba(255, 255, 255, .08) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

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

img {
  max-width: 100%;
  display: block;
}


/* ============================================
   HEADER & NAV
============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(12, 14, 18, 0.8);
  will-change: backdrop-filter;
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.number-mob{
  display: none;
  margin-top: 1.1%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 20%;
  height: 45px;
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  width: 15%;
  min-width: 40px;
}

.logo p {
  font-weight: 400;
  font-size: 15px;
  margin: 0;
}
.logo b{
  font-size: 22px;
  color: #e31b23;
;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-cta {
  background-color: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.nav-cta:hover {
  background-color: #d43f31;
  background: linear-gradient(35deg, rgba(231, 76, 60, 1) 34%, rgba(235, 97, 82, 1) 100%);
}


/* ============================================
   SOCIAL PROOF v2
============================================ */
.spv2 {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

/* Video */
.spv2__video-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 9 / 16;
}

.spv2__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: spv2Pan 12s ease-in-out infinite;
}

@keyframes spv2Pan {
  0% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.02);
  }
}

.spv2__video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Content */
.spv2__content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(800px 480px at 100% 0%, rgba(227, 27, 35, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--card);
  padding: clamp(18px, 3.2vw, 28px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  row-gap: clamp(10px, 2vw, 16px);
  min-height: 100%;
}

/* Header Elements */
.spv2__badge {
  width: 34%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.spv2__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8b85, var(--accent));
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .15);
}

.spv2__title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
}

.spv2__lead {
  margin: 0;
  color: #c7cbd6;
  line-height: 1.7;
  font-size: 15px;
}

/* Bullets */
.spv2__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 18px;
}

.spv2__bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #e6e9f0;
}

.spv2__bullets .ico {
  font-size: 18px;
  line-height: 1;
  opacity: .9;
}

/* Stats */
.spv2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.spv2__stats .stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, .18);
  text-align: center;
}

.spv2__stats .num {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .2px;
}

.spv2__stats .label {
  color: var(--muted);
  font-size: 12px;
}


/* Bottom Notes */
.spv2__grid-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  align-self: stretch;
}

.note-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.note-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: .02em;
  color: #e9ecf4;
}


/* ============================================
   HERO
============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 10%;
  background: url(../../assets/img/baner-5.jpg) center / cover no-repeat;
  background-color: rgb(12, 14, 18, 0.1);
  background-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  margin: 20px 0;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 35px;
  opacity: 0.95;
}

.hero-buttons {
  cursor: pointer;
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-video-wrapper {
  position: absolute;
  right: 10%;
  top: 49%;
  transform: translateY(-50%);
  width: 60%;
  height: 60%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.video-gradient {
  position: absolute;
  height: 102%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 30%, #0c0e12 100%);
}

.video-baner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================
   INFINITE CAROUSEL
============================================ */
.carousel-gallery-section {
  overflow: hidden;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.infinite-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 24px;
  animation: scroll-carousel 80s linear infinite;
  width: fit-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  flex-shrink: 0;
  width: 320px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.carousel-slide:hover::before {
  opacity: 1;
}

.carousel-slide:hover {
  transform: scale(1.01) translateY(-8px);
  box-shadow: 0 10px 20px rgba(252, 252, 252, 0.15);
  z-index: 10;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 6 - 24px * 6));
  }
}


/* ============================================
   COMMON COMPONENTS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: var(--shadow);
  transition: .2s;
  cursor: pointer;
  font-size: 16px;  
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn.primary:hover {
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.45);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: #171a22;
  border-color: #232838;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  font-weight: 700;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
}

.input::placeholder {
  color: var(--muted);
}

.glass {
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}


/* ============================================
   LAYOUT & SECTIONS
============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 68px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: .2px;
}

.section-sub {
  margin: 0 0 24px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}


/* ============================================
   ABOUT
============================================ */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 28px);
  position: relative;
}

.kf-logo {
  position: absolute;
  margin-left: -8%;
  width: 12%;
  z-index: 22;
  opacity: 0.8;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4.6vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 20px 20px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8b85, var(--accent));
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15);
}

.hero h1 {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 75ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 10px;
}

.hero-col {
  display: grid;
  gap: 12px;
}

.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #E6E7EA;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-left: 0;
}

.list li {
  list-style: none;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}


/* ============================================
   TRAINERS
============================================ */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.trainer-card {
  height: 100%;
  margin: auto;
  width: 80%;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainer-image {
  position: relative;
  width: 100%;
  aspect-ratio: 6/7;
  overflow: hidden;
}

.trainer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trainer-card:hover .trainer-image img {
  transform: scale(1.03);
}

.trainer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(227, 27, 35, 0.5);
}

.trainer-info {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.trainer-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: .3px;
}

.trainer-spec {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  letter-spacing: .2px;
}

.trainer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.trainer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.trainer-meta span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}


/* ============================================
   SCHEDULE
============================================ */
.text-centr {
  text-align: center;
  margin-top: -0.3%;
}

.control-group {
  display: flex;
  justify-content: center;
  margin-bottom: 2%;
}

.segmented {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.seg-btn {
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: var(--accent);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.schedule-view {
  padding: 14px;
}

.schedule-table {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day-col {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 260px;
}

.day-head {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
}

.day-track {
  display: grid;
  gap: 10px;
}

.slot {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  gap: 6px;
  align-content: center;
}

.slot .time {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
}

.slot .meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.slot .hall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* Discipline colors */
.slot.mma-1 {
  outline: 1px solid rgba(227, 27, 35, .35);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, .12), var(--shadow);
}

.slot.mma-2 {
  outline: 1px solid rgba(120, 179, 255, .28);
  box-shadow: 0 0 0 4px rgba(120, 179, 255, .10), var(--shadow);
}

.slot.mma-3 {
  outline: 1px solid rgba(255, 193, 7, .30);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, .10), var(--shadow);
}
.slot.mma-4 {
  outline: 1px solid rgba(143, 7, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(160, 7, 255, 0.1), var(--shadow);
}
.slot.mma-5 {
  outline: 1px solid rgba(210, 255, 7, 0.3);
  box-shadow: 0 0 0 4px rgba(181, 255, 7, 0.1), var(--shadow);
}
.slot.free {
  outline: 1px solid rgba(94, 217, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 169, 34, 0.12), var(--shadow);
}

.slot.free span,
.slot.free .meta {
  display: none;
}

/* ============================================
   PRICING
============================================ */
.pricing {
  grid-template-columns: repeat(3, 1fr);
  overflow: visible;
}

.price-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.ribbon {
  position: absolute;
  top: 14px;
  left: 60%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff6b70, #e31b23);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.price {
  font-size: 30px;
  font-weight: 900;
}

.price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.feats {
  display: grid;
  gap: 8px;
  color: #e4e9f2;
}

.featured {
  outline: 1px solid #ff3e46;
  box-shadow: 0 0 0 4px rgba(227, 27, 35, .12), var(--shadow);
}


/* ============================================
   GALLERY
============================================ */
.gallery-controls {
  padding: 2%;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .caption {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}


/* ============================================
   MAP & CONTACTS
============================================ */
.map-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
/* ============================================
   CONTACT COPY
============================================ */
.contact-list {
  display: grid;
  gap: 0;
}

.contact-copy {
  position: relative;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-copy:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-copy:active {
  transform: scale(0.98);
}

.contact-copy .copy-hint {
  display: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 10;
}

.contact-copy.copied .copy-hint {
  display: block;
  animation: fadeInOut 1.2s ease;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.95);
  }
}

/* ============================================
   CONTACT PHONE WITH CALL BUTTON
============================================ */
.contact-phone {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-phone .contact-copy {
  flex: 1;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.phone-call-btn {
  flex-shrink: 0;
  width: 42px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.phone-call-btn:hover {
  background: var(--accent-2);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(227, 27, 35, 0.4);
}

.phone-call-btn:active {
  transform: scale(0.95);
}

.phone-call-btn svg {
  display: block;
}

/* Адреса без кнопки */
.contact-list > .contact-copy {
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .phone-call-btn {
    width: 38px;
  }
  
  .phone-call-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   FOOTER
============================================ */
footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text);
}


/* ============================================
   PHOTO MODAL
============================================ */
.phototube-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.516);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phototube-modal-overlay.show {
  display: flex;
  opacity: 1;
}

#phototube-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

#phototube-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.phototube-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.phototube-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.phototube-nav-btn.left {
  left: 30px;
}

.phototube-nav-btn.right {
  right: 30px;
}


/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: fadeUp 0.6s ease forwards;
}


/* ============================================
   FINAL QUOTE
============================================ */
.final-quote-section {
  padding-top: 20px;
}

.final-quote {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(1000px 600px at 110% 10%, rgba(227, 27, 35, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%),
    var(--card);
}

.final-quote__head {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.final-quote__avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #1e2431;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.final-quote__badge--top {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  line-height: 1;
}

.final-quote__author {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: .2px;
}

.final-quote__role {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-quote__text {
  position: relative;
  margin: 12px 0 20px;
  color: #E8EAF0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.8;
  font-weight: 600;
  padding-left: 28px;
}

.final-quote__text::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 44px;
  color: var(--accent);
  opacity: .9;
  line-height: 1;
}

.final-quote__sign img {
  height: 42px;
  width: auto;
  opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}


/* ============================================
   MEDIA QUERIES (ALL AT BOTTOM)
   Order: 1200 → 1024 → 768 → 640 → 480
============================================ */

/* <= 1200px */
@media (max-width: 1200px) {
  .spv2__grid-notes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* <= 1024px */
@media (max-width: 1024px) {
  nav {
    padding: 0 30px;
  }
  .number-mob{
  display: flex;
  }
  .logo{
    width: 40%;
  }
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 0 30px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-video-wrapper {
    width: 70%;
    height: 50%;
  }

  .proof-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .kf-logo {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .trainers-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing {
    grid-template-columns: 1fr 1fr;
  }

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

  .map-wrap {
    grid-template-columns: 1fr;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .spv2 {
    grid-template-columns: 1fr;
  }

  .spv2__media {
    order: -1;
  }

  .spv2__bullets {
    grid-template-columns: 1fr;
  }

  .spv2__grid-notes {
    grid-template-columns: 1fr 1fr;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  #BtnTop {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }

  #BtnTop svg {
    width: 18px;
    height: 18px;
  }
  header{
    position: absolute;
  }
  nav {
    padding: 0 20px;
  }

  .logo {
    width: auto;
  }

  .logo p {
    font-size: 16px;
  }

  .hero-section {
    padding-bottom: 0%;
    margin-bottom: -50%;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-video-wrapper {
    position: absolute;
    left: 0%;
    top: 6%;
    transform: none;
    width: 100%;
    height: 300px;
  }

  .video-gradient {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, #0c0e12 100%);
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .proof-wrapper {
    padding: 20px;
  }

  .proof-content blockquote {
    font-size: 16px;
  }

  .proof-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .spv2__badge{
    width: 67%;
  }
  .about {
    padding: 20px;
  }

  .hero {
    padding: 24px;
  }

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

  .pricing {
    grid-template-columns: 1fr;
  }

  .map {
    height: 300px;
  }

  .final-cta {
    padding: 20px;
  }

  .final-cta .row {
    flex-direction: column;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .phototube-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .phototube-nav-btn.left {
    left: 10px;
  }

  .phototube-nav-btn.right {
    right: 10px;
  }

  #phototube-modal-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
  }

  .carousel-slide {
    width: 260px;
    height: 340px;
  }

  .carousel-track {
    gap: 16px;
    animation: scroll-carousel-mobile 70s linear infinite;
  }

  @keyframes scroll-carousel-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-260px * 6 - 16px * 6));
    }
  }
}

/* <= 640px */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .chips {
    justify-content: center;
  }

  .kf-logo {
    display: block;
    margin-left: 65%;
    width: 100px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    grid-template-columns: 1fr;
  }

  .day-col {
    min-height: auto;
  }

  .segmented {
    width: 100%;
    justify-content: stretch;
  }

  .seg-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
  }
  .sp-3{
  grid-column: span 2 / span 2;
  }
  .spv2__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .spv2__grid-notes {
    grid-template-columns: 1fr;
  }

  .final-quote__head {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .final-quote__avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }

  .final-quote__badge--top {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* <= 480px */
@media (max-width: 480px) {
    #BtnTop {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }

  #BtnTop svg {
    width: 16px;
    height: 16px;
  }
  .number-mob{
    font-size: 14px;
    margin-top: 1.4%;
  }
  .logo img {
    width: 35px;
  }

  .logo p {
    font-size: 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 9px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-sub {
    font-size: 14px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .proof-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trainer-info {
    padding: 16px;
  }

  .price {
    font-size: 24px;
  }

  .ribbon {
    font-size: 10px;
    padding: 4px 12px;
  }

  .carousel-slide {
    width: 220px;
    height: 300px;
  }

  .carousel-track {
    gap: 12px;
    animation: scroll-carousel-small 60s linear infinite;
  }

  @keyframes scroll-carousel-small {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-220px * 6 - 12px * 6));
    }
  }

  .final-quote__text {
    padding-left: 22px;
    font-size: 18px;
  }

  .final-quote__text::before {
    font-size: 36px;
    top: -4px;
  }
}