/* Базовые переменные и сброс */
:root {
  --color-accent: #007c2b;
  --color-card-bg: #ffffff;
  --color-muted: #89979e;
  --color-bg: #f5f7f8;
  --color-text: #111111;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
}

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

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

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

section {
  scroll-margin-top: 90px;
}

/* Контейнер и сетка */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: #edf1f3;
}

.section__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.section__inner--split {
  flex-wrap: wrap;
}

.section__content,
.section__media {
  flex: 1 1 300px;
}

.section__title {
  font-size: 32px;
  margin: 0 0 16px;
}

.section__subtitle {
  margin: 0 0 24px;
  color: var(--color-muted);
  max-width: 640px;
}

.section__media-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 124, 43, 0.35);
}

.btn--primary:hover {
  background-color: #006021;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 124, 43, 0.4);
}

.btn--outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: transparent;
}

.btn--outline:hover {
  background-color: rgba(0, 124, 43, 0.06);
}

.btn--ghost {
  border-color: transparent;
  background-color: transparent;
  color: var(--color-accent);
}

.btn--ghost:hover {
  background-color: rgba(0, 124, 43, 0.06);
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(245, 247, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(137, 151, 158, 0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
}

.header__logo-text {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.header__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  color: var(--color-muted);
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.header__burger span {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 40px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero__subtitle {
  margin: 0 0 24px;
  color: var(--color-muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__messengers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__messengers-label {
  font-size: 13px;
  color: var(--color-muted);
}

.hero__messengers-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  color: var(--color-accent);
  border: 1px solid rgba(0, 124, 43, 0.2);
  font-size: 13px;
  transition: all 0.2s ease;
}

.chip:hover {
  background-color: rgba(0, 124, 43, 0.06);
}

.hero__media {
  display: flex;
  justify-content: flex-end;
}

.video-card {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  color: var(--color-text);
}

.video-card__thumbnail {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.video-card__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  position: absolute;
  left: 16px;
  bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-card__play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Карточки и элементы */
.stat-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card__value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.stat-card__text {
  font-size: 13px;
  color: var(--color-muted);
}

.image-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 160px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  overflow: hidden;
}

.image-card:has(img) {
  padding: 0;
}

.image-card--map {
  min-height: 220px;
}

.image-card__label {
  max-width: 200px;
}

.image-card img {
  width: 100%;
  min-height: 220px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.brands-carousel {
  margin-top: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.brands-row {
  display: flex;
  gap: 16px;
}

.brands-carousel::-webkit-scrollbar {
  height: 6px;
}

.brands-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.brands-carousel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.brand-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo {
  font-weight: 600;
  margin-bottom: 8px;
}

.brand-card__type {
  font-size: 13px;
  color: var(--color-muted);
}

.brand-card__logo-img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  display: block;
  filter: grayscale(0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* Секция складов с фоновыми изображениями */
.section--warehouses {
  position: relative;
  overflow: hidden;
}

.warehouses-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.warehouses-background__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.warehouses-background__slide.active {
  opacity: 0.55;
}

.section--warehouses .container {
  position: relative;
  z-index: 1;
}

/* Секция сервиса с фоновыми изображениями */
.section--service {
  position: relative;
  overflow: hidden;
}

.service-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.service-background__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.service-background__slide.active {
  opacity: 0.55;
}

.section--service .container {
  position: relative;
  z-index: 1;
}

.feature-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card__text {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.feature-card .section__title {
  margin-top: 0;
}

.steps-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.steps-list li {
  font-size: 14px;
}

.delivery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}

.delivery-steps {
  display: grid;
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.step-card__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 4px;
}

.step-card__content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step-card__content p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.delivery-media p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--color-muted);
}

.complexes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.complex-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.complex-card__city {
  margin: 0 0 4px;
  font-size: 16px;
}

.complex-card__region {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-muted);
}

.complex-card__address {
  margin: 0 0 6px;
  font-size: 14px;
}

.complex-card__phone {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 14px;
}

/* Футер */
.footer {
  background-color: #111417;
  color: #ffffff;
  padding: 40px 0 24px;
  position: relative;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: flex-start;
}

.footer__logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #ffffff;
}

.footer__title {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer__contacts,
.footer__messengers {
  font-size: 14px;
}

.footer__phone {
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
}

.footer__messengers-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 124, 43, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 60;
}

.scroll-top--visible {
  display: flex;
}

/* Модалка */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 16px;
  background-color: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
}

.modal__body video {
  width: 100%;
  display: block;
  outline: none;
}

/* Адаптивность */
@media (max-width: 960px) {
  .header__nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background-color: rgba(245, 247, 248, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(137, 151, 158, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    justify-content: flex-start;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Слайдер филиалов */
.filials-slider {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-card-bg);
  box-shadow: var(--shadow-soft);
}

.filials-slider__container {
  position: relative;
  width: 100%;
  height: 638px;
  overflow: hidden;
}

.filials-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.filials-slider__slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.filials-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filials-slider__prev,
.filials-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-accent);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filials-slider__prev:hover,
.filials-slider__next:hover {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filials-slider__prev {
  left: 16px;
}

.filials-slider__next {
  right: 16px;
}

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

.filials-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.filials-slider__dot.active {
  background-color: #ffffff;
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .header__inner {
    padding-inline: 12px;
  }

  .hero__title {
    font-size: 28px;
  }

  .section__title {
    font-size: 26px;
  }

  .filials-slider__container {
    height: 280px;
  }

  .filials-slider__prev,
  .filials-slider__next {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .filials-slider__prev {
    left: 8px;
  }

  .filials-slider__next {
    right: 8px;
  }
}


