/* evocar.store — белый текст на космическом тёмном фоне; тёмный — внутри карточек */
:root {
  --bg: #050810;
  --fg: #ffffff;
  --fg-card: #1f2328;
  --muted: #b6c0d4;
  --muted-card: #6e7781;
  --accent: #0969da;
  --accent-2: #0550ae;
  --accent-light: #4d9eff;
  --green: #43A047;
  --red: #cf222e;
  --orange: #bf8700;
  --border: #d1d9e0;
  --border-soft: rgba(120,160,240,0.18);
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.main { flex: 1; }

.bg-gradient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%,  rgba(30,136,255,0.40), transparent 60%),
    radial-gradient(700px 500px at 90% 20%,   rgba(0,200,255,0.20), transparent 60%),
    radial-gradient(900px 700px at 10% 100%,  rgba(80,60,200,0.20), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,160,240,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,240,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }

/* Тёмный текст внутри светлых карточек */
.product-card, .product-card *,
.form-card, .form-card *,
.checkout-form, .checkout-form *,
.cart-tbl, .cart-tbl *,
.empty, .empty *,
.info, .info *,
.flash, .flash *,
.legal, .legal * {
  color: var(--fg-card);
}
.product-card .muted, .form-card .muted, .checkout-form .muted,
.cart-tbl .muted, .empty .muted, .info .muted, .legal .muted,
.product-desc {
  color: var(--muted-card);
}
.product-card a, .form-card a, .checkout-form a,
.cart-tbl a, .empty a, .info a, .legal a {
  color: var(--accent);
}
.product-card .btn-primary, .form-card .btn-primary,
.checkout-form .btn-primary, .empty .btn-primary,
.info .btn-primary, .cart-tbl .btn-primary, .legal .btn-primary, .flash .btn-primary,
.product-card .btn-primary *, .form-card .btn-primary *,
.checkout-form .btn-primary *, .empty .btn-primary *,
.info .btn-primary *, .cart-tbl .btn-primary *,
.legal .btn-primary *, .flash .btn-primary * {
  color: #fff !important;
}
.product-card .btn-link, .cart-tbl .btn-link { color: var(--red); }
.product-card .product-price, .product-card .product-price * { color: var(--accent); }

.small { font-size: 13px; }
.big   { font-size: 20px; }
.r     { text-align: right; }
.center { text-align: center; }

/* ---- header (стеклянно-тёмный) ---- */
.hdr {
  background: rgba(5, 8, 16, 0.65);
  border-bottom: 1px solid rgba(120,160,240,0.15);
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hdr-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-weight: 800; font-size: 22px;
  text-decoration: none; color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent-light); }
.logo small { color: var(--muted); font-weight: 500; font-size: 13px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a {
  color: #e7ecf3; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(120,160,240,0.10); color: #fff; text-decoration: none; }
.cart-link { position: relative; }
.badge {
  background: var(--red); color: #fff; border-radius: 10px;
  padding: 1px 7px; font-size: 11px; margin-left: 4px;
  vertical-align: middle;
}

/* ---- flash ---- */
.flash-wrap { max-width: 1100px; margin: 14px auto 0; padding: 0 22px; }
.flash {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 8px;
  border-left: 4px solid;
  background: #fff;
}
.flash-success { background: #ddf4ff; border-color: #1f883d; }
.flash-danger  { background: #ffebe9; border-color: #cf222e; }
.flash-warning { background: #fff8c5; border-color: #bf8700; }
.flash-info    { background: #ddf4ff; border-color: #0969da; }

/* ---- main ---- */
.main {
  max-width: 1100px; margin: 24px auto 60px; padding: 0 22px;
}
h1 { font-size: 28px; margin: 0 0 14px; letter-spacing: -0.5px; }
h2 { font-size: 20px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }

.gradient-text {
  background: linear-gradient(135deg, #4d9eff 0%, #00d4ff 60%, #1e88ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- hero ---- */
.hero {
  background: linear-gradient(135deg, #0969da 0%, #0550ae 60%, #1a1b4b 100%);
  color: #fff;
  padding: 38px 28px;
  border-radius: 14px;
  margin-bottom: 26px;
}
.hero h1 { color: #fff; font-size: 32px; }
.hero-sub { font-size: 17px; max-width: 720px; opacity: 0.92; }

/* hero-dark — прозрачная hero на космическом фоне */
.hero.hero-dark {
  background: transparent;
  text-align: center;
  padding: 36px 20px 28px;
  margin: 12px auto 30px;
}
.hero.hero-dark h1 { font-size: 40px; letter-spacing: -1px; margin: 4px 0 12px; }
.hero.hero-dark .hero-sub { margin: 0 auto; color: #c8d3eb; }
.hero-presents {
  text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px;
  color: var(--muted); margin-bottom: 10px;
}
.hero-logo { margin: 6px auto 18px; max-width: 460px; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(15, 25, 50, 0.55);
  border: 1px solid rgba(120,160,240,0.22);
  color: #c8d3eb; font-size: 13px; font-weight: 500;
  margin-bottom: 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1ec48a;
  box-shadow: 0 0 0 0 rgba(30,196,138,0.7);
  animation: ec-pulse 2s infinite;
}
@keyframes ec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30,196,138,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(30,196,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,196,138,0); }
}

/* ---- catalog ---- */
.catalog {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 36px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
}
.product-card h2 { margin-top: 0; }
.product-desc { flex: 1; }
.product-price {
  font-size: 28px; font-weight: 700;
  color: var(--accent); margin: 14px 0;
}
.product-buy { margin: 0; }

/* "Как это работает" */
.info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 30px;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
}
.info h3 { margin-top: 0; }

/* ---- buttons ---- */
.btn, .btn-primary, .btn-sm, button {
  font-family: inherit; font-size: 14px;
  border-radius: 8px; cursor: pointer;
  padding: 9px 18px;
  border: 1px solid rgba(120,160,240,0.25);
  background: rgba(15, 25, 50, 0.55);
  color: #fff; font-weight: 500;
  transition: all 0.15s ease;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn:hover {
  background: rgba(20, 35, 70, 0.75);
  border-color: rgba(120,160,240,0.4);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 12px 28px -10px rgba(9,105,218,0.55);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary.big { font-size: 16px; padding: 12px 26px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-link {
  background: none; border: none; color: var(--red); cursor: pointer;
  text-decoration: underline; font-size: 13px; padding: 0;
}
.btn-link:hover { background: none; }
/* Кнопки внутри светлых карточек — светлая версия */
.product-card .btn:not(.btn-primary):not(.btn-link),
.form-card .btn:not(.btn-primary):not(.btn-link),
.checkout-form .btn:not(.btn-primary):not(.btn-link),
.cart-tbl .btn:not(.btn-primary):not(.btn-link),
.empty .btn:not(.btn-primary):not(.btn-link),
.info .btn:not(.btn-primary):not(.btn-link),
.legal .btn:not(.btn-primary):not(.btn-link) {
  background: #fff; color: var(--fg-card);
  border-color: var(--border); backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* ---- cart table ---- */
.cart-tbl {
  width: 100%; background: #fff; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-bottom: 18px;
}
.cart-tbl th, .cart-tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
}
.cart-tbl th {
  background: #f6f8fa; font-weight: 600; font-size: 13px;
  color: var(--muted-card); text-transform: uppercase; letter-spacing: 0.5px;
}
.cart-tbl tfoot td { background: #f6f8fa; }
.cart-tbl code { font-size: 12px; background: #f6f8fa; padding: 2px 5px; border-radius: 4px; }

.qty-form { display: inline-flex; gap: 6px; margin: 0; }
.qty-form input[type="number"] {
  width: 60px; padding: 6px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px;
}

.cart-actions {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
}

.empty {
  background: #fff; border: 1px dashed var(--border); border-radius: 10px;
  padding: 40px; text-align: center;
}

/* ---- form-card ---- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; max-width: 460px; margin: 30px auto;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
}
.form-card label {
  display: block; margin-top: 14px; font-weight: 600; font-size: 14px;
}
.form-card input {
  width: 100%; padding: 10px 12px; margin-top: 5px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.form-card input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}
.form-card button { margin-top: 20px; width: 100%; }

.checkout-form {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; margin-top: 20px;
}
.checkout-form label { font-weight: 600; }
.checkout-form input {
  width: 100%; max-width: 340px; padding: 10px 12px; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
}
.checkout-form button { margin-top: 16px; }

/* ---- account ---- */
.lk-section { margin-top: 30px; }
.free-line { margin: 12px 0 16px; }
.chip {
  display: inline-block; background: #ddf4ff; color: var(--accent-2);
  padding: 6px 14px; border-radius: 20px; margin-right: 8px;
  font-size: 14px; font-weight: 500;
}
.status-paid    { color: #1a7f37; font-weight: 600; }
.status-pending { color: var(--orange); font-weight: 600; }

/* ---- legal pages ---- */
.legal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 44px;
  max-width: 820px;
  margin: 24px auto;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
}
.legal h1 { margin: 0 0 6px; font-size: 28px; }
.legal h2 {
  margin: 28px 0 10px;
  font-size: 19px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.legal h2:first-of-type { border-top: none; padding-top: 8px; }
.legal p { margin: 10px 0; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 24px; line-height: 1.65; }
.legal li { margin: 5px 0; }
.legal-warn {
  background: #fff8e1;
  border-left: 4px solid var(--orange);
  padding: 12px 16px;
  border-radius: 4px;
  margin: 14px 0;
}
.legal-meta {
  background: #f6f8fa;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.75;
}

/* ---- footer ---- */
.ftr {
  border-top: 1px solid rgba(120,160,240,0.15);
  background: rgba(5, 8, 16, 0.5);
  padding: 18px 0;
  margin-top: 60px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ftr-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 22px;
  display: flex; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.ftr-inner a { color: var(--accent-light); }
.ftr-inner a:hover { color: #fff; }
.ftr-inner .muted { color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 720px) {
  /* ---- header: компактнее на мобайле ---- */
  .hdr-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 6px;
    padding: 10px 14px;
    align-items: center;
  }
  .logo { font-size: 18px; }
  .logo small { font-size: 11px; }
  .nav {
    flex: 1 1 100%;
    gap: 2px;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    font-size: 13px;
    padding: 6px 9px;
    white-space: nowrap;
  }
  .nav a.btn-sm, .nav .btn { padding: 6px 12px; font-size: 12px; }

  /* ---- main ---- */
  .main { padding: 14px 14px 40px; margin: 14px auto 30px; }
  h1 { font-size: 24px; }

  /* ---- hero ---- */
  .hero, .hero.hero-dark { padding: 20px 12px 18px; margin: 6px auto 18px; }
  .hero.hero-dark h1 { font-size: 26px; }
  .hero.hero-dark .hero-sub { font-size: 14px; line-height: 1.4; }
  .hero-logo { max-width: 280px; margin: 4px auto 14px; }
  .hero-presents { font-size: 11px; letter-spacing: 1.2px; }
  .hero-pill { font-size: 12px; padding: 6px 14px; margin-bottom: 14px; }

  /* ---- partners marquee — на мобайле в один ряд, без лейбла ---- */
  .partners-marquee { flex-direction: column; gap: 4px; padding: 8px 10px; max-width: 100%; }
  .pm-label { font-size: 10px; letter-spacing: 0.8px; }
  .pm-item { font-size: 13px; }

  /* ---- brand cards — две колонки на мобиле ---- */
  .brands {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .brand-card { padding: 14px 12px; }
  .brand-mark, .brand-mark--big { width: 60px; height: 60px; }
  .brand-mark--big { width: 110px; height: 110px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 12px; }
  .brand-cta, .brand-soon-badge { font-size: 12px; }

  /* ---- service cards (на странице бренда) ---- */
  .catalog-4 { grid-template-columns: 1fr; gap: 12px; }
  .catalog-4 .product-card { min-height: 0; padding: 18px; }
  .catalog-4 .product-card h2 { font-size: 17px; }
  .catalog-4 .product-desc { font-size: 13.5px; }
  .card-ico { font-size: 30px; margin-bottom: 4px; }

  /* ---- tables ---- */
  .cart-tbl th, .cart-tbl td { padding: 8px 6px; font-size: 12.5px; }
  .product-price { font-size: 22px; }

  /* ---- legal pages ---- */
  .legal { padding: 20px 16px; margin: 10px 8px; }
  .legal h1 { font-size: 20px; }
  .legal h2 { font-size: 17px; }

  /* ---- footer ---- */
  .ftr { padding: 14px 0; margin-top: 30px; }
  .ftr-inner {
    flex-direction: column;
    gap: 6px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .brands { grid-template-columns: 1fr; }
  .nav a { padding: 6px 7px; font-size: 12px; }
}

/* ---- brand picker (главная) ---- */
.brands {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 14px 0 60px;
}
.brand-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(15, 25, 50, 0.55);
  border: 1px solid rgba(120, 160, 240, 0.22);
  border-radius: 14px;
  padding: 26px 24px;
  color: #e7ecf3 !important;
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  min-height: 130px;
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,136,255,0.55);
  text-decoration: none;
}
.brand-card--active:hover {
  box-shadow: 0 24px 60px -20px rgba(30,136,255,0.45);
}
.brand-name {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.4px; color: #fff;
  margin-bottom: 4px;
}
.brand-sub { font-size: 13px; color: var(--muted); }
.brand-cta {
  margin-top: auto; padding-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--accent-light);
}

/* "Скоро" — приглушённая карточка с бейджем */
.brand-card--soon { opacity: 0.78; }
.brand-card--soon .brand-name { color: #d8def0; }
.brand-card--soon:hover { opacity: 1; border-color: rgba(255,179,71,0.45); }
.brand-soon-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255, 179, 71, 0.18);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---- brand monogram ---- */
.brand-mark {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.2);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  /* лёгкий glossy highlight сверху */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.brand-mark--big {
  width: 88px; height: 88px;
  border-radius: 22px;
  font-size: 44px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.55),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ---- анимации ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fade-up .55s cubic-bezier(.18,.7,.32,1) forwards;
  animation-delay: calc(60ms * var(--i, 1));
}

/* Hero-logo: плавающее «дыхание» */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero-logo img { animation: hero-float 6s ease-in-out infinite; }

/* Brand-card: усиленный glow при hover, более плавный transform */
.brand-card { transition: transform .28s cubic-bezier(.2,.8,.2,1),
                          border-color .28s,
                          box-shadow .28s; }
.brand-card--active:hover .brand-mark,
.brand-card--soon:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
  transition: transform .35s cubic-bezier(.2,1.4,.4,1);
}
.brand-mark { transition: transform .35s cubic-bezier(.2,1.4,.4,1); }

/* Product-card: лёгкий lift и glow */
.product-card {
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              border-color .25s,
              box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,136,255,0.55);
  box-shadow: 0 26px 60px -16px rgba(30,136,255,0.35),
              0 24px 60px -30px rgba(0,0,0,0.5);
}

/* Catalog/Info на странице марки: появляются с лёгкой задержкой */
.catalog .product-card {
  opacity: 0;
  animation: fade-up .55s cubic-bezier(.18,.7,.32,1) forwards;
  animation-delay: 0.18s;
}
.catalog .product-card:nth-of-type(2) { animation-delay: 0.28s; }
.catalog .product-card:nth-of-type(3) { animation-delay: 0.38s; }

.info {
  opacity: 0;
  animation: fade-up .6s cubic-bezier(.18,.7,.32,1) forwards;
  animation-delay: 0.45s;
}

/* btn-primary: лёгкое подсвечивание на hover */
.btn-primary {
  transition: transform .18s ease, filter .18s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Pulse сейчас уже анимирован — оставляем */

/* ---- анимация в плашке бренда ---- */
.brand-mark--anim {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Лёгкий «вдох» плашки — медленный scale-pulse */
.brand-mark--anim {
  animation: bm-breathe 4.5s ease-in-out infinite;
}
@keyframes bm-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 8px 24px -10px rgba(0,0,0,0.35); }
  50%      { transform: scale(1.05); box-shadow: 0 14px 36px -10px rgba(0,0,0,0.45); }
}

/* Расходящееся «эхо»-кольцо изнутри */
.bm-ring {
  position: absolute; inset: 50% 50%;
  width: 0; height: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: bm-ring 2.8s ease-out infinite;
}
@keyframes bm-ring {
  0%   { width: 0; height: 0; opacity: 0.6; border-width: 3px; }
  60%  { opacity: 0.18; }
  100% { width: 140%; height: 140%; opacity: 0; border-width: 1px; }
}

/* Диагональный shimmer-перелив по поверхности */
.bm-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.45) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
  animation: bm-shimmer 3.4s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes bm-shimmer {
  0%   { transform: translateX(-110%); }
  55%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

/* Большая плашка на странице бренда — кольцо чуть толще, скорее интенсивнее */
.brand-mark--big.brand-mark--anim { animation-duration: 5.5s; }
.brand-mark--big .bm-ring  { border-width: 3px; animation-duration: 3.4s; }
.brand-mark--big .bm-shimmer { animation-duration: 4s; }

/* При hover на карточку — ускоряем shimmer + второе кольцо */
.brand-card:hover .bm-shimmer { animation-duration: 1.6s; }
.brand-card:hover .bm-ring    { animation-duration: 1.8s; }

/* ---- плашки внутри бренда (Диагностика / Русификация / Магазин / Аккаунт) ---- */
.catalog-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.catalog-3 .product-card { min-height: 280px; }

.catalog-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.catalog-4 .product-card {
  min-height: 260px;
  padding: 20px;
}
.catalog-4 .product-card h2 { font-size: 18px; }
.catalog-4 .product-desc { font-size: 14px; }
.card-ico {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 14px rgba(30,136,255,0.25));
}

/* Кнопка в режиме "В разработке" — приглушённая */
.catalog-3 .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(120,160,240,0.10) !important;
  color: var(--muted-card) !important;
}
.catalog-3 .btn[disabled]:hover {
  background: rgba(120,160,240,0.10) !important;
  border-color: rgba(120,160,240,0.18) !important;
}

/* ---- partners marquee (бегущая строка партнёров) ---- */
.partners-marquee {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 4px auto 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 25, 50, 0.55);
  border: 1px solid rgba(120,160,240,0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pm-label {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
.pm-track {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.pm-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: pm-scroll 24s linear infinite;
}
.partners-marquee:hover .pm-row { animation-play-state: paused; }
.pm-item {
  color: #e7ecf3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.pm-dot {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
}
@keyframes pm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .partners-marquee { flex-direction: column; gap: 6px; padding: 10px 14px; }
  .pm-track { width: 100%; }
}

/* ---- анимации на плашках бренда ---- */
.service-card {
  position: relative;
  opacity: 0;
  animation: card-rise .55s cubic-bezier(.2,.8,.2,1) forwards;
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease;
}
.service-card:nth-of-type(1) { animation-delay: .04s; }
.service-card:nth-of-type(2) { animation-delay: .12s; }
.service-card:nth-of-type(3) { animation-delay: .20s; }
.service-card:nth-of-type(4) { animation-delay: .28s; }
.service-card:nth-of-type(5) { animation-delay: .36s; }
.service-card:nth-of-type(6) { animation-delay: .44s; }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -20px rgba(30,136,255,0.45),
              0 16px 30px -16px rgba(0,0,0,0.6);
  border-color: rg
/* ---- финальные защитные правила от горизонтального переполнения ---- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
.main, .hero, .hero.hero-dark, .catalog, .brands, .info, .legal {
  max-width: 100%;
  width: 100%;
}
.hero-logo, .hero-logo img,
.brand-mark, .brand-mark img,
.partners-marquee, .pm-track,
img, svg, video {
  max-width: 100%;
}
/* На случай если на iOS длинные слова в заголовках выпирают */
h1, h2, h3, p {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 600px) {
  .hero.hero-dark h1 { font-size: 22px; line-height: 1.2; padding: 0 4px; }
  .hero-logo { max-width: 220px !important; }
  .hero-presents { font-size: 10px; padding: 0 8px; }
  .hero-sub { font-size: 13px; padding: 0 8px; }
  .partners-marquee { max-width: 100% !important; box-sizing: border-box; }
  .pm-track { max-width: 100%; }
  .brand-mark--big { width: 90px; height: 90px; }
}

/* ---- hero download CTA ---- */
.hero-cta { margin: 18px 0 6px; }
.hero-cta .btn { font-size: 15px; padding: 14px 28px; }
@media (max-width: 600px) {
  .hero-cta .btn { font-size: 13px; padding: 12px 20px; }
}
