* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-red: #e50000;
    --color-white: #fff;
    --color-black: #000;
    --color-bg-light: #f5f5f5;
    --color-text: #333;
    --color-text-dark: #1a1a1a;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--color-bg-light);
    color: #333;
    transition: all 0.3s ease;
}

@font-face {
    font-family: 'Fugaz One';
    src: url('fonts/FugazOne-Regular.woff2') format('woff2'),
        url('fonts/FugazOne-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.hero-content *,
.intro-section *,
.features-list li,
.program-list li,
.red-card,
.white-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* высота хедера + отступ */
}


/* Логотип */
.logo {
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-black);
    font-family: 'Fugaz One', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

/* Кнопка для слабовидящих */
.accessibility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.accessibility-btn i {
    font-size: 28px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.accessibility-btn:hover i {
    color: var(--color-white);
}

.accessibility-btn:active {
    transform: scale(0.98);
}

/* Панель доступности */
.accessibility-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 300px;
    font-family: 'Inter', sans-serif;
}

.accessibility-panel h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.accessibility-control {
    margin: 12px 0;
}

.accessibility-control button {
    margin: 0 4px;
    padding: 6px 10px;
    background: var(--color-white);
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.accessibility-control button:hover {
    background: var(--color-bg-light);
}

/* Контрастная тема */
.high-contrast {
    background-color: var(--color-text-dark) !important;
    color: var(--color-white) !important;
}

.high-contrast .accessibility-btn i {
    color: var(--color-white) !important;
}

.high-contrast .mobile-menu {
    background-color: var(--color-text-dark);
}

.high-contrast .burger-menu-btn span {
    background-color: var(--color-white);
}

.high-contrast a,
.high-contrast p,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast li,
.high-contrast .contacts-city,
.high-contrast .contacts-phone,
.high-contrast .contacts-email {
    color: var(--color-white) !important;
}

.high-contrast .features-list li,
.high-contrast .content-card,
.high-contrast .contacts-section,
.high-contrast .hero-bg,
.high-contrast .site-header,
.high-contrast .features-bg,
.high-contrast .red-card,
.high-contrast .white-card,
.high-contrast .accessibility-panel {
    background: var(--color-text-dark) !important;
    color: var(--color-white) !important;
}

.high-contrast .accordion-content p {
    color: var(--color-black) !important;
}

/* Отключение анимации */
.no-animation *,
.no-animation *::before,
.no-animation *::after {
    animation: none !important;
    transition: none !important;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-black);
}

.content-doc {
    margin-top: 180px;
}

.content-title {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ===== Основной контент главной страницы ===== */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Вводный абзац */
.intro-section {
    margin: 50px 0;
    text-align: center;
}

.intro-section a {
    color: var(--color-white) !important;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    margin-top: 24px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(229, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #c20000; /* чуть темнее при наведении */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Заголовки секций */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-red);
    text-align: center;
    margin: 60px 0 20px;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-red);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Подзаголовки секций */
.section-lead {
    font-size: 1.125rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Списки */
.features-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Каждый пункт — карточка */
.features-list li {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 32px 24px 24px;
    /* больше отступа сверху под иконку */
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.features-list li.animate {
    opacity: 1;
    transform: translateY(0);
}

.features-list li:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.feature-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.program-bg {
    width: 100%;
    height: auto;
    background-color: var(--color-white);
    padding: 3%;
}

.program-card-wrapper {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card-wrapper.animate {
    opacity: 1;
    transform: scale(1);
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: program-counter;
}

.program-list li {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
}

.program-list li::before {
    content: counter(program-counter);
    counter-increment: program-counter;
    position: static;
    left: 16px;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    margin-right: 28px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.program-list li.animate::before {
    opacity: 1;
    transform: scale(1);
}

/* ===== Аккордеон с плавным раскрытием ===== */

.accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header i {
    color: var(--color-red);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.accordion-item[aria-expanded="true"] .accordion-header i {
    transform: rotate(180deg);
}

/* Контент аккордеона */
.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

.accordion-item[aria-expanded="true"] .accordion-content {
    padding: 24px;
    padding-left: 50px;
    max-height: 5000px;
}

.accordion-content p {
    margin-bottom: 1rem;
}

a[href^="http"] {
    color: #007bff;
    text-decoration: none;
}

a[href^="http"]:visited {
    color: #007bff;
}

a[href^="http"]:hover {
    color: #0056b3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}


/* Контейнер с двумя колонками */
.hero-split-container {
    display: flex;
    width: 80%;
    margin: 0 auto;
    min-height: 600px;
    position: relative;
    padding: 40px;
}

.hero-bg {
    width: 100%;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-text-column {
    width: 50%;
    padding: 80px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image-column {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-car-image {
    max-width: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 1s ease;
}

.hero-car-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-content,
.intro-section {
    position: relative;
    z-index: 2;
    color: rgb(0, 0, 0);
}

.hero-content .school-name {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.school-name {
    font-family: 'Fugaz One', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.auto-part {
    color: var(--color-white);
}

.school-part {
    color: var(--color-red);
}

.hero-content .school-description {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 30px 0;
    color: var(--color-white);
}

.intro-section .intro-text {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 600px;
}

/* Контейнеры с белыми карточками */
.content-card {
    max-width: 80%;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.advantages-card {
    max-width: 80%;
    margin: 50px auto;
    padding: 40px;
}

/* Отступы внутри карточек */
.features-section,
.program-section,
.conclusion-section {
    margin: 0;
}

/* Заголовки внутри карточек */
.content-card .section-heading {
    margin-top: 0;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 60px 0;
}

.bim-overlay-block {
    position: relative;
    width: 860px;
    height: 240px;
    margin: 60px auto;
    --card-width: 360px;
    --overlap: 60px;
}

.red-card,
.white-card {
    opacity: 0;
    transition: all 0.7s ease;
}

.red-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 32px 24px 32px 24px;
    padding-right: 120px;
    border-radius: 24px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    transform: translateX(-30px);
}

.red-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.red-card p {
    margin: 0;
    line-height: 1.4;
    color: var(--color-white);
    padding-left: 20px;
}

.red-card strong {
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
}

.white-card {
    position: absolute;
    top: 20px;
    left: calc(var(--card-width) - var(--overlap));
    width: calc(var(--card-width) * 1.4);
    height: 200px;
    background-color: var(--color-white);
    padding: 28px 32px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.white-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.white-card p {
    margin: 0;
    line-height: 1.5;
    color: var(--color-black);
    padding-left: 20px;
}

.white-card strong {
    font-size: 1.4rem;
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

/* ===== Секция контактов ===== */

.contacts-section {
    background-image: url('images/cont.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-white);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    padding-bottom: 40px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3%;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-white);
    margin: 12px auto 0;
    border-radius: 2px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0px 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contacts-info {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.contacts-schedule {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.contacts-schedule::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--color-white);
    z-index: 1;
}

.contacts-schedule p {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0;
    padding: 0 20px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.contacts-grid h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    text-align: center;
}

.contacts-info,
.contacts-schedule {
    text-align: center;
}

.contacts-info p,
.contacts-schedule p {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.contacts-city,
.contacts-email {
    font-size: 1.5rem;
    margin: 8px 0;
}

.contacts-phone {
    font-size: 2.25rem;
    margin: 12px 0;
}

.contacts-info a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.contacts-info a:hover {
    text-decoration: underline;
}

/* Карта */
.map-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

/* Бургер-кнопка */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    z-index: 1001;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.mobile-nav li {
    margin: 8px 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #000;
    font-family: 'Fugaz One', sans-serif;
    font-size: 1.2rem;
    display: block;
    padding: 6px 0;
}

.accessibility-btn-mobile {
    width: 100%;
    background: #f0f0f0;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}

.accessibility-btn-mobile i {
    font-size: 24px;
    color: #333;
}

.accessibility-btn-mobile .btn-text-line1,
.accessibility-btn-mobile .btn-text-line2 {
    display: block;
    font-size: 14px;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Необязательно: чуть уменьшить второй ряд для визуального баланса */
.accessibility-btn-mobile .btn-text-line2 {
    font-size: 13px;
    color: #555;
}

/* =============== Адаптивность =============== */

/* 📱 Мобильные устройства: до 768px */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0px;
    }

    .main-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        font-size: 1.3rem;
        padding: 6px 12px;
    }

    .accessibility-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .accessibility-btn i {
        font-size: 24px;
    }

    .main-nav,
    .accessibility-btn {
        display: none;
    }

    .burger-menu-btn {
        display: flex;
        margin-right: 20px;
    }

    /* Открытое меню */
    .mobile-menu.active {
        display: block;
    }

    /* Анимация бургера при открытии */
    .burger-menu-btn[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .burger-menu-btn[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu-btn[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Главный контент */
    .hero-split-container {
        flex-direction: column;
        min-height: auto;
        width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .hero-text-column,
    .hero-image-column {
        width: 100%;
        padding: 20px 15px;
    }

    .hero-content .school-name {
        font-size: 2.2rem;
    }

    .hero-content .school-description {
        font-size: 1.2rem;
    }

    .intro-section .intro-text {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .intro-section {
        margin: 0px;
    }

    /* Преимущества */
    .features-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .features-list li {
        width: 95%;
        max-width: none;
        min-width: auto;
        padding: 24px 20px 20px;
    }

    /* Программа */
    .program-card-wrapper {
        padding: 0 10px;
    }

    .program-list li {
        font-size: 1rem;
    }

    .program-list li::before {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        left: 12px;
    }

    /* Контакты */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }

    .contacts-grid h2:nth-child(1),
    .contacts-grid h2:nth-child(2),
    .contacts-info,
    .contacts-schedule {
        grid-column: 1;
    }

    .contacts-schedule {
        gap: 16px;
    }

    .contacts-schedule::before {
        display: none;
    }

    .contacts-schedule p {
        font-size: 0.875rem;
        padding: 0px;
    }

    .contacts-city,
    .contacts-email {
        font-size: 1.3rem;
    }

    .contacts-phone {
        font-size: 1.8rem;
    }

    /* Документы */
    .content-doc {
        margin-top: 140px;
    }

    .accordion {
        max-width: 100%;
        padding: 0 15px;
    }

    .accordion-header {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .accordion-item[aria-expanded="true"] .accordion-content {
        padding: 16px;
        padding-left: 30px;
    }

    /* Карточки */
    .content-card,
    .advantages-card {
        max-width: 95%;
        padding: 25px 15px;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .section-lead {
        font-size: 1rem;
    }

    /* Блок с двумя карточками */
    .bim-overlay-block {
        width: 100%;
        height: auto;
        padding: 0 15px;
        margin: 40px auto;
    }

    .red-card,
    .white-card {
        position: relative;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        margin-bottom: 20px;
        padding: 24px;
        padding-right: 24px;
    }

    .white-card {
        top: 0 !important;
        left: 0 !important;
    }
}

/* 💻 Планшеты: 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .site-header {
        padding: 15px 30px;
    }

    .hero-split-container {
        width: 90%;
        padding: 30px;
    }

    .hero-text-column {
        padding: 60px 40px 40px;
    }

    .features-list li {
        min-width: 240px;
        max-width: 280px;
    }

    .contacts-grid {
        padding: 30px 20px;
    }

    .bim-overlay-block {
        width: 700px;
        height: 220px;
    }

    .red-card {
        width: 340px;
    }

    .white-card {
        width: calc(340px * 1.4);
        left: calc(340px - 60px);
    }
}

/* 🖥️ Небольшие десктопы: 1025px – 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    .site-header {
        padding: 15px 40px;
    }

    .hero-split-container {
        width: 85%;
    }

    .bim-overlay-block {
        width: 800px;
    }

    .page-container,
    .contacts-grid {
        max-width: 1000px;
    }
}

/* Защита от горизонтального скролла */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Убедимся, что все контейнеры не выходят за пределы */
.page-container,
.page-content,
.contacts-section,
.content-card,
.advantages-card,
.bim-overlay-block,
.hero-bg,
.hero-split-container {
    overflow-x: hidden;
}