/* ===== Tokens ===== */
:root {
  --red: #DC2E32;
  --red-dark: #B8242A;
  --dark: #181717;
  --gray-900: #232222;
  --gray-600: #6B6864;
  --gray-300: #D8D5D1;
  --gray-100: #F5F4F2;
  --white: #FFFFFF;
  --radius: 14px;
  --container: 1180px;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--dark); }
.section-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,.3); }
.section-dark .btn-outline:hover { border-color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo img { height: 24px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lang-btn { background: none; border: none; cursor: pointer; color: var(--gray-600); padding: 4px 2px; font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.lang-btn.is-active { color: var(--red); }
.lang-sep { color: var(--gray-300); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1900 / 900;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #efeeec;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,.85) 28%, rgba(15,15,15,.42) 52%, rgba(15,15,15,0) 72%);
}
.hero-inner { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; padding: 0 24px; width: 100%; }
.hero-text { max-width: 560px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(22px, 3.6vw, 48px);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--white);
}
.hero-sub {
  font-size: clamp(12px, 1.5vw, 17px);
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 0 20px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-gray { background: var(--gray-100); }
#assortment { padding: 44px 0; }
#assortment .section-title { margin-bottom: 24px; }
#bestsellers { padding: 44px 0; }
#bestsellers .section-title { margin-bottom: 24px; }
.section-dark { background: var(--dark); color: var(--white); }
.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section-title-light { color: var(--white); }
.section > .container > .section-title { margin-bottom: 32px; }

/* ===== Category grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-card:hover {
  box-shadow: 0 16px 40px rgba(24,23,23,.1);
  transform: translateY(-4px);
  border-color: transparent;
}
.category-img {
  aspect-ratio: 16 / 10;
  background: #E4E2DF;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.category-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.category-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14.5px;
}
.category-name .arrow { color: var(--red); flex-shrink: 0; transition: transform .2s ease; }
.category-card:hover .arrow { transform: translateX(4px); }

/* ===== Terms ===== */
#terms .section-title { font-size: clamp(30px, 4vw, 40px); }

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.term-item { display: flex; gap: 16px; align-items: flex-start; }
.term-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; width: 42px; height: 42px; }
.term-item p { margin: 0 0 6px; font-size: 15px; color: rgba(255,255,255,.68); }
.term-item strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 16px 40px rgba(24,23,23,.1); transform: translateY(-4px); }
.product-img {
  aspect-ratio: 16 / 10;
  background: #E4E2DF;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-img img.no-blend { mix-blend-mode: normal; }
.product-info { padding: 14px 16px 18px; }
.product-name { margin: 0; font-weight: 700; font-size: 15px; }
.product-model { margin: 2px 0 8px; font-size: 13px; color: var(--gray-600); }
.product-specs { margin: 0; font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ===== Steps ===== */
.steps-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.step-item { display: flex; gap: 20px; align-items: flex-start; flex: 1; min-width: 240px; }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--red); line-height: 1; }
.step-title { margin: 0 0 6px; font-weight: 800; font-size: 21px; font-family: var(--font-display); color: var(--dark); }
.step-desc { margin: 0; font-size: 15.5px; color: var(--gray-600); line-height: 1.45; }
.step-chevron { color: var(--gray-300); flex-shrink: 0; width: 26px; height: 26px; }

/* ===== Form section ===== */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-intro p { color: rgba(255,255,255,.65); font-size: 15.5px; margin: 16px 0 32px; max-width: 420px; }
.form-intro .section-title { text-align: left; margin-bottom: 0; padding-bottom: 20px; }
.form-intro .section-title::after { left: 0; transform: none; }

.contacts-list { display: flex; flex-direction: column; gap: 14px; }
.contact-link { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--white); opacity: .9; transition: opacity .18s; }
.contact-link:hover { opacity: 1; color: var(--red); }
.contact-link svg { color: var(--red); flex-shrink: 0; }

.partner-form { background: var(--white); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--gray-900); }
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--dark);
  transition: border-color .18s ease;
}
.form-field input:focus { border-color: var(--red); outline: none; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray-600); margin: 4px 0 22px; cursor: pointer; }
.checkbox-row input { margin-top: 2px; accent-color: var(--red); }
.form-status { margin: 14px 0 0; font-size: 14px; font-weight: 600; text-align: center; min-height: 0; }
.form-status.is-success { color: #1a8a4a; }
.form-status.is-error { color: var(--red); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Footer ===== */
.site-footer { background: var(--gray-100); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-footer img { height: 20px; opacity: .85; }
.copyright { font-size: 13px; color: var(--gray-600); margin: 0; }
.footer-privacy { font-size: 13px; color: var(--gray-600); text-decoration: underline; }
.footer-privacy:hover { color: var(--red); }
.footer-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-contacts a { font-size: 13.5px; font-weight: 500; color: var(--gray-900); }
.footer-contacts a:hover { color: var(--red); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .form-section { grid-template-columns: 1fr; gap: 40px; }
  .form-intro .section-title { text-align: center; }
  .form-intro .section-title::after { left: 50%; transform: translateX(-50%); }
  .form-intro p { margin-left: auto; margin-right: auto; text-align: center; }
  .contacts-list { align-items: center; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-actions .lang-switch { display: flex; }
  .header-actions .btn { display: none; }
  .burger { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 16px 30px rgba(0,0,0,.06);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }

  .hero { display: flex; flex-direction: column; }
  .hero-banner { aspect-ratio: 1900 / 900; }
  .hero-overlay { display: none; }
  .hero-inner { position: static; padding: 28px 20px 36px; background: var(--dark); }
  .hero-text { max-width: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: 1; width: 100%; }
  .section { padding: 56px 0; }
  #assortment, #bestsellers { padding: 40px 0; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .terms-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: stretch; gap: 24px; }
  .step-chevron { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .partner-form { padding: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
