/* Shard VPN — стили страниц сайта (главная, возможности, тарифы, сеть, FAQ) */
  /* ---------- Герой ---------- */
  .hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 96px;
    overflow: hidden;
  }
  .hero-media { position: absolute; inset: 0; z-index: -2; background: #050814; translate: calc(var(--hx, 0) * -18px) calc(var(--hy, 0) * -12px); scale: 1.06; }
  /* Низ видео растворяется в фоне страницы — без резкой границы с «сияниями» ниже */
  .hero-media { -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, transparent 100%); }
  .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #2a5ea8; mix-blend-mode: color; }
  [data-theme="light"] .hero-media { background: #edf1f6; }
  /* Светлая тема: не «голая» инверсия (самое яркое место дыма становилось чёрным ядром), а мягкий голубой дым:
     в серый → сжать контраст и осветлить (тёмное не опускается ниже ~40%) → тон через ::after */
  [data-theme="light"] .hero-media video, [data-theme="light"] .hero-media .hero-wave { filter: invert(1) grayscale(1) contrast(0.6) brightness(1.32); } /* без тёмно-синих провалов */
  .hero-media .hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; }
  .hero-media .hero-wave.is-on { opacity: 1; }
  .hero-media .hero-wave.fade-in { animation: hero-wave-in 1.2s ease both; }
  @keyframes hero-wave-in { from { opacity: 0; } to { opacity: 1; } }
  .hero-media .hero-loop { z-index: 1; }
  [data-theme="light"] .hero-media::after { background: #3a7fd2; }
  .hero-fade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 35%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
    display: none; /* заменено маской на .hero-media */
  }
  .hero-copy { position: relative; max-width: 900px; translate: calc(var(--hx, 0) * 10px) calc(var(--hy, 0) * 6px); }
  .hero-copy::before {
    content: "";
    position: absolute;
    inset: -14% -20% -16% -40%;
    z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 72%, transparent), transparent);
    pointer-events: none;
  }
  [data-theme="light"] .hero-copy::before { inset: -18% -24% -20% -40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 92%, transparent) 40%, transparent); }
  .hero .pill {
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    color: var(--text);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #9ccbe8; animation: live 2.2s infinite; }
  @keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(156, 203, 232, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(156, 203, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(156, 203, 232, 0); }
  }
  /* Читаемость поверх светлой волны видео: мягкая тень под текстом, само видео не затемняем */
  .hero { --hero-shadow: rgba(5, 8, 20, 0.7); }
  [data-theme="light"] .hero { --hero-shadow: rgba(232, 236, 240, 0.9); }
  .hero .h1, .hero .lead, .hero-stats { text-shadow: 0 2px 18px var(--hero-shadow), 0 1px 3px var(--hero-shadow); }
  .hero .grad-text { text-shadow: none; filter: drop-shadow(0 2px 12px var(--hero-shadow)); }
  /* На светлой теме ореолы под буквами выглядят грязно — читаемость даёт светлая подложка .hero-copy::before */
  [data-theme="light"] .hero .h1, [data-theme="light"] .hero .lead, [data-theme="light"] .hero-stats,
  [data-theme="light"] .final-title, [data-theme="light"] .final .lead { text-shadow: none; }
  [data-theme="light"] .hero .grad-text, [data-theme="light"] .final .grad-text { filter: none; }
  .hero .h1 { margin-top: 24px; }
  .hero .lead { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--text) 80%, transparent); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; margin-top: 56px; }
  .hero-stats li { display: grid; align-content: start; gap: 6px; padding-left: 16px; border-left: 2px solid #3a74cf; }
  .hero-stats b { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; white-space: nowrap; }
  .hero-stats span { max-width: 210px; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 68%, transparent); }

  /* ---------- Сеть ---------- */
  .network-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
  .network-copy .h2 { margin-top: 16px; }
  .network-copy .lead { margin-top: 18px; }
  .net-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .net-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .net-code {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--link);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
  }
  /* Флаг вместо буквенного кода: без плитки-фона, сам флаг со скруглением и тонкой рамкой */
  .net-flag { width: auto; height: auto; background: none; border-radius: 0; }
  .net-flag svg { display: block; width: 36px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(10, 20, 40, 0.10), 0 3px 8px rgba(10, 20, 40, 0.16); }
  [data-theme="dark"] .net-flag svg { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 3px 10px rgba(0, 0, 0, 0.4); }
  .net-list b { display: block; max-width: 100%; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
  .globe-wrap { position: relative; }
  .globe { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
  .globe.is-drag { cursor: grabbing; }
  .globe-hint { margin-top: -8px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--faint); }

  /* ---------- Возможности ---------- */
  .feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .feat {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .feat:hover { border-color: var(--line-strong); }
  .feat-ic {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--panel-grad);
    color: #fff;
    box-shadow: 0 10px 24px rgba(42, 94, 168, 0.32);
  }
  .feat-ic svg { width: 24px; height: 24px; }
  .feat .h3 { margin-top: 22px; }
  .feat p { margin-top: 10px; font-size: 15px; color: var(--muted); }

  /* ---------- Шаги ---------- */
  .steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 17%;
    right: 17%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 15px);
  }
  .step { position: relative; text-align: center; }
  .step-n {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--panel-grad);
    color: #fff;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 0 0 8px var(--bg), 0 12px 30px rgba(42, 94, 168, 0.4);
  }
  .step p { max-width: 300px; margin: 10px auto 0; font-size: 15px; color: var(--muted); }
  .platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 52px; }
  .pf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14.5px;
    font-weight: 500;
  }
  .pf svg { width: 18px; height: 18px; color: var(--link); }

  /* ---------- Тарифы ---------- */
  .plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .plan--best {
    border: 1.5px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
    box-shadow: 0 24px 60px rgba(42, 94, 168, 0.25);
  }
  .plan-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--btn);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }
  .plan-name { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
  .plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
  .plan-price b { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
  .plan-price span { font-size: 20px; font-weight: 600; color: var(--muted); }
  .plan-per { margin-top: 8px; font-size: 14px; color: var(--muted); }
  .plan .pill { align-self: flex-start; margin-top: 14px; }
  .plan .pill.is-empty { visibility: hidden; }
  .plan-feats { display: grid; gap: 10px; margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); }
  .plan-feats li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
  .plan-feats svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--link); }
  .plan .btn { margin-top: auto; }
  .plans-note { margin-top: 20px; text-align: center; font-size: 14px; color: var(--faint); }
  .plans-common { display: none; }
  /* «Что входит» у каждой линейки — только на телефоне (на компьютере это видно в карточках) */
  .plans-summary { display: none; }

  /* Переключатель линеек тарифов */
  .product-switch {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 4px;
    margin-bottom: 30px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
  }
  .product-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.35s var(--ease-soft), color 0.35s ease, box-shadow 0.35s ease, scale 0.25s var(--ease);
  }
  .product-switch button:hover { color: var(--text); }
  .product-switch button:active { scale: 0.97; }
  .product-switch small { font-size: 12.5px; font-weight: 500; color: var(--faint); transition: color 0.35s ease; }
  .product-switch button[aria-selected="true"] { background: var(--btn); color: #fff; box-shadow: 0 8px 22px rgba(42, 94, 168, 0.35); }
  .product-switch button[aria-selected="true"] small { color: rgba(255, 255, 255, 0.75); }
  html:not(.js) .product-switch { display: none; }
  .plans-title { margin-bottom: 18px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
  html.js .plans-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:not(.js) .plans-panel + .plans-panel { margin-top: 48px; }
  .plans-panel.is-entering { animation: panel-in 0.55s var(--ease-soft) both; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
  .plans-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plans-grid--5 .plan { padding-left: 20px; padding-right: 20px; }
  .plans-grid--5 .plan-price b { font-size: 40px; }

  /* ---------- Партнёрам ---------- */
  .partners-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
    padding: 56px;
    border-radius: 32px;
    background: var(--panel-grad);
    color: #fff;
  }
  .partners-card .kicker { color: #d4e9f8; }
  .partners-card .h2 { margin-top: 16px; }
  .partners-copy p { max-width: 480px; margin-top: 18px; color: rgba(255, 255, 255, 0.86); }
  .partners-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .partners-dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.13); }
  .rates {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(5, 8, 20, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .rates-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px 64px;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14.5px;
    line-height: 1.35;
  }
  .rates-row b, .rates-row span:not(:first-child) { text-align: right; font-weight: 600; }
  .rates-head {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
  }
  .rates-note { padding: 12px 16px 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }

  /* ---------- FAQ ---------- */
  .faq-wrap { max-width: 840px; margin: 0 auto; }
  .faq-more { margin-top: 28px; text-align: center; color: var(--muted); }
  .faq-more a { color: var(--link); font-weight: 600; }

  /* ---------- Финал и подвал на видео ---------- */
  .outro { position: relative; isolation: isolate; overflow: hidden; --hero-shadow: rgba(5, 8, 20, 0.7); }
  [data-theme="light"] .outro { --hero-shadow: rgba(237, 241, 246, 0.9); }
  .outro-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(120% 60% at 50% 58%, #0d2048 0%, #050814 65%);
    translate: calc(var(--hx, 0) * -14px) calc(var(--hy, 0) * -8px);
    scale: 1.04;
  }
  .outro-media canvas { display: block; width: 100%; height: 100%; }
  [data-theme="light"] .outro-media { background: radial-gradient(120% 60% at 50% 58%, #ffffff 0%, #edf1f6 65%); }
  /* Сверху анимация вырастает из фона страницы, снизу уходит в фон под подвалом */
  .outro::before, .outro::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
  .outro::before { display: none; }
  .outro-media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%); mask-image: linear-gradient(180deg, transparent 0, #000 24%); }
  .outro::after { bottom: 0; height: 42%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 62%); }
  .final {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 150px 0 90px;
    text-align: center;
  }
  .final-inner { display: flex; flex-direction: column; align-items: center; }
  .final .pill {
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    color: var(--text);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .final-title { max-width: 920px; margin-top: 22px; }
  .final .lead { max-width: 30em; margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--text) 80%, transparent); }
  .final-title, .final .lead { text-shadow: 0 2px 18px var(--hero-shadow), 0 1px 3px var(--hero-shadow); }
  .final .grad-text { text-shadow: none; filter: drop-shadow(0 2px 12px var(--hero-shadow)); }
  .final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
  /* Подвал поверх волн: плавная подложка, чтобы текст читался */
  .outro .footer { background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--bg) 90%, transparent) 110px); }

  /* ---------- Адаптив ---------- */
  @media (max-width: 1100px) {
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .network-grid { grid-template-columns: minmax(0, 1fr); }
    .globe-wrap { max-width: 560px; width: 100%; margin: 0 auto; }
    .partners-card { grid-template-columns: minmax(0, 1fr); }
    .plans-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 960px) {
    .plans-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: calc(var(--header-h) + 32px) 0 72px; }
    .hero-stats { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
    .partners-card { padding: 40px 28px; }
    .final { padding: 120px 0 70px; }
  }
  @media (max-width: 640px) {
    .plans-grid, .feat-grid { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .steps::before { top: 28px; bottom: 28px; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 15px); }
    .step { background: var(--bg); padding-bottom: 6px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .partners-cta .btn, .final-cta .btn { flex: 1 1 100%; }
    .rates-row { grid-template-columns: minmax(0, 1fr) 54px 54px; padding: 12px; font-size: 13.5px; }
    /* Тарифы на телефоне — компактно, общий список преимуществ один раз под карточками */
    .plans-grid, .plans-grid--5 { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
    .product-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-bottom: 22px; }
    .product-switch button { padding: 0 10px; font-size: 14.5px; }
    .product-switch small { display: none; }
    .plan { padding: 22px 20px 20px; }
    .plan .pill.is-empty, .plan-feats { display: none; }
    .plan-price { margin-top: 12px; }
    .plan-price b { font-size: 38px; }
    .plan .btn { margin-top: 18px; }
    .plans-summary {
      display: block;
      margin-bottom: 16px;
      padding: 18px 20px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface);
    }
    .plans-summary-title { margin-bottom: 12px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
    .plans-summary ul { display: grid; gap: 10px; }
    .plans-summary li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
    .plans-summary li b { color: var(--text); font-weight: 600; }
    .plans-summary svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--link); }
    .plans-common {
      display: grid;
      gap: 10px;
      margin-top: 18px;
      padding: 18px 20px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface);
    }
    .plans-common li { display: flex; gap: 10px; font-size: 14.5px; }
    .plans-common svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--link); }
    /* «не отваливается» неразрывное — подгоняем кегль под ширину экрана */
    .hero .h1 { font-size: min(44px, calc((100vw - 40px) / 10.6)); }
    .hero .lead { margin-top: 18px; }
    .hero-cta { margin-top: 28px; }
    .hero-copy::before {
      inset: -40px -24px;
      background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 78%, transparent), transparent);
    }
  }
  @media (max-width: 420px) {
    .net-list { grid-template-columns: minmax(0, 1fr); }
    .net-list li { flex-direction: row; align-items: center; padding: 12px 14px; }
    .partners-card { padding: 32px 20px; border-radius: 26px; }
  }

  /* ---------- Плитки разделов на главной ---------- */
  .explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .xcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--card-shadow);
  }
  .xcard-top { display: flex; align-items: flex-start; min-height: 64px; }
  .xcard-num { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
  .xcard-num small { font-size: 20px; color: var(--muted); }
  .xcard-icons { display: flex; gap: 8px; }
  .xcard-icons span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--link); }
  .xcard-icons svg { width: 22px; height: 22px; }
  .xcard .h3 { margin-top: 22px; }
  .xcard p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
  .xcard-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--link); }
  .xcard-go svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
  .xcard:hover .xcard-go svg { transform: translateX(4px); }
  .xcard--accent { border-color: transparent; background: var(--panel-grad); color: #fff; }
  .xcard--accent p, .xcard--accent .xcard-num small { color: rgba(255, 255, 255, 0.82); }
  .xcard--accent .xcard-go { color: #fff; }
  .link-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--link); }
  .link-more svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
  .link-more:hover svg { transform: translateX(4px); }
  @media (max-width: 1100px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .explore-grid { grid-template-columns: minmax(0, 1fr); } .xcard { min-height: 0; } .xcard .h3 { margin-top: 18px; } }

  /* ---------- Фон первого экрана: шёлковая лента на canvas (visuals.js → ribbon) ---------- */
  .hero-media--canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero-media--canvas::after { display: none; }
  .hero-media--canvas { background: radial-gradient(120% 90% at 70% 40%, #0b1a3c 0%, #050814 62%); }
  [data-theme="light"] .hero-media--canvas { background: radial-gradient(120% 90% at 70% 40%, #ffffff 0%, #edf1f6 62%); }
  /* лента не спорит с текстом: под текстом приглушена */
  .hero-media--canvas canvas {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 38%, #000 66%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 38%, #000 66%);
  }
  @media (max-width: 760px) {
    .hero-media--canvas canvas {
      -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 55%, #000 100%);
              mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 55%, #000 100%);
    }
  }
