:root {
  --bg: #000000;
  --bg-elevated: #0d0d0d;
  --bg-card: #141414;
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --accent: #1e3a6e;
  --accent-light: #5b9aff;
  --accent-gradient: linear-gradient(135deg, #1a3d7c 0%, #4a8fd4 50%, #6bb3ff 100%);
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(74, 143, 212, 0.15);
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  color: var(--text);
  flex-shrink: 0;
}

.header__logo svg,
.header__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  gap: 36px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.header__nav a:hover {
  color: var(--text);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

.header__contacts a {
  transition: color 0.25s ease;
}

.header__contacts a:hover {
  color: var(--accent-light);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 110;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

.hero__content {
  max-width: 540px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.4;
}

.hero__flag {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  width: 28px;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 143, 212, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 143, 212, 0.4);
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 35%, transparent 100%);
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: auto;
  filter: brightness(0.55) contrast(1.05);
  transform: translateZ(0);
}

/* Features */
.features {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(91, 154, 255, 0.1);
  border: 1px solid rgba(91, 154, 255, 0.2);
  color: var(--accent-light);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.feature__text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Brands carousel */
.brands {
  padding: 48px 0;
  overflow: hidden;
  background: var(--bg);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.brands__track {
  display: flex;
  gap: 56px;
  animation: scroll 40s linear infinite;
  width: max-content;
  will-change: transform;
}

.brands__track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.45;
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Catalog */
.catalog {
  padding: 80px 0;
  background: var(--bg);
}

.catalog__box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 72px 40px;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.catalog__title {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.catalog__text {
  font-size: 32px;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: -0.02em;
}

.catalog__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.catalog__box .btn {
  margin-top: 32px;
}

/* Advantages */
.advantages {
  padding: 80px 0 40px;
  background: var(--bg);
}

.advantages__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.advantages__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.advantages__intro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  text-align: right;
  line-height: 1.7;
}

.advantage {
  position: relative;
  margin-bottom: 6px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
}

.advantage__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: translateZ(0);
}

.advantage__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.advantage__num {
  position: absolute;
  top: 28px;
  right: 36px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
  letter-spacing: -0.02em;
}

.advantage__content {
  position: relative;
  z-index: 2;
  padding: 36px 44px;
  max-width: 620px;
}

.advantage__heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.advantage__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Warranty block */
.warranty-block {
  padding: 72px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.warranty-block__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.warranty-block__text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.warranty-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.warranty-block__badge strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-light);
}

.warranty-block__badge span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--bg);
}

.contact__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__info a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.contact__info a:hover {
  color: var(--accent-light);
}

.contact__social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Footer */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer__logo {
  color: var(--text);
  display: block;
}

.footer__logo svg,
.footer__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__partner-link {
  display: block;
  line-height: 0;
}

.footer__partner {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.footer__partner-link:hover .footer__partner {
  opacity: 0.85;
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.footer__nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer__contacts a:not(.social-btn) {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer__contacts a:not(.social-btn):hover {
  color: var(--accent-light);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image-wrap::after {
    background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__header {
    flex-direction: column;
  }

  .advantages__intro {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .header__contacts {
    display: none;
  }

  .header__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: #000;
    border-bottom: 1px solid transparent;
    transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    pointer-events: none;
  }

  .header__nav.is-open {
    max-height: 280px;
    padding: 8px 24px 16px;
    border-bottom-color: var(--border);
    pointer-events: auto;
  }

  .header__nav a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header {
    background: #000;
  }

  .header__logo,
  .burger {
    position: relative;
    z-index: 110;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .footer__top,
  .footer__bottom {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    text-align: left;
  }

  .advantage__content {
    padding: 28px 24px;
  }

  .advantage__num {
    right: 24px;
    top: 20px;
  }
}
