/* DALMEX — главная по макету Figma «Dalmex.ru_own» (десктоп 1440 / мобайл 390).
   Чистый CSS без фреймворков: блоки названы по секциям макета, чтобы
   разрезать их на компоненты шаблона 1С-Битрикс (header/footer + include-области). */

:root {
  --blue: #00548a;
  --blue-dark: #003f83;
  --blue-tile: #0f5e91;
  --ink: #0d0d0d;
  --muted: #656565;
  --muted-2: #707070;
  --line: #e9e9e9;
  --bg: #f8f8f8;
  --bg-2: #f1f1f1;
  --bg-3: #f5f6fa;
  --white: #fff;
  --green: #4b7d00;
  --dot: #b3b4b5;
  --radius: 4px;
  --container: 1312px;
  --gutter: 64px;
  --font-head: "Lato", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 24px; height: 24px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- типографика ---------- */
.h2 {
  font: 900 44px/1.09 var(--font-head);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.lead { color: var(--muted); font-size: 16px; line-height: 22px; }
.link { color: var(--blue); font-size: 16px; font-weight: 500; transition: color .2s; }
.link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.link--arrow { display: inline-flex; align-items: center; gap: 12px; }
.link--arrow svg { width: 20px; height: 20px; transition: transform .2s; }
a:hover .link--arrow svg, .link--arrow:hover svg { transform: translateX(4px); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font: 700 16px/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { border: 1px solid var(--blue); color: var(--blue); background: var(--white); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--lg { height: 56px; padding: 0 24px; }
.btn--sm { height: 35px; padding: 0 16px; font-size: 11px; }
.btn--block { width: 100%; }

.arrow {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: inline-grid; place-items: center;
  background: var(--white); color: var(--ink);
  transition: background-color .2s, color .2s;
}
.arrow:hover { background: var(--blue); color: var(--white); }
.arrow--dark { background: rgba(80, 80, 80, .75); color: var(--white); }
.arrow--dark:hover { background: var(--blue); }

.chip {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  padding: 5px 8px; border-radius: var(--radius);
  background: var(--blue); color: var(--white);
  font: 500 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .02em;
}
.badge {
  position: absolute; top: 15px; left: 15px;
  padding: 6px 8px; border-radius: 3px;
  background: var(--green); color: var(--white);
  font: 700 12px/1 var(--font-head);
}

/* ---------- шапка ---------- */
.site-header { background: var(--white); position: relative; z-index: 20; }
.topbar { border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar__inner { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.topbar__contacts { display: flex; align-items: center; }
.topbar__contacts li { padding: 0 20px; border-left: 1px solid var(--line); line-height: 24px; }
.topbar__contacts li:first-child { padding-left: 0; border-left: 0; }
.topbar__contacts a:hover { color: var(--blue); }
.topbar__note { color: #767676; }
.topbar__side { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-right: 12px; }
.lang__flag {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(#fff 0 33%, #1c57d6 33% 66%, #e1251b 66%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.icon-btn {
  width: 32px; height: 32px; border-radius: 6px; background: var(--bg-2);
  display: grid; place-items: center; color: #8a8a8a; transition: color .2s, background-color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--blue); color: var(--white); }

.navbar__inner { height: 72px; display: flex; align-items: center; gap: 20px; }
.logo img { width: 130px; height: auto; }
.menu { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.menu > a { padding: 12px 8px; border-radius: var(--radius); white-space: nowrap; transition: color .2s; }
.menu > a:hover { color: var(--blue); }
.menu__catalog {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); height: 42px; padding: 0 8px !important; margin-right: 2px;
}
.menu__catalog svg { width: 18px; height: 18px; color: var(--blue); }
.menu__mobile-contacts { display: none; }
.search { margin-left: auto; flex: 0 1 316px; display: flex; align-items: center; border-bottom: 1px solid var(--line); height: 44px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; padding: 0; }
.search input::placeholder { color: #767676; }
.search button { color: #767676; display: grid; place-items: center; }
.search button:hover { color: var(--blue); }
.navbar__mobile { display: none; }
.icon-plain { width: 40px; height: 40px; display: grid; place-items: center; color: #767676; }
.icon-plain .ico-close { display: none; }

/* ---------- 01 главный экран ---------- */
.hero { position: relative; height: 516px; overflow: hidden; background: #1b2633; color: var(--white); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 58%; }
.hero__bg--promo img { object-position: 70% 50%; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 36, .82) 0%, rgba(10, 22, 36, .6) 45%, rgba(10, 22, 36, .25) 75%, rgba(10, 22, 36, .12) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 66px; height: 100%; }
.hero__title {
  max-width: 720px;
  font: 900 48px/1 var(--font-head); text-transform: uppercase; letter-spacing: -.005em;
}
.hero__text { max-width: 650px; margin-top: 30px; font-size: 16px; line-height: 22px; }
.hero__line { display: block; width: 91px; height: 2px; background: rgba(255, 255, 255, .35); margin: 24px 0 56px; overflow: hidden; }
.hero__line i { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(1); }
.hero__slide.is-active .hero__line i { animation: hero-progress 7s linear; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__nav { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; pointer-events: none; }
.hero__nav .arrow { pointer-events: auto; }

/* ---------- секции ---------- */
.section { padding: 90px 0 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section__tools { display: flex; align-items: center; gap: 8px; }
.section__tools .link { margin-right: 24px; }

/* ---------- 02 каталог ---------- */
.catalog { padding-top: 76px; }
.catalog__head { display: grid; grid-template-columns: 527px 1fr; gap: 0; align-items: start; margin-bottom: 44px; }
.catalog__head .lead { padding-top: 14px; max-width: 545px; }
.catalog__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px 8px; }
.cat-card a {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 272px;
  background: var(--white); border-radius: var(--radius); padding: 18px 20px 16px;
  transition: box-shadow .25s, transform .25s;
}
.cat-card a:hover { box-shadow: 0 10px 30px rgba(0, 40, 80, .1); transform: translateY(-2px); }
.cat-card__tag { font-size: 14px; color: var(--ink); line-height: 18px; }
.cat-card__tag span { color: var(--blue); }
.cat-card__plus { position: absolute; top: 16px; right: 18px; width: 20px; height: 20px; color: #8a8a8a; transition: color .2s, transform .25s; }
.cat-card a:hover .cat-card__plus { color: var(--blue); transform: rotate(90deg); }
.cat-card__img {
  width: 150px; height: 150px; margin: 13px auto 0; background: var(--white);
  box-shadow: 0 0 0 1px #f0f0f0; display: grid; place-items: center;
}
.cat-card__img img { width: 146px; height: 146px; object-fit: contain; }
.cat-card__name {
  margin-top: auto; padding-top: 18px;
  font: 700 16px/20px var(--font-head); text-transform: lowercase;
}

/* ---------- 04 о компании ---------- */
.about { padding-top: 54px; }
.about .h2 { margin-bottom: 47px; }
.about__body {
  display: grid; grid-template-columns: minmax(0, 581px) 1fr;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  position: relative;
}
.about__photo { position: relative; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); }
.about__photo::after {
  /* синий «флажок» макета на стыке фото и панели */
  content: ""; position: absolute; top: 0; right: -75px; width: 100px; height: 96px;
  background: var(--blue);
  clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
}
.about__panel {
  background: var(--white); border-top: 1px solid #f0f0f0; border-bottom: 3px solid #f0f0f0;
  padding: 50px 64px 50px 85px;
}
.about__text { max-width: 630px; color: var(--muted); font-size: 16px; line-height: 22px; }
.about__text p + p { margin-top: 22px; }
.about__btn { margin-top: 44px; }
.stats { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; margin-top: 50px; }
.stats__item { padding: 0 58px; border-left: 1px solid #ddd; }
.stats__item:first-child { padding-left: 0; border-left: 0; }
.stats dt { font: 900 44px/1 var(--font-head); color: var(--blue); }
.stats dd { margin-top: 10px; max-width: 175px; font-size: 16px; line-height: 24px; }

/* ---------- 05 услуги ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { background: var(--white); border: 1px solid #efefef; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { width: 100%; aspect-ratio: 313 / 237; object-fit: cover; transition: transform .4s; }
.svc-card:hover img { transform: scale(1.03); }
.svc-card__body { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; background: var(--white); }
.svc-card h3 { font: 700 20px/22px var(--font-head); }

/* ---------- слайдеры ---------- */
.slider__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  scroll-padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > li { scroll-snap-align: start; flex: none; }
.dots { display: flex; justify-content: flex-end; gap: 17px; margin-top: 30px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); transition: background-color .2s; }
.dots button[aria-current="true"] { background: #0d5493; }

/* ---------- 06 предложения ---------- */
.offer-card {
  position: relative; width: 311px; background: var(--white); border-radius: var(--radius);
  padding: 15px 23px 16px; display: flex; flex-direction: column;
}
.offer-card img { width: 240px; height: 147px; object-fit: contain; margin: 0 auto 10px; }
.offer-card h3 { font: 700 18px/20px var(--font-head); }
.offer-card p { flex: 1; margin-top: 12px; font-size: 14px; line-height: 18px; color: var(--muted-2); }
.offer-card__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.price { font-size: 18px; color: var(--blue); font-weight: 500; white-space: nowrap; }
.price-old { font-size: 12px; color: var(--muted); white-space: nowrap; }
.offer-card .btn { margin-left: auto; }

/* ---------- 07 реклама ---------- */
.promo-wrap { padding-top: 88px; }
.promo {
  position: relative; min-height: 380px; overflow: hidden;
  background: var(--bg-2); border: 1px solid #e3e3e3; border-radius: var(--radius);
}
.promo__media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 1140px; max-width: 87%;
  clip-path: polygon(0 100%, 12% 0, 100% 0, 100% 100%);
}
.promo__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo__content { position: relative; z-index: 1; padding: 44px 52px 50px; max-width: 560px; }
.promo__title { font: 900 44px/48px var(--font-head); text-transform: uppercase; }
.promo__title span { color: var(--blue); }
.promo__sub {
  display: flex; align-items: center; gap: 17px; margin-top: 14px;
  font: 900 20px/1 var(--font-head); text-transform: uppercase;
}
.promo__sub::before { content: ""; width: 56px; height: 2px; background: var(--blue); }
.promo__offer { display: flex; align-items: center; gap: 28px; margin-top: 24px; font-size: 16px; line-height: 22px; }
.promo__offer b { color: var(--blue); font-weight: 600; }
.promo__ico { width: 46px; height: 46px; border: 1px solid var(--blue); border-radius: 50%; display: grid; place-items: center; color: var(--blue); flex: none; }
.promo__actions { display: flex; align-items: center; gap: 32px; margin-top: 28px; }
.promo__term { display: flex; align-items: center; gap: 10px; padding-left: 32px; border-left: 1px solid #cfcfcf; height: 50px; font-size: 12px; line-height: 15px; }
.promo__term svg { width: 28px; height: 28px; color: var(--blue); }
.promo__term b { display: block; font-weight: 600; }

/* ---------- 09 медиа ---------- */
.media .slider__track { gap: 20px; }
.media-card a {
  position: relative; display: block; width: 313px; height: 386px; overflow: hidden;
  border-radius: var(--radius); background: #161a20; color: var(--white);
}
.media-card--wide a { width: 646px; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media-card a:hover img { transform: scale(1.04); }
.media-card a::after {
  content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5, 8, 12, .88));
}
.media-card__cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.media-card__cap b { font: 700 20px/24px var(--font-head); max-width: 280px; }
.media-card__cap small { font-size: 14px; }
.media-card__time { position: absolute; right: 24px; bottom: 22px; z-index: 1; padding: 6px 10px; border-radius: var(--radius); background: rgba(0, 0, 0, .8); font-size: 11px; }
.media-card__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); transition: transform .25s;
}
.media-card__play svg { width: 34px; height: 34px; margin-left: 4px; }
.media-card a:hover .media-card__play { transform: scale(1.08); }

/* ---------- 10 FAQ ---------- */
.faq { padding-top: 110px; }
.faq .h2 { margin-bottom: 46px; }
.faq__box { display: grid; grid-template-columns: 375px 1fr; gap: 24px; padding: 23px; background: var(--white); border: 1px solid #eee; border-radius: var(--radius); }
.faq__help { background: var(--bg-3); border-radius: var(--radius); padding: 32px 32px 0; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.faq__help-ico { width: 86px; height: 86px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--blue); }
.faq__help-ico svg { width: 44px; height: 44px; }
.faq__help h3 { margin-top: 32px; font: 700 24px/29px var(--font-head); }
.faq__help p { margin-top: 20px; font-size: 16px; line-height: 22px; color: var(--muted-2); }
.faq__help .btn { margin-top: 18px; }
.faq__help img { margin: 24px -32px 0; width: calc(100% + 64px); max-width: none; mix-blend-mode: multiply; opacity: .9; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item { border: 1px solid #eee; border-radius: var(--radius); transition: border-color .2s; }
.faq__item[open] { border-color: var(--blue); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px; padding: 18px 34px 18px 25px; font: 700 20px/24px var(--font-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); transition: transform .25s, background-color .2s; }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::before, .faq__item[open] .faq__sign::after { background: var(--blue); }
.faq__item[open] .faq__sign::after { transform: rotate(0); }
.faq__item p { padding: 0 34px 24px 25px; margin-top: -8px; font-size: 14px; line-height: 22px; color: var(--muted-2); max-width: 780px; }
.faq__more { margin-top: auto; text-align: right; font-size: 14px; color: var(--muted-2); }
.faq__more a { color: var(--blue); font-weight: 500; }
.faq__btn-mobile { display: none; }

/* ---------- 11 форма ---------- */
.help { padding-top: 82px; }
.help__inner { position: relative; }
.help__inner::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) - 3px); background: var(--blue); border-radius: var(--radius); z-index: 0;
}
.help__inner { display: grid; grid-template-columns: 1fr 500px; gap: 70px; padding-top: 63px; padding-bottom: 58px; }
.help__inner > * { position: relative; z-index: 1; }
.help__info { padding-left: 71px; color: var(--white); }
.help__form { margin-right: 72px; }
.help__title { font: 900 44px/48px var(--font-head); text-transform: uppercase; max-width: 420px; }
.help__lead { margin-top: 20px; font-size: 18px; line-height: 28px; max-width: 600px; }
.help__features { margin-top: 24px; display: flex; flex-direction: column; gap: 21px; }
.help__features li { display: flex; gap: 33px; align-items: flex-start; }
.help__ico { width: 82px; height: 82px; border-radius: var(--radius); background: var(--blue-tile); display: grid; place-items: center; flex: none; }
.help__ico svg { width: 50px; height: 50px; }
.help__features h3 { margin-top: 4px; font: 500 16px/22px var(--font-body); }
.help__features p { margin-top: 8px; font-size: 14px; line-height: 22px; max-width: 380px; }
.help__form { background: var(--white); border-radius: var(--radius); padding: 42px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.help__form input, .help__form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px; background: var(--white);
  padding: 0 22px; height: 56px; font-size: 16px; outline: 0; transition: border-color .2s;
}
.help__form textarea { height: 124px; padding-top: 18px; resize: vertical; }
.help__form input:focus, .help__form textarea:focus { border-color: var(--blue); }
.help__form input::placeholder, .help__form textarea::placeholder { color: var(--muted); }
.help__form input.is-error { border-color: #d0342c; }
.help__form .btn { margin-top: 12px; }
.help__agree { display: flex; gap: 16px; align-items: center; font-size: 12px; line-height: 18px; color: var(--muted); }
.help__agree a { text-decoration: underline; text-underline-offset: 2px; }
.help__agree svg { color: var(--ink); }
.help__status { font-size: 14px; color: var(--blue); min-height: 0; }
.help__status:empty { display: none; }

/* ---------- 12 новости ---------- */
.news { padding-top: 60px; padding-bottom: 76px; }
.news .slider__track { gap: 20px; }
.news-card a { display: flex; flex-direction: column; width: 313px; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.news-card__img { position: relative; display: block; height: 227px; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card a:hover .news-card__img img { transform: scale(1.04); }
.news-card__img .chip { top: 24px; left: 24px; }
.news-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: 14px; color: var(--muted); }
.news-card b { margin-top: 18px; font: 700 20px/26px var(--font-head); }
.news-card__text { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.news-card .link { margin-top: auto; padding-top: 22px; }

/* ---------- 13 подвал ---------- */
.footer { border-top: 3px solid var(--blue-dark); background: var(--bg); padding: 48px 0 44px; }
.footer__inner { display: grid; grid-template-columns: 223px 376px 400px 1fr; }
.footer__brand .logo img { width: 127px; }
.footer__social { display: flex; gap: 8px; margin-top: 32px; }
.footer__social a { width: 32px; height: 32px; border-radius: var(--radius); background: var(--blue); color: var(--white); display: grid; place-items: center; transition: background-color .2s; }
.footer__social a:hover { background: var(--blue-dark); }
.footer__social svg { width: 20px; height: 20px; }
.footer__copy { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.footer__copy--mobile { display: none; }
.footer__col h2 { font: 900 32px/1 var(--font-head); text-transform: uppercase; margin-bottom: 28px; }
.footer__col li { font-size: 14px; line-height: 20px; color: #6b6b6b; max-width: 330px; }
.footer__col li + li { margin-top: 14px; }
.footer__col a:hover { color: var(--blue); }
.footer__contacts li + li { margin-top: 4px; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1360px) {
  :root { --gutter: 32px; }
  .menu > a { padding: 12px 6px; }
  .search { flex-basis: 220px; }
  .catalog__head { grid-template-columns: 1fr 1fr; }
  .stats__item { padding: 0 32px; }
  .help__info { padding-left: 40px; }
  .help__form { margin-right: 40px; }
}

@media (max-width: 1200px) {
  .topbar { display: none; }
  .menu, .search { display: none; }
  .navbar__inner { height: 64px; justify-content: space-between; }
  .navbar__mobile { display: flex; gap: 4px; }
  .menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    padding: 8px var(--gutter) 24px; box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
    max-height: calc(100svh - 64px); overflow-y: auto;
  }
  .menu.is-open > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu.is-open .menu__catalog { background: none; height: auto; padding: 14px 0 !important; }
  .menu.is-open .menu__mobile-contacts { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; font-size: 16px; }
  .js-menu-toggle[aria-expanded="true"] .ico-open { display: none; }
  .js-menu-toggle[aria-expanded="true"] .ico-close { display: block; }
  .search.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    padding: 0 var(--gutter); height: 56px; box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
  }
  .catalog__grid { grid-template-columns: repeat(4, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__body { grid-template-columns: 1fr 1fr; }
  .about__panel { padding: 40px; }
  .stats__item { padding: 0 20px; }
  .help__inner { grid-template-columns: 1fr 420px; gap: 40px; }
  .faq__box { grid-template-columns: 300px 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .promo__media { max-width: 70%; }
}

@media (max-width: 900px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
  .about__body { grid-template-columns: 1fr; margin: 0 var(--gutter); }
  .about__photo::after { display: none; }
  .about__photo img { border-radius: var(--radius); max-height: 420px; }
  .help__inner { grid-template-columns: 1fr; }
  .help__info { padding: 0 40px; }
  .help__form { margin: 0 40px; }
  .faq__box { grid-template-columns: 1fr; }
  .faq__help { display: none; }
  .faq__btn-mobile { display: inline-flex; justify-self: start; }
  .promo__media { position: relative; width: 100%; max-width: none; height: 180px; clip-path: none; }
  .promo__media img { object-position: 65% 40%; }
}

/* ---------- мобайл 390 по макету ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { background: var(--white); }
  .h2 { font-size: 26px; line-height: 1.15; }
  .logo img { width: 102px; }
  .section { padding-top: 60px; }
  .section__head { margin-bottom: 28px; align-items: flex-start; }
  .section__tools .arrow { display: none; }
  .section__tools .link, .section__head > .link { margin-right: 0; font-size: 12px; padding-top: 6px; white-space: nowrap; }
  .js-menu-toggle { color: var(--blue); }

  .hero { height: auto; min-height: 450px; }
  .hero__slides { position: relative; min-height: 450px; }
  .hero__slide { position: absolute; }
  .hero__slide::after { background: rgba(8, 18, 30, .62); }
  .hero__content { padding-top: 100px; padding-bottom: 38px; display: flex; flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 32px; line-height: 34px; }
  .hero__text { margin-top: 14px; font-size: 14px; line-height: 21px; }
  .hero__line { display: none; }
  .hero .btn { flex: none; margin-top: 16px; height: 48px; padding: 0 20px; font-size: 15px; }
  .hero__nav { display: none; }

  .catalog { padding-top: 56px; background: var(--white); }
  .catalog__head { grid-template-columns: 1fr; margin-bottom: 20px; }
  .catalog__head .lead { padding-top: 30px; font-size: 14px; line-height: 20px; }
  .catalog__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card a { background: var(--bg); padding: 12px; min-height: 210px; }
  .cat-card__tag, .cat-card__plus { display: none; }
  .cat-card__img { width: 100%; height: 120px; margin: 0; box-shadow: none; }
  .cat-card__img img { width: 100%; height: 120px; object-fit: cover; }
  .cat-card__name { margin-top: 0; padding-top: 18px; font-size: 13px; line-height: 17px; text-transform: none; }

  .about { padding-top: 70px; background: var(--white); }
  .about .h2 { margin-bottom: 32px; }
  .about__photo img { aspect-ratio: 358 / 243; max-height: none; object-position: 50% 30%; }
  .about__panel { padding: 22px 0 36px; border: 0; display: flex; flex-direction: column; }
  .about__text { font-size: 14px; line-height: 21px; }
  .about__text p + p { margin-top: 21px; }
  .stats { order: 1; margin-top: 14px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats__item { padding: 0; border: 0; }
  .stats dt { font-size: 24px; }
  .stats dd { margin-top: 8px; font-size: 11px; line-height: 13px; color: var(--muted); }
  .about__btn { order: 2; margin-top: 40px; height: 48px; font-size: 15px; align-self: flex-start; }

  .services { background: var(--bg); padding-bottom: 40px; }
  .services__grid { gap: 12px; }
  .svc-card img { aspect-ratio: 173 / 120; }
  .svc-card__body { padding: 12px 10px 14px; gap: 6px; }
  .svc-card h3 { font-size: 13px; line-height: 17px; }
  .svc-card .link { font-size: 11px; gap: 4px; }
  .svc-card .link svg { width: 12px; height: 12px; }

  /* В мобильном макете блока предложений нет — скрываем, как в макете */
  .offers { display: none; }
  .slider__track { gap: 12px; }
  .offer-card { width: 280px; }
  .dots { justify-content: center; margin-top: 18px; }

  .promo-wrap { padding-top: 24px; }
  .promo { min-height: 0; background: var(--bg-2); border: 0; }
  .promo__media { height: 180px; }
  .promo__content { padding: 22px 18px 20px; }
  .promo__title { font-size: 26px; line-height: 30px; }
  .promo__title span { color: inherit; }
  .promo__sub { font-size: 14px; margin-top: 12px; }
  .promo__sub::before { display: none; }
  .promo__offer { margin-top: 12px; font-size: 14px; line-height: 20px; }
  .promo__offer b { color: inherit; font-weight: 400; }
  .promo__ico { display: none; }
  .promo__actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; }
  .promo__actions .btn { height: 48px; font-size: 13px; }
  .promo__term { border: 0; padding: 0; height: auto; font-size: 11px; }
  .promo__term svg { display: none; }
  .promo__term b { display: inline; margin-right: 6px; }

  .media { padding-top: 64px; }
  .media-card a, .media-card--wide a { width: 300px; height: 220px; padding: 12px; background: #0d0d0d; }
  .media-card a::after { display: none; }
  .media-card img { height: 160px; border-radius: 2px; }
  .media-card .chip, .media-card__play, .media-card__time, .media-card__cap small { display: none; }
  .media-card__cap { left: 12px; bottom: 18px; }
  .media-card__cap b { font-size: 15px; line-height: 19px; }
  .media .dots { display: none; }

  .faq { padding-top: 60px; }
  .faq .h2 { margin-bottom: 26px; }
  .faq__box { padding: 0; border: 0; gap: 14px; }
  .faq__list { gap: 14px; }
  .faq__item { background: #f4f4f4; border-color: #f4f4f4; }
  .faq__item[open] { border-color: #f4f4f4; }
  .faq__item summary { min-height: 56px; padding: 14px 14px; font: 500 14px/18px var(--font-body); justify-content: flex-start; gap: 6px; }
  .faq__sign { width: 9px; height: 9px; }
  .faq__sign::before, .faq__sign::after { height: 1.4px; }
  .faq__item p { padding: 0 14px 16px; margin-top: -4px; font-size: 12px; line-height: 18px; }
  .faq__more { display: none; }
  .faq__btn-mobile { height: 48px; padding: 0 30px; font-size: 15px; margin-top: 2px; }

  .help { padding-top: 40px; }
  .help__inner { padding: 36px var(--gutter) 40px; gap: 0; }
  .help__inner::before { inset: 0; border-radius: 0; }
  .help__info, .help__form { padding-left: 0; margin: 0; }
  .help__title { font-size: 20px; line-height: 24px; max-width: none; }
  .help__lead { margin-top: 18px; font-size: 14px; line-height: 21px; }
  .help__features { flex-direction: row; gap: 8px; margin: 20px 0; }
  .help__features li { flex: 1; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .help__ico { width: 32px; height: 32px; }
  .help__ico svg { width: 22px; height: 22px; }
  .help__features h3 { margin: 0; font-size: 12px; line-height: 20px; }
  .help__features p { display: none; }
  .help__form { padding: 18px 16px; gap: 14px; }
  .help__form input { height: 48px; font-size: 13px; padding: 0 14px; }
  .help__form textarea { height: 96px; font-size: 13px; padding: 14px; }
  .help__form .btn { margin-top: 0; height: 48px; font-size: 15px; }
  .help__agree svg { display: none; }
  .help__agree { font-size: 11px; line-height: 15px; }
  .help__agree a { text-decoration: none; }

  .news { padding-top: 60px; padding-bottom: 50px; }
  .news .slider__track { flex-direction: column; overflow: visible; gap: 14px; padding: 0 var(--gutter); }
  .news-card a { width: 100%; background: var(--bg); }
  .news-card:nth-child(n + 4) { display: none; }
  .news-card__img { height: 180px; }
  .news-card .chip, .news-card__text { display: none; }
  .news-card__body { padding: 14px 14px 56px; }
  .news-card time { font-size: 11px; }
  .news-card b { margin-top: 12px; font-size: 16px; line-height: 20px; }
  .news-card .link { font-size: 12px; padding-top: 10px; gap: 4px; }
  .news-card .link svg { width: 12px; height: 12px; }
  .news .dots { display: none; }

  .footer { background: var(--white); border-top-width: 2px; padding: 30px 0 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer__brand .logo img { width: 112px; }
  .footer__social, .footer__brand .footer__copy, .footer__extra { display: none; }
  .footer__col { margin-top: 26px; }
  .footer__col h2 { font-size: 20px; margin-bottom: 16px; }
  .footer__col li { font-size: 11px; line-height: 15px; }
  .footer__col li + li { margin-top: 10px; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__contacts li { font-size: 13px; line-height: 18px; }
  .footer__contacts li + li { margin-top: 0; }
  .footer__copy--mobile { display: block; grid-column: 1 / -1; font-size: 11px; line-height: 15px; margin-top: 30px; }
}

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