/* Экстрим-парк «Роза ветров» — базовые стили */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #121214;
  --bg-panel: #1c1c1f;
  --bg-panel-2: #232327;
  --border: #2e2e33;
  --text: #f2f0ea;
  --text-muted: #a8a7ac;
  --gold: #c9a86a;
  --gold-light: #e2c990;
  --red-1: #e63946;
  --red-2: #7a0d16;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-1), var(--red-2));
  display: inline-block;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-panel); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--red-1), var(--red-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(230,57,70,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,57,70,.45); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,17,.97);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-size: .74rem;
  color: var(--text-muted);
  line-height: 1.25;
  display: none;
  white-space: nowrap;
}
@media (min-width: 1300px) {
  .brand-text { display: block; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-panel-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-social {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color .15s;
}
.header-social:hover { color: var(--gold-light); }
.header-social svg { width: 20px; height: 20px; display: block; }
.header-phone {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
  display: none;
}
@media (min-width: 1150px) { .header-phone { display: inline; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    overflow-y: auto;
  }
  .main-nav a { padding: 16px; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(18,18,20,.98) 0%, rgba(18,18,20,.55) 55%, rgba(18,18,20,.25) 100%),
    linear-gradient(90deg, rgba(18,18,20,.5) 0%, transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 56px;
  max-width: 760px;
}
.hero--small { min-height: 46vh; }
.hero--small .hero-inner { padding: 48px 0 40px; }

.hero-tagline { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.breadcrumb {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: 14px;
  display: block;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}
.pill {
  font-size: .76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill--gold { color: var(--gold-light); border-color: rgba(201,168,106,.4); }
.pill--red { color: #ff8f96; border-color: rgba(230,57,70,.4); }

/* Program detail cards */
.program {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  margin-bottom: 28px;
}
.program-media { position: relative; }
.program-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.program-body { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.program-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}
.program-included {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.program-included li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
}
.program-included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}
.program-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 6px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.fact-value { font-weight: 700; }
.program-footnote { font-size: .84rem; color: var(--text-muted); margin: 0; }

@media (max-width: 860px) {
  .program { grid-template-columns: 1fr; }
  .program-media img { min-height: 220px; }
}

/* Callout / note box */
.callout {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--red { border-left-color: var(--red-1); }

/* Event cards */
.event {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  margin-bottom: 28px;
}
.event-media { position: relative; }
.event-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.event-status {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(18,18,20,.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
}
.event-body { padding: 34px; }
.event-date { color: var(--gold); font-weight: 700; margin-bottom: 8px; display: block; }
@media (max-width: 860px) {
  .event { grid-template-columns: 1fr; }
  .event-media img { min-height: 220px; }
}

/* Team */
.team-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  align-items: stretch;
}
.team-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.team-card-body { padding: 34px 34px 34px 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
@media (max-width: 780px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card-body { padding: 0 24px 28px; }
  .team-card img { min-height: 260px; }
}
.team-role { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }

.teaser-box {
  margin-top: 32px;
  background: var(--bg-panel-2);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Timeline (history) */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); display: grid; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,106,.2);
}
.timeline-year { color: var(--gold); font-weight: 800; font-size: 1.1rem; }

/* Mission */
.mission-quote {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid var(--red-1);
  padding-left: 24px;
  margin: 24px 0;
}
.mission-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.mission-values div {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 780px) { .mission-values { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.contact-row:first-of-type { border-top: none; }
.contact-row .label { color: var(--text-muted); min-width: 120px; flex-shrink: 0; font-size: .9rem; }
.contact-row .value { font-weight: 600; }
.contact-row .value a:hover { color: var(--gold-light); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold-light); }

/* Footer */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: .92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 38px; }
.partner-badge { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.partner-badge img { height: 24px; width: auto; filter: grayscale(1) brightness(1.4); opacity: .8; }

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

/* Price table */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 28px 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .92rem;
}
.price-table th, .price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.price-table th {
  background: var(--bg-panel-2);
  color: var(--gold);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: sticky;
  top: 0;
}
.price-table td:first-child, .price-table th:first-child {
  white-space: normal;
  min-width: 220px;
}
.price-table tbody tr.model-row td {
  font-weight: 700;
  background: var(--bg-panel);
}
.price-table tbody tr.addon-row td {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .84rem;
  padding-top: 4px;
  padding-bottom: 12px;
}
.price-table tbody tr.addon-row td:first-child {
  padding-left: 32px;
}
.price-table td.na { color: var(--border); }

.addon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.addon-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.addon-list li b { color: var(--gold-light); white-space: nowrap; }

/* Instructor mini-cards */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.instructor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.avatar-initials {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
@media (max-width: 640px) { .instructor-grid { grid-template-columns: 1fr; } }

/* Advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.advantage-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.advantage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
  font-weight: 800;
  margin-bottom: 16px;
}
.advantage-card h3 { margin-bottom: 8px; }
.advantage-card p { margin-bottom: 0; }
@media (max-width: 780px) { .advantage-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0 0 18px;
}

/* Models strip (о технике) */
.model-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.model-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.model-card .card-body { padding: 18px 20px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: grid; gap: 18px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
