/* ==========================================================================
   Welle — стили шаблона
   Подключается Битриксом автоматически (файл template_styles.css в шаблоне)
   ========================================================================== */

:root {
    --blue:         #1E355F;
    --blue-dark:    #16294A;
    --orange:       #E2611F;
    --orange-dark:  #C9500F;
    --bg:           #F4F5F6;
    --white:        #FFFFFF;
    --text:         #1E355F;
    --muted:        #8FA0BE;   /* цвет ссылок в подвале */

    /* Макет нарисован на 1920. Контент = 1920 - 2*160 = 1600 px.
       На мониторах шире 1920 полоса контента остаётся 1600 и центрируется.
       Если хочешь, чтобы контент тянулся на всю ширину экрана пропорционально
       (на 2440 это даст 2033 px контента) — замени две строки ниже на:
           --container: none;
           --gutter:    8.33vw;
       Больше нигде ничего менять не надо: .container один на все блоки сайта. */
    --container:    1920px;
    --gutter:       160px;

    --header-h:     108px;     /* высота белой части шапки */
    --wave-h:       24px;      /* высота волны */

    --font-main:    'Golos Text', 'Museo Sans Cyrl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --page-title: clamp(28px, 3.1vw, 48px);  /* заголовок внутренних страниц */
    --page-text:  17px;                      /* основной текст внутренних страниц */

    --ease:         cubic-bezier(.22, .61, .36, 1);

    --shadow:       0 2px 8px rgba(30, 53, 95, .08);
    --shadow-hover: 0 6px 16px rgba(30, 53, 95, .14);
}

/* ---------- База ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body.page {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; }

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; }
h1 { margin: 0 0 24px; font-size: var(--page-title); line-height: 1.1; letter-spacing: -.01em; color: var(--blue); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p  { margin: 0 0 1em; }

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

.main { min-height: 40vh; padding-bottom: 80px; }

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 12px 20px;
    background: var(--orange);
    color: #fff;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--primary:active { transform: translateY(1px); }

/* ==========================================================================
   ШАПКА
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* drop-shadow повторяет контур волны, в отличие от box-shadow */
    filter: drop-shadow(0 10px 16px rgba(30, 53, 95, .10));
}

.header__bar { background: var(--white); }

.header__inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 32px;
    height: var(--header-h);
}

/* ---------- ВОЛНЫ ----------
   Форма задаётся не здесь, а в <svg> внутри header.php / footer.php.
   Формула пути: M0,16 Q{шаг/2},0 {шаг},16 T{2*шаг},16 T{3*шаг},16 ...
   При viewBox="0 0 1920 32" и шаге 320 получается 3 гребня и 3 впадины.
   Хочешь 4 волны — шаг 240 и восемь координат T. Хочешь глубже —
   меняй контрольную точку Q (0 → -8) и высоту --wave-h ниже.
   preserveAspectRatio="none" растягивает волну на любую ширину экрана,
   поэтому число вершин не меняется ни на 1920, ни на 2440. */

/* Волна свисает ниже шапки и накрывает начало контента */
.header__wave {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--wave-h);
    line-height: 0;
    pointer-events: none;
}
.header__wave svg { display: block; width: 100%; height: 100%; }

.logo { display: inline-flex; flex: 0 0 auto; }
.logo__img { display: block; height: 72px; width: auto; }

/* ---------- Верхнее меню ---------- */

/* flex: 0 0 auto — меню НЕ сжимается.
   Раньше стояло flex: 1 1 auto, из-за чего при нехватке места пункты
   наезжали на почту с телефоном, а стрелочки схлопывались в ноль ширины. */
.nav { flex: 0 0 auto; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item {
    position: relative;
    flex: 0 0 auto;   /* пункт не ужимается */
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--blue);
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.nav__link:hover,
.nav__item.is-active > .nav__link { color: var(--orange); }

/* Стрелка: фиксированный размер и запрет на сжатие — иначе flex
   выжимал её до нулевой ширины и она просто исчезала */
.nav__chev {
    display: inline-flex;
    align-items: center;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    color: var(--blue);
    transition: transform .2s var(--ease);
}
.nav__chev svg {
    display: block;
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
}
.nav__link:hover .nav__chev { color: var(--orange); }
.nav__item--has-sub:hover .nav__chev { transform: rotate(180deg); }

/* Выпадающее подменю */
.nav__drop {
    position: absolute;
    top: 100%;
    left: -20px;
    z-index: 10;
    min-width: 300px;
    padding: 18px 8px;
    margin-top: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(30, 53, 95, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
/* мостик, чтобы курсор не «проваливался» в зазор */
.nav__drop::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 18px;
}
.nav__item--has-sub:hover .nav__drop,
.nav__item--has-sub:focus-within .nav__drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__drop--wide { min-width: 620px; }
.nav__drop--wide .nav__droplist { columns: 2; column-gap: 20px; }

.nav__droplist { margin: 0; padding: 0; list-style: none; }
.nav__dropitem { break-inside: avoid; }

.nav__droplink {
    display: block;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--blue);
    border-radius: 10px;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav__droplink:hover { background: var(--bg); color: var(--orange); }

/* ---------- Контакты в шапке ---------- */

.header__contacts {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 0 0 auto;
    margin-left: auto;   /* прижимает контакты и кнопку к правому краю */
}

.contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--blue);
    white-space: nowrap;
}
.contact--top { align-items: flex-start; }
.contact--top .contact__ico { margin-top: 3px; }
.contact__ico { display: inline-flex; flex: 0 0 auto; }
.contact__val a { transition: color .2s var(--ease); }
.contact__val a:hover { color: var(--orange); }
.contact--light { color: #fff; font-weight: 400; white-space: normal; }

.header__cta { flex: 0 0 auto; }

/* ---------- Бургер ---------- */

.burger {
    display: none;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    -webkit-tap-highlight-color: rgba(226, 97, 31, .2);
    touch-action: manipulation;
}
.burger__line {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: var(--orange);
    pointer-events: none;   /* клик всегда достаётся самой кнопке */
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger.is-open .burger__line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */

.mmenu { position: fixed; inset: 0; z-index: 200; }
.mmenu[hidden] { display: none; }

/* Страховка: пока меню не открыто, оно не ловит клики.
   Если атрибут hidden по какой-то причине слетит, невидимая панель
   на весь экран перестанет блокировать кнопки под собой. */
.mmenu:not(.is-open) { pointer-events: none; }
.mmenu.is-open       { pointer-events: auto; }

.mmenu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 53, 95, .45);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.mmenu__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    box-shadow: -20px 0 50px rgba(30, 53, 95, .18);
}

.mmenu.is-open .mmenu__overlay { opacity: 1; }
.mmenu.is-open .mmenu__panel  { transform: translateX(0); }

.mmenu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #E8EAEE;
    flex: 0 0 auto;
}
.mmenu__close {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: none; color: var(--orange); cursor: pointer;
}
.mmenu__body { flex: 1 1 auto; overflow-y: auto; padding: 12px 20px 32px; }

.mnav__list, .mnav__sub { margin: 0; padding: 0; list-style: none; }

.mnav__item + .mnav__item { border-top: 1px solid #EEF0F4; }

.mnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: var(--blue);
    cursor: pointer;
}
.mnav__chev { display: inline-flex; color: var(--orange); transition: transform .25s var(--ease); }
.mnav__link[aria-expanded="true"] .mnav__chev { transform: rotate(180deg); }

.mnav__sub { padding: 0 0 14px 2px; }
.mnav__sub[hidden] { display: none; }
.mnav__sublink {
    display: block;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.35;
    color: #5A6E90;
}
.mnav__sublink--all { color: var(--orange); font-weight: 600; }
.mnav__subitem.is-active > .mnav__sublink { color: var(--orange); }

.mmenu__contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 26px 0;
}
.mmenu__cta { width: 100%; }

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */

.crumbs { padding: 34px 0 26px; }
.crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0; padding: 0;
    list-style: none;
    font-size: 14px;
}
.crumbs__link { color: var(--orange); }
.crumbs__link:hover { text-decoration: underline; }
.crumbs__current { color: var(--blue); }
.crumbs__item + .crumbs__item { display: flex; align-items: center; gap: 10px; }
.crumbs__item + .crumbs__item::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */

.footer {
    position: relative;
    margin-top: auto;
    padding: 70px 0 60px;
    background: var(--blue);
    color: #fff;
}

.footer__wave {
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: var(--wave-h);
    line-height: 0;
    pointer-events: none;
}
.footer__wave svg { display: block; width: 100%; height: 100%; }

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

.logo--footer { margin-bottom: 26px; }
.logo--footer img { height: 56px; width: auto; }

.footer__contacts { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer__contacts .contact__val a:hover { color: #fff; text-decoration: underline; }

/* Колонки меню */
.fnav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px 30px;
    align-items: start;
}
.fnav__col--wide { grid-column: span 2; }
.fnav__col--wide .fnav__list { columns: 2; column-gap: 30px; }

.fnav__title {
    display: block;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    transition: color .2s var(--ease);
}
.fnav__title:hover { color: var(--orange); }
.fnav__title--solo { margin: 0 0 20px; }

.fnav__list { margin: 0; padding: 0; list-style: none; }
.fnav__item { break-inside: avoid; margin-bottom: 14px; }

.fnav__link {
    font-size: 15px;
    line-height: 1.35;
    color: var(--muted);
    transition: color .2s var(--ease);
}
.fnav__link:hover { color: #fff; }

.fnav__extra { margin-top: 36px; }

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 560px;
}
/* карта упирается в подвал — снимаем нижний отступ .main только на этой странице */
.main:has(.contacts) { padding-bottom: 0; }

.contacts__left  { padding: 0 60px 80px calc(var(--gutter) + max(0px, 100% - var(--container) / 2)); }
.contacts__left h1 { margin-bottom: 48px; }

.contacts__list { display: flex; flex-direction: column; gap: 26px; }
.contacts__row  { display: flex; align-items: flex-start; gap: 20px; font-size: 22px; line-height: 1.35; }
.contacts__row p { margin: 0; }
.contacts__ico  { flex: 0 0 34px; margin-top: 2px; }
.contacts__row a { transition: color .2s var(--ease); }
.contacts__row a:hover { color: var(--orange); }

.contacts__map { position: relative; min-height: 560px; }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1023px) {
    .contacts { grid-template-columns: 1fr; min-height: 0; }
    .contacts__left { padding: 0 var(--gutter) 40px; }
    .contacts__map  { min-height: 380px; }
    .contacts__row  { font-size: 18px; }
}

/* ==========================================================================
   СЕКЦИИ ГЛАВНОЙ
   ========================================================================== */

.section { padding: 70px 0; }
.section__title { margin: 0 0 40px; }

/* ---------- Партнёры ---------- */
.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.partners__item {
    display: flex; align-items: center; justify-content: center;
    height: 130px;
    background: #fff; border-radius: 16px;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.partners__item img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s var(--ease), opacity .2s var(--ease); }
a.partners__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
a.partners__item:hover img { filter: none; opacity: 1; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 30px; }
.news__card { display: flex; flex-direction: column; }
.news__media { position: relative; display: block; margin-bottom: 22px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.news__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news__media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); }
.news__date { position: absolute; left: 22px; bottom: 16px; z-index: 1; color: #fff; font-size: 15px; }
.news__title { font-size: 22px; margin: 0 0 12px; }
.news__title a:hover { color: var(--orange); }
.news__text { font-size: 16px; color: #4A5C7A; margin-bottom: 18px; }
.news__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--orange); font-weight: 500; }
.news__more:hover { color: var(--orange-dark); }

@media (max-width: 1299px) {
    .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .section { padding: 48px 0; }
    .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .partners__item { height: 100px; padding: 16px; }
    .news { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Промо-полоса с картинкой ---------- */
.promo {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 370px;
    padding: 60px 0;
    background: var(--blue) center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}
/* Затемнение слева направо. Правка длины шлейфа — в процентах ниже:
   45% — где градиент ещё полностью чёрный, 85% — где полностью прозрачен. */
.promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(10, 14, 22, .92) 0%,
        rgba(10, 14, 22, .88) 45%,
        rgba(10, 14, 22, 0)   85%);
}
.promo__inner { position: relative; z-index: 1; }
.promo__text {
    max-width: 720px;
    margin: 0;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 1023px) {
    .promo { min-height: 300px; }
    /* на узких текст занимает всю ширину — затемняем равномерно */
    .promo::before { background: rgba(10, 14, 22, .82); }
    .promo__text { max-width: none; font-size: 19px; }
}
@media (max-width: 767px) {
    .promo { min-height: 0; padding: 44px 0; }
    .promo__text { font-size: 17px; }
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: 90px 0;
    background: #14181E center / cover no-repeat;
    color: #fff;
}
/* Тот же градиент, что в .promo — затемнение слева */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(12, 15, 20, .94) 0%,
        rgba(12, 15, 20, .82) 38%,
        rgba(12, 15, 20, 0)   78%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__title {
    margin: 0 0 26px;
    max-width: 640px;
    font-size: clamp(38px, 4.4vw, 70px);
    line-height: 1.08;
    color: #fff;
}
.hero__sub {
    max-width: 520px;
    margin: 0 0 34px;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

/* ==========================================================================
   О КОМПАНИИ
   ========================================================================== */

.about { padding: 90px 0 80px; }

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;   /* было 70px */
}

/* Заголовок и курсивная подпись в одну строку, разделены линией */
.about__head {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
}
.about__title { margin: 0; white-space: nowrap; }
.about__lead {
    margin: 0;
    padding-left: 28px;
    border-left: 2px solid #C6CEDC;
    font-size: 18px;
    font-style: italic;
    line-height: 1.45;
    color: var(--blue);
}

.about__text { max-width: 620px; font-size: 16px; line-height: 1.65;  }
.about__text p:last-child { margin-bottom: 0; }
/* секция должна подрезать вылет картинки, иначе появится горизонтальный скролл */
.about {
    overflow-x: clip;
}

.about__grid {
    align-items: stretch;   /* колонки одной высоты */
}

.about__media {
    position: relative;
    align-self: stretch;    /* высота = высота левой колонки */
    min-height: 0;          /* не участвует в расчёте высоты строки грида */
    margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container)) / 2)));
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}
.about__media img {
    position: absolute;     /* не растягивает контейнер, а заполняет его */
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   /* центрируем, лишнее обрезается */
}

/* ---------- Три карточки ---------- */

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

.feat {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 440px;
    padding: 34px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--blue) center / cover no-repeat;
    color: #fff;
}
/* Затемнение снизу вверх — чтобы текст читался поверх фото */
.feat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10, 14, 22, .94) 0%,
        rgba(10, 14, 22, .88) 42%,
        rgba(10, 14, 22, .35) 72%,
        rgba(10, 14, 22, .12) 100%);
}
.feat__body { position: relative; z-index: 1; }
.feat__title { margin: 0 0 14px; font-size: 22px; font-weight: 600; color: #fff; }
.feat__text  { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* ==========================================================================
   ПРЕИМУЩЕСТВА 01 / 02 / 03
   ========================================================================== */

.steps {
    position: relative;
    padding: 70px 0;
    background: #14181E center / cover no-repeat;
    color: #fff;
}
.steps::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 15, 20, .74);
}
.steps__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border: 1.5px solid var(--orange);
    border-radius: 50%;
    color: var(--orange);
    font-size: 17px;
    font-weight: 500;
}
.step__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
}

@media (max-width: 1023px) {
    .steps { padding: 54px 0; }
    .steps__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Каталог ---------- */
.cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.cat__card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 28px;
    background: #fff;
    border-radius: 14px;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat__card:hover       { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat__title { margin: 0 0 24px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.cat__title a:hover { color: var(--orange); }
.cat__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    border: 1px solid var(--orange);
    border-radius: 999px;
    color: var(--orange);
    font-size: 14px;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cat__more:hover { background: var(--orange); color: #fff; }

@media (max-width: 1299px) { .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .cat { grid-template-columns: 1fr; gap: 16px; }
                             .cat__card { min-height: 0; padding: 22px; } }

.hero,
.steps  { background-image: url("images/hero.jpg"); }
.promo  { background-image: url("images/promo.jpg"); }

.logo--footer img {          /* ← ваш класс */
    width: 190px;            /* было, вероятно, около 150px */
    height: auto;
}

@media (max-width: 767px) {
    .logo--footer img { width: 160px; }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

/* Меню + контакты + кнопка требуют ~1600 px. Отступы по краям режем раньше,
   чем начинаем что-то прятать — так дизайн держится дольше. */

@media (max-width: 1919px) {
    :root { --gutter: 80px; }
}

@media (max-width: 1700px) {
    :root { --gutter: 48px; }
    .nav__list { gap: 18px; }
    .nav__link { font-size: 17px; }
    .header__inner { gap: 24px; }
}

@media (max-width: 1560px) {
    /* Контакты не влезают рядом с меню — прячем их, они есть в подвале */
    .header__contacts { display: none; }
    .header__cta { margin-left: auto; }
}

@media (max-width: 1299px) {
    :root { --header-h: 92px; }

    .nav { display: none; }
    .burger { display: inline-flex; }

    .header__inner { gap: 16px; }
    .header__cta { margin-left: auto; height: 46px; padding: 0 28px; }
    .logo__img { height: 56px; }

    .footer__inner { grid-template-columns: 1fr; gap: 44px; }
    .fnav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
    .fnav__col--wide .fnav__list { columns: 2; }

    .hero { min-height: 520px; padding: 70px 0; }
    .about { padding: 70px 0 60px; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__media { margin-right: 0; border-radius: 4px; }
    .feats { grid-template-columns: 1fr; gap: 22px; }
    .feat { min-height: 320px; padding: 28px; }
}

@media (max-width: 767px) {
    :root { --gutter: 20px; --header-h: 78px; }

    .main { padding-bottom: 56px; }

    .logo__img { height: 40px; }
    .header__cta { height: 42px; padding: 0 22px; font-size: 15px; }
    .burger { width: 40px; }
    .burger__line { width: 26px; }

    .footer { padding: 54px 0 44px; }
    .fnav { gap: 30px 18px; }
    .fnav__col--wide { grid-column: span 2; }
    .fnav__title { margin-bottom: 16px; font-size: 15px; }
    .fnav__link { font-size: 14px; }
    .fnav__item { margin-bottom: 12px; }
    .hero { min-height: 460px; padding: 54px 0; }
    /* текст занимает всю ширину — градиент делаем равномерным */
    .hero::before { background: rgba(12, 15, 20, .74); }
    .hero__sub { font-size: 16px; margin-bottom: 28px; }
    .hero__sub br { display: none; }

    .about { padding: 48px 0 44px; }
    .about__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
    .about__lead { padding: 0; border-left: 0; font-size: 16px; }
    .about__lead br { display: none; }
    .about__text { font-size: 15px; }
    .feat { min-height: 280px; padding: 24px; }
    .feat__title { font-size: 20px; }
}

@media (max-width: 419px) {
    .header__cta { display: none; }   /* на очень узких оставляем только бургер */
    .fnav__col--wide .fnav__list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.page-text p { max-width: 760px; padding-left: 28px; font-size: var(--page-text); line-height: 1.6; margin: 0 0 18px; }
.page-text--wide p { max-width: none; }
@media (max-width: 767px) { .page-text p { padding-left: 0; } }

.main.has-page-bg {
    position: relative;
    background: var(--page-bg) center bottom / cover no-repeat;
}
.main.has-page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,.92) 0%,
        rgba(255,255,255,.75) 55%,
        rgba(255,255,255,.35) 100%);
    pointer-events: none;
}
.main.has-page-bg > * {
    position: relative;
}

/* цитата на главной (блок quote) */
.home-quote { padding: 80px 0; }
.home-quote__text { max-width: 600px; }
@media (max-width: 1299px) { .home-quote { padding: 60px 0; } }
@media (max-width: 767px)  { .home-quote { padding: 44px 0; } }