  :root {
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d2d2d7;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --blue-dark: #2997ff;
    --star: #ff9f0a;
    --green: #30d158;
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --nav-h: 52px;
    --container: 1024px;
    --ease: cubic-bezier(.16, 1, .3, 1);
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
  }

  body {
    margin: 0;
    font-family: Google Sans, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body.nav-open {
    overflow: hidden;
  }

  h1, h2, h3, h4, p {
    margin: 0;
  }

  a {
    color: inherit;
  }

  svg {
    display: block;
  }

  .container {
    width: min(var(--container), calc(100% - 44px));
    margin-inline: auto;
  }

  .muted {
    color: var(--muted);
  }

  /* Навигация */

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transition: background .3s ease, border-color .3s ease;
  }

  .nav.scrolled {
    background: rgba(255, 255, 255, .72);
    border-bottom-color: rgba(0, 0, 0, .08);
  }

  .nav-inner {
    width: min(var(--container), calc(100% - 44px));
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .brand {
    color: #f5f5f7;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .nav.scrolled .brand {
    color: var(--text);
  }

  .nav-links {
    display: flex;
    gap: 26px;
  }

  .nav-links a {
    color: rgba(245, 245, 247, .82);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
  }

  .nav.scrolled .nav-links a {
    color: rgba(29, 29, 31, .82);
  }

  .nav-links a:hover {
    color: #fff;
  }

  .nav.scrolled .nav-links a:hover {
    color: var(--text);
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .nav-cta {
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
  }

  .nav.scrolled .nav-cta {
    color: var(--blue);
  }

  .nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    color: #f5f5f7;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .nav.scrolled .nav-toggle {
    color: var(--text);
  }

  .nav-toggle svg {
    width: 18px;
    height: 18px;
  }

  .icon-close {
    display: none;
  }

  body.nav-open .icon-menu {
    display: none;
  }

  body.nav-open .icon-close {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 24px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .3s ease, transform .4s var(--ease), visibility .3s ease;
    overflow-y: auto;
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8ed;
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .mobile-nav a:hover {
    color: var(--blue);
  }

  .mobile-cta {
    margin-top: 28px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    border: 0;
    border-radius: 980px;
    background: var(--blue);
    color: #fff !important;
    font-size: 17px;
    font-weight: 500;
  }

  /* Кнопки и ссылки */

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 0;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, color .2s ease;
  }

  .btn:active {
    transform: scale(.985);
  }

  .btn-blue {
    background: var(--blue);
    color: #fff;
  }

  .btn-blue:hover {
    background: var(--blue-hover);
  }

  .btn-block {
    width: 100%;
  }

  .link-arrow {
    color: var(--blue-dark);
    font-size: 17px;
    text-decoration: none;
  }

  .link-arrow:hover {
    text-decoration: underline;
  }

  .link-arrow::after {
    content: " ›";
  }

  .tile-link,
  .service-link {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }

  .tile-link {
    color: var(--blue);
  }

  .service-link {
    color: var(--blue-dark);
  }

  .tile-link:hover,
  .service-link:hover {
    text-decoration: underline;
  }

  .tile-link::after,
  .service-link::after {
    content: " ›";
  }

  /* Hero */

  .hero {
    position: relative;
    padding: 150px 0 110px;
    background: #000;
    color: #f5f5f7;
    text-align: center;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -220px;
    left: 50%;
    width: 760px;
    height: 760px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 113, 227, .24), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -260px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(255, 107, 0, .14), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero .container {
    position: relative;
    z-index: 1;
  }

  .eyebrow {
    color: #86868b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .hero h1 {
    max-width: 900px;
    margin: 18px auto 20px;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.05em;
  }

  .hero-sub {
    max-width: 760px;
    margin-inline: auto;
    color: #a1a1a6;
    font-size: clamp(19px, 2.2vw, 27px);
    line-height: 1.38;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 34px;
  }

  .hero-note {
    margin-top: 18px;
    color: #86868b;
    font-size: 12px;
  }

  .hero-panel {
    max-width: 900px;
    margin: 70px auto 0;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    text-align: left;
  }

  .hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .hero-panel-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .hero-badge {
    padding: 6px 12px;
    border-radius: 980px;
    background: rgba(48, 209, 88, .16);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .hero-rows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .hero-row small {
    display: block;
    margin-bottom: 8px;
    color: #86868b;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .hero-row strong {
    display: block;
    color: #f5f5f7;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
  }

  /* Секции */

  .section {
    padding: 110px 0;
  }

  .section-alt {
    background: var(--bg-alt);
  }

  .section-dark {
    background: #000;
    color: #f5f5f7;
  }

  .section-head {
    max-width: 760px;
    margin-bottom: 54px;
  }

  .section-head.center {
    margin-inline: auto;
    text-align: center;
  }

  .section-head h2 {
    margin-bottom: 14px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.045em;
  }

  .section-head p {
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.45;
  }

  .section-dark .section-head p {
    color: #a1a1a6;
  }

  /* Преимущества */

  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .feature {
    min-height: 250px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .feature h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .feature p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
  }

  /* Каталог */

  .tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .tile {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  }

  .tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
  }

  .tile-media {
    height: 190px;
    display: grid;
    place-items: center;
  }

  .tile-media svg {
    width: 56px;
    height: 56px;
    stroke: rgba(29, 29, 31, .38);
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tile-body {
    padding: 26px;
  }

  .tile-body h3 {
    margin-bottom: 8px;
    font-size: 22px;
    letter-spacing: -0.025em;
  }

  .tile-body p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
  }

  .tile-engine {
    background: linear-gradient(135deg, #e8f1ff, #d6e6ff);
  }

  .tile-brake {
    background: linear-gradient(135deg, #fff0e7, #ffdccd);
  }

  .tile-suspension {
    background: linear-gradient(135deg, #e9fbf0, #d3f5e2);
  }

  .tile-electric {
    background: linear-gradient(135deg, #f3efff, #e5dcff);
  }

  .tile-frame {
    background: linear-gradient(135deg, #eef0f3, #dfe3e8);
  }

  .tile-fluids {
    background: linear-gradient(135deg, #fffbe8, #fdeeb8);
  }

  /* Услуги */

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .service-card {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    background: #161617;
    transition: transform .35s var(--ease), background .35s ease;
  }

  .service-card:hover {
    transform: translateY(-4px);
    background: #1c1c1e;
  }

  .service-card h3 {
    margin-bottom: 10px;
    color: #f5f5f7;
    font-size: 24px;
    letter-spacing: -0.03em;
  }

  .service-card p {
    margin-bottom: 18px;
    color: #a1a1a6;
    font-size: 15px;
    line-height: 1.6;
  }

  /* Процесс */

  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .step {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .step-num {
    margin-bottom: 16px;
    color: #c7c7cc;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
  }

  .step h3 {
    margin-bottom: 8px;
    font-size: 21px;
    letter-spacing: -0.02em;
  }

  .step p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
  }

  /* Бренды */

  .brand-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .brand-pill {
    padding: 12px 18px;
    border-radius: 980px;
    background: #fff;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  }

  /* Отзывы */

  .reviews-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 48px;
  }

  .score {
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
  }

  .stars {
    margin-bottom: 4px;
    color: var(--star);
    font-size: 16px;
    letter-spacing: 3px;
  }

  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .review {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
  }

  .review-stars {
    margin-bottom: 18px;
    color: var(--star);
    font-size: 14px;
    letter-spacing: 2px;
  }

  .review-text {
    margin-bottom: 20px;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.015em;
  }

  .review-name {
    font-weight: 600;
  }

  .review-footer {
    color: var(--muted);
    font-size: 14px;
  }

  /* Контакты */

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .contact-card,
  .contact-form-card {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: #fff;
  }

  .contact-card h2,
  .contact-form-card h2 {
    margin-bottom: 8px;
    font-size: 28px;
    letter-spacing: -0.03em;
  }

  .contact-list {
    display: grid;
    gap: 24px;
    margin: 28px 0;
  }

  .contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--blue);
    display: grid;
    place-items: center;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .contact-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    letter-spacing: -0.01em;
  }

  .contact-item p {
    color: var(--muted);
  }

  .contact-item a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
  }

  .contact-item a:hover {
    text-decoration: underline;
  }

  .map {
    height: 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #e8e8ed, #f5f5f7);
    color: var(--muted);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
  }

  .contact-form {
    display: grid;
    gap: 16px;
  }

  .field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }

  .field input,
  .field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .field textarea {
    min-height: 140px;
    resize: vertical;
  }

  .field input:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .14);
  }

  .consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue);
  }

  .form-status {
    min-height: 22px;
    margin-top: 14px;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
  }

  /* Подвал */

  .footer {
    padding: 44px 0 28px;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .footer h4 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
  }

  .footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer a {
    color: var(--muted);
    text-decoration: none;
  }

  .footer a:hover {
    color: var(--blue);
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 20px;
  }

  .footer-note {
    margin-top: 16px;
    line-height: 1.6;
  }

  /* Анимации */

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .9s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Адаптивность */

  @media (max-width: 1024px) {
    .features-grid,
    .tiles,
    .services-grid,
    .reviews-grid,
    .steps,
    .hero-rows,
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 860px) {
    .nav-links,
    .nav-cta {
      display: none;
    }

    .nav-toggle {
      display: flex;
    }

    .contact-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .section {
      padding: 80px 0;
    }

    .hero {
      padding: 120px 0 80px;
    }

    .features-grid,
    .tiles,
    .services-grid,
    .reviews-grid,
    .steps,
    .hero-rows,
    .footer-grid {
      grid-template-columns: 1fr;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .hero-actions .btn,
    .hero-actions .link-arrow {
      width: 100%;
      text-align: center;
      justify-content: center;
    }

    .contact-card,
    .contact-form-card,
    .hero-panel {
      padding: 24px;
    }

    .score {
      font-size: 44px;
    }
  }

  /* ===== Страница политики конфиденциальности ===== */

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 113, 227, .22), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--blue-dark);
  font-size: 15px;
  text-decoration: none;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  text-decoration: underline;
}

.page-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.page-hero-sub {
  color: #a1a1a6;
  font-size: 17px;
}

.page-hero + .section {
  padding-top: 70px;
}

.policy-container {
  width: min(820px, calc(100% - 44px));
  margin-inline: auto;
}

.policy-toc {
  padding: 32px;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.policy-toc h2 {
  margin-bottom: 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.policy-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-toc a {
  color: var(--blue);
  font-size: 15px;
  text-decoration: none;
}

.policy-toc a:hover {
  text-decoration: underline;
}

.policy-content h2 {
  margin: 56px 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.policy-content strong {
  color: var(--text);
}

.policy-content a {
  color: var(--blue);
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-note {
  margin-top: 56px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 120px 0 56px;
  }

  .policy-toc {
    padding: 24px;
  }
}





/* ===== Логотипы брендов ===== */

.brand-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.brand-logo {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.brand-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

.brand-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .3s ease, opacity .3s ease;
}

.brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Фолбэк: если файл логотипа ещё не загружен */
.brand-fallback {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .brand-logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .brand-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Cookie-баннер ===== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1300;
  width: min(560px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .4s ease, transform .5s var(--ease), visibility .4s;
}

.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.cookie-banner p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner p a {
  color: var(--blue);
  text-decoration: none;
}

.cookie-banner p a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.btn-small {
  padding: 10px 18px;
  font-size: 15px;
}

.cookie-more {
  color: var(--blue);
  font-size: 15px;
  text-decoration: none;
}

.cookie-more:hover {
  text-decoration: underline;
}

/* ===== Страница 404 ===== */

.error-hero {
  position: relative;
  padding: 190px 0 130px;
  background: #000;
  color: #f5f5f7;
  text-align: center;
  overflow: hidden;
}

.error-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 113, 227, .2), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.error-hero .container {
  position: relative;
  z-index: 1;
}

.error-code {
  font-size: clamp(96px, 18vw, 200px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #f5f5f7 20%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.error-sub {
  max-width: 520px;
  margin: 0 auto;
  color: #a1a1a6;
  font-size: 17px;
  line-height: 1.5;
}

.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}

.error-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 54px;
}

.error-links a {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 980px;
  color: #a1a1a6;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.error-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

/* ===== FAQ ===== */

.faq-list {
  width: min(820px, 100%);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease);
}

.faq-item.open .faq-icon {
  background: var(--blue);
  color: #fff;
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  max-width: 720px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.faq-cta {
  margin-top: 36px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

.faq-cta .link-arrow {
  color: var(--blue);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    padding: 18px;
  }

  .faq-question {
    font-size: 17px;
  }
}



/* ===== Липкая мобильная панель контактов ===== */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .08);
  transform: translateY(105%);
  transition: transform .45s var(--ease);
}

.mobile-bar.visible {
  transform: none;
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  max-width: 560px;
  margin-inline: auto;
}

.bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.bar-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-btn:active {
  background: rgba(0, 0, 0, .06);
}

.bar-btn--primary {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.bar-btn--primary:active {
  background: var(--blue-hover);
}

.bar-btn--primary svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .mobile-bar {
    display: block;
  }

  body {
    transition: padding-bottom .35s ease;
  }

  /* Место под панель, чтобы она не перекрывала конец страницы */
  body.bar-active {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* Cookie-баннер приподнимается над панелью, когда она видима */
  body.bar-active .cookie-banner {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}


/* ===== Кнопка «Наверх» с кольцом прогресса ===== */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 940;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .3s ease, transform .4s var(--ease), visibility .3s, box-shadow .3s ease;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
}

.to-top:active {
  transform: scale(.94);
}

.to-top:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* прогресс стартует с верхней точки */
}

.ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, .08);
  stroke-width: 2.5;
}

.ring-progress {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  /* Длина окружности: 2 * π * r = 2 * 3.14159 * 20 ≈ 125.66 */
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
}

.to-top-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* На мобильных не конфликтует с липкой панелью контактов */
@media (max-width: 860px) {
  .to-top {
    right: 16px;
    bottom: 16px;
  }

  body.bar-active .to-top {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}
