:root {
  --bg: #08090c;
  --card: #111318;
  --card-hover: #161a22;
  --border: #22262f;
  --text: #f0f2f6;
  --muted: #8e94a3;
  --green: #2ecc66;
  --green-soft: rgba(46, 204, 102, 0.12);
  --green-dim: #22b357;
  --gold: #e8b923;
  --gold-soft: rgba(232, 185, 35, 0.14);
  --danger: #e74c3c;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(46, 204, 102, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(46, 204, 102, 0.04), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: #b6f0c6;
}
/* короткие команды — без переноса */
code.cmd {
  white-space: nowrap;
}
/* длинные пути: одна строка + горизонтальный скролл при узком экране */
code.path {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  vertical-align: bottom;
  word-break: keep-all;
  overflow-wrap: normal;
  scrollbar-width: thin;
}
/* бренд без разрыва Golden | Klad */
.nowrap, .brand {
  white-space: nowrap;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.logo, .logo-link {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
}
.logo-link:hover { opacity: 0.88; }
nav a {
  margin-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
}
nav a:hover, nav a.active { color: var(--green); }

.hero {
  background: linear-gradient(155deg, #13171f 0%, #0c100e 55%, #0a0e0c 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 42px 36px 38px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(46, 204, 102, 0.18), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(46, 204, 102, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(46, 204, 102, 0.28);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  max-width: 100%;
}
.hero h1 .brand {
  white-space: nowrap;
}
.hero h1 .accent { color: var(--gold); }
.hero-lead {
  position: relative;
  z-index: 1;
  margin: 0 auto 18px;
  color: var(--muted);
  max-width: 540px;
  font-size: 1.06rem;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}
.hero-perks {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  justify-items: center;
  text-align: center;
}
.hero-perks li {
  position: relative;
  padding-left: 1.15em;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
  white-space: nowrap;
  text-align: left;
  justify-self: center;
}
.hero-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
@media (max-width: 640px) {
  .hero-perks {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-perks li {
    white-space: normal;
  }
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 1.55rem; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

/* карточки с кнопками на одной линии */
.card-action {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
.card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  width: 100%;
  justify-content: flex-start;
}
.card-foot .btn {
  width: auto;
  min-width: 180px;
  max-width: 220px;
  min-height: 42px;
  padding: 11px 20px;
  font-size: 0.92rem;
  box-sizing: border-box;
}
.grid {
  align-items: stretch;
}

.card-action:hover {
  border-color: rgba(46, 204, 102, 0.45);
  background: var(--card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card-wide { margin-top: 0; }
.card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.card-list {
  margin: 0 0 18px;
  padding: 0 0 0 1.1em;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-list li { margin-bottom: 6px; }
.card-list li::marker { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #3adf78 0%, var(--green) 55%, var(--green-dim) 100%);
  color: #06140c !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.15s ease;
  box-shadow:
    0 4px 16px rgba(46, 204, 102, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn:hover {
  filter: brightness(1.06);
  color: #041008 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(46, 204, 102, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.btn-glow {
  box-shadow:
    0 4px 18px rgba(46, 204, 102, 0.35),
    0 0 0 1px rgba(46, 204, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.secondary {
  background: rgba(46, 204, 102, 0.06);
  color: var(--green) !important;
  border: 1px solid rgba(46, 204, 102, 0.45);
  box-shadow: none;
  filter: none;
}
.btn.secondary:hover {
  background: var(--green-soft);
  color: #5ee88f !important;
  border-color: rgba(46, 204, 102, 0.7);
  box-shadow: 0 4px 14px rgba(46, 204, 102, 0.12);
  filter: none;
}
.btn.danger {
  background: linear-gradient(180deg, #f06a5c 0%, var(--danger) 100%);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
}

label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  background: #0c0e12;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(46, 204, 102, 0.5);
}
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; }
.msg.ok { background: var(--green-soft); border: 1px solid rgba(46,204,102,0.35); }
.msg.err { background: rgba(231,76,60,0.12); border: 1px solid var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 48px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps li:first-child { padding-top: 4px; }
.steps li strong { color: var(--text); font-weight: 600; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(46, 204, 102, 0.28);
}
.steps li:first-child::before { top: 4px; }

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 0.95rem; }

/* --- showcase: одна колонка сразу после hero --- */
.showcase {
  display: block;
  width: 100%;
  margin: 28px 0 24px;
  text-align: center;
  clear: both;
}
.showcase-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.showcase-title { color: #e85d5d; }
.showcase-sub {
  margin: 0 auto 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* одна колонка: кадр на всю ширину wrap */
.showcase-stage {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.showcase-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #0a0c10;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  /* высота = активный слайд; слои поверх друг друга для fade */
  min-height: 200px;
}
.showcase-slide {
  display: block !important;
  margin: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
}
.showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.showcase-slide img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #0a0c10;
}
.showcase-slide figcaption {
  display: block;
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(46, 204, 102, 0.4);
  background: rgba(8, 12, 10, 0.8);
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s, border-color 0.15s;
}
.carousel-btn:hover {
  background: rgba(46, 204, 102, 0.2);
  border-color: var(--green);
}
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  width: 100%;
}
.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots .dot.is-active {
  background: var(--green);
  transform: scale(1.25);
}

.showcase-empty {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-empty-inner {
  color: var(--muted);
  padding: 48px 20px;
}
.showcase-empty-inner p { margin: 8px 0 0; }
.showcase-empty-inner .muted { font-size: 0.88rem; opacity: 0.85; }
.showcase-empty-icon { font-size: 2rem; display: block; margin-bottom: 6px; }

/* --- video --- */
.media-section { margin-top: 16px; }
.media-lead {
  margin: -4px 0 16px !important;
  color: var(--muted);
  font-size: 0.95rem;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0e12;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #0c0e12;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .showcase-title { font-size: 1.4rem; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.2rem; }
  .showcase-slide img { max-height: 380px; }
}

/* === Плавный переход между страницами ===
   Скорость fade-in: 0.45s ниже. Fade-out — DURATION в assets/page-transition.js
   Чтобы ускорить до ~0.2 с: поставь 0.2s здесь и DURATION = 200 в JS. */
body.gk-page {
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.gk-page.gk-ready {
  opacity: 1;
}
body.gk-page.gk-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}


/* === Появление блоков при скролле === */
.gk-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.gk-reveal.gk-in {
  opacity: 1;
  transform: translateY(0);
}
.gk-reveal-delay-1 { transition-delay: 0.08s; }
.gk-reveal-delay-2 { transition-delay: 0.16s; }
.gk-reveal-delay-3 { transition-delay: 0.24s; }

/* Тарифы на buy */
.plan-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 4px;
}
@media (max-width: 720px) {
  .plan-list { grid-template-columns: 1fr 1fr; }
}
.plan-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.plan-chip:hover {
  border-color: rgba(46,204,102,0.45);
  background: rgba(46,204,102,0.08);
  transform: translateY(-2px);
}
.plan-chip.is-selected {
  border-color: var(--green);
  background: rgba(46,204,102,0.14);
  box-shadow: 0 0 0 1px rgba(46,204,102,0.35), 0 8px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.plan-chip .plan-days {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.plan-chip.is-selected .plan-days { color: #c8f0d4; }
.plan-chip .plan-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}

/* FAQ steps */
.faq-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-step:last-child { border-bottom: none; }
.faq-step-num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46,204,102,0.12);
  color: var(--green);
  font-weight: 800;
  font-size: 1.25rem;
  border: 1px solid rgba(46,204,102,0.3);
}
.faq-step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.faq-step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.faq-shot {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(0,0,0,0.25);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
}
.faq-shot img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}
@media (max-width: 560px) {
  .faq-step { grid-template-columns: 48px 1fr; gap: 12px; }
  .faq-step-num { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
}
