/* =========================================
   BASE & LAYOUT
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: var(--text-body-base);
    color: var(--color-text-main);
    background: var(--white);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.wide-container {
    width: 100%;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--gray-200);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary-base);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-400);
    color: var(--gray-800);
}

.btn-white {
    background: var(--white);
    color: var(--brand-red-500) !important;
}

.btn-white:hover {
    background: var(--gray-200);
}

/* Section Tags */
.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-primary-base);
}

.section-subhead {
    color: var(--color-text-muted);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gray-900);
    border-bottom: 2px solid var(--color-primary-base);
    height: 64px;
    display: flex;
    align-items: center;
}

.header .wide-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header-contacts a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
}

.header-contacts a:hover {
    color: var(--white);
}

/* =========================================
   HERO SECTION
   ========================================= */

/* =========================================
   HERO SECTION (Reimagined v2)
   ========================================= */

.hero {
    margin-top: 64px;
    position: relative;
    height: calc(100vh - 64px);
    min-height: 700px;
    background: var(--gray-50);
    /* fallback */
    overflow: hidden;
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.26) contrast(1.05);
    /* Increased brightness by 7% (1.18 * 1.07 approx 1.26) */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.78);
    /* --gray-50 with alpha */
    z-index: 2;
}

.hero-contents-wrapper {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-offer-content {
    max-width: 900px;
    color: var(--gray-900);
    padding-bottom: 80px;
}

.hero-offer-content .section-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.hero-offer-content h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(30px);
    animation:
        hero-fade-in 0.8s ease-out forwards 0.3s,
        h1-wiggle 5s ease-in-out infinite 1.1s;
}

.hero-offer-content h1 em {
    color: var(--brand-red-500);
    font-style: normal;
}

.hero-offer-content .slide-sub {
    font-size: var(--text-body-lg);
    color: var(--gray-800);
    margin-bottom: var(--space-8);
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.6s ease-out forwards 0.5s;
}

.hero-offer-content .slide-list {
    margin-bottom: var(--space-10);
    list-style: none;
}

.hero-offer-content .slide-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--gray-800);
    opacity: 0;
    transform: translateY(10px);
    animation: hero-fade-in 0.4s ease-out forwards;
}

/* Stagger list items */
.hero-offer-content .slide-list li:nth-child(1) {
    animation-delay: 0.7s;
}

.hero-offer-content .slide-list li:nth-child(2) {
    animation-delay: 0.8s;
}

.hero-offer-content .slide-list li:nth-child(3) {
    animation-delay: 0.9s;
}

.hero-offer-content .slide-list li:nth-child(4) {
    animation-delay: 1.0s;
}

.hero-offer-content .btn {
    opacity: 0;
    animation: hero-fade-in 0.6s ease-out forwards 1.2s;
}

/* Mascot wrapper inside hero contents */
.mascot-hero-wrap {
    position: absolute;
    right: 5%;
    bottom: 20px;
    height: 85%;
    max-height: 450px;
    z-index: 4;
    pointer-events: none;
}

.mascot-hero-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateX(40px);
    animation: mascot-entry 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s;
}

/* Specific flip for first two mascots if needed, handled via JS classes if necessary */
.mascot-flip {
    transform: translateX(40px) scaleX(-1) !important;
}

@keyframes mascot-entry {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keep mascot entry animation compliant with reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mascot-hero-wrap img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 1100px) {
    .mascot-hero-wrap {
        right: -5%;
    }
}

@media (max-width: 768px) {
    .mascot-hero-wrap {
        display: none;
    }
}

/* Outro state - applied via JS */
.hero-offer-content.leaving {
    animation: hero-fade-out 0.8s ease-in forwards !important;
}

/* Animations */
@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-out {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes h1-wiggle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-offer-content *,
    .hero-offer-content h1 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #hero-video {
        filter: none !important;
    }
}

.slider-nav {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 10;
}

.slider-nav .wide-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 32px;
    height: 3px;
    background: var(--gray-400);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--brand-red-500);
    width: 64px;
}

.arrows {
    display: flex;
    gap: 12px;
}

.arrow {
    padding: 10px 20px;
    border: 1px solid var(--gray-400);
    color: var(--gray-800);
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: 0.2s;
}

.arrow:hover {
    border-color: var(--brand-red-500);
    color: var(--brand-red-500);
}


/* =========================================
   STATS BAR
   ========================================= */

.stats-bar {
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-900);
    padding: var(--space-6) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
}

.stat-item {
    border-left: 1px solid var(--gray-600);
    padding-left: var(--space-6);
}

.stat-item:first-child {
    border-left: none;
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-val span {
    color: var(--color-primary-base);
}

.stat-txt {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* =========================================
   MISSION & POSITIONING
   ========================================= */

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-10);
    align-items: start;
}

.pos-text {
    font-size: var(--text-body-lg);
    color: var(--gray-800);
    line-height: 1.7;
}

.mission-card {
    background: var(--gray-100);
    padding: var(--space-6);
    border-left: 4px solid var(--color-primary-base);
}

.mission-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-3);
}

/* =========================================
   UTP SECTION
   ========================================= */

.utp-section {
    background: var(--gray-900);
    color: var(--white);
}

.utp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.utp-main {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.utp-main em {
    color: var(--color-primary-base);
    font-style: normal;
}

.utp-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.utp-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.utp-num {
    width: 40px;
    height: 40px;
    background: rgba(196, 30, 58, 0.2);
    color: var(--color-primary-base);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    flex-shrink: 0;
}

.utp-info {
    color: var(--gray-400);
    font-size: 16px;
}

/* =========================================
   MANUFACTURERS (HORIZONTAL TICKER)
   ========================================= */

.ticker-container {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    position: relative;
}

/* Градиентное затухание по краям */
.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.ticker-row {
    display: flex;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 140px;
    padding: 12px;
    transition: all 0.3s ease;
}

.ticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s ease;
}

.ticker-item:hover img {
    filter: grayscale(0) opacity(1);
}

.ticker-item:hover img {
    filter: grayscale(0) opacity(1);
}

/* Анимации */
.ticker-right .ticker-track {
    animation: scroll-right 40s linear infinite;
}

.ticker-left .ticker-track {
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-50% - 20px));
    }

    100% {
        transform: translateX(0);
    }
}

/* Остановка при наведении */
.ticker-row:hover .ticker-track {
    animation-play-state: paused;
}

/* =========================================
   EXPERTISE
   ========================================= */

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-200);
}

.exp-card {
    background: var(--white);
    padding: var(--space-8);
}

.exp-card:hover {
    background: var(--gray-50);
}

.exp-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary-base);
    margin-bottom: 12px;
}

/* =========================================
   ADVANTAGES
   ========================================= */

.adv-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.adv-card {
    border: 1px solid var(--gray-200);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    transition: 0.3s;
}

.adv-card:hover {
    border-color: var(--color-primary-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Mouse Grid Canvas */
.mouse-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

[data-mouse-grid="true"] {
    position: relative;
    overflow: hidden;
}

[data-mouse-grid="true"]>.wide-container {
    position: relative;
    z-index: 1;
}

.adv-card h4 {
    margin-bottom: 10px;
}

.adv-card p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* =========================================
   PROCESS (STEPS)
   ========================================= */

.steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    /* Оверфлоу скрыт, чтобы плавающие иконки не вылезали за секцию */
    padding-bottom: 120px;
}

/* Горизонтальная линия-соединитель между шагами */
.steps-container::before {
    content: '';
    position: absolute;
    /* Выровнено по центру кружка (кружок 56px, top его старта ≈ 90px из-за плавающей иконки наверху) */
    top: 118px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            var(--gray-600) 10%,
            var(--gray-600) 90%,
            transparent);
    z-index: 1;
}

/* Каждый шаг — относительно позиционирован, чтобы плавающая иконка была привязана к нему */
.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 160px;
    /* Отступ сверху оставляем место для плавающей иконки */
    padding-top: 96px;
    transition: 0.3s ease;
}

/* Кружок с иконкой */
.step-circle {
    width: 56px;
    height: 56px;
    border: 2px solid var(--color-primary-base);
    background: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.35s ease;
    position: relative;
    z-index: 3;
    /* Тень-свечение в покое — тонкое */
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
}

/* Маленькая иконка внутри кружка */
.step-circle-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* SVG рендерится белым через фильтр */
    filter: brightness(0) invert(1);
    transition: all 0.35s ease;
    opacity: 0.85;
}

/* Ховер на шаг: кружок заливается красным, иконка белая */
.step:hover .step-circle {
    background: var(--color-primary-base);
    box-shadow: 0 0 24px rgba(196, 30, 58, 0.45), 0 0 6px rgba(196, 30, 58, 0.3);
    transform: scale(1.08);
}

.step:hover .step-circle-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Заголовок и описание шага */
.step h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.step p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.step:hover h4 {
    color: var(--color-primary-base);
}

.step:hover p {
    color: var(--gray-400);
}

/* ========================================
   ПЛАВАЮЩАЯ КРУПНАЯ ИКОНКА (орбита вокруг шага)
   ======================================== */

/*
 * .step-icon-float — крупная декоративная иконка.
 * Находится в position: absolute внутри .step (relative, z-index: 2).
 * Двигается по кругу через анимацию circular-orbit.
 *
 * Механика: сама иконка стоит на месте, вращается её обёртка.
 * Чтобы иконка не вращалась вместе с обёрткой — применяем counter-rotate.
 */
.step-icon-float {
    /* Центрируем по горизонтали относительно .step */
    position: absolute;
    top: 0;
    left: 50%;
    /* Размер орбитального контейнера */
    width: 72px;
    height: 72px;
    /* Смещаем назад на половину ширины, чтобы центрировать */
    margin-left: -36px;
    margin-top: -36px;

    /* Иконка плывёт вдоль окружности через translate offset + rotate wrapper */
    animation: step-orbit 10s linear infinite;
    transform-origin: 50% 110px;
    /* радиус орбиты: 110px от центра обёртки */
    z-index: 4;
    pointer-events: none;
}

/* Каждый шаг — чуть другая фаза, чтобы не двигались синхронно */
.step-icon-float--1 {
    animation-delay: 0s;
    animation-duration: 14s;
}

.step-icon-float--2 {
    animation-delay: -2.8s;
    animation-duration: 16s;
}

.step-icon-float--3 {
    animation-delay: -5.6s;
    animation-duration: 15s;
}

.step-icon-float--4 {
    animation-delay: -1.4s;
    animation-duration: 13s;
}

.step-icon-float--5 {
    animation-delay: -7s;
    animation-duration: 17s;
}

/* img внутри float-обёртки — counter-rotate, чтобы иконка всегда смотрела вертикально */
.step-icon-float img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    /* Белый силуэт с низкой opacity — деликатный, инженерный */
    filter: brightness(0) invert(1);
    opacity: 0.12;
    /* Счётчик-вращение компенсирует поворот родителя */
    animation: step-orbit-counter 10s linear infinite;
    transition: opacity 0.4s ease;
}

.step-icon-float--1 img {
    animation-duration: 14s;
    animation-delay: 0s;
}

.step-icon-float--2 img {
    animation-duration: 16s;
    animation-delay: -2.8s;
}

.step-icon-float--3 img {
    animation-duration: 15s;
    animation-delay: -5.6s;
}

.step-icon-float--4 img {
    animation-duration: 13s;
    animation-delay: -1.4s;
}

.step-icon-float--5 img {
    animation-duration: 17s;
    animation-delay: -7s;
}

/* При ховере на шаг — иконка становится заметнее и ускоряет орбиту */
.step:hover .step-icon-float {
    animation-duration: 5s !important;
    opacity: 1;
}

.step:hover .step-icon-float img {
    opacity: 0.45;
    filter: brightness(0) saturate(100%) invert(15%) sepia(90%) saturate(3000%) hue-rotate(335deg) brightness(90%);
    animation-duration: 5s !important;
}

/* @keyframes: орбитальное вращение — полный оборот */
@keyframes step-orbit {
    from {
        transform: rotate(0deg) translateX(0) translateY(-70px);
    }

    to {
        transform: rotate(360deg) translateX(0) translateY(-70px);
    }
}

/* Счётчик-вращение: обратное, чтобы иконка не вращалась */
@keyframes step-orbit-counter {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* =========================================
   FORM BOM
   ========================================= */

.form-area {
    background: var(--gray-100);
}

.form-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
}

.form-left-col {
    position: relative;
    padding-bottom: 220px;
}

.form-left-col h2,
.form-left-col p,
.form-left-col .section-tag {
    position: relative;
    z-index: 2;
}

.mascot-form-img {
    position: absolute;
    bottom: -20px;
    left: 0;
    max-width: 250px;
    opacity: 0.9;
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .form-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .form-left-col {
        padding-bottom: 0;
    }

    .mascot-form-img {
        display: none;
    }
}

.form-main {
    position: relative;
    z-index: 1;
}

.form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-800);
}

.input-group input {
    padding: 14px;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary-base);
    box-shadow: var(--btn-focus-shadow);
}

.dropzone {
    border: 2px dashed var(--gray-400);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    border-radius: 4px;
    transition: 0.2s;
}

.dropzone:hover {
    border-color: var(--color-primary-base);
    background: var(--gray-100);
}

.dropzone-hint {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 8px;
}

.dropzone--active {
    border-color: var(--color-primary-base);
    background: var(--gray-100);
    box-shadow: inset 0 0 0 2px rgba(196, 30, 58, 0.15);
}

/* Submit Button Spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .btn-spinner {
        animation: none;
        border-top-color: rgba(255,255,255,0.6);
    }
    .ticker-right .ticker-track,
    .ticker-left .ticker-track,
    .hero-ticker-track,
    .step-icon-float,
    .step-icon-float img {
        animation: none !important;
    }
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    background: var(--gray-50);
    padding: var(--space-10) 0 var(--space-4);
    color: var(--gray-800);
    border-top: 1px solid var(--gray-200);
    text-align: left;
}

.footer .wide-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-8);
    align-items: start;
}

@media (max-width: 900px) {
    .footer .wide-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary-base);
}

.footer-contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-info a:hover {
    color: var(--color-primary-base);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
}

/* =========================================
   HERO TICKER
   ========================================= */

.hero-ticker-wrap {
    margin: 8px 0 12px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 48px;
    max-width: 650px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    opacity: 0;
    transform: translateY(10px);
    animation: hero-fade-in 0.6s ease-out forwards 1.4s;
}

.hero-ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    height: 100%;
    width: max-content;
    animation: hero-ticker-scroll 25s linear infinite;
}

.hero-ticker-track img {
    height: 24px;
    object-fit: contain;
    filter: brightness(0) opacity(0.4);
    transition: all 0.3s ease;
}

.hero-ticker-wrap:hover .hero-ticker-track img {
    filter: brightness(0) opacity(0.6);
}

.hero-ticker-wrap:hover .hero-ticker-track {
    animation-play-state: paused;
}

@keyframes hero-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 24px)); }
}

/* =========================================
   CHECKBOXES & MODAL
   ========================================= */

.checkbox-container {
    display: flex;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
    user-select: none;
    align-items: flex-start;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand-red-500);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-red-500);
    border-color: var(--brand-red-500);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--gray-900);
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    padding-right: 10px;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.modal-footer .btn {
    padding: 12px 24px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 24px;
    }
    .modal-footer {
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
    }
}

/* =========================================
   MOBILE OVERRIDES (max-width: 768px)
   Vertical 1-column layout for 400px screens
   ========================================= */
@media (max-width: 768px) {
    :root {
        --text-h1: clamp(26px, 8vw, 32px);
        --text-h2: clamp(22px, 7vw, 26px);
        --text-h3: 20px;
        --text-body-base: 16px;
        --text-body-lg: 16px;
        --space-10: 40px;
        --space-8: 32px;
        --space-6: 24px;
        --space-4: 16px;
        --container-padding: 16px;
    }

    /* HEADER */
    .header {
        position: relative; /* Static flow, scrolls naturally */
        height: auto;
        padding: 16px 0 0 0 !important; /* Force zero bottom padding to attach video immediately */
    }
    .header .wide-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding-bottom: 16px !important; /* Space inside header */
    }
    .logo {
        height: 40px;
        justify-content: center;
        margin-bottom: 16px;
    }
    .header-contacts {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .header-contacts a[href^="tel"],
    .header-contacts a[href^="mailto"] {
        display: block;
        text-align: center;
        font-size: 20px;
        padding: 4px 0;
        font-weight: 700;
        color: var(--white);
    }
    .header-contacts a[href^="mailto"] {
        font-size: 16px;
        font-weight: 400;
        color: var(--gray-400);
        margin-bottom: 12px;
    }
    .header-contacts .btn, .header-contacts a.btn-white {
        width: 100%;
        display: block;
        text-align: center;
        margin-top: 8px;
        padding: 16px !important;
        font-size: 14px !important;
        font-family: var(--font-mono) !important; /* Matches 'Загрузить BOM' mono style */
        font-weight: 700 !important;
        text-transform: uppercase;
        box-sizing: border-box;
    }

    /* ENGINEERING GRID BACKGROUNDS */
    .hero-contents-wrapper, 
    #hero, #mission, #advantages, 
    .form-area, .footer {
        background-color: var(--white) !important;
        background-image: 
            linear-gradient(var(--gray-100) 1px, transparent 1px),
            linear-gradient(90deg, var(--gray-100) 1px, transparent 1px) !important;
        background-size: 24px 24px !important;
    }
    
    .stats-bar, .utp-section, #process, .lc-hero, .lc-bottom-cta {
        background-color: var(--gray-900) !important;
        background-image: 
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) !important;
        background-size: 24px 24px !important;
    }

    #manufacturers, .lc-category {
        background-color: var(--gray-50) !important;
        background-image: 
            linear-gradient(var(--gray-200) 1px, transparent 1px),
            linear-gradient(90deg, var(--gray-200) 1px, transparent 1px) !important;
        background-size: 24px 24px !important;
    }

    /* HERO */
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        margin-top: 0 !important;
        position: relative;
        background: transparent !important;
    }
    .hero-video-container {
        position: relative;
        height: 65vh; /* Reduced by 1/3 */
        width: 100%;
        order: 1; /* Video first */
        margin-top: 0 !important;
        background: transparent !important; /* Remove gray background */
    }
    #hero-video {
        object-fit: cover;
        background: transparent !important;
    }
    
    .hero-contents-wrapper {
        position: static !important; /* Crucial: allows mascot to position relative to .hero */
        order: 2; /* Text second */
        height: auto;
        padding: 48px 0 32px 0;
    }
    .hero-contents-wrapper .wide-container,
    #hero-content-root {
        position: static !important; /* Ensure no traps for absolute positioning */
        display: flex;
        flex-direction: column;
    }
    
    /* Mascot stands lower on the video */
    .mascot-hero-wrap {
        position: absolute;
        top: 0; /* Top of .hero (video) */
        left: 0;
        width: 100%;
        height: 65vh; /* Match video height exactly */
        transform: translateY(0) !important;
        display: flex;
        justify-content: center;
        align-items: flex-end; /* Shift to bottom area */
        padding-bottom: 10vh; /* Adjust upwards slightly from the very bottom for better visual center */
        z-index: 10;
        pointer-events: none;
        margin-bottom: 0;
        opacity: 1 !important;
    }
    .mascot-hero-wrap img {
        height: auto;
        max-height: 380px; /* Enlarge mascot as requested */
        width: auto;
        transform: translateY(50%) !important; /* Shift lower by 50% of its height */
        animation: none !important;
        opacity: 1 !important;
    }
    
    .hero-offer-content {
        order: 2; 
        padding-bottom: 0;
    }
    .hero-offer-content h1 {
        text-align: center;
    }
    .hero-offer-content .slide-sub {
        text-align: center;
    }
    .hero-offer-content .section-tag {
        justify-content: center;
    }
    .hero-offer-content .btn {
        width: 100%;
    }
    
    .slider-nav {
        position: relative;
        order: 3;
        bottom: 0;
        margin-top: 24px;
    }
    .slider-nav .wide-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* GRIDS TO 1 COLUMN */
    .stats-grid { display: flex; flex-direction: column; gap: 8px; text-align: center; }
    .stat-item { border-left: none; border-bottom: 1px solid var(--gray-600); padding: 16px 0; }
    .stat-item:last-child { border-bottom: none; }
    
    .mission-grid, .utp-grid, .exp-grid, .adv-grid, .form-split {
        display: flex; flex-direction: column; gap: 24px;
    }
    .utp-list { margin-top: 16px; }

    /* ADVANTAGES CARDS */
    .adv-card {
        background-color: var(--gray-50);
        padding: 24px;
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }

    /* PROCESS */
    .steps-container {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 0;
        margin-top: 32px;
    }
    .steps-container::before { display: none; }
    .step {
        width: 100%;
        flex-direction: column; /* Centered layout */
        align-items: center;
        text-align: center;
        padding-top: 0;
    }
    .step-circle { margin-bottom: 16px; margin-right: 0; flex-shrink: 0; }
    .step-content { text-align: center; }
    .step-icon-float { display: none !important; }

    /* TICKER */
    .ticker-item {
        width: 140px;
        height: 70px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        padding: 16px; /* More padding */
        background-color: var(--white);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .ticker-item img { filter: grayscale(1) opacity(0.8); }
    .hero-ticker-wrap { display: none !important; }
    
    #manufacturers .btn-outline {
        white-space: normal;
        height: auto;
        padding: 16px;
        line-height: 1.4;
    }

    /* FORM & FOOTER */
    .form-inputs { display: flex; flex-direction: column; gap: 16px; }
    .mascot-form-img { display: none; }
    .dropzone { padding: 32px 16px; }
    
    .footer .wide-container { display: flex; flex-direction: column; gap: 32px; text-align: center; }
    .footer-col { width: 100%; align-items: center; }
    .footer-col h4 { margin-bottom: 16px; text-align: center; }
    
    /* PERFORMANCE */
    canvas[data-particle-bg] { display: none !important; }
    .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero-offer-content h1, .hero-offer-content .slide-sub, .hero-offer-content .slide-list li, .hero-offer-content .btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}