/* ===== TOKENS ===== */
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --surface: #242424;

  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;

  --accent: #a3e635;
  /* lime-400 */
  --accent-dim: rgba(163, 230, 53, .12);
  --accent-glow: rgba(163, 230, 53, .25);
  --accent-strong: #84cc16;
  /* lime-500 */
  --yellow: #facc15;

  --border: rgba(255, 255, 255, .06);
  --border-hover: rgba(255, 255, 255, .12);

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1100px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, .55, .45, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUpBlur {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {

  0%,
  100% {
    opacity: .6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes entry-reveal {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hero-load {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.96) translateY(20px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}

.anim {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px);
  /* Современный CSS для плавной анимации скролла */
  view-timeline-name: --item-reveal;
  view-timeline-axis: block;
  animation: entry-reveal linear both;
  animation-timeline: --item-reveal;
  animation-range: entry 10% cover 35%;
  will-change: opacity, filter, transform;
}

.hero>.card {
  opacity: 0;
  animation: hero-load 1s var(--ease-out) forwards;
}

.hero>.card:nth-child(2) {
  animation-delay: 0.15s;
}

/* Убираем старые классы, так как теперь анимация нативная или через JS-фолбек */
.anim.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.anim-d1 {
  transition-delay: .1s !important;
}

.anim-d2 {
  transition-delay: .2s !important;
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / HERO-NAV ===== */
.header-block {
  padding: 48px 0 0;
}

.header-desktop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 60px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.header-mobile {
  display: none;
}

.header-logo img {
  width: 260px;
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 0 50px rgba(163, 230, 53, .15));
  transition: transform .4s var(--ease);
  position: relative;
  z-index: 1;
}

.header-logo img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.header-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Центрируем содержимое правой колонки */
  gap: 24px;
}

.header-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .04);
  transition: all .2s var(--ease);
}

.header-nav a .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all .25s var(--ease);
  flex-shrink: 0;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(163, 230, 53, .12);
}

.header-nav a:hover .nav-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-cta {
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  color: #0a0a0a;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all .25s var(--ease);
  box-shadow: 0 0 30px rgba(163, 230, 53, .2);
}

.nav-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(163, 230, 53, .35);
}

/* ===== HERO CONTENT ===== */
.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
}

.hero-main {
  padding: 44px 40px 38px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(163, 230, 53, .15);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: glow 2s ease-in-out infinite;
}

h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 18px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.sub {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  max-width: 50ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 0 30px rgba(163, 230, 53, .2);
}

.btn.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 40px rgba(163, 230, 53, .35);
}

.btn.accent {
  background: transparent;
  border: 1px solid rgba(163, 230, 53, .3);
  color: var(--accent);
}

.btn.accent:hover {
  background: var(--accent-dim);
  border-color: rgba(163, 230, 53, .5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}

.chip:hover {
  border-color: rgba(163, 230, 53, .2);
  color: var(--text);
}

/* ===== SIDEBAR MINI CARDS ===== */
.hero-side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #161616, var(--bg-card));
}

.mini {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}

.mini:hover {
  border-color: rgba(163, 230, 53, .15);
  transform: translateY(-2px);
}

.mini h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mini p {
  color: var(--text-secondary);
  font-size: 15px;
}

.price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  margin: 4px 0;
  text-shadow: 0 0 40px rgba(163, 230, 53, .2);
}

/* ===== SECTIONS ===== */
section {
  scroll-margin-top: 32px;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  padding-bottom: 80px;
}

.sect {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s var(--ease);
}

.sect:hover {
  border-color: var(--border-hover);
}

.sect-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.sect-label::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.sect h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.sect h2+h2 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 14px;
}

.sect-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.sect-flex .content {
  flex: 1;
}

.sect-flex .action {
  flex-shrink: 0;
}

.sect p,
.sect .desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.seo-text {
  margin-top: 16px;
}

.seo-text p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.step:hover {
  border-color: rgba(163, 230, 53, .2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.step-img-wrap {
  overflow: hidden;
  position: relative;
  flex: 1 1 auto;
}

.step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
  transition: transform .5s var(--ease);
  display: block;
  min-height: 220px;
}

.step:hover img {
  transform: scale(1.06);
}

.step-body {
  padding: 20px 22px 24px;
  flex: 0 0 auto;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.step-title {
  font-weight: 700;
  font-size: 16px;
}

.step-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(255, 255, 255, .06);
  padding: 10px 14px;
  border-radius: 10px;
  display: block;
  margin-top: 6px;
  min-height: 64px;
  /* Фиксированная минимальная высота для единообразия */
  display: flex;
  align-items: center;
}

/* ===== MOBILE SLIDER for steps ===== */
.steps-slider {
  display: none;
}

/* ===== RULES ===== */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.list {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}

.list:hover {
  border-color: var(--border-hover);
}

.list h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list:first-child h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.list:last-child h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, .3);
}

li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-left: 18px;
  position: relative;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

li:last-child {
  border-bottom: none;
}

.note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, .06);
  border-radius: 10px;
  border-left: 3px solid rgba(239, 68, 68, .4);
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s var(--ease);
}

details:hover {
  border-color: var(--border-hover);
}

details[open] {
  border-color: rgba(163, 230, 53, .15);
  background: var(--surface);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  transition: color .2s;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 26px;
  font-weight: 300;
  color: var(--text-muted);
  transition: all .3s var(--ease);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  line-height: normal;
  padding-top: 1px;
}

details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
  background: var(--accent-dim);
}

details[open] summary {
  color: var(--accent);
}

details p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  animation: slideDown .3s var(--ease);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 24px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(163, 230, 53, .1);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer b {
  color: var(--text-secondary);
}

.doc-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.doc-links a {
  color: var(--accent);
  font-weight: 500;
  transition: opacity .2s;
}

.doc-links a:hover {
  opacity: .7;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    padding: 32px 28px;
  }

  .header-logo {
    justify-self: center;
  }

  .header-logo img {
    width: 200px;
    border-radius: 18px;
  }

  .header-nav {
    justify-content: center;
  }

  .header-nav .nav-dot {
    display: none;
  }

  .header-nav .nav-cta {
    width: 100%;
    margin-top: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  /* Steps become horizontal slider */
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    flex: 0 0 80%;
    max-width: 340px;
    scroll-snap-align: center;
    min-height: 360px;
  }

  .step img {
    min-height: 200px;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .header-block {
    padding: 24px 0 0;
  }

  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  .header-mobile .header-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .header-mobile .header-logo img {
    width: 150px;
    border-radius: 16px;
  }

  .header-mobile .header-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-mobile .header-nav a {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .06);
  }

  .header-mobile .nav-cta {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
    margin-top: 12px;
    padding: 18px;
    font-size: 17px;
  }

  h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .sub {
    font-size: 15px;
  }

  .hero-main {
    padding: 28px 22px 26px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .hero-ctas .pill {
    justify-content: center;
  }

  .sect {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  .sect h2 {
    font-size: 24px;
  }

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

  .hero {
    gap: 16px;
  }

  .sections {
    gap: 16px;
  }

  .sect-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .footer {
    padding: 24px 20px;
    border-radius: var(--radius);
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    border-radius: var(--radius);
  }

  .chips {
    gap: 8px;
  }

  .chip {
    font-size: 12px;
    padding: 8px 12px;
  }

  .price {
    font-size: 36px;
  }

  .step {
    flex: 0 0 85%;
    max-width: none;
    min-height: 340px;
  }

  .step img {
    min-height: 180px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 26px;
  }

  .hero-main {
    padding: 22px 18px;
  }

  .sect {
    padding: 22px 16px;
  }

  .mini {
    padding: 16px;
  }

  .header-inner {
    padding: 20px 16px;
  }

  .step {
    flex: 0 0 92%;
  }
}