/* ---------- Hero Section ---------- */
.hero-gym {
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: var(--head);
  position: relative;
}
.hero-gym .hero-inner h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-gym .hero-inner .highlight { color: var(--accent); }
.hero-gym .btn-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

/* ---------- Services ---------- */
.services .cards.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.services .card.service {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 30px 20px;
  border-radius: 16px;
  transition: all 0.3s;
}
.services .card.service:hover {
  transform: none;
  box-shadow: none;
}
.services .card.service .icon { font-size: 40px; margin-bottom: 15px; }
.services .card.service h3 { margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.services .card.service.highlight {
  background: var(--accent);
  color: var(--head);
  border-color: var(--accent);
}

/* ---------- Title Line (full-width text row) ---------- */
.title-line { width: 100%; overflow: hidden; padding: 18px 0; margin-bottom: 20px; }
.disciplines.pad-y { padding: 0; }
.title-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  white-space: nowrap; text-transform: uppercase; font-weight: 900;
  font-size: clamp(28px, 10vw, 88px); letter-spacing: 0.02em; padding-top: 40px;
}
.title-word { color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: 0.45; }
.title-word.main { color: var(--accent); -webkit-text-stroke: 0; opacity: 1; }
.title-sep { color: var(--accent); font-size: 0.6em; line-height: 1; }

/* ---------- Disciplines ---------- */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.discipline-card { position: relative; overflow: hidden; border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); cursor: pointer; transition: transform 0.3s ease; }
.discipline-card img {
  width: 100%; max-width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: brightness(70%);
  transition: transform 0.3s ease;
}
.discipline-title{
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%);
  font-size:32px; font-weight:700; color:var(--head); text-align:center;
  transition: color 0.3s ease;
}
.discipline-card:hover img { transform: none; }
/* keep color change if desired, but remove motion */
.discipline-card:hover .discipline-title { color: var(--accent); }

/* ===== World-Class block (variables) ===== */
:root{
  --wc-bg: var(--bg);
  --wc-red: var(--accent);
  --wc-red-dark: var(--accent-dark);
  --wc-text: var(--text);
  --wc-muted: var(--muted);
}

/* ===== World-Class block ===== */
h1, .wc-title, .story-heading .story-word.main {
  font-stretch: expanded;     /* работает не во всех браузерах */
  letter-spacing: 2px;        /* увеличиваем расстояние */
  font-weight: 900;           /* максимально жирный */
}

.wc-section{ background: var(--wc-bg); color: var(--wc-text); padding: 80px 20px 90px; }
.wc-wrap{ max-width: 980px; margin: 0 auto; text-align: center; }
.wc-title{
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  color: var(--wc-red);
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1;
  letter-spacing: .8px;
  display: block;
  margin: 0 auto 18px;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(12px, 4vw, 32px);
  text-align: center;
  text-wrap: balance;
}
.wc-lead{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: .6px; color: var(--wc-text); opacity: .9;
  max-width: 740px; margin: 0 auto 34px; font-size: 13.5px; line-height: 1.55;
}
.wc-pills{ max-width: 640px; margin: 0 auto; }
.wc-pill{
  --h: 74px; height: var(--h); background: var(--wc-red); border-radius: 12px;
  display:inline-flex; align-items:center; gap:16px; padding:0 28px;
  box-shadow: 0 10px 0 var(--wc-red-dark); margin:18px auto; user-select:none;
}
.wc-pill .num, .wc-pill .label {
  font-family: "Russo One", "Anton", sans-serif;
  color: var(--bg);
  letter-spacing: .5px;
}

.wc-pill .num {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.wc-pill .label {
  font-size: 34px;
  font-weight: 200;
}

.pill-1 { transform: rotate(-6deg); }
.pill-2 { transform: rotate(2.5deg); }
.pill-3 { transform: rotate(-3.5deg); }

.wc-desc {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--wc-muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 540px;
  margin: 12px auto 8px;
  text-align: center;
}


.section-title {
  text-align: center;
  font-size: clamp(28px, 6vw, 60px);
  font-family: "Russo One", "Anton", sans-serif;
  color: var(--wc-red);
  margin-bottom: clamp(28px, 6vw, 60px);
  text-transform: uppercase;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
  gap: 35px;
  max-width: 1400px; /* шире контейнер */
  margin: 0 auto;
}
/* hide mobile arrows on desktop */
.schedule-nav { display: none; }
.clients-nav { display: none; }

.schedule-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  transition: none;
  display: flex;
  flex-direction: column;
}


.schedule-image img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/15;  /* адаптивная высота (чуть выше) */
  filter: grayscale(100%);
  object-fit: cover;
  display: block;
}

.schedule-content {
  padding: 25px;
}

.schedule-content h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--wc-red);
  font-weight: 800;
}

.schedule-content .price {
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
  font-size: 16px;
}

.schedule-content ul {
  margin: 0;
  padding: 0;
  list-style: none; /* уберёт точки перед элементами */
}

.schedule-content .contact {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 18px;
}

.schedule-content .btn-main {
  display: block;
  text-align: center;
  background: var(--wc-red);
  padding: 14px 0;
  margin-top: 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.schedule-content .btn-main:hover {
  background: #ff3b3b;
}



/* ===== Sweat block ===== */
.sweat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: min(1000px, 100%); margin: 0 auto;
}
.sweat-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; min-width: 0; width: 100%; }
.sweat-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: none; }
.sweat-info {
  position:absolute; bottom:0; left:0; right:0; padding:25px; text-align:left;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
}
.sweat-info h3{
  font-family:"Anton",sans-serif; text-transform:uppercase; font-size:28px;
  color:var(--wc-red); margin-bottom:12px; line-height:1.2;
}
.sweat-title{
  font-family:"Anton",sans-serif; text-transform:uppercase; color:var(--wc-red);
  font-size:clamp(44px,7vw,60px); line-height:.95; letter-spacing:1px; text-align:center; margin:0 0 40px;font-weight: 900;
}
.sweat-info h3 span{ display:block; font-size:52px; font-weight:900; line-height:1; }
.sweat-info p{ font-family:"Montserrat",sans-serif; font-size:15px; font-weight:500; color:#f1f1f1; max-width:300px; }

/* ===== Our Story (cleaned + improved readability) ===== */
.our-story {
  position: relative;
  padding: clamp(60px, 10vw, 100px) 0 clamp(40px, 8vw, 80px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  color: var(--text);
}
.our-story::after {
  content: "О НАС";
  position: absolute;
  left: 50%;
  top: 20px; /* 🔽 опускаем текст ниже */
  transform: translateX(-50%);
  font-family: "Anton", sans-serif;
  font-size: clamp(60px, 14vw, 160px); /* 🔽 уменьшенный размер */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  letter-spacing: 4px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .our-story::after {
    top: 70px;                     /* можно регулировать ↑↓ */
    font-size: clamp(24px, 18vw, 60px);  /* 🔥 значительно меньше */
    letter-spacing: 1px;
  }
}

.story-wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.story-heading { text-align: center; margin-bottom: 26px; }
.story-heading .story-word{
  display:inline-block; font-family:"Anton",sans-serif;
  font-size: clamp(46px, 8vw, 120px); line-height:.9; letter-spacing:2px;
  color: transparent; -webkit-text-stroke: 2px var(--accent); text-transform: uppercase; position: relative;
}
/* Ensure words in the title are visually separated */
.story-heading .story-word + .story-word{ margin-left: .25em; }
/* New underline container to span the entire heading */
.underline-container { position: relative; display: inline-block; }
.underline-container::after{
  content:""; position:absolute; left:0; bottom:-12px; width:100%; height:6px; background:#E02525; border-radius:3px;
  box-shadow:0 8px 20px rgba(224,37,37,.35);
}
/* Center the entire heading "О НАС" */
.story-wrap .story-heading.underline-container{
  display: table;
  margin: 0 auto 26px;
  text-align: center;
}

/* layout */
.story-content .story-text{
  display:flex; flex-wrap:wrap; align-items:center; gap:28px;
}

/* readable paragraph */
.story-content .story-text p.big {
  flex:1 1 520px;
  font-family:"Montserrat",sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  text-transform: none;          /* убрали тотальный CAPS */
  letter-spacing: .02em;
  color: var(--text);
  margin: 0;
}
/* красная увеличенная первая буква именно у больших абзацев */
.story-content .story-text p.big::first-letter{
  font-size: 2.4em;
  font-weight: 800;
  color: var(--accent);
  line-height: .8;
  margin-right: 6px;
}
/* image */
.story-content .story-text img{
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px; /* ограничиваем визуальный размер на десктопе */
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  transform: none;
  transition: box-shadow .25s ease, filter .25s ease;
  filter: grayscale(100%) contrast(1.05); /* <-- ЧБ */
  align-self: flex-start;
}

/* small paragraph under the image */
.story-content .story-text p.small{
  flex:1 1 520px;
  font-family:"Montserrat",sans-serif;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-transform: none;
  margin: 0;
}
.clients {
  background: var(--bg);
  padding: clamp(40px, 8vw, 80px) 20px;
  text-align: center;
}

.clients-title {
  font-family: "Russo One", "Anton", sans-serif;
  text-transform: uppercase;
  color: var(--wc-red);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 50px;
  letter-spacing: 1px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;        /* растянется на всю ширину */
  max-width: none;    /* убрали ограничение */
  margin: 0;          /* убрали центрирование */
}

.client-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.client-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.client-info {
  padding: 14px 10px;
}

.client-info h3 {
  font-family: "Russo One", "Anton", sans-serif;
  font-size: 22px;
  color: var(--wc-red);
  margin: 0 0 6px;
  text-transform: uppercase;
  font-weight: 900;
}

.client-info p {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Responsive ===== */
@media (max-width: 900px){
  .sweat-section .wc-wrap { padding-left: 16px; padding-right: 16px; }
  .sweat-grid { grid-template-columns: 1fr; max-width: 100%; width: 100%; }
  .sweat-card { aspect-ratio: auto; height: clamp(240px, 58vw, 360px); }
  .sweat-info h3 span { font-size: 36px; }

  .our-story{ padding: 70px 0 60px; }
  .story-heading .story-word{ font-size: clamp(40px, 10vw, 72px); -webkit-text-stroke: 1.5px var(--accent); }
  .story-content .story-text img{ order: 2; margin: 0 auto; width: 100%; max-width: clamp(260px, 80vw, 380px); }
  .story-content .story-text p.big{ order: 1; }
  .story-content .story-text p.small{ order: 3; }
}

@media (max-width: 700px){
  .wc-title{ font-size: clamp(28px, 8vw, 44px); padding-inline: 6vw; letter-spacing: .5px; }
  .wc-lead{ font-size: 12px; }
  .wc-pill{ --h: 64px; padding: 0 22px; }
  .wc-pill .label{ font-size: 28px; }
  .wc-pill .num{ font-size: 24px; }
  .sweat-title{ font-size: clamp(36px, 8vw, 56px); }
}

/* Mobile adjustments for schedule and hero */
@media (max-width: 1024px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Mobile slider for schedule */
  .schedule .container { position: relative; overflow: hidden; }
  .schedule-grid { display: flex; overflow: visible; gap: 6px; transition: transform 0.4s ease; padding-right: 6vw; }
  .schedule-grid .schedule-card { flex: 0 0 92%; min-width: 92%; }
  .schedule-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 8px; }
  .schedule-arrow { pointer-events: all; background: var(--wc-red); border: 1px solid var(--wc-red-dark); width: 40px; height: 40px; border-radius: 50%; color: #fff; display:flex; align-items:center; justify-content:center; font-size: 22px; }

  .schedule-image img { height: 260px; }
  .schedule-content { padding: 18px; }
  .schedule-content h3 { font-size: 22px; }
  .schedule-content .price { font-size: 15px; }
  .schedule-content .btn-main { padding: 12px 0; font-size: 15px; }
  .hero-gym { padding: 80px 0; }
  .hero-gym .hero-inner h1 { font-size: 36px; }
  .hero-gym .hero-inner p { font-size: 16px; }

  /* Mobile slider for clients */
  .clients .clients-wrap { position: relative; overflow: hidden; }
  .clients-grid { display: flex; gap: 6px; transition: transform 0.4s ease; padding-right: 6vw; }
  .clients-grid .client-card { flex: 0 0 92%; min-width: 92%; }
    .clients-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 8px; }
  .clients-arrow { pointer-events: all; background: var(--wc-red); border: 1px solid var(--wc-red-dark); width: 40px; height: 40px; border-radius: 50%; color: #fff; display:flex; align-items:center; justify-content:center; font-size: 22px; }
}

/* ===== Home wide overrides (desktop) ===== */
@media (min-width: 1025px) {
  /* Broaden base container on home page (home.css only loads on home) */
  .main .container { width: min(1800px, 96%); }

  /* Hero text area wider */
  .hero-inner { max-width: 1100px; }

  /* Our Story wrapper wider */
  .story-wrap { max-width: 1100px; }

  /* World-class section wrapper wider */
  .wc-wrap { max-width: 1600px; }

  /* Disciplines grid wider */
  .disciplines-grid { max-width: 1800px; }

  /* Schedule grid slightly narrower */
  .schedule-grid { max-width: 1500px; }

  /* Sweat grid same width as schedule */
  .sweat-grid { max-width: 1500px; }
}
