/* ===== Шрифт Gilroy ===== */
/* положите файлы шрифта в public/fonts/ с указанными именами */
@font-face {
  font-family: 'Gilroy';
  src:
    url('../fonts/Gilroy-Regular.woff2') format('woff2'),
    url('../fonts/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src:
    url('../fonts/Gilroy-Medium.woff2') format('woff2'),
    url('../fonts/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src:
    url('../fonts/Gilroy-Bold.woff2') format('woff2'),
    url('../fonts/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src:
    url('../fonts/Gilroy-Extrabold.woff2') format('woff2'),
    url('../fonts/Gilroy-Extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===== Переменные ===== */
:root {
  --font-base: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-brand: #135833;
  --color-brand-dark: #0d3f24;
  --color-brand-light: #1b7544;
  --color-primary: #135833;
  --color-primary-dark: #0d3f24;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f7f4;
  --color-border: #e5e7eb;
  --radius: 12px;
  --container: 1240px;
  --header-h: 110px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ===== Сброс ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* якорный скролл по меню учитывает высоту липкой шапки */
:target {
  scroll-margin-top: var(--header-h);
}

.categories,
.about,
.advantages,
.contacts {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Контейнер ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.container--narrow {
  max-width: 760px;
}

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* фоновая текстура поверх зелёного: режим soft-light, прозрачность 20% (как в макете) */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/header-bg.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* ----- Логотип ----- */
.logo {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.1;
}

.logo img {
  display: block;
  width: 247px;
  height: 39px;
}

/* ----- Контейнер меню (навигация + язык) ----- */
.header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ----- Навигация ----- */
.nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav__link {
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav__link:hover {
  text-decoration: none;
  opacity: 1;
}

/* подчёркивание активного пункта */
.nav__link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #d99d06;
  border-radius: 2px;
}

/* ----- Переключатель языка ----- */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 0;
}

.lang__btn svg {
  transition: transform 0.2s;
}

.lang.open .lang__btn svg {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 90px;
  background: #fff;
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  flex-direction: column;
}

.lang.open .lang__menu {
  display: flex;
}

.lang__menu a {
  background: none;
  text-decoration: none;
  color: var(--color-text);
  border: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.lang__menu a:hover {
  background: var(--color-bg-alt);
}

/* вариант внутри мобильного меню — на десктопе скрыт */
.lang--menu {
  display: none;
}

/* ===== Бургер ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

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

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

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

.hero {
  width: 100%;
}

/* ===== Кнопка ===== */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

/* ===== Секции / карточки ===== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 48px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__icon {
  font-size: 38.4px;
  margin-bottom: 14px;
}

.card__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.card__text {
  color: var(--color-muted);
}

/* ===== Категории продукции ===== */
.categories {
  padding: 80px 20px;
  background: #fff;
}

.categories__title {
  text-align: center;
  font-size: clamp(28.8px, 4vw, 40px);
  font-weight: 800;
  color: #161c2d;
  margin-bottom: 48px;
}

.categories__title span {
  color: var(--color-brand);
}

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

.cat-card {
  display: flex;
  flex-direction: column;
  background: #f4f7fa;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
  justify-content: space-between;
}

.cat-card:hover {
  border: 1.5px solid #1e7a47;
}

/* картинка-«наклейка» в правом верхнем углу карточки */
.cat-card .top {
  position: absolute;
  top: 0;
  right: 0;
  height: auto;
}

/* прозрачная распорка резервирует место под картинку в шапке */
.cat-card .opacity {
  opacity: 0;
  pointer-events: none;
  height: auto;
}

.cat-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 96px;
  margin-bottom: 22px;
}

.cat-card__title {
  max-width: 55%;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
}

.cat-card__img {
  width: auto;
  object-fit: contain;
  max-width: 300px;
}

.cat-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-card__list li {
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-muted);
}

/* список в две колонки для длинных категорий */
.cat-card__list--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
}

/* ===== О компании ===== */
.about {
  position: relative;
  padding: 80px 20px;
  background-color: var(--color-brand);
  color: #fff;
  overflow: hidden;
}

/* текстура поверх зелёного — как в шапке/подвале */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/company-bg.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

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

.about__grid {
  display: grid;
  grid-template-columns: 393px 1fr;
  gap: 50px;
  align-items: start;
}

.about__media img {
  display: block;
  width: 100%;
}

.about__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 58px;
}

.about__text {
  font-size: 14px;
  line-height: 16px;
  opacity: 0.8;
}

/* ===== Преимущества ===== */
.advantages {
  padding: 80px 20px;
  background: #fff;
}

.advantages__title {
  text-align: center;
  font-size: clamp(28.8px, 4vw, 40px);
  font-weight: 800;
  color: #161c2d;
  margin-bottom: 44px;
}

.advantages__subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.advantages__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 44px;
}

/* ---- бренды/партнёры ---- */
.brands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 56px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  padding: 12px 18px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brand);
}

/* ---- что получают клиенты ---- */
.advantages__clients-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 44px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 24px;
  margin-bottom: 70px;
}

.benefit {
  text-align: center;
}

.benefit img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.benefit p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-muted);
}

/* ===== Контакты ===== */
.contacts {
  padding: 80px 0 0;
  background: #f4f7fa;
}

.contacts__title {
  text-align: center;
  font-size: clamp(28.8px, 4vw, 40px);
  font-weight: 800;
  color: #135833;
  margin-bottom: 48px;
  padding: 0 20px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  padding: 0 20px;
}

/* колонка может содержать несколько карточек, которые ставятся друг под друга */
.contacts__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ymaps-2-1-79-copyrights-pane {
  display: none;
}

.contact-card {
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 32px;
  transition: border 0.5s ease;
}

.contact-card:hover {
  border: 1.5px solid #1e7a47;
}

.contact-card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-brand);
}

.contact-card__divider {
  display: block;
  height: 1px;
  background: var(--color-border);
  margin: 20px 0 24px;
}

.contact-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row__icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--color-brand);
  margin-top: 2px;
}

.contact-row__icon svg {
  display: block;
}

.contact-row__body.bold {
  font-weight: 700;
}

.contact-row__body {
  font-size: 13px;
  line-height: 1.45;
  color: #161c2d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
}

.contact-row__body a {
  color: inherit;
  transition: color 0.2s;
}

/* номера телефонов не переносятся по цифрам на новую строку */
a[href^='tel:'] {
  white-space: nowrap;
}

.contact-row__body a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.contact-row__label {
  display: block;
  font-weight: 700;
  color: #161c2d;
}

.contact-row__label.upper {
  text-transform: uppercase;
}

/* подпункты (имена менеджеров): рядом, если влезают, иначе переносятся */
.contact-row__subs {
  display: flex;
  gap: 4px 20px;
}

.contact-row__sub {
  display: block;
  font-size: 12px;
}

/* ---- карта (Яндекс.Карты) ---- */
.contacts__map {
  margin-top: 64px;
  width: 100%;
  height: 400px;
  /* статичная карта как запасной фон, пока грузится API или если нет ключа */
  background: #e9eef0 url('../images/contacts-map.png') center / cover no-repeat;
}

/* контейнер карты Яндекса растягивается на весь блок */
.contacts__map ymaps {
  border-radius: inherit;
}

.contacts__map--fallback {
  /* если API не загрузился — остаётся статичная карта */
  background: #e9eef0 url('../images/contacts-map.png') center / cover no-repeat;
}

/* кастомная метка-карточка на карте (как в дизайне) */
.map-pin {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  /* якорим нижний центр карточки в точке адреса */
  transform: translate(-50%, calc(-100% - 10px));
  padding: 12px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  font-family: var(--font-base);
  cursor: pointer;
}

/* иконка-пин со свечением над карточкой, по центру */
.map-pin__icon {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 28%);
  pointer-events: none;
  line-height: 0;
}

.map-pin__icon svg {
  display: block;
  width: 122px;
  height: auto;
}

.map-pin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.map-pin__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-brand);
}

.map-pin__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(22, 28, 45, 0.7);
}

.map-pin__rating svg {
  color: var(--color-brand);
}

.map-pin__subtitle {
  font-size: 14px;
  line-height: 1.2;
  color: rgba(22, 28, 45, 0.7);
}

/* маленький «хвостик» снизу, указывающий на точку */
.map-pin__tail {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Текстовая страница ===== */
.page {
  padding: 60px 0;
}

.page__title {
  font-size: 35.2px;
  margin-bottom: 8px;
}

.page__updated {
  color: var(--color-muted);
  margin-bottom: 32px;
}

.page h2 {
  margin: 28px 0 10px;
  font-size: 21.6px;
}

.page ul {
  padding-left: 22px;
  margin: 8px 0;
}

/* ===== Хлебные крошки ===== */
.breadcrumb {
  padding: 50px 0 0;
  font-size: 14px;
}

.breadcrumb a {
  color: #979797;
}

.breadcrumb a:hover {
  color: var(--color-brand);
}

.breadcrumb__sep {
  color: #979797;
  margin: 0 4px;
}

.breadcrumb__current {
  color: var(--color-brand);
}

/* ===== Страница 404 ===== */
.notfound {
  text-align: center;
  padding: 40px 0 100px;
}

.notfound__img {
  display: block;
  width: 100%;
  max-width: 604px;
  height: auto;
  margin: 0 auto 24px;
}

.notfound__title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.8px;
  color: var(--color-brand);
  margin-bottom: 14px;
}

.notfound__text {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(22, 28, 45, 0.7);
  max-width: 360px;
  margin: 0 auto 32px;
}

.notfound__btn {
  display: inline-block;
  background: #fff;
  color: rgba(22, 28, 45, 0.7);
  border: 0.5px solid var(--color-brand);
  border-radius: 6px;
  padding: 9px 40px;
  font-size: 14px;
  transition:
    background 0.2s,
    color 0.2s;
}

.notfound__btn:hover {
  background: var(--color-brand);
  color: #fff;
  text-decoration: none;
}

.privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.privacy h1 {
  color: #135833;
  font-size: 35px;
  font-weight: 700;
}

.privacy p {
  color: #161c2d;
  font-size: 14px;
  opacity: 0.7;
}

/* ===== Подвал ===== */
.footer {
  position: relative;
  flex-shrink: 0;
  background-color: var(--color-brand);
  color: #fff;
  overflow: hidden;
}

/* текстура поверх зелёного — как в шапке */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/footer-bg.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

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

/* ---- верхняя часть: колонки ---- */
.footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 44px;
}

.footer__dev {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__dev:hover {
  color: #fff;
}

.footer__dev:hover a {
  color: #fff;
}

.footer__dev a {
  text-decoration: none;
}

.footer__desc {
  max-width: 230px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.footer__heading {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}

.footer__links,
.footer__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer__links {
  gap: 16px;
}

.footer__links a {
  color: #fff;
  font-size: 16px;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer__contacts {
  gap: 19px;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__contacts a,
.footer__contacts span {
  color: #fff;
  font-size: 16px;
  transition: opacity 0.2s;
}

.footer__contacts a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* ---- нижняя строка ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.footer__stroke {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom p,
.footer__bottom a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__policy {
  transition: color 0.2s;
}

.footer__policy:hover {
  color: #fff;
  text-decoration: none;
}

/* =====================================================================
   Адаптив — все медиа-запросы собраны в один раздел.
   Порядок desktop-first: от большего брейкпоинта к меньшему,
   чтобы меньшие ширины корректно переопределяли бо́льшие.
   ===================================================================== */

@media (max-width: 1100px) {
  /* контакты */
  .contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* третья колонка (высокая карточка) занимает всю ширину строки */
  .contacts__col:last-child {
    grid-column: 1 / -1;
  }

  /* планшеты — уменьшаем отступы меню */
  .nav {
    gap: 18px;
  }

  .nav__link {
    font-size: 14.4px;
  }

  .logo__title {
    font-size: 24px;
  }

  .header__inner {
    padding-inline: 16px;
  }
}

@media (max-width: 900px) {
  /* категории */
  .categories__grid {
    grid-template-columns: 1fr;
  }

  /* о компании */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }

  .about__media img {
    max-width: 420px;
  }

  .about__content {
    width: 100%;
  }

  /* преимущества */
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  /* подвал */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
    padding: 48px 0 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* мобильные — меню в выпадающую панель */
  :root {
    --header-h: 80px;
  }

  .burger {
    display: flex;
  }

  /* нав + язык собираются в выпадающую панель под шапкой */
  .header__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    background: var(--color-brand);
    padding: 16px 20px 24px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-h));
  }

  .header__menu.open {
    transform: translateY(0);
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    width: 100%;
    font-size: 16.8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav__link--active::after {
    display: none;
  }

  .nav__link--active {
    font-weight: 700;
  }

  .lang {
    display: none;
  }

  .lang--menu {
    display: block;
    width: max-content;
    margin-top: 8px;
  }

  .lang--menu .lang__btn {
    width: 100%;
    justify-content: space-between;
    font-size: 16.8px;
    padding: 12px 0;
  }

  .lang__menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 700px) {
  /* контакты */
  .contacts {
    padding-top: 56px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .contacts__col {
    gap: 20px;
  }

  .contacts__col:last-child {
    grid-column: auto;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card__title {
    font-size: 19.2px;
  }

  .contacts__map {
    margin-top: 40px;
    height: 280px;
  }
}

@media (max-width: 560px) {
  /* категории */
  .categories {
    padding: 56px 16px;
  }

  .cat-card {
    padding: 16px;
  }

  .cat-card__title {
    max-width: 60%;
    font-size: 20px;
  }

  .cat-card__img {
    height: 72px;
  }

  /* «наклейка» и распорка меньше, чтобы не наезжать на заголовок */
  .cat-card .top {
    width: 50%;
    height: auto;
  }

  .cat-card .opacity {
    width: 38%;
    max-width: 110px;
    height: auto;
  }

  .cat-card__list--2col {
    grid-template-columns: 1fr;
  }

  /* о компании */
  .about {
    padding: 56px 16px;
  }

  .about__stats {
    flex-wrap: wrap;
    gap: 24px 36px;
  }

  .stat__num {
    font-size: 35.2px;
  }

  /* преимущества */
  .advantages {
    padding: 56px 16px;
  }

  .advantages__subtitle,
  .advantages__clients-title {
    font-size: 19.2px;
  }

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

  .brand {
    font-size: 15px;
    min-height: 68px;
    padding: 10px 12px;
  }

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

  /* подвал */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }

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

@media (max-width: 480px) {
  .logo__title {
    font-size: 20px;
  }

  .logo__subtitle {
    font-size: 8px;
  }
}
