﻿:root {
  --bg: #f0f2f5;
  --text: #11141a;
  --muted: #5c6473;
  --line: #d5dbe7;
  --accent: #d90717;
  --shadow: 0 14px 36px rgba(10, 14, 22, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  color: var(--text);
  background: radial-gradient(900px 420px at 100% -8%, rgba(217, 7, 23, 0.12), transparent 62%), var(--bg);
}

h1, h2, h3 { margin: 0; font-family: "Oswald", sans-serif; }

.shell { width: min(1180px, 92vw); margin: 0 auto; }

.main-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(7px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.logo { width: 92px; height: auto; }

.menu {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.35rem;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.menu-link {
  border: none;
  background: transparent;
  color: #222b3a;
  font: 700 1rem "Titillium Web", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.route-link {
  text-decoration: none;
}

.menu-item:hover .menu-link,
.menu-item:focus-within .menu-link,
.menu-link:hover {
  background: #f3f5f9;
}

.submenu {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  width: min(860px, 82vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  z-index: 40;
}

.submenu-products {
  width: min(620px, 72vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submenu-brands {
  width: min(620px, 72vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu {
  display: grid;
}

.submenu h3 {
  margin-bottom: 0.3rem;
}

.submenu a,
.submenu p {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.submenu a:hover {
  color: var(--accent);
}

.auth-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: 700 0.9rem "Titillium Web", sans-serif;
}

.auth-btn.b2b {
  background: linear-gradient(95deg, #131722, #2a3344);
  color: #fff;
  border-color: #131722;
}

.auth-btn.submit {
  width: 100%;
  margin-top: 0.5rem;
  background: linear-gradient(95deg, var(--accent), #9f040f);
  border-color: transparent;
  color: #fff;
}

.login-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 290px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-dropdown label {
  display: block;
  font-weight: 600;
  margin-top: 0.3rem;
}

.login-dropdown input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  font-family: "Titillium Web", sans-serif;
}

.login-dropdown small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.hidden { display: none !important; }

.wow-slider {
  margin-top: 1rem;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 620px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide.is-active { opacity: 1; pointer-events: auto; }

.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(8, 11, 17, 0.86), rgba(8, 11, 17, 0.38) 55%, rgba(8, 11, 17, 0.56));
}

.slide-content {
  position: absolute;
  left: 1.7rem;
  bottom: 1.7rem;
  max-width: min(700px, 88%);
  color: #ffffff;
}

.tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
}

.slide-content h2 {
  margin-top: 0.3rem;
  font-size: clamp(2.2rem, 4.1vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.slide-content p { color: rgba(245, 248, 255, 0.88); }

.cta-row {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(95deg, var(--accent), #9f040f);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 17, 30, 0.45);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.35rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active { background: #ffffff; }

.site-footer {
  margin-top: 1.35rem;
  background:
    linear-gradient(135deg, rgba(217, 7, 23, 0.08), transparent 42%),
    linear-gradient(180deg, #11141a, #090b10);
  color: #f3f5f8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
  padding: 2rem 0;
}

.site-footer h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer p {
  color: rgba(243, 245, 248, 0.72);
  max-width: 32rem;
}

.footer-brand {
  margin-bottom: 0.55rem;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.footer-links a {
  color: #f3f5f8;
  text-decoration: none;
  width: fit-content;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.landing-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  z-index: 170;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.8rem 0;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .submenu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.35rem;
    grid-template-columns: 1fr;
  }

  .auth-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .wow-slider { min-height: 500px; }
  .slide-content { max-width: 92%; }
  .footer-grid { grid-template-columns: 1fr; }
}
