/* ================================================================
   СпортДело — стили лендинга. Mobile-first, 375–1440px.
   Визуальный контракт: navy #0E1F40 + акцент #E8840A, шрифт Inter.
   8px-ритм, clamp-типографика, без фреймворков.
================================================================ */

/* ── Сброс и основа ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0E1F40;
  --navy-2:      #172D58;
  --orange:      #E8840A;
  --orange-h:    #C9700A;
  --blue-link:   #2563EB;
  --white:       #FFFFFF;
  --light:       #F5F7FB;
  --text:        #1A1A2E;
  --muted:       #6B7280;
  --border:      #E2E8F0;

  --container:   1200px;
  --r:           8px;
  --r-lg:        16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-link); }

/* ── Контейнер ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Секции ── */
.section         { padding: 72px 0; }
.section--light  { background: var(--light); }
.section--dark   { background: var(--navy); color: var(--white); }
.section--dark .section__label { color: rgba(255,255,255,.55); }
.section--dark .section__title { color: var(--white); }

.section__label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section__sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.section--dark .section__sub { color: rgba(255,255,255,.65); }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  min-height: 52px;
  min-width: 44px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-h); border-color: var(--orange-h); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

.btn-lg { padding: 18px 40px; font-size: 1.0625rem; }

/* ── Изображения-заглушки (заменить на реальные фото .webp) ── */
.img-placeholder {
  background: var(--border);
  width: 100%;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
  padding: 16px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.logo__text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.logo__sub {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  display: none;
}

@media (min-width: 560px) {
  .logo__sub { display: block; line-height: 1.3; }
  .logo__text { line-height: 1.2; }
  .logo { flex-direction: column; align-items: flex-start; gap: 0; }
  .logo__mark { position: absolute; }
  .logo { flex-direction: row; gap: 10px; }
  .logo__text-wrap { display: flex; flex-direction: column; }
}

.header-cta { display: none; }

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    padding: 10px 24px;
    min-height: 44px;
    font-size: .9375rem;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 80px;
  overflow: hidden;
}

/* Заглушка фона — заменить на: background-image: url('../img/hero-bg.webp') */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14,31,64,.97) 0%, rgba(14,31,64,.80) 55%, rgba(14,31,64,.65) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(232,132,10,.03) 0px,
      rgba(232,132,10,.03) 1px,
      transparent 1px,
      transparent 40px
    );
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero__inner {
  max-width: 660px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,132,10,.12);
  color: var(--orange);
  border: 1px solid rgba(232,132,10,.30);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 40px;
}

.hero__stat {}

.hero__stat-val {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero__stat-lbl {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__note {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}

/* ═══════════════════════════════════════════
   DIRECTIONS (4 направления)
═══════════════════════════════════════════ */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 560px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .directions-grid { grid-template-columns: repeat(4, 1fr); }
}

.dir-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: box-shadow .2s;
}

.dir-card:hover { box-shadow: 0 4px 24px rgba(14,31,64,.08); }

.dir-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.dir-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.dir-card__desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   FRANCHISE PACKAGE (что входит)
═══════════════════════════════════════════ */
.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .package-grid { grid-template-columns: repeat(3, 1fr); }
}

.pkg-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.pkg-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(232,132,10,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pkg-item__body {}

.pkg-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.pkg-item__desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FINANCIALS (параметры партнёрства)
═══════════════════════════════════════════ */
.financials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .financials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .financials-grid { grid-template-columns: repeat(5, 1fr); }
}

.fin-cell {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.fin-cell__val {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.fin-cell__lbl {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.4;
}

.fin-cell__note {
  font-size: .8rem;
  color: var(--border);
  margin-top: 4px;
}

.fin-note {
  margin-top: 24px;
  font-size: .9375rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════
   OBJECTIONS (возражения)
═══════════════════════════════════════════ */
.obj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .obj-grid { grid-template-columns: repeat(3, 1fr); }
}

.obj-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}

.obj-card__q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.obj-card__q::before {
  content: '«';
  color: var(--orange);
}

.obj-card__q::after {
  content: '»';
  color: var(--orange);
}

.obj-card__a {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   STEPS (3 шага)
═══════════════════════════════════════════ */
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
  counter-reset: steps;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2px;
    background: var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
}

.step {
  counter-increment: steps;
  background: var(--white);
  padding: 36px 28px;
  position: relative;
  border-bottom: 2px solid var(--border);
}

@media (min-width: 768px) {
  .step { border-bottom: none; }
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step__num::before { content: counter(steps); }

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step__desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   ФОРМА (#form)
═══════════════════════════════════════════ */
.form-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}

.form-section .section__title { color: var(--white); }
.form-section .section__sub   { color: rgba(255,255,255,.65); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
}

.form-side {}

.form-trust {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: rgba(255,255,255,.7);
}

.form-trust li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Форма */
#lead-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}

@media (max-width: 479px) {
  #lead-form { padding: 24px 20px; }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  transition: border-color .18s;
  outline: none;
  min-height: 50px;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--orange); }

.form-group input::placeholder { color: #A0AEC0; }

.form-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 17px 24px;
  min-height: 56px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.form-privacy {
  margin-top: 14px;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.form-privacy a { color: var(--blue-link); }

#form-success-msg {
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
}

#form-success-msg h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

#form-success-msg p {
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background .15s;
}

.faq-item summary:hover { background: var(--light); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 28px 24px;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: #080F1E;
  color: rgba(255,255,255,.45);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: rgba(255,255,255,.75); }

.footer-copy {
  font-size: .8125rem;
  width: 100%;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   АДАПТИВ — глобальные правки
═══════════════════════════════════════════ */
@media (max-width: 639px) {
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 56px; }
  .form-section { padding: 56px 0; }
  .section__sub { margin-bottom: 32px; }
  .hero__stats { gap: 16px 24px; }
}

@media (min-width: 1024px) {
  .section { padding: 88px 0; }
  .hero { padding: 112px 0 96px; }
}

/* Утилиты */
.text-center { text-align: center; }
.text-center .section__sub { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   HEADER PHONE
═══════════════════════════════════════════ */
.header-phone {
  display: none;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.header-phone:hover { color: var(--white); }

@media (min-width: 860px) {
  .header-phone { display: inline; }
}

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  background: var(--navy-2);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-stat__val {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--orange);
}

.trust-stat__lbl {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

/* ═══════════════════════════════════════════
   FINANCIALS — операционный потенциал
═══════════════════════════════════════════ */
.financials-potential {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.financials-potential__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

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

@media (max-width: 639px) {
  .financials-grid--3 { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   FOUNDER
═══════════════════════════════════════════ */
.founder-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .founder-wrap {
    grid-template-columns: 260px 1fr;
    gap: 48px;
  }
}

.founder-photo .img-placeholder {
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  font-size: .9375rem;
  min-height: 0;
}

@media (max-width: 767px) {
  .founder-photo { max-width: 240px; }
}

.founder-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.founder-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.founder-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  list-style: none;
}

.founder-stats li {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.3;
}

.founder-stats li strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}

.testi-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-photo-ph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  color: var(--muted);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
}

.testi-card__text {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
  flex-grow: 1;
  quotes: "\00AB" "\00BB";
}

.testi-card__text::before { content: open-quote; color: var(--orange); }
.testi-card__text::after  { content: close-quote; color: var(--orange); }

.testi-card__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
