/* ===== Base & variables ===== */
:root {
  --color-primary: #ff5a1f;
  --color-primary-dark: #e0470f;
  --color-dark: #14161a;
  --color-dark-2: #1e2127;
  --color-text: #24262b;
  --color-text-light: #6b6f76;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f5f3;
  --color-border: #e7e5e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --container-w: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 800; }

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 16px;
}

section { padding: 80px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 31, .3);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
}
.logo span { color: var(--color-primary); }
.nav {
  display: flex;
  gap: 28px;
}
.nav a { font-weight: 600; font-size: 15px; color: var(--color-text); }
.nav a:hover { color: var(--color-primary); }
.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt), #fff);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  letter-spacing: -.02em;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-badges li {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  padding-left: 22px;
  position: relative;
}
.hero-badges li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.hero-photo-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-frame.no-photo::before {
  content: "Фото Андрія";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,.5);
  font-weight: 700;
  font-size: 15px;
}
.hero-photo-frame.no-photo img { display: none; }

/* ===== About ===== */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.about-text p { color: var(--color-text-light); font-size: 16px; }
.about-facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-facts strong { color: var(--color-text); }
.about-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.no-photo::before {
  content: "Фото тренера";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-light);
  font-weight: 600;
}
.about-photo.no-photo img { display: none; }

/* ===== Services / Prices ===== */
.services { background: var(--color-bg-alt); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card h3 { font-size: 19px; margin-bottom: 10px; }
.price-desc { color: var(--color-text-light); font-size: 14.5px; flex-grow: 1; margin-bottom: 20px; }
.price-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
}
.price-value span { font-size: 14px; font-weight: 600; color: var(--color-text-light); }
.price-card-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: scale(1.02);
}
.price-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}
.price-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 13.5px;
  margin-top: 28px;
}

/* ===== Veterans ===== */
.veterans {
  background: var(--color-dark);
  color: #fff;
}
.veterans-inner { max-width: 720px; }
.veterans h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 4px; }
.veterans h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.veterans p { color: rgba(255,255,255,.75); font-size: 16px; }
.veterans-price {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 20px 0 28px;
}
.veterans-price span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

/* ===== Reviews ===== */
.reviews { background: #fff; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card p {
  font-size: 15px;
  color: var(--color-text);
  margin: 0 0 16px;
}
.review-card footer {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}

/* ===== Contacts ===== */
.contacts { background: var(--color-bg-alt); }
.contacts-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.contacts .section-title { text-align: left; }
.contacts .section-subtitle { text-align: left; margin: 0 0 28px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li a, .contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
}
.contact-list li a:hover { color: var(--color-primary); }
.contact-icon { font-size: 18px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; }
.map-wrap-second { margin-top: 16px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-light);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  text-align: center;
  min-height: 18px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.5);
  padding: 24px 0;
  font-size: 13.5px;
  text-align: center;
}

/* ===== Floating CTA (mobile) ===== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255,90,31,.4);
  z-index: 90;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contacts-inner {
    grid-template-columns: 1fr;
  }
  .about-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .price-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .price-card-featured { transform: none; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .price-grid, .reviews-grid { grid-template-columns: 1fr; }
  .floating-cta { display: block; }
  body { padding-bottom: 70px; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-badges { flex-direction: column; gap: 10px; }
}
