.sp-home {
  --ink: #1f2a26; --green: #26433a; --glacier: #e6eef0; --snow: #fafcfc;
  --marker: #c8372d; --muted: #5f6d68; --line: #dbe4e6;
  color: var(--ink); background: var(--snow);
  font-family: "MedeoSans", system-ui, sans-serif; line-height: 1.55;
}
.sp-home *, .sp-home *::before, .sp-home *::after { box-sizing: border-box; }
.sp-home a { color: inherit; text-decoration: none; }
.sp-home h1, .sp-home h2, .sp-home h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
.sp-home h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.sp-home a:focus-visible, .sp-home summary:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }

.sp-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.sp-section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.sp-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }

.sp-header { position: sticky; top: 0; z-index: 30; background: rgba(250,252,252,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sp-nav { min-height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.sp-logo { font-weight: 800; font-size: 1.1rem; margin-right: auto; }
.sp-menu { display: flex; gap: 1.5rem; color: var(--muted); font-size: .95rem; }
.sp-menu a:hover { color: var(--green); }
.sp-login { border: 1.5px solid var(--green); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; }
@media (max-width: 760px) { .sp-menu { display: none; } }

.sp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; background: var(--marker); color: #fff !important; }
.sp-btn-light { background: #fff; color: var(--ink) !important; }
.sp-btn-outline { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.7); }

/* Хиро: фото задаётся через --hero-image, без него остаётся зелёный фон */
.sp-hero { position: relative; display: flex; align-items: center; min-height: min(640px, 80vh); color: #fff; background: var(--green); }
.sp-hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,22,.78), rgba(14,28,22,.25)), var(--hero-image, none) center / cover; }
.sp-hero-content { position: relative; padding-block: 4rem; }
.sp-hero h1 { font-size: clamp(2.2rem, 6.5vw, 4.4rem); max-width: 16ch; }
.sp-hero p { max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.88); }
.sp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.sp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.sp-choice { position: relative; min-height: 240px; border-radius: 16px; overflow: hidden; color: #fff; background: var(--green); display: flex; align-items: flex-end; }
.sp-choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-choice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65)); }
.sp-choice-content { position: relative; z-index: 1; padding: 1.1rem; }
.sp-choice-label { font-size: .85rem; opacity: .85; }
.sp-choice h3 { font-size: 1.25rem; margin: .25rem 0 0; }

.sp-routes-section { background: var(--glacier); }
.sp-all-link { font-weight: 700; border-bottom: 2px solid currentColor; }
.sp-route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.sp-route-card { display: block; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.sp-route-card:hover { box-shadow: 0 12px 28px rgba(31,42,38,.1); }
.sp-route-img { position: relative; height: 200px; background: linear-gradient(135deg, #cfdcdf, #b7c9ce); }
.sp-route-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-route-tag { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 700; }
.sp-route-body { padding: 1.1rem 1.2rem 1.2rem; }
.sp-route-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.sp-route-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; }
.sp-route-bottom { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.sp-difficulty { color: var(--green); font-weight: 700; font-size: .9rem; }

.sp-diff { padding-left: 1.2rem; max-width: 62ch; }
.sp-diff li { margin-bottom: .7rem; }

.sp-access { background: var(--green); color: #fff; }
.sp-access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.sp-access-card { padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.25); }
.sp-access-card.featured { background: rgba(255,255,255,.1); border: 2px solid #fff; }
.sp-access-card ul { padding-left: 1.1rem; margin: 0 0 1.25rem; }

.sp-guides { background: var(--glacier); }

.sp-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.sp-footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .75rem; }
@media (prefers-reduced-motion: reduce) { .sp-home * { transition: none !important; animation: none !important; } }

/* ---- Правки: перебиваем стили общего layout, убираем белые плашки ---- */
.sp-home h1, .sp-home h2, .sp-home h3 { color: var(--ink); font-weight: 700; }
.sp-home .sp-hero h1 { color: #fff; }
.sp-home .sp-hero p { color: rgba(255,255,255,.9); }
.sp-hero { margin: 0; border-radius: 16px; overflow: hidden; }
.sp-hero-content { padding-inline: clamp(1rem, 4vw, 2.5rem); }

.sp-home .sp-choice, .sp-home .sp-choice h3, .sp-home .sp-choice .sp-choice-label { color: #fff; }
.sp-choice--plain { background: var(--glacier); }
.sp-choice--plain::after { display: none; }
.sp-home .sp-choice--plain, .sp-home .sp-choice--plain h3, .sp-home .sp-choice--plain .sp-choice-label { color: var(--ink); }
.sp-choice--plain:hover { background: #d8e5e8; }

.sp-route-body .sp-route-tag { position: static; display: inline-block; margin-bottom: .5rem; background: var(--glacier); }
.sp-route-card .sp-route-img { height: 190px; }



/* =========================================
   HOME — value / how / faq
   ========================================= */

.sp-value-section,
.sp-how-section,
.sp-faq-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Value proposition */

.sp-value-heading {
  margin-bottom: 28px;
}

.sp-value-heading h2,
.sp-how-heading h2,
.sp-faq-heading h2 {
  margin: 0;
}

.sp-value-heading > p,
.sp-how-heading > p,
.sp-faq-heading > p {
  margin: 10px 0 0;
  color: var(--sp-muted, #64716b);
  font-size: 15px;
  line-height: 1.6;
}

.sp-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 0;
}

.sp-feature {
  padding: 24px 0;
  border-top: 1px solid var(--sp-border, #dce3df);
}

.sp-feature-index {
  display: block;
  margin-bottom: 12px;
  color: var(--sp-muted, #748078);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.sp-feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
}

.sp-feature p {
  max-width: 460px;
  margin: 0;
  color: var(--sp-muted, #64716b);
  font-size: 15px;
  line-height: 1.65;
}

/* How it works */

.sp-how-heading {
  margin-bottom: 32px;
}

.sp-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-how li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--sp-border, #dce3df);
}

.sp-how-number {
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--sp-accent, #758b78);
}

.sp-how li h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.sp-how li p {
  max-width: 360px;
  margin: 0;
  color: var(--sp-muted, #64716b);
  font-size: 15px;
  line-height: 1.65;
}

/* FAQ */

.sp-faq {
  max-width: 860px;
}

.sp-faq-heading {
  margin-bottom: 24px;
}

.sp-faq-list details {
  border-top: 1px solid var(--sp-border, #dce3df);
}

.sp-faq-list details:last-child {
  border-bottom: 1px solid var(--sp-border, #dce3df);
}

.sp-faq-list summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
}

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

.sp-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--sp-muted, #748078);
  font-size: 22px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.sp-faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.sp-faq-list details p {
  max-width: 700px;
  margin: -4px 0 20px;
  color: var(--sp-muted, #64716b);
  font-size: 15px;
  line-height: 1.7;
}

/* Responsive */

@media (max-width: 768px) {
  .sp-value-section,
  .sp-how-section,
  .sp-faq-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .sp-features {
    column-gap: 24px;
  }

  .sp-how {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sp-how li {
    flex-direction: row;
    gap: 20px;
    padding-top: 18px;
  }

  .sp-how-number {
    flex: 0 0 48px;
    font-size: 26px;
  }

  .sp-how li p {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .sp-features {
    grid-template-columns: 1fr;
  }

  .sp-feature {
    padding: 20px 0;
  }

  .sp-feature h3 {
    font-size: 18px;
  }

  .sp-faq-list summary {
    font-size: 15px;
    padding: 18px 32px 18px 0;
  }
}
