:root {
  --bg: #0f1c1a;
  --bg-2: #13241f;
  --surface: #182c27;
  --text: #f1ece2;
  --muted: #b5ae9f;
  --accent: #e8b25c;
  --accent-2: #6fc2a8;
  --border: rgba(241, 236, 226, .12);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(15, 28, 26, .82); backdrop-filter: blur(12px); border-color: var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px Georgia, serif; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-mark .needle { transform-origin: 16px 16px; animation: needle 6s var(--ease) infinite; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); opacity: .8; text-decoration: none; font-size: 15px; position: relative; }
.nav a:not(.nav-login)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent);
  transition: right .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }
.nav-login { padding: 8px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent) !important; opacity: 1 !important; }

/* ---------- Обложка ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero-media img { width: 100%; height: 112%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 28, 26, .55) 0%, rgba(15, 28, 26, .15) 35%, rgba(15, 28, 26, .85) 80%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 178, 92, .18), transparent 60%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: 110px; }
.hero-title { margin: 0 0 22px; font-size: clamp(40px, 8vw, 92px); line-height: 1.02; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .18s; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), #f6dca6, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 5s linear infinite;
}
.lead { max-width: 62ch; font-size: clamp(17px, 2.2vw, 20px); color: #ddd6c7; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #1d1408; border: 1px solid var(--accent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(232, 178, 92, .6); }
.button-ghost { background: transparent; color: var(--text); border-color: rgba(241, 236, 226, .45); }
.button-ghost:hover { background: rgba(241, 236, 226, .08); box-shadow: none; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(241, 236, 226, .5); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollhint 2s var(--ease) infinite; }

/* ---------- Секции ---------- */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title { margin: 0 0 16px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.12; }

.club-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.club-grid p { color: #d8d1c2; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li {
  display: flex; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), transparent);
  transition: transform .4s var(--ease), border-color .4s;
}
.values li:hover { transform: translateX(6px); border-color: rgba(232, 178, 92, .45); }
.values svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.values h3 { margin: 0 0 4px; font-size: 20px; }
.values p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Линия маршрута ---------- */
.route-band { padding: 0 16px; }
.route-svg { display: block; width: 100%; height: 140px; }
.route-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 8 10; stroke-dashoffset: 0; opacity: .7; }
.route-points circle { fill: var(--bg); stroke: var(--accent-2); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease); }
.js .route-band .route-path { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease); }
.route-band.is-visible .route-path { clip-path: inset(0 0 0 0); animation: march 1.6s linear infinite; }
.route-band.is-visible .route-points circle { transform: scale(1); }
.route-band.is-visible .route-points circle:nth-child(1) { transition-delay: .4s; }
.route-band.is-visible .route-points circle:nth-child(2) { transition-delay: .9s; }
.route-band.is-visible .route-points circle:nth-child(3) { transition-delay: 1.4s; }
.route-band.is-visible .route-points circle:nth-child(4) { transition-delay: 1.8s; }
.route-band.is-visible .route-points circle:nth-child(5) { transition-delay: 2.2s; }

/* ---------- Экспедиции ---------- */
.expeditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trip {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 360px;
  display: flex; align-items: flex-end; isolation: isolate; background: var(--surface);
}
.trip-wide { grid-column: span 2; }
.trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; }
.trip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 18, 16, .92)); }
.trip:hover img { transform: scale(1.07); filter: saturate(1.15); }
.trip-body { padding: 26px; transform: translateY(10px); transition: transform .5s var(--ease); }
.trip:hover .trip-body { transform: translateY(0); }
.trip-season { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(232, 178, 92, .18); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.trip h3 { margin: 0 0 6px; font-size: 24px; }
.trip p { margin: 0; color: #d4cdbf; font-size: 15px; }
.lock {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  background: rgba(10, 18, 16, .6); backdrop-filter: blur(8px); color: var(--text); border: 1px solid var(--border);
}
.lock svg, .members-lock { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lock svg { width: 14px; height: 14px; }

/* ---------- Как вступить ---------- */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); position: relative; overflow: hidden; }
.steps li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s var(--ease) .3s;
}
.steps li.is-visible::after { width: 100%; }
.step-n { display: block; font: italic 600 44px Georgia, serif; color: var(--accent); opacity: .85; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); }

.members {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(232, 178, 92, .35);
  background: radial-gradient(ellipse at 0% 0%, rgba(232, 178, 92, .14), transparent 60%), var(--surface);
}
.members > div { flex: 1 1 320px; }
.members h3 { margin: 0 0 6px; font-size: 24px; }
.members p { margin: 0; color: var(--muted); }
.members-lock { width: 56px; height: 56px; color: var(--accent); animation: pulse 3s ease-in-out infinite; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

/* ---------- Простые страницы ---------- */
.page { padding: 140px 0 90px; min-height: 80vh; }
.page h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 18px; }
.credits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.credits li { padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }

/* ---------- Проявление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { animation: fadeup 1s var(--ease) forwards; animation-delay: var(--d, .3s); }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeup { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.14) translateX(-2%); } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -36; } }
@keyframes needle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .club-grid { grid-template-columns: 1fr; gap: 40px; }
  .expeditions { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav a:not(.nav-login) { display: none; }
  .expeditions { grid-template-columns: 1fr; }
  .trip-wide { grid-column: auto; }
  .trip { min-height: 300px; }
  .section { padding: 80px 0; }
  .hero-content { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .line > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .route-band .route-path { clip-path: none; }
  .route-points circle { transform: scale(1); }
}
