:root {
  --ink: #111317;
  --muted: #5c6470;
  --line: #e7ecf0;
  --bg: #f7faf9;
  --white: #ffffff;
  --teal: #0fb9b1;
  --green: #24c46b;
  --coral: #ff5a5f;
  --yellow: #ffd166;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 19, 23, 0.08);
  backdrop-filter: blur(14px);
}

.header-grid {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  font-weight: 950;
  letter-spacing: 0.04em;
}

.logo span { color: var(--teal); }

.main-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 750;
}

.main-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #06110f;
  background: linear-gradient(135deg, var(--yellow), var(--teal));
  box-shadow: 0 14px 30px rgba(15, 185, 177, 0.28);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 132px 0 82px;
  color: var(--white);
  background: url("/assets/team/enduro-mountain-view.jpg") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.84), rgba(4, 7, 12, 0.52) 50%, rgba(4, 7, 12, 0.18)),
    linear-gradient(180deg, rgba(4, 7, 12, 0.05), rgba(4, 7, 12, 0.72));
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 185, 177, 0.13);
  border: 1px solid rgba(15, 185, 177, 0.3);
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow,
.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #dffdfa;
}

.hero h1 {
  max-width: 860px;
  margin: 18px 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 650;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-facts strong {
  display: block;
  font-size: 24px;
}

.hero-facts span { color: rgba(255, 255, 255, 0.74); }

.section { padding: 86px 0; }

.section-muted { background: #edf7f5; }

.section-dark {
  background: var(--dark);
  color: var(--white);
}

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

.section-head h2,
.cta-band h2,
.quiz-layout h2,
.faq-layout h2,
.seo-text h2,
.modal-card h2 {
  margin: 12px 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-head p,
.cta-band p,
.quiz-layout p,
.seo-text p,
.modal-card p {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-head p { color: rgba(255, 255, 255, 0.72); }

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.service-card img {
  height: 230px;
  object-fit: cover;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 18px;
}

.service-body h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.service-body p {
  margin: 0;
  color: var(--muted);
}

.price {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eafff9;
  color: #067a73;
  font-weight: 950;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  font-weight: 900;
}

.card-actions a { color: var(--teal); }

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--coral);
  font-weight: 950;
  cursor: pointer;
}

.cta-band {
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(135deg, #101820, #0f766e 58%, #ff5a5f);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.cta-band p { color: rgba(255, 255, 255, 0.8); }

.quiz-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
}

.lead-form {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7dde4;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 3px solid rgba(15, 185, 177, 0.2);
  border-color: var(--teal);
}

.form-submit {
  width: 100%;
  margin-top: 14px;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 850;
}

.form-note.ok { color: #087f4b; }

.form-note.err { color: #b42318; }

.trust-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-grid article,
.reviews-grid blockquote {
  margin: 0;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.trust-grid h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.trust-grid p,
.reviews-grid p {
  margin: 0;
  color: var(--muted);
}

.reviews-grid blockquote {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.reviews-grid p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.reviews-grid cite {
  display: block;
  margin-top: 18px;
  color: #dffdfa;
  font-style: normal;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
}

.faq-list summary {
  font-weight: 950;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.seo-text { padding-top: 40px; }

.seo-text p { max-width: 940px; }

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seo-links a {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 850;
}

.telegram-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  padding: 0 18px;
  background: #26a5e4;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(38, 165, 228, 0.35);
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open { display: grid; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.68);
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f5;
  font-size: 26px;
  cursor: pointer;
}

.lead-form.compact {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.lead-form.compact label { margin-top: 12px; }

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer {
  padding: 42px 0 96px;
  background: #0a0f14;
  color: #fff;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer p { color: rgba(255, 255, 255, 0.68); }

.footer a {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .main-nav { display: none; }

  .hero {
    min-height: 680px;
    padding: 112px 0 120px;
  }

  .hero-content { margin-inline: auto; }

  .hero-facts,
  .service-grid,
  .trust-grid,
  .reviews-grid,
  .quiz-layout,
  .faq-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions { justify-content: flex-start; }

  .telegram-float {
    right: 12px;
    bottom: 88px;
  }

  .mobile-cta { display: grid; }

  .section { padding: 64px 0; }

  .service-card img { height: 210px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--max)); }

  .header-grid { min-height: 64px; }

  .header-grid .btn { display: none; }

  .hero h1 { font-size: 42px; }

  .hero-actions .btn { width: 100%; }

  .form-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .service-body h3 { font-size: 22px; }

  .modal-card { padding: 20px; }

  .telegram-float {
    left: 12px;
    right: 12px;
  }

  .footer-grid { display: grid; }
}
