/* Extra features — Ion landing */

:root {
  --surface-2: #f8fbff;
}

html[data-theme="dark"] {
  --bg: #0b1524;
  --bg-soft: #101c30;
  --surface: #132033;
  --surface-2: #18263c;
  --ink: #e8eef7;
  --ink-soft: #b4c2d6;
  --muted: #8fa3bb;
  --line: rgba(94, 200, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .page-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 111, 232, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(94, 200, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1322 0%, var(--bg) 40%, #0d1829 100%);
}

html[data-theme="dark"] .header {
  background: rgba(11, 21, 36, 0.92);
}

html[data-theme="dark"] .header.is-scrolled {
  background: rgba(16, 28, 48, 0.96);
}

html[data-theme="dark"] .logo__word {
  background: linear-gradient(120deg, #e8eef7 5%, #7dd4ff 50%, #3b9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .logo__mark {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Header extras */
.header__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--blue);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: block; }

/* Stats */
.stats {
  padding: 0 0 1rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stat {
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

html[data-theme="dark"] .stat {
  background: rgba(255, 255, 255, 0.04);
}

.stat__value {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 550;
}

/* Promo */
.nav__link--promo {
  color: var(--blue) !important;
  font-weight: 700;
}

.promo {
  padding: 1rem 0 2.5rem;
}

.promo__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  padding: 1.75rem 1.6rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(26, 111, 232, 0.22);
  background:
    linear-gradient(135deg, rgba(26, 111, 232, 0.14), rgba(94, 200, 255, 0.2) 45%, rgba(255, 255, 255, 0.75));
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .promo__card {
  background:
    linear-gradient(135deg, rgba(26, 111, 232, 0.28), rgba(14, 77, 181, 0.18) 50%, rgba(255, 255, 255, 0.04));
}

.promo__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 200, 255, 0.45), transparent 70%);
  pointer-events: none;
}

.promo__content,
.promo__aside {
  position: relative;
  z-index: 1;
}

.promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 111, 232, 0.14);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo__title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 16ch;
}

.promo__text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-bottom: 1rem;
}

.promo__perks {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.promo__perks li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
}

.promo__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.promo__ghost {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .promo__ghost {
  background: rgba(255, 255, 255, 0.06);
}

.promo__aside {
  display: grid;
  gap: 0.9rem;
  align-content: center;
}

.promo__price-card {
  padding: 1.2rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  text-align: center;
}

html[data-theme="dark"] .promo__price-card {
  background: rgba(11, 21, 36, 0.55);
}

.promo__price-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.promo__price-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.promo__price-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.promo__timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.promo__tick {
  padding: 0.65rem 0.35rem;
  border-radius: 12px;
  background: rgba(11, 31, 58, 0.9);
  color: #fff;
  text-align: center;
}

.promo__tick span {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.promo__tick small {
  font-size: 0.68rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

  .promo__title {
    max-width: none;
  }
}

.consult__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(26, 111, 232, 0.12), rgba(94, 200, 255, 0.18));
  border: 1px solid var(--line);
}

.consult__title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.consult__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Process */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process__item {
  padding: 1.3rem 1.15rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
}

html[data-theme="dark"] .process__item {
  background: rgba(255, 255, 255, 0.04);
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(26, 111, 232, 0.1);
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.process__item h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process__item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guarantees */
.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guarantee {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.guarantee i {
  color: var(--blue);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.guarantee h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.guarantee p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Case */
.case__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .case__card {
  background: rgba(255, 255, 255, 0.04);
}

.case__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.case__text {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.case__metric {
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.case__metric strong {
  display: block;
  font-family: var(--display);
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.case__metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

.case__compare {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.case__box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.case__box--before {
  background: rgba(192, 57, 43, 0.06);
}

.case__box--after {
  background: rgba(34, 197, 94, 0.08);
}

.case__box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.case__box p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Packages */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
}

.package {
  position: relative;
  padding: 1.5rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.package--featured {
  border-color: rgba(26, 111, 232, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.package__badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 111, 232, 0.12);
  color: var(--blue);
}

.package h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.package__price {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 750;
  color: var(--blue);
}

.package__price small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 550;
}

.package ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
  flex: 1;
}

.package li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}

.package li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Calculator */
.calc {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .calc {
  background: rgba(255, 255, 255, 0.04);
}

.calc__title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.calc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.calc__field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.calc__field select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid rgba(26, 111, 232, 0.14);
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.calc__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.calc__price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 750;
  color: var(--blue);
}

.calc__hint {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Quiz */
.quiz {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 720px;
}

.quiz__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(26, 111, 232, 0.1);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz__bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transition: width 0.35s var(--ease);
}

.quiz__step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.quiz__options {
  display: grid;
  gap: 0.55rem;
}

.quiz__option {
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 550;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.quiz__option:hover,
.quiz__option.is-active {
  border-color: rgba(26, 111, 232, 0.45);
  background: rgba(26, 111, 232, 0.08);
}

.quiz__nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.quiz__result {
  display: none;
}

.quiz__result.is-visible {
  display: block;
}

.quiz__estimate {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(26, 111, 232, 0.08);
  border: 1px solid var(--line);
}

.quiz__estimate strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: 1.35rem;
}

/* FAQ */
.faq__list {
  display: grid;
  gap: 0.65rem;
  max-width: 820px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

html[data-theme="dark"] .faq__item {
  background: rgba(255, 255, 255, 0.04);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

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

.faq__item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Blog */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog__card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog__meta {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.blog__card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.blog__card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 0.9rem;
}

.blog__more {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Status */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-size: 0.86rem;
  font-weight: 650;
}

html[data-theme="dark"] .status-line {
  color: #86efac;
}

.status-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Floating messengers */
.float-msg {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.55rem;
}

.float-msg__btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(14, 77, 181, 0.28);
  transition: transform 0.25s var(--ease);
}

.float-msg__btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.float-msg__btn--tg { background: linear-gradient(135deg, #5ec8ff, #2a9bdf); }
.float-msg__btn--max { background: linear-gradient(145deg, #4da3ff, #8b4dff); }
.float-msg__btn i,
.float-msg__btn svg { width: 22px; height: 22px; font-size: 1.25rem; }

/* Cookie */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  max-width: 560px;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie.is-visible {
  display: flex;
}

.cookie p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
  min-width: 200px;
}

.cookie a {
  color: var(--blue);
  font-weight: 650;
}

/* Article page */
.article-page {
  padding: 2rem 0 4rem;
}

.article-page h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.75rem 0 1rem;
}

.article-page .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.article-page p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 68ch;
}

.article-page .back {
  color: var(--blue);
  font-weight: 650;
}

@media (max-width: 1024px) {
  .stats__grid,
  .packages,
  .blog__grid,
  .calc__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .package--featured {
    transform: none;
  }
}

@media (max-width: 860px) {
  .header__tools {
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .header__cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats__grid,
  .process__grid,
  .packages,
  .blog__grid,
  .calc__grid,
  .case__metrics {
    grid-template-columns: 1fr;
  }

  .float-msg {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .consult__banner {
    padding: 1.1rem;
  }
}
