/* ==========================================================================
   QMobile / kOFD — design system
   ========================================================================== */

:root {
  --brand: #001a9f;
  --brand-dark: #000f66;
  --brand-tint: #eef0fb;
  --brand-tint-soft: #f6f7fc;

  --ink: #0b0d12;
  --ink-soft: #52525b;
  --ink-faint: #71717a;
  --surface-ink: #0b0d12;

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-dark: #0b111c;
  --card-bg: #ffffff;

  --border: #e4e4e7;
  --border-soft: #ececef;

  --success: #16a34a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow-card:
    0 1px 2px rgba(9, 9, 11, 0.04), 0 16px 32px -12px rgba(9, 9, 11, 0.12);
  --shadow-pop: 0 24px 48px -16px rgba(0, 26, 159, 0.28);

  --container: 1400px;
  --font-sans:
    "Inter", "Gothic", "GothicKZ", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --brand: #5b7cff;
  --brand-dark: #8aa0ff;
  --brand-tint: rgba(91, 124, 255, 0.16);
  --brand-tint-soft: rgba(91, 124, 255, 0.08);

  --ink: #f2f3f6;
  --ink-soft: #c2c5cc;
  --ink-faint: #8b8f99;

  --bg: #0b111c;
  --bg-soft: #121a28;
  --card-bg: #141c2b;

  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.09);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
}

/* ---------- theme switch transition (circular reveal) ---------- */

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    z-index: 1;
  }
  ::view-transition-new(root) {
    z-index: 2;
  }
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

/* Sticky footer: on short pages (Тарифы, Контакты…) the footer sits flush
   with the bottom of the viewport instead of leaving white space below it. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.site-footer {
  margin-top: auto;
}

body.lang-kk {
  font-family:
    "Inter",
    "GothicKZ",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 52px 0;
}
.section--tight {
  padding: 48px 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section--brand {
  background: var(--brand);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-on-brand {
  background: #fff;
  color: var(--brand);
}
.btn-on-brand:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
}
.btn-outline-on-brand {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-on-brand:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-arrow {
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover .btn-arrow {
  transform: translateX(5px) rotate(0deg);
}

.btn-cta {
  color: var(--surface-ink);
  padding: 5px 5px 5px 20px;
  gap: 12px;
}
.btn-cta:hover {
  color: var(--surface-ink);
  background: #fff;
}
.btn-cta__arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.btn-cta:hover .btn-cta__arrow {
  background: var(--surface-ink);
}
.btn-cta__arrow .btn-arrow {
  font-size: 1.05rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}
:root[data-theme="dark"] .site-header {
  background: rgba(11, 17, 28, 0.85);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 88px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: filter 0.25s ease;
}
:root[data-theme="dark"] .site-logo img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 36px;
}
/* Bootstrap's `.collapse:not(.show){display:none}` outranks the rule above
   (two class-level selectors vs one), so on desktop the whole nav — links,
   phone, CTAs — silently disappears. Force it back with matching specificity. */
@media (min-width: 992px) {
  .site-nav.collapse {
    display: flex !important;
  }
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links li {
  position: relative;
}
.site-nav__links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav__links a:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: right 0.18s ease;
}
.site-nav__links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.site-nav__links a:not(.dropdown-toggle):hover::after {
  right: 0;
}
.site-nav__links li.is-active a {
  color: var(--brand);
  font-weight: 600;
}
.site-nav__links li.is-active a:not(.dropdown-toggle)::after {
  right: 0;
}

.site-nav__links .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav__links .dropdown-toggle::after {
  content: "";
  display: block;
  position: static;
  width: 7px;
  height: 7px;
  border: none;
  background: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.18s ease;
}
.site-nav__links .dropdown.show .dropdown-toggle::after {
  transform: rotate(225deg);
  margin-top: 2px;
}
.site-nav__links .dropdown-menu {
  min-width: 220px;
  margin-top: 14px;
  padding: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.site-nav__links .dropdown-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav__links .dropdown-item:hover,
.site-nav__links .dropdown-item:focus {
  background: var(--brand-tint);
  color: var(--brand);
}

.site-nav__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  padding-left: 24px;
  border-left: 1px solid var(--border-soft);
}

.site-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.site-phone:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-phone-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.site-phone-short {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.site-phone-short:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.site-lang a,
.site-lang span {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  color: var(--ink-faint);
}
.site-lang a:hover {
  color: var(--ink);
  text-decoration: none;
}
.site-lang span.is-current {
  color: #fff;
  background: var(--brand);
}
.site-lang .divider {
  display: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--ink-soft);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}
.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.theme-toggle:focus {
  outline: none;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.theme-toggle__icon {
  display: none;
  font-size: 0.92rem;
}
.theme-toggle__icon--light {
  display: block;
}
:root[data-theme="dark"] .theme-toggle__icon--light {
  display: none;
}
:root[data-theme="dark"] .theme-toggle__icon--dark {
  display: block;
}

.site-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.site-cta .btn {
  padding: 11px 24px;
  font-size: 0.88rem;
}
.site-cta .btn-primary {
  box-shadow: 0 10px 20px -8px rgba(0, 26, 159, 0.45);
}
.site-cta .btn-primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.site-burger:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.site-burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.site-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    #4f6bff 50%,
    var(--brand) 100%
  );
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 28px;
}

.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}
.site-footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  margin-bottom: 24px;
}

.site-footer__socials {
  display: flex;
  gap: 10px;
}
.site-footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.18s ease;
}
.site-footer__socials a:hover {
  border-color: #4f6bff;
  color: #fff;
  background: rgba(79, 107, 255, 0.16);
  transform: translateY(-2px);
}
.site-footer__socials svg {
  width: 16px;
  height: 16px;
}

.site-footer__col p.heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__col a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.site-footer__col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.site-footer__contacts p.heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer__contacts .row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.site-footer__contacts .row:hover {
  color: #fff;
  transform: translateX(3px);
}
.site-footer__contacts .row i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(79, 107, 255, 0.16);
  color: #7c8fff;
  font-size: 0.78rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 720px;
}

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

.hero {
  position: relative;
  background: url("../img/banner.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 6px 6px,
    rgba(255, 255, 255, 0.14) 2px,
    transparent 2.5px
  );
  background-size: 30px 30px;
  opacity: 0.5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  transition: background-color 0.25s ease;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.lang-kk .hero h1 {
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.5rem);
}
.hero__lead {
  color: #fff;
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}
.hero__art-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.hero__art-ring.r1 {
  width: 320px;
  height: 320px;
}
.hero__art-ring.r2 {
  width: 230px;
  height: 230px;
}
.hero__art-core {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--surface-ink);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pop);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero__badge i {
  color: var(--brand);
}
.hero__badge.b1 {
  top: 6%;
  left: -4%;
}
.hero__badge.b2 {
  bottom: 8%;
  right: -6%;
}

/* ---------- step / feature cards ---------- */

.step-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step-card__num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card__icon {
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.step-card__icon lottie-player {
  width: 140px;
  height: 140px;
}
:root[data-theme="dark"] .step-card__icon {
  background: rgba(140, 165, 255, 0.58);
}
.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.feature-card__icon {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature-card__icon lottie-player {
  width: 120px;
  height: 120px;
  transform: scale(1.35);
}
.feature-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}

/* ---------- legislation cards ---------- */

.law-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.law-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.law-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(0, 26, 159, 0.22);
  color: var(--ink);
  text-decoration: none;
}
.law-card .law-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 1rem;
}
.law-card .law-arrow i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  transform: rotate(-45deg);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}
.law-card:hover .law-arrow i {
  background: var(--brand);
  color: #fff;
  transform: translateX(6px) scale(1.08) rotate(0deg);
}

/* ---------- pricing ---------- */

.price-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--brand-tint-soft);
  z-index: 0;
}
.price-card > * {
  position: relative;
  z-index: 1;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -22px rgba(0, 26, 159, 0.25);
}
.price-card__icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.price-card__icon lottie-player {
  width: 140px;
  height: 140px;
}
.price-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.price-card__amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ink);
}
.price-card__amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 4px;
}
.price-card .btn {
  margin-top: 4px;
}
.price-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  margin-top: 22px;
}

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

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qa-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qa-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.qa-card__head::-webkit-details-marker {
  display: none;
}
.qa-card__head .chev {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}
.qa-card__head[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.qa-card__body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}
.qa-card__body a {
  font-weight: 600;
}
.qa-card__body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.86rem;
}
.qa-card__body table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.qa-card__body table tr td:first-child {
  color: var(--ink-faint);
  font-weight: 600;
  width: 35%;
  background: var(--bg-soft);
}

/* ---------- contact card ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.contact-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(0, 26, 159, 0.22);
}
.contact-grid .contact-card {
  max-width: none;
  margin: 0;
  height: 100%;
}
.contact-card__title {
  color: var(--brand);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.contact-card__rule {
  width: 60px;
  height: 3px;
  background: var(--brand-tint);
  border-radius: 2px;
  margin: 0 auto 22px;
}
.contact-card__body {
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contact-card__body p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-card__body i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.85rem;
}
.contact-card__body a:hover {
  color: var(--brand);
}

.contact-card--requisites .req-list {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.contact-card--requisites .req-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm, 8px);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
  transition: background-color 0.18s ease;
}
.contact-card--requisites .req-row:hover {
  background: var(--brand-tint-soft);
}
.contact-card--requisites .req-row:last-child {
  border-bottom: none;
}
.contact-card--requisites .req-row span:first-child {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.contact-card--requisites .req-row span:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- page hero (sub pages) ---------- */

.page-hero {
  background: var(--brand-tint-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 56px 0 64px;
  text-align: center;
}
.page-hero h1 {
  margin: 0;
}
.page-hero .eyebrow {
  justify-content: center;
  display: inline-flex;
}
.page-hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- form / modal ---------- */

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--ink);
}
.modal .close {
  color: var(--ink);
  text-shadow: none;
  opacity: 0.6;
}
.modal .close:hover {
  color: var(--ink);
  opacity: 1;
}
.modal .close:focus {
  outline: none;
}
.modal .close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.modal-header {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 26px;
}
.modal-header h3,
.modal-header h4 {
  font-size: 1.05rem;
  margin: 0;
}
.modal-body {
  padding: 26px;
}
.modal-footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 26px;
}
.form-control {
  background: var(--card-bg);
  color: var(--ink);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 14px;
  height: auto;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
#connectModalForm .btn-primary,
#connectModalForm .btn {
  border-radius: var(--radius-full);
}

/* ---------- misc ---------- */

.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .site-nav.collapse.show {
    display: flex !important;
  }
  .site-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 32px -20px rgba(9, 9, 11, 0.15);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 20px;
  }
  .site-nav__links a {
    display: block;
    padding: 10px 0;
    font-size: 1.02rem;
  }
  .site-nav__links a:not(.dropdown-toggle)::after {
    display: none;
  }
  .site-nav__links .dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .site-nav__links .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: auto;
    min-width: 0;
    margin: 0 0 6px;
    padding: 4px 0 4px 14px;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-left: 0;
    border-left: none;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
  }
  .site-phone {
    justify-content: center;
    padding: 10px 0;
  }
  .site-phone-group {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
  }
  .site-phone-group .site-phone {
    padding: 0;
  }
  .site-lang {
    justify-content: center;
  }
  .site-lang a,
  .site-lang span {
    flex: 1;
    justify-content: center;
  }
  .theme-toggle {
    align-self: center;
  }
  .site-cta {
    flex-direction: column;
  }
  .site-cta .btn {
    width: 100%;
  }
  .site-burger {
    display: inline-flex;
    margin-left: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero::after {
    background: rgba(0, 0, 0, 0.4);
  }
  .hero__art {
    height: 220px;
    order: -1;
  }
  .hero__badge {
    display: none;
  }

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

  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .site-footer__brand,
  .site-footer__contacts {
    grid-column: 1 / -1;
  }
  .site-footer__brand p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 36px 0;
  }
  .step-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .site-header__inner {
    height: 72px;
  }
  .site-nav {
    top: 72px;
  }
  .hero__inner {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .hero__eyebrow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }
  .hero h1 {
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
  }
  .hero__lead {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-top: 56px;
    padding-bottom: 32px;
  }
  .site-footer__bottom {
    padding-top: 20px;
    padding-bottom: 32px;
  }
}
