/* Rupicolo — dark, solid UI. Без внешних шрифтов и CDN. */

:root {
  --bg: #08090b;
  --bg-soft: #0d0f12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9e7e2;
  --muted: #9d9b96;
  --dim: #6f6e6a;
  --accent: #d8b06a;
  --accent-soft: rgba(216, 176, 106, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* тонкая текстура поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

p { margin: 0; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #e6c383, var(--accent));
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(216, 176, 106, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #efcf94, #dca962); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--text); }

.btn-block { width: 100%; }

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.14em; font-size: 14px; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 6px;
  background: conic-gradient(from 210deg, #d8b06a, #8a6a33, #d8b06a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(216, 176, 106, 0.16), transparent 70%),
    radial-gradient(50% 40% at 80% 30%, rgba(108, 96, 200, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.float-layer {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, transparent 0%, transparent 42%, #000 82%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, transparent 0%, transparent 42%, #000 82%);
}

.float-card {
  position: absolute;
  width: var(--w, 150px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  filter: saturate(0.85) contrast(1.02);
  animation: drift var(--dur, 26s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.float-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(8,9,11,0) 40%, rgba(8,9,11,0.55));
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)) scale(1); }
  100% { transform: translate3d(var(--dx, 10px), var(--dy, -26px), 0) rotate(calc(var(--rot, 0deg) + 1.4deg)) scale(1.03); }
}

.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; z-index: 3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 22px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #79c08a; box-shadow: 0 0 0 0 rgba(121, 192, 138, 0.5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(121, 192, 138, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(121, 192, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(121, 192, 138, 0); }
}

.hero h1 { font-size: clamp(38px, 6.4vw, 74px); letter-spacing: -0.035em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f0d6a4 10%, #d8b06a 45%, #a98b52 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead {
  margin: 26px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
}

.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 54px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.hero-stats b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stats span { color: var(--dim); font-size: 12.5px; letter-spacing: 0.04em; }

/* ---------- секции ---------- */

.section { padding: 110px 28px; max-width: 1180px; margin: 0 auto; }
.section--flush { max-width: none; padding-left: 0; padding-right: 0; }
.section--flush .section-head { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- модели ---------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.model-card {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    var(--bg-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.model-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.model-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,176,106,.5), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.model-card:hover::before { opacity: 1; }

.model-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.chip {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(216, 176, 106, 0.22);
  padding: 4px 10px; border-radius: 999px;
}
.chip-muted { color: var(--dim); background: rgba(255,255,255,.04); border-color: var(--line); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #79c08a; box-shadow: 0 0 12px rgba(121,192,138,.7); }

.model-card h3 { font-size: 22px; margin-bottom: 10px; }
.model-card p { color: var(--muted); font-size: 14.5px; }

.model-meta { display: flex; gap: 26px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.model-meta div { display: flex; flex-direction: column; gap: 2px; }
.model-meta dt { color: var(--dim); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.model-meta dd { margin: 0; font-size: 14.5px; }

.model-card--soon { opacity: 0.82; }
.model-card--soon:hover { opacity: 1; }

/* ---------- лента ---------- */

.feed { display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding: 6px 0; }
.feed-row { display: flex; gap: 16px; width: max-content; animation: marquee var(--speed, 60s) linear infinite; }
.feed-row:nth-child(even) { animation-direction: reverse; }
.feed:hover .feed-row { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.feed-item {
  width: 210px; aspect-ratio: 4 / 5;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-size: cover; background-position: center;
  position: relative; flex: 0 0 auto;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.feed-item:hover { transform: scale(1.03); border-color: var(--line-strong); }
.feed-item::after {
  content: attr(data-tag);
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11px; color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12);
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* ---------- шаги ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; counter-reset: s; }
.step {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step-num { display: block; font-size: 12px; letter-spacing: .18em; color: var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- оплата ---------- */

.payment-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 48px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(216,176,106,.09), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.payment-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.payment-copy p { color: var(--muted); }

.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.35);
  padding: 28px;
}
.price-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.price { font-size: 40px; letter-spacing: -.03em; margin-top: 10px; }
.price-note { color: var(--dim); font-size: 13.5px; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.faq-list details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-list summary {
  cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--dim); font-size: 22px; line-height: 1;
  transition: transform .2s ease, color .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-list details p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- заявка ---------- */

.invite-section { padding-bottom: 130px; }
.invite-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(216,176,106,.10), transparent 60%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}
.invite-copy h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.invite-copy p { color: var(--muted); max-width: 42ch; }

.invite-form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: var(--dim); letter-spacing: .04em; }
.field span i { font-style: normal; color: var(--dim); opacity: .7; }
.field input {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: #5c5b58; }
.field input:focus { outline: none; border-color: rgba(216,176,106,.55); box-shadow: 0 0 0 3px rgba(216,176,106,.12); }
.field input.is-error { border-color: rgba(214, 106, 106, .7); }

.form-note { color: var(--dim); font-size: 12.5px; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form-status { min-height: 22px; font-size: 14px; color: var(--accent); }
.form-status.is-error { color: #e08b8b; }

/* ---------- футер ---------- */

.footer { border-top: 1px solid var(--line); padding: 46px 28px 60px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .12em; font-size: 13.5px; }
.footer-note { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--dim); font-size: 12.5px; margin-top: 10px; }

/* ---------- появление ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .payment-card, .invite-card { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
  .section { padding: 80px 20px; }
  .hero { padding: 110px 20px 70px; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 520px) {
  .float-layer { opacity: .45; }
  .float-card:nth-child(n+7) { display: none; }
  .feed-item { width: 150px; }
  .hero-stats li { min-width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .float-card, .feed-row, .pulse { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
