/* ============================================
 * LRCMS v3.0 — Template: akbars
 * Светлая корпоративная тема в стилистике сайта
 * Судостроительной Корпорации «Ак Барс» (sk-akbars.ru)
 * Собственный CSS, без Bootstrap.
 * Дизайн-система: CSS Custom Properties
 * ============================================ */

/* ============================================
 * 1. CSS Custom Properties (дизайн-система)
 * ============================================ */
:root {
    /* --- Палитра (фирменная зелёная гамма) --- */
    --ak-green: #0e7b38;        /* основной тёмно-зелёный */
    --ak-green-bright: #27ab0b; /* яркий зелёный (акцент, ховеры) */
    --ak-green-dark: #206b2e;   /* тёмный зелёный (активные состояния) */
    --ak-green-soft: #eaf5ee;   /* светло-зелёная подложка */
    --ak-bg: #f7f8f8;           /* фон страницы */
    --ak-white: #ffffff;        /* белый */
    --ak-text: #4a4a4a;         /* основной текст */
    --ak-text-dark: #333333;    /* заголовки карточек */
    --ak-muted: #9b9b9b;        /* приглушённый серый */
    --ak-border: #e3e3e3;       /* лёгкие границы */
    --ak-border-dark: #cbcbcb;  /* границы полей */
    --ak-link: #417505;         /* ссылки в тексте */

    /* --- Типографика --- */
    --font: 'Segoe UI', 'Segoe UI Regular', 'Segoe UI Semibold', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* --- Размеры --- */
    /* Единая ширина контейнера для всех страниц шаблона,
       чтобы при переходах между разделами не «прыгала» сетка. */
    --content-width: 1280px;
    --header-height: 64px;

    /* --- Радиусы: скругления вместо скошенных углов --- */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --radius-round: 50%;

    /* --- Тени --- */
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-drop: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============================================
 * 2. Reset & Base
 * ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

ul,
ol {
    list-style: none;
}

/* ============================================
 * 3. Utility
 * ============================================ */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.main-content {
    flex: 1;
}

/* ============================================
 * 4. Доступность: skip-link, focus-visible
 * ============================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    background: var(--ak-green);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ak-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
 * 5. Top Bar / оболочка навигации
 * --------------------------------------------
 * Визуальный прототип — блок #navbarSupportedContent
 * с сайта sk-akbars.ru. Отличия:
 *   • скругления (карточка навбара, пункты, меню)
 *   • клик-логика раскрытия вместо hover
 * ============================================ */
.topbar {
    position: relative;
    z-index: 200;
    background: var(--ak-bg);
    padding: 0;
    font-size: 13px;
    color: var(--ak-text);
}

/* Белая полоса навбара на всю ширину viewport (без .container).
   Скруглены только нижние углы, чтобы переход к контенту был мягким. */
.navbar-shell {
    position: relative;
    background: var(--ak-white);
    border-bottom: 1px solid var(--ak-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 14px 24px 0;
}

/* Банеры header_top размещаются внутри .navbar-tools (перед «Контактами»).
   Размеры и высоту задаёт css/banners.css. */

/* --- Бренд: логотип + название --- */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbar-brand__img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--ak-white);
}

.navbar-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 1 300px;
    min-width: 0;
}

.navbar-title {
    color: var(--ak-green);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.navbar-badge {
    display: inline-block;
    max-width: 100%;
    padding: 3px 12px;
    background: var(--ak-green);
    color: #fff;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

/* Правый блок навбара: кнопки + гамбургер */
.navbar-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.contacts-btn {
    background: var(--ak-green-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ak-green);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 38px;
    padding: 0 18px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contacts-btn:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
    color: #fff;
}

.sitemap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ak-border);
    border-radius: var(--radius-sm);
    color: var(--ak-text);
    background: var(--ak-white);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sitemap-btn:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
    color: #fff;
}


/* ============================================
 * 6. Header / Navigation
 * --------------------------------------------
 * Разметка повторяет #navbarSupportedContent
 * с sk-akbars.ru: бренд + меню вторым рядом
 * под зелёной линией. Логика — клик, не hover.
 * ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ak-bg);
    border-bottom: 0;
    padding: 10px 0 12px;
}

/* --- Навбар: два ряда (бренд + меню) --- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Второй ряд: пункты меню под брендом (зелёная линия, как в оригинале) */
.navbar-collapse {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    display: block;
    border-top: 3px solid var(--ak-green);
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 8px 0 10px;
    list-style: none;
}

/* --- Пункты меню --- */
.navbar-nav > li {
    position: relative;
    display: block;
}

.navbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ak-text);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: var(--ak-green);
    background: var(--ak-green-soft);
}

/* Активный пункт (подсветка текущей страницы из main.js) */
.navbar-nav > li > a.is-active {
    color: #fff;
    background: var(--ak-green);
}

/* Стрелка «раскрыть» — поворачивается при клике */
.navbar-nav li.has-children > a::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
}

.navbar-nav li.has-children.is-open > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* --- Выпадающее меню (раскрытие по клику, не по hover) --- */
.navbar-nav .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 400;
    min-width: 270px;
    margin: 0;
    padding: 8px;
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-drop);
}

.navbar-nav li.is-open > .submenu {
    display: block;
}

/* --- Десктоп: подменю открывается по наведению, клик по ссылке ведёт на страницу --- */
@media (min-width: 993px) {
    .navbar-nav > li.has-children:hover > .submenu,
    .navbar-nav .submenu li.has-children:hover > .submenu {
        display: block;
    }

    .navbar-nav > li.has-children:hover > a::after {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    .navbar-nav .submenu li.has-children:hover > a::after {
        transform: rotate(45deg);
    }

    /* «Мостик» над подменю, чтобы курсор не терял hover на промежутке */
    .navbar-nav > li.has-children > .submenu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }

    .navbar-nav .submenu li.has-children > .submenu::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -8px;
        width: 8px;
    }
}

.navbar-nav .submenu li {
    position: relative;
    display: block;
    width: 100%;
}

.navbar-nav .submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ak-text);
    border-radius: var(--radius-sm);
}

.navbar-nav .submenu a:hover {
    background: var(--ak-green-soft);
    color: var(--ak-green);
}

.navbar-nav .submenu a.is-active {
    background: var(--ak-green-soft);
    color: var(--ak-green);
    font-weight: 600;
}

/* Вложенные уровни: раскрываются вправо с отступом */
.navbar-nav .submenu .submenu {
    top: -9px;
    left: calc(100% + 8px);
}

.navbar-nav .submenu li.has-children > a::after {
    transform: rotate(-45deg);
    margin-top: 0;
}

.navbar-nav .submenu li.has-children.is-open > a::after {
    transform: rotate(45deg);
}

/* --- Кнопка-гамбургер --- */
.navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--ak-green-soft);
    border: 1px solid var(--ak-green);
    border-radius: var(--radius-sm);
    color: var(--ak-green);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-toggler:hover {
    background: var(--ak-green);
    color: #fff;
}

.navbar-toggler-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
}

.navbar-toggler-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* ============================================
 * 7. Buttons
 * ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 40px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-primary {
    background: var(--ak-green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--ak-green-bright);
    color: #fff;
}

.btn-outline {
    background: var(--ak-white);
    color: var(--ak-green);
    border: 1px solid var(--ak-green);
}

.btn-outline:hover {
    background: var(--ak-green);
    color: #fff;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* ============================================
 * 8. Section headers
 * ============================================ */
.section {
    padding: 64px 0 72px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header--left {
    text-align: left;
}

.section-header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section-header h2 {
    color: var(--ak-green);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

hr.title-line {
    width: 100px;
    height: 3px;
    background: var(--ak-green-bright);
    border: 0;
    margin: 0 0 24px;
}

.section-header--left hr.title-line {
    margin-bottom: 0;
}

.link-more {
    color: var(--ak-green);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--ak-green-bright);
}

.link-more:hover {
    color: var(--ak-green-bright);
}

/* ============================================
 * 9. Hero
 * ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ak-green-dark);
}

/* --- Hero-карусель (главная) --- */
.hero-slider {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 52, 27, 0.72) 0%, rgba(14, 123, 56, 0.42) 62%, rgba(14, 123, 56, 0.28) 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 1;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 660px;
    /* Горизонтальные отступы не дают тексту прилипать к краям экрана */
    padding: 70px 24px;
}

.hero-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 2.2rem);
    font-weight: 300;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-desc {
    color: #e9f3ec;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 30px;
}

/* --- Стрелки слайдера --- */
.hero-arrow {
    position: absolute;
    bottom: 42px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-arrow:hover {
    background: var(--ak-green-bright);
    border-color: var(--ak-green-bright);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    left: 74px;
}

/* --- Точки слайдера --- */
.hero-dots {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.is-active {
    background: var(--ak-green-bright);
    transform: scale(1.25);
}

/* --- Статичный hero (страницы/статьи) ---
   Высота адаптируется к экрану: на больших мониторах блок
   растягивается до максимума 730px, на низких — уменьшается. */
.hero--static {
    min-height: 320px;
    height: clamp(320px, 72vh, 730px);
    max-height: 730px;
    display: flex;
    align-items: center;
}

.hero-static-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-static-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 52, 27, 0.78) 0%, rgba(14, 123, 56, 0.55) 70%, rgba(14, 123, 56, 0.4) 100%);
}

/* Декоративный фон hero, когда OG-изображение отсутствует */
.hero-bg {
    background-color: var(--ak-green-dark);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(196, 222, 186, 0.22) 0%, rgba(196, 222, 186, 0) 45%),
        radial-gradient(circle at 85% 80%, rgba(39, 171, 11, 0.5) 0%, rgba(39, 171, 11, 0) 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 14px),
        linear-gradient(135deg, var(--ak-green-dark) 0%, var(--ak-green) 60%, var(--ak-green-bright) 100%);
    background-size: cover;
    background-position: center;
}

.hero-static-inner {
    position: relative;
    z-index: 1;
    /* Горизонтальные отступы не дают тексту прилипать к краям экрана */
    padding: 64px 24px;
    max-width: 720px;
}

/* --- Скруглённая панель «Направления деятельности» --- */
.hero-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 300px;
    background: var(--ak-green);
    color: #fff;
    padding: 46px 34px 34px 40px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-panel h4 {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero-panel ul li {
    line-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel a {
    color: #fff;
    font-size: 19px;
    font-weight: 300;
    box-shadow: inset 0 0 0 transparent;
    transition: box-shadow 0.25s ease, color 0.25s ease;
}

.hero-panel a:hover {
    box-shadow: inset 0 -2px 0 #c4deba;
    color: #fff;
}

/* ============================================
 * 10. Карусель «Направления деятельности»
 * ============================================ */
.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 18px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 6px 2px 22px;
}

.direction-card {
    flex: 0 0 240px;
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    padding: 30px 18px 26px;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.direction-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid var(--ak-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.direction-card__icon::after {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--ak-green);
    transform: rotate(45deg);
    transition: background 0.25s ease;
}

.direction-card__title {
    color: var(--ak-text-dark);
    font-size: 17px;
    font-weight: 400;
}

.direction-card:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
}

.direction-card:hover .direction-card__title {
    color: #fff;
}

.direction-card:hover .direction-card__icon {
    border-color: #fff;
}

.direction-card:hover .direction-card__icon::after {
    background: #fff;
}

.carousel-arrow {
    position: absolute;
    top: -58px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ak-border-dark);
    background: var(--ak-white);
    color: var(--ak-green);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.carousel-arrow:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
    color: #fff;
}

.carousel-arrow--prev {
    right: 48px;
}

.carousel-arrow--next {
    right: 0;
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--ak-white);
    border-color: var(--ak-border-dark);
    color: var(--ak-muted);
}

/* ============================================
 * 11. Продукция (сетка с иконками)
 * ============================================ */
.products-section {
    background: var(--ak-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    min-height: 210px;
    background: var(--ak-bg);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card__mono {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid var(--ak-green);
    background: var(--ak-white);
    color: var(--ak-green);
    font-size: 46px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 74px;
    background: rgba(14, 123, 56, 0.88);
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 14px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--ak-green);
}

.product-card:hover .product-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .product-card__mono {
    background: var(--ak-green);
    border-color: var(--ak-green);
    color: #fff;
}

/* ============================================
 * 12. Преимущества (крупные цифры)
 * ============================================ */
.advantages-section {
    background: var(--ak-white);
    padding: 70px 0 74px;
    margin-top: -1px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.advantage__num {
    font-size: 60px;
    font-weight: 300;
    line-height: 1;
    color: var(--ak-green-bright);
}

.advantage__num span {
    font-size: 30px;
    vertical-align: super;
    margin-left: 4px;
}

.advantage__title {
    font-size: 20px;
    color: var(--ak-green);
    border-left: 2px solid var(--ak-green-bright);
    padding-left: 12px;
    margin: 16px 0 10px;
}

.advantage__text {
    font-size: 14px;
    color: var(--ak-muted);
    line-height: 1.7;
}

/* ============================================
 * 13. Новости (карточки)
 * ============================================ */
.news-section {
    background: var(--ak-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.news-card__media {
    overflow: hidden;
    display: block;
    background: var(--ak-green-soft);
    border-radius: var(--radius) var(--radius) 0 0;
}

.news-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.06);
}

.news-card__body {
    padding: 18px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    font-size: 13px;
    color: var(--ak-muted);
    margin-bottom: 10px;
}

.news-card__title {
    font-size: 19px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 10px;
}

.news-card__title a {
    color: var(--ak-text-dark);
    box-shadow: inset 0 -2px 0 var(--ak-green-soft);
}

.news-card__annotation {
    font-size: 14px;
    color: var(--ak-text);
    line-height: 1.65;
}

/* Инверсия карточки в зелёный при наведении (приём Ак Барс) */
.news-card:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
}

.news-card:hover .news-card__title a {
    color: #fff;
    box-shadow: inset 0 -2px 0 #c4deba;
    text-decoration: underline;
}

.news-card:hover .news-card__annotation,
.news-card:hover .news-card__date {
    color: #fff;
}

/* Закреплённая (важная) новость */
.news-card--pinned {
    border-color: var(--ak-green-dark, #1a6b3c);
}

.news-card__media {
    position: relative;
}

.news-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    background: var(--ak-green-dark, #1a6b3c);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

/* ============================================
 * 14. Блок «Новости и мероприятия» на главной
 *     (по образцу блока news сайта sk-akbars.ru)
 * ============================================ */
.news-home .section-header {
    margin-bottom: 28px;
}

.news-home__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}

/* Переключатель типов публикаций: рубрики без годов и месяцев */
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ak-border);
}

.news-tabs__item {
    padding: 8px 20px;
    background: var(--ak-white);
    border: 1px solid var(--ak-border-dark);
    border-radius: var(--radius-pill);
    color: var(--ak-text);
    font-size: 14px;
    font-family: var(--font);
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-tabs__item:hover {
    border-color: var(--ak-green);
    color: var(--ak-green);
}

.news-tabs__item.is-active {
    background: var(--ak-green);
    border-color: var(--ak-green);
    color: #fff;
}

/* Пять карточек в ряд, как в оригинальном блоке news */
.news-feed {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.news-feed__item {
    display: flex;
    min-width: 0;
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.news-feed__item.is-hidden {
    display: none;
}

.news-feed__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    color: inherit;
}

.news-feed__media {
    position: relative;
    display: flex;
    overflow: hidden;
    background: var(--ak-green-soft);
}

.news-feed__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-feed__item:hover .news-feed__media img {
    transform: scale(1.06);
}

.news-feed__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    font-size: 44px;
    line-height: 1;
    background: var(--ak-green-soft);
    color: var(--ak-green-dark);
}

/* Ярлык типа публикации / статуса соревнования */
.news-feed__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 4px 10px;
    overflow: hidden;
    background: var(--ak-green-dark);
    border-radius: 2px;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-feed__badge--news {
    background: var(--ak-green);
}

.news-feed__badge--pinned {
    background: var(--ak-green-dark);
}

.news-feed__badge--competition {
    background: var(--ak-green);
}

.news-feed__badge--upcoming {
    background: #0d6efd;
}

.news-feed__badge--ongoing {
    background: #198754;
}

.news-feed__badge--finished {
    background: #6c757d;
}

.news-feed__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 14px 16px 16px;
}

.news-feed__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ak-text-dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-feed__annotation {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--ak-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-feed__venue {
    margin-top: 8px;
    overflow: hidden;
    color: var(--ak-muted);
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-feed__date {
    margin-top: auto;
    padding-top: 10px;
    color: var(--ak-muted);
    font-size: 13px;
}

/* Крупная карточка: акцентный заголовок и аннотация */
.news-feed__item--feature .news-feed__body {
    padding: 16px 18px 18px;
}

.news-feed__item--feature .news-feed__title {
    font-size: 19px;
    line-height: 1.35;
    -webkit-line-clamp: 4;
}

.news-feed__item--feature .news-feed__annotation {
    -webkit-line-clamp: 3;
}

/* Инверсия карточки в фирменный зелёный при наведении */
.news-feed__item:hover {
    background: var(--ak-green);
    border-color: var(--ak-green);
    box-shadow: var(--shadow-drop);
    transform: translateY(-2px);
}

.news-feed__item:hover .news-feed__title,
.news-feed__item:hover .news-feed__annotation,
.news-feed__item:hover .news-feed__venue,
.news-feed__item:hover .news-feed__date {
    color: #fff;
}

.news-feed__item--no-media {
    background: var(--ak-green-soft);
}

/* ============================================
 * 15. Пагинация
 * ============================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--ak-border);
    flex-wrap: wrap;
}

.pagination__item {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius-sm);
    color: var(--ak-text);
    font-size: 14px;
    transition: outline 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pagination__item:hover {
    outline: 2px solid var(--ak-green);
    outline-offset: -2px;
    color: var(--ak-green);
}

.pagination__item.active {
    background: var(--ak-green-dark);
    color: #fff;
    outline: 0;
}

.pagination__label {
    margin-left: 8px;
    font-size: 14px;
    color: var(--ak-muted);
}

/* ============================================
 * 16. Внутренние страницы / типографика
 * ============================================ */
.page-section {
    padding: 44px 0 72px;
}

h1 {
    font-size: 26px;
    color: var(--ak-text-dark);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 22px;
    line-height: 1.3;
}

h2 {
    font-size: 24px;
    color: var(--ak-green);
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 14px;
}

h3 {
    font-size: 19px;
    color: var(--ak-text-dark);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
}

.page-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ak-text);
}

.page-content ul,
.page-content ol {
    list-style: disc;
    margin: 0 0 16px 24px;
}

.page-content li {
    margin-bottom: 4px;
}

.page-content a,
.home-content a {
    color: var(--ak-link);
    text-decoration: underline;
}

.page-content a:hover,
.home-content a:hover {
    color: var(--ak-green-bright);
}

.custom-section {
    padding: 44px 0;
}

.home-section {
    background: var(--ak-white);
}

.home-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ak-text);
}

.content-extra {
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--ak-white);
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
    color: var(--ak-text);
    font-size: 15px;
    text-align: center;
}

/* ============================================
 * 17. Хлебные крошки
 * ============================================ */
.breadcrumbs {
    font-size: 14px;
    color: var(--ak-muted);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ak-border);
}

.breadcrumbs a {
    color: var(--ak-green);
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--ak-green-bright);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--ak-muted);
}

/* ============================================
 * 18. Страница статьи
 * ============================================ */
.article-header {
    margin-bottom: 24px;
}

.article-header h1,
.article-header h2 {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 28px;
    color: var(--ak-text-dark);
    margin-top: 0;
}

.article-header__date {
    font-size: 14px;
    color: var(--ak-muted);
    margin-top: 8px;
}

.article-image {
    float: left;
    margin: 4px 24px 16px 0;
    max-width: 340px;
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
}

.article-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ak-text);
}

.article-content p {
    margin-bottom: 16px;
}

.article-content img {
    margin: 8px 0 18px;
    border: 1px solid var(--ak-border);
    border-radius: var(--radius);
}

.article-navigation {
    clear: both;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--ak-border);
}

.article-navigation a {
    font-weight: 600;
    font-size: 15px;
    color: var(--ak-green);
}

.article-navigation a:hover {
    color: var(--ak-green-bright);
    text-decoration: underline;
}

/* ============================================
 * 19. Карта сайта (иерархический список страниц)
 * ============================================ */
.sitemap-section {
    margin-bottom: 38px;
}

.sitemap-section:last-child {
    margin-bottom: 0;
}

.sitemap-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--ak-text-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ak-border);
}

.sitemap-list,
.sitemap-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-list > .sitemap-item {
    padding: 9px 0;
    border-bottom: 1px solid var(--ak-border);
}

.sitemap-list > .sitemap-item:last-child {
    border-bottom: none;
}

.sitemap-link {
    font-size: 15px;
    color: var(--ak-green);
    text-decoration: underline;
}

.sitemap-link:hover {
    color: var(--ak-green-bright);
}

.sitemap-desc {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--ak-muted);
}

/* Вложенные уровни: вертикальная линия и уменьшенный отступ */
.sitemap-sublist {
    margin: 8px 0 0 4px;
    padding-left: 18px;
    border-left: 2px solid var(--ak-border);
}

.sitemap-sublist .sitemap-item {
    padding: 6px 0;
    border-bottom: none;
}

.sitemap-sublist .sitemap-link {
    font-size: 14px;
    color: var(--ak-link);
}

.sitemap-sublist .sitemap-link:hover {
    color: var(--ak-green-bright);
}

.sitemap-sublist .sitemap-desc {
    font-size: 12px;
}

/* ============================================
 * 20. Страницы ошибок (404, 403, 500 и др.)
 *     .error-404 — устаревшие алиасы для совместимости
 * ============================================ */
.error-page,
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-page__code,
.error-404__code {
    font-size: 88px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 20px;
}

.error-page__code span,
.error-404__code span {
    color: var(--ak-green);
}

.error-page__code i,
.error-404__code i {
    font-style: normal;
    color: var(--ak-green-bright);
}

/* h1 в блоке ошибки не должен наследовать дефолтные отступы */
.error-page__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ak-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

.error-page__text,
.error-404__text {
    color: var(--ak-muted);
    margin-bottom: 28px;
    font-size: 15px;
}

/* ============================================
 * 21. Footer
 * ============================================ */
.site-footer {
    position: relative;
    background: var(--ak-white);
    margin-top: 60px;
    padding: 0 0 32px;
    border: 1px solid var(--ak-border);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

/* Скруглённая акцентная полоса вместо скошенной линии */
.footer-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--ak-green) 0%, var(--ak-green-bright) 100%);
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
    margin-bottom: 42px;
}

.footer-contacts {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--ak-border);
}

.footer-contacts h4 {
    color: var(--ak-green);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.footer-contacts__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 44px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts__list li {
    margin: 0;
}

.footer-contacts a,
.footer-contacts address {
    color: var(--ak-text);
    font-size: 14px;
    font-style: normal;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: var(--ak-green-bright);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.footer-bottom p {
    margin: 0;
    color: var(--ak-muted);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-round);
    background: var(--ak-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.footer-social a:hover {
    background: var(--ak-green-bright);
}

.footer-sitemap {
    color: var(--ak-green);
    font-size: 13px;
    font-weight: 600;
}

.footer-sitemap:hover {
    color: var(--ak-green-bright);
    text-decoration: underline;
}

/* Банеры подвала — под текстом подвала */
.footer-banners {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--ak-border);
}

.footer-banners .banners {
    margin: 0;
}

.footer-banners .banners + .banners {
    margin-top: 18px;
}

/* ============================================
 * 22. Кнопка «наверх»
 * ============================================ */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 300;
    width: 50px;
    height: 50px;
    background: var(--ak-green-bright);
    border: 0;
    border-radius: var(--radius-round);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.25s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #fff;
    margin: -14px 0 0 -8px;
}

.to-top:hover {
    background: var(--ak-green);
}

/* ============================================
 * 23. Анимации появления (reveal)
 * ============================================ */
.reveal-hidden {
    opacity: 0;
    transform: translateY(22px);
}

.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================================ */
/* 25. RESPONSIVE */
/* ============================================================ */

/* --- ≥ 1440px: широкие десктопные экраны ---
   Содержимое верхней полосы остаётся на всю ширину,
   увеличиваются только внутренние отступы. */
@media screen and (min-width: 1440px) {
    .navbar-shell {
        padding: 16px 36px 0;
    }
}

/* --- ≤ 1200px --- */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Пункты меню компактнее, чтобы строка не переносилась */
    .navbar-nav > li > a {
        padding: 9px 11px;
        font-size: 12.5px;
    }
}

/* --- ≤ 1024px --- */
@media screen and (max-width: 1024px) {
    .hero-panel {
        width: 260px;
        padding-left: 36px;
    }

    .hero-panel a {
        font-size: 17px;
    }

    .footer-contacts__list {
        gap: 12px 30px;
    }

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

/* --- ≤ 992px: мобильный навбар ---
   Меню скрыто в «карточке», раскрывается кнопкой
   (.navbar-collapse.show), подменю — аккордеон. */
@media screen and (max-width: 992px) {
    .navbar-shell {
        padding: 12px 16px;
    }

    .navbar {
        gap: 10px;
    }

    .navbar-toggler {
        display: inline-flex;
    }

    /* На мобильных ссылка на карту сайта скрыта */
    .sitemap-btn {
        display: none;
    }

    .navbar-collapse {
        display: none;
        margin-top: 2px;
        padding-bottom: 4px;
        border-top: 0;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px 0 0;
        border-top: 3px solid var(--ak-green);
    }

    .navbar-nav > li {
        width: 100%;
    }

    .navbar-nav > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Подменю на мобильных — вертикальный аккордеон */
    .navbar-nav .submenu,
    .navbar-nav .submenu .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 2px 0 4px 10px;
        padding: 2px 0 2px 10px;
        border: 0;
        border-left: 2px solid var(--ak-green-soft);
        border-radius: 0;
        box-shadow: none;
    }

    .navbar-nav li.is-open > .submenu {
        display: block;
    }

    .navbar-nav .submenu a {
        padding: 10px 12px;
    }

    .navbar-nav .submenu li.has-children > a::after {
        transform: rotate(45deg);
        margin-top: -4px;
    }

    .hero-slider,
    .hero-slide-inner {
        min-height: 460px;
    }

    /* Статичный hero: на планшетах высота ограничена экраном */
    .hero--static {
        min-height: 300px;
        height: clamp(300px, 64vh, 620px);
        max-height: 620px;
    }
}

/* --- ≤ 768px --- */
@media screen and (max-width: 768px) {
    /* Бренд и кнопки — в первой строке, название и меню — ниже */
    .navbar-titles {
        flex: 1 1 100%;
        order: 2;
    }

    .navbar-collapse {
        order: 3;
    }

    .navbar-brand__img {
        width: 54px;
        height: 54px;
    }

    .navbar-title {
        font-size: 13px;
    }

    .navbar-badge {
        display: none;
    }

    .navbar-tools {
        gap: 8px;
    }

    /* Кнопки в верхней полосе — увеличенная область нажатия на мобильных */
    .contacts-btn {
        height: 40px;
        padding: 0 20px;
        font-size: 15px;
    }

    .sitemap-btn {
        width: 40px;
        height: 40px;
    }

    /* Панель направлений уходит под hero */
    .hero-panel {
        position: static;
        width: 100%;
        border-radius: 0;
        padding: 30px 24px;
    }

    .hero-panel h4 {
        text-align: center;
    }

    .hero-panel ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 26px;
    }

    .hero-panel ul li {
        border-bottom: 0;
        line-height: 36px;
    }

    .hero-panel a {
        font-size: 16px;
    }

    /* Статичный hero: компактнее на мобильных */
    .hero--static {
        min-height: 280px;
        height: clamp(280px, 60vh, 520px);
        max-height: 520px;
    }

    .hero-static-inner {
        padding: 48px 24px;
    }

    .hero-dots {
        left: auto;
        right: 24px;
        transform: none;
    }

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

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

    .section {
        padding: 48px 0 56px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }

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

/* --- ≤ 560px --- */
@media screen and (max-width: 560px) {
    .navbar-title {
        font-size: 12px;
        letter-spacing: 0.2px;
    }

    .news-grid,
    .products-grid,
    .advantages-grid,
    .news-feed {
        grid-template-columns: 1fr;
    }

    .news-home__links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider,
    .hero-slide-inner {
        min-height: 420px;
    }

    .hero-slide-inner {
        padding: 50px 20px;
    }

    /* Статичный hero: на телефонах ограничен высотой экрана */
    .hero--static {
        min-height: 240px;
        height: clamp(240px, 56vh, 420px);
        max-height: 420px;
    }

    .hero-static-inner {
        padding: 36px 20px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .footer-contacts__list {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social {
        justify-content: center;
    }

    .section-header--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- ≤ 380px --- */
@media screen and (max-width: 380px) {
    .contacts-btn {
        font-size: 13px;
        padding: 0 14px;
    }

    .navbar-title {
        font-size: 11px;
    }
}