:root {
  --bg-dark: #0a3570;
  --bg-mid: #1b67bb;
  --bg-light: #8fd8ff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-dark: #123f7e;
  --accent: #2e7be6;
  --accent-2: #90d7ff;
  --shadow: 0 20px 40px rgba(6, 30, 71, 0.22);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,0.14), transparent 16%),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(180deg, #0a4b9d 0%, #4daaf0 35%, #8dd9ff 52%, #4ba4ed 68%, #0c4b9a 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(2px 2px at 40px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 180px 120px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 320px 200px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 520px 90px, rgba(255,255,255,0.65), transparent);
  background-size: 700px 280px;
  opacity: 0.6;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 53, 112, 0.22);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.25s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 41, 93, 0.28), rgba(8, 41, 93, 0.18)),
    url("assets/hero-ice.png") center top / contain no-repeat;
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(122, 209, 255, 0.16));
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 18px 20px;



}

.hero-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}

.hero-logo {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  font-size: clamp(82px, 14vw, 190px);
  color: #eefcff;
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 0 18px rgba(255,255,255,0.35),
    0 10px 30px rgba(7, 40, 95, 0.28);
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 12px rgba(255,255,255,0.6),
    0 0 30px rgba(120,210,255,0.7),
    0 10px 30px rgba(0,0,0,0.45);

}

.hero-title {
  margin: 12px auto 18px;
  max-width: 1120px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.02;
  font-size: clamp(38px, 6vw, 94px);
  color: #ffffff;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  text-shadow:
    0 0 3px rgba(255,255,255,0.72),
    0 0 18px rgba(175, 235, 255, 0.3),
    0 10px 26px rgba(0,0,0,0.48);
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: rgba(255,255,255,0.94);
  font-weight: 500;


  text-shadow:
    0 2px 8px rgba(0,0,0,0.55);


}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  transition: 0.22s ease;
  border: 1px solid rgba(255,255,255,0.32);
  cursor: pointer;
}

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

.button-primary {
  color: #11417d;
  background:
    linear-gradient(180deg, rgba(236,248,255,0.9), rgba(130,195,255,0.9) 48%, rgba(46,123,230,0.95));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 16px 28px rgba(11, 57, 128, 0.2);
}

.button-secondary {
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
}

.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 34px;
}

.section-line {
  display: block;
  width: min(260px, 100%);
  height: 10px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  box-shadow: 0 0 18px rgba(255,255,255,0.3);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  color: #f7fdff;
}

.section-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

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

.feature-card {
  padding: 28px 24px;
  text-align: center;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #ffffff;
}

.feature-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

.trainer-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 280px));

  justify-content: center;   /* ВОТ ЭТО центрирует карточки */

  gap: 28px;
  margin-top: 40px;
}

.trainer-card {
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.trainer-photo{
  height:320px;
  overflow:hidden;
}

.trainer-photo img{
  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center 35%;
}

.trainer-body {
  padding: 18px 18px 22px;
}

.trainer-photo img{
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;


  image-rendering: -webkit-optimize-contrast;
}

.trainer-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.trainer-role {
  margin: 0 0 12px;
  color: #d6efff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.trainer-body p:last-child {
  margin: 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  font-size: 15px;
  overflow-wrap: anywhere;
}


.schedule-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 28px;
  align-items: start;
}

.group-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    0 22px 48px rgba(6, 33, 78, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.group-card__head {
  text-align: center;
  margin-bottom: 24px;
}

.group-card__head h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  color: #ffffff;
  font-weight: 900;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.28),
    0 0 10px rgba(255,255,255,0.14);
}

.group-card__head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #e8f6ff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

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

@media (max-width: 900px) {
  .schedule-groups {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .schedule-groups {
    grid-template-columns: 1fr !important;
  }

  .group-schedule {
    grid-template-columns: 1fr !important;
  }
}


.day-card {
  padding: 20px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(125, 194, 240, 0.18), rgba(67, 145, 214, 0.16));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px rgba(5, 34, 77, 0.12);
  min-width: 0;
}

.day-card h4 {
  margin: 0 0 16px;
  text-align: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.day-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.day-card li {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.1);
}

.day-card li strong {
  display: inline-block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.day-card li span {
  display: inline-block;
  color: #d9f1ff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  overflow: hidden;
}

.event-image {
  height: 230px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.event-1 {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    url("https://victory.fln.kz/assets/buttel.png");
}

.event-2 {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    url("https://victory.fln.kz/assets/4H4A3106.JPG");
}

.event-3 {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    url("https://victory.fln.kz/assets/4H4A2592.jpg");
}

.event-body {
  padding: 20px;
}

.event-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
}

.event-date {
  margin: 0 0 12px;
  color: #d6efff;
  font-weight: 700;
}

.event-body p:last-child {
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

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

.stat-card {
  padding: 28px 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  color: #fff;
}

.stat-card span {
  display: block;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.signup-form {
  padding: 26px;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid span {
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.form-grid input {
  height: 54px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255,255,255,0.88);
  color: #163f7b;
  font-size: 16px;
  outline: none;
}

.form-grid input::placeholder {
  color: rgba(22,63,123,0.55);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-note {
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.form-message {
  margin: 16px 0 0;
  font-weight: 700;
  color: #ffffff;
}

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

.contact-card {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(180deg, #7ed8ff, #2c73df);
  color: #fff;
}

.contact-card h3 {
  margin: 0 0 6px;
  color: #fff;
}

.contact-card p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 35, 80, 0.18);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}

.footer-inner a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .trainer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(9, 45, 96, 0.94);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .feature-grid,
  .event-grid,
  .contacts-grid,
  .trainer-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero::before {
    background-size: 140% auto;
    background-position: center top;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .event-grid,
  .contacts-grid,
  .trainer-grid,
  .schedule-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 24px;
  }

  .hero::before {
    background-size: 180% auto;
    background-position: center 10px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .trainer-photo {
    height: 340px;
  }

  .section {
    padding: 44px 0;
  }
}



