/* ============================================
   RAN MOTORS — Premium Moto Shop
   Mobile First · Industrial · High-Tech
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-light: #141414;
  --black-card: #1a1a1a;
  --yellow: #FFD700;
  --yellow-dark: #FFCC00;
  --yellow-muted: rgba(255, 215, 0, 0.15);
  --gray: #888;
  --gray-dark: #333;
  --gray-placeholder: #2a2a2a;
  --white: #f5f5f5;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section__header {
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn--primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 10px 24px;
  width: 100%;
  touch-action: manipulation;
}

.btn--outline:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--gray-dark);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo__mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.header__phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
  transition: var(--transition);
}

.header__phone:hover {
  color: var(--yellow-dark);
}

/* Navigation */
.nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid var(--gray-dark);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: var(--yellow-muted);
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}

.burger--active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero__smoke {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 60%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.hero__geometry {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 215, 0, 0.04) 48%, rgba(255, 215, 0, 0.04) 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(255, 215, 0, 0.02) 48%, rgba(255, 215, 0, 0.02) 52%, transparent 52%);
  background-size: 80px 80px;
  opacity: 0.5;
}

.hero__silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120%);
  color: var(--yellow);
  opacity: 0.8;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 0 100px;
}

.hero .container {
  padding-inline: 24px;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.hero__title span {
  color: var(--yellow);
  display: block;
}

.hero__title .hero__title-city {
  color: var(--white);
  display: inline;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 420px;
  margin-bottom: 40px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   CATALOG
   ============================================ */
.catalog {
  background: var(--black-light);
  border-top: 1px solid var(--gray-dark);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.tabs__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  transition: var(--transition);
  text-align: left;
}

.tabs__btn:hover {
  border-color: var(--yellow);
  color: var(--white);
}

.tabs__btn--active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-muted);
}

.tabs__icon {
  font-size: 1.25rem;
}

.tabs__icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
}

.tabs__icon--svg img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.catalog__panel {
  display: none;
}

.catalog__panel--active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Catalog — coming soon placeholder */
.catalog__soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  background: var(--black-card);
  border: 1px dashed var(--gray-dark);
}

.catalog__soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.catalog__soon-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.catalog__soon-text {
  max-width: 420px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 28px;
}

.catalog__soon-btn {
  min-width: 200px;
}

/* Product Card */
.product-card {
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  transition: transform var(--transition), border-color var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: scale(1.02);
  border-color: var(--yellow);
}

.product-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gray-placeholder) 0%, var(--black-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-dark);
  overflow: hidden;
}

.product-card__image svg {
  width: 64px;
  height: 64px;
  color: var(--gray);
  opacity: 0.4;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(0.94);
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-card__spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 16px;
}

.product-card--soon {
  opacity: 0.75;
}

.product-card--soon:hover {
  transform: none;
  border-color: var(--gray-dark);
}

.product-card__image--soon {
  position: relative;
  background: repeating-linear-gradient(
    -45deg,
    var(--gray-placeholder),
    var(--gray-placeholder) 10px,
    var(--black-light) 10px,
    var(--black-light) 20px
  );
}

.product-card__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 6px 12px;
  background: rgba(10, 10, 10, 0.6);
}

.product-card__spec--soon {
  color: var(--yellow);
  margin-bottom: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.about__accent {
  width: 4px;
  height: 80px;
  background: var(--yellow);
}

.about__text {
  font-size: 1.125rem;
  color: var(--gray);
  margin: 20px 0 32px;
  max-width: 560px;
}

.about__text strong {
  color: var(--yellow);
  font-weight: 600;
}

.about__features {
  display: grid;
  gap: 12px;
}

.about__features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--white);
}

.about__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--yellow);
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts {
  background: var(--black-light);
  border-top: 1px solid var(--gray-dark);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contacts__info {
  display: grid;
  gap: 28px;
}

.contacts__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.contacts__value {
  font-size: 1rem;
  color: var(--white);
}

.contacts__phone {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow);
  transition: var(--transition);
}

.contacts__phone:hover {
  color: var(--yellow-dark);
}

.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--gray-dark);
  color: var(--white);
  transition: var(--transition);
}

.messenger-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.messenger-link__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.contacts__map-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__map {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--gray-dark);
  overflow: hidden;
}

.map-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid var(--yellow);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.map-badge__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--yellow);
}

.map-badge__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.map-badge__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-badge__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

.map-badge__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.map-route {
  width: 100%;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--gray-dark);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer__copy,
.footer__policy {
  font-size: 0.8125rem;
  color: var(--gray);
}

.footer__policy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--black-card);
  border: 1px solid var(--yellow);
  padding: 32px;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
}

.modal--open .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray);
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--yellow);
}

.modal__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--gray-placeholder), var(--black-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--gray-dark);
}

.modal__image svg {
  width: 80px;
  height: 80px;
  color: var(--gray);
  opacity: 0.4;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal__price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 24px;
}

.modal__specs h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.specs-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.specs-list dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.specs-list dd {
  font-size: 0.9375rem;
  color: var(--white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-dark);
}

.modal__cta {
  width: 100%;
}

/* ============================================
   MOBILE (до 767px)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .header__inner {
    gap: 8px;
  }

  .logo {
    gap: 6px;
    min-width: 0;
  }

  .logo__mark {
    width: 40px;
    height: 40px;
  }

  .logo__text {
    font-size: clamp(0.875rem, 4vw, 1.125rem);
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .hero__content {
    padding: 32px 0 72px;
  }

  .hero__title {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    letter-spacing: 0.01em;
    line-height: 0.94;
  }

  .hero__subtitle {
    margin-bottom: 28px;
  }

  .tabs {
    margin-bottom: 28px;
  }

  .tabs__btn {
    padding: 14px 16px;
    font-size: 0.75rem;
    gap: 10px;
  }

  .tabs__icon--svg {
    width: 28px;
  }

  .tabs__icon--svg svg {
    width: 28px;
    height: auto;
  }

  .tabs__icon--svg img {
    width: 28px;
    height: 28px;
  }

  .catalog__grid {
    gap: 16px;
  }

  .product-card__body {
    padding: 16px;
  }

  .product-card:hover {
    transform: none;
  }

  .about__inner {
    gap: 20px;
  }

  .about__text {
    margin: 16px 0 24px;
    font-size: 1rem;
  }

  .contacts__grid {
    gap: 24px;
  }

  .contacts__info {
    gap: 20px;
  }

  .contacts__phone {
    font-size: 1.125rem;
  }

  .contacts__messengers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .messenger-link {
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.625rem;
    gap: 6px;
    min-width: 0;
  }

  .contacts__map {
    min-height: 260px;
  }

  .map-embed {
    min-height: 260px;
  }

  .map-badge {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 8px 12px 8px 10px;
    gap: 8px;
  }

  .map-badge__logo {
    width: 28px;
    height: 28px;
  }

  .map-badge__title {
    font-size: 0.9375rem;
  }

  .map-badge__label {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }

  .footer {
    padding: 24px 0;
  }

  .footer__inner {
    gap: 16px;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
  }

  .footer__divider {
    display: none;
  }

  .modal {
    padding: 12px;
  }

  .modal__content {
    padding: 24px 20px;
  }

  .legal-modal {
    padding: 12px;
  }

  .legal-modal__content {
    padding: 24px 20px;
  }

  .legal-modal__title {
    margin-bottom: 16px;
    padding-right: 32px;
  }
}

@media (max-width: 360px) {
  .logo__text {
    font-size: 0.8125rem;
  }

  .messenger-link {
    font-size: 0.5625rem;
    padding: 9px 6px;
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
  }

  .nav__list {
    flex-direction: row;
    padding: 0;
    gap: 8px;
  }

  .nav__link {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav__link:hover {
    border-left-color: transparent;
    border-bottom-color: var(--yellow);
    background: transparent;
  }

  .header__phone {
    display: block;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tabs__btn {
    justify-content: center;
  }

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

  .about__inner {
    grid-template-columns: 4px 1fr;
    gap: 40px;
  }

  .about__accent {
    height: 100%;
    min-height: 200px;
  }

  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  .tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__content {
    padding: 80px 0 120px;
  }

  .nav__link {
    padding: 8px 16px;
  }
}

/* ============================================
   LEGAL MODALS (Agreement & Privacy)
   ============================================ */
   .legal-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .legal-modal--open {
    opacity: 1;
    visibility: visible;
  }
  
  .legal-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
  }
  
  .legal-modal__content {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--black-card);
    border: 1px solid var(--yellow);
    padding: 40px 48px;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .legal-modal--open .legal-modal__content {
    transform: translateY(0) scale(1);
  }
  
  .legal-modal__close {
    position: sticky;
    top: 0;
    float: right;
    width: 36px;
    height: 36px;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--gray);
    background: var(--black-card);
    transition: var(--transition);
    z-index: 1;
    margin-bottom: 8px;
  }
  
  .legal-modal__close:hover {
    color: var(--yellow);
    transform: rotate(90deg);
  }
  
  .legal-modal__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 24px;
    padding-right: 40px;
    clear: both;
  }
  
  .legal-modal__body {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray);
  }
  
  .legal-modal__body h3 {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-top: 28px;
    margin-bottom: 12px;
  }
  
  .legal-modal__body p {
    margin-bottom: 12px;
    color: var(--white);
  }
  
  .legal-modal__body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
  }
  
  .legal-modal__body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--white);
  }
  
  .legal-modal__body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--yellow);
  }
  
  /* Scrollbar styling for legal modals */
  .legal-modal__content::-webkit-scrollbar {
    width: 4px;
  }
  
  .legal-modal__content::-webkit-scrollbar-track {
    background: var(--black);
  }
  
  .legal-modal__content::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 2px;
  }
  
  /* Footer links */
  .footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 4px;
  }
  
  .footer__link-btn {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--gray);
    background: none;
    border: none;
    padding: 4px 0;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: underline 1px transparent;
    text-underline-offset: 2px;
  }
  
  .footer__link-btn:hover {
    color: var(--yellow);
    text-decoration-color: var(--yellow);
  }
  
  .footer__divider {
    color: var(--gray-dark);
    font-size: 0.75rem;
  }
  
  /* Tablet+ */
  @media (min-width: 768px) {
    .legal-modal__content {
      padding: 48px 56px;
    }
  
    .footer__links {
      gap: 12px;
    }
  
    .footer__link-btn {
      font-size: 0.75rem;
    }
  }