:root {
  --brand-red: #d50c1f;
  --text-dark: #333333;
  --text-body: #555555;
  --bg-light: #f8f8f8;
  --bg-utility: #fafafa;
  --border: #ececec;
  --footer: #333333;
  --white: #ffffff;
  --container: 1408px;
  --radius: 3px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Arial", sans-serif;
  color: var(--text-body);
  background: var(--white);
}

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

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.top-utility {
  background: var(--bg-utility);
  border-bottom: 1px solid var(--border);
}

.top-utility__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
}

.social-links,
.utility-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.utility-icons a {
  color: #666;
}

.brand-header {
  background: var(--white);
}

.brand-header__inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  width: 172px;
  height: auto;
}

.brand-copy h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(20px, 2.6vw, 31px);
  font-weight: 700;
  line-height: 1.15;
}

.brand-copy p {
  margin: 0.35rem 0 0;
  color: #777;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--white);
  color: #6b6b6b;
  font-weight: 700;
}

.main-nav {
  background: var(--brand-red);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.main-nav__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 1rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-item > a:hover,
.nav-item > a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 1px);
  min-width: 320px;
  padding: 1rem;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 30;
}

.nav-dropdown li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 14px;
  color: var(--text-body);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.hero {
  background: #181818;
}

.hero-slider {
  position: relative;
  min-height: clamp(320px, 62vh, 620px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
  background: #111;
}

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

.hero-slide video,
.hero-slide .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-card {
  max-width: 640px;
  color: var(--white);
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(28px, 3.3vw, 54px);
  line-height: 1.06;
  font-weight: 700;
}

.hero-card p {
  margin: 0 0 1.2rem;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 1.05rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.section {
  padding: 56px 0;
}

.section.gray {
  background: var(--bg-light);
}

.section-title {
  margin: 0 0 1.4rem;
  color: var(--text-dark);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.company-text {
  font-size: 15px;
  line-height: 1.8;
}

.company-text h3 {
  margin: 0 0 0.8rem;
  color: var(--text-dark);
  font-size: 28px;
  line-height: 1.2;
}

.company-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.catalog-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.catalog-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.catalog-banner:hover img {
  transform: scale(1.03);
}

.grid-categories,
.grid-news,
.locations-grid {
  display: grid;
  gap: 1rem;
}

.grid-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.category-card,
.news-card,
.location-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.category-card {
  min-height: 150px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h4 {
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.35;
}

.category-count {
  margin-top: 0.7rem;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.news-thumb {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
}

.news-content {
  padding: 0.85rem 1rem 1rem;
}

.news-date {
  color: #909090;
  font-size: 12px;
  margin-bottom: 0.5rem;
}

.news-title {
  margin: 0;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.4;
}

.locations-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.select,
.search {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0 0.9rem;
  font-size: 14px;
  font-family: inherit;
}

.locations-map {
  width: 100%;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e9eef4;
}

.locations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.location-card {
  padding: 1rem;
}

.location-card h4 {
  margin: 0 0 0.4rem;
  color: var(--text-dark);
}

.location-card p {
  margin: 0.2rem 0;
  font-size: 14px;
}

.page-hero {
  padding: 42px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 12px;
  color: #909090;
  margin-bottom: 0.65rem;
}

.page-hero h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(29px, 3.2vw, 44px);
  line-height: 1.1;
}

.footer {
  background: var(--footer);
  color: #d5d5d5;
  padding: 70px 0 46px;
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-links,
.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a,
.footer a {
  color: #fff;
  opacity: 0.9;
}

.footer-muted {
  margin-top: 1rem;
  font-size: 13px;
  opacity: 0.8;
}

.mobile-panel {
  display: none;
}

@media (max-width: 1200px) {
  .grid-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .brand-header__inner {
    min-height: 84px;
  }

  .brand-copy {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-list {
    display: none;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 360px);
    background: #fff;
    z-index: 50;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  body.menu-open .mobile-panel {
    transform: translateX(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
  }

  .mobile-nav-list a {
    display: block;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-weight: 600;
  }

  .company-grid,
  .footer-grid,
  .catalog-banners {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-utility {
    display: none;
  }

  .brand-header__inner {
    min-height: 68px;
  }

  .header-actions {
    display: none;
  }

  .hero-slider {
    min-height: 380px;
  }

  .hero-content {
    padding: 2.2rem 0;
  }

  .section {
    padding: 40px 0;
  }

  .grid-categories,
  .grid-news,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .locations-map {
    min-height: 320px;
  }
}
