/* --- Переменные и базовые настройки --- */
:root {
    --primary: #ff7a00;
    --primary-hover: #e66e00;
    --dark: #222222;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    color: var(--dark); 
    line-height: 1.5; 
    background-color: var(--white);
    overflow-x: hidden;
}

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

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease; 
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-icon:focus-visible {
    outline: 3px solid rgba(255, 122, 0, 0.35);
    outline-offset: 3px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки секций */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Кнопки (Скругленные, с шевроном) --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    border-radius: 50px;
}

.btn::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.btn:hover { 
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn:hover::after {
    transform: translateX(4px) rotate(45deg);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn-group {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

/* --- Верхняя панель --- */
.top-bar {
    background-color: var(--light-gray);
    font-size: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links span { 
    margin-right: 20px; 
    color: var(--gray); 
}

/* --- Шапка (Header) --- */
.header {
    padding: 20px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 24px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    z-index: 1001;
}

.logo span { 
    color: var(--primary); 
}

.mobile-header-phone {
    display: none !important;
}

.phone-pulse-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    overflow: visible;
}

.pulse-ring {
    fill: #18c15d;
    opacity: 0.35;
    transform-box: fill-box;
    transform-origin: center;
    animation: phonePulseRing 1.4s ease-out infinite;
}

.pulse-dot {
    fill: #16b957;
    animation: phonePulseDot 1.4s ease-in-out infinite;
}

@keyframes phonePulseRing {
    0% {
        opacity: 0.45;
        transform: scale(0.65);
    }

    70% {
        opacity: 0;
        transform: scale(1.65);
    }

    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@keyframes phonePulseDot {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(22px, 2.8vw, 46px);
}

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a:hover { 
    color: var(--primary); 
}

.mobile-menu-contact {
    display: none;
}

.header-contact { 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right; 
}

.header-phone-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone-list {
    display: flex;
    align-items: center;
}

.header-phone { 
    font-size: 18px; 
    font-weight: 700; 
    line-height: 1.2;
    white-space: nowrap;
}

.header-phone:nth-child(2) {
    position: absolute;
    top: calc(100% + 28px);
    right: 0;
    z-index: 2;
    padding: 9px 13px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.header-phone-group:hover .header-phone:nth-child(2),
.header-phone-group:focus-within .header-phone:nth-child(2) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-callback { 
    font-size: 12px; 
    color: var(--primary); 
    text-decoration: underline; 
    cursor: pointer; 
    display: inline-block;
}

/* Гамбургер меню */
.menu-checkbox { 
    display: none; 
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon span {
    display: block;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* --- Главный экран (Hero) --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden; 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%) scale(1.24);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 43%, rgba(0,0,0,0.18) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-radius: 20px;
}

.hero h1 { 
    font-size: 54px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: var(--white);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.mobile-title-break {
    display: none;
}

.hero p { 
    font-size: 18px; 
    color: rgba(255, 255, 255, 0.9); 
    margin-bottom: 40px; 
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* --- Секции общие --- */
.section-padding { 
    padding: 100px 0; 
}

/* --- Каталог --- */
.catalog { 
    background: var(--light-gray); 
}

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

.catalog-item {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.catalog-img { 
    height: 350px; 
    overflow: hidden; 
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.catalog-item:hover .catalog-img img { 
    transform: scale(1.1); 
}

.catalog-info { 
    padding: 30px; 
    text-align: left; 
}

.catalog-info h3 { 
    font-size: 22px; 
    margin-bottom: 10px; 
    text-align: left; 
}

.catalog-info p { 
    color: var(--gray); 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.catalog-info .btn { 
    width: 100%; 
}

.mobile-slider-controls {
    display: none;
}

/* --- Промо-баннер --- */
.promo-banner {
    position: relative;
    min-height: 520px;
    padding: 140px 0;
    background: url('images/production-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: left;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 43%, rgba(0,0,0,0.18) 100%);
    z-index: 0;
}

.promo-banner .container {
    position: relative;
    z-index: 1;
}

.promo-banner h2 { 
    max-width: 760px;
    font-size: 54px; 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px; 
    color: var(--white);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.promo-title-break {
    display: block;
}

.promo-banner p { 
    font-size: 18px; 
    max-width: 760px; 
    margin: 0; 
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.promo-btn {
    margin-top: 38px;
    min-width: 260px;
}

/* --- Портфолио --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-item { 
    position: relative; 
    overflow: hidden; 
    height: 400px;
    border-radius: 12px;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .portfolio-item:hover img { transform: scale(1.05); }
    .portfolio-item:hover .portfolio-overlay { opacity: 1; }
}

@media (hover: none) {
    .portfolio-overlay {
        opacity: 1;
    }
}

.portfolio-overlay h4 { 
    font-size: 24px; 
    margin-bottom: 5px; 
}

.portfolio-overlay p { 
    color: var(--primary); 
    font-weight: 600; 
}

/* --- Отзывы --- */
.reviews-section {
    background-color: var(--light-gray);
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 50px;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--dark);
}

.review-stars {
    color: #FFD700;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--gray);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
}

/* --- Акции (Promotions) --- */
.promotions-section {
    background-color: var(--white);
}

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

.promo-card {
    position: relative;
    background: var(--light-gray);
    border-radius: 16px;
    padding: 50px 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.promo-card.promo-assembly {
    background: url('images/promo-assembly-bg.jpg') center/cover no-repeat;
    color: var(--white);
}

.promo-card.promo-assembly::before,
.promo-card.promo-appliances::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.48) 48%, rgba(0,0,0,0.24) 100%);
    z-index: 0;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card.dark-promo {
    background: var(--dark);
    color: var(--white);
}

.promo-card.promo-appliances {
    background: url('images/promo-appliances-bg.jpg') center/cover no-repeat;
}

.promo-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 1;
}

.promo-content {
    position: relative;
    margin-top: 20px;
    z-index: 1;
}

.promo-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.promo-card p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.promo-card.promo-assembly p,
.promo-card.promo-appliances p {
    color: rgba(255, 255, 255, 0.86);
}

.promo-card.dark-promo p {
    color: #cccccc;
}

.promo-content .btn {
    align-self: flex-start;
}

/* --- Контакты (Форма) --- */
.contact-section {
    background: url('images/contact-bg.jpg') center/cover no-repeat; 
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.48) 48%, rgba(0,0,0,0.24) 100%);
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    color: var(--white);
}

.contact-info { 
    flex: 1; 
}

.contact-info h2 { 
    max-width: 760px;
    font-size: 54px; 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.contact-info p { 
    font-size: 18px; 
    color: rgba(255, 255, 255, 0.9); 
    margin-bottom: 40px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.contact-features { 
    list-style: none; 
}

.contact-features li { 
    margin-bottom: 15px; 
    font-size: 16px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.contact-features li::before { 
    content: '✓'; 
    color: var(--primary); 
    font-weight: bold; 
    font-size: 20px; 
    line-height: 1; 
}

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 50px;
    color: var(--dark);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-form h3 { 
    font-size: 24px; 
    margin-bottom: 30px; 
    text-align: center; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group input { 
    width: 100%; 
    padding: 15px 20px; 
    border: 1px solid var(--border); 
    font-size: 16px; 
    transition: border-color 0.3s; 
    border-radius: 50px; 
}

.captcha-group label {
    display: block;
}

.captcha-question {
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    display: none;
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: #1c7c3c;
}

.form-status.is-error {
    color: #c62828;
}

.form-group input:focus { 
    outline: none; 
    border-color: var(--primary); 
}

.contact-form .btn { 
    width: 100%; 
}

.form-note {
    color: var(--gray);
    font-size: 11px;
    margin-top: 15px;
    text-align: center;
}

/* --- Popup --- */
body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.modal.is-open .modal-backdrop {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: var(--white);
    color: var(--dark);
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.modal.is-open .modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    z-index: 2;
}

.modal-media {
    min-height: 480px;
    background: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.16)), url('images/production-bg.jpg') center/cover no-repeat;
    border-radius: 22px 0 0 22px;
}

.modal-form {
    padding: 54px 48px 44px;
}

.modal-form h3 {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
    margin-bottom: 28px;
    padding-right: 28px;
    text-align: left;
}

.modal-form .form-group {
    margin-bottom: 14px;
}

.modal-form input {
    min-height: 54px;
    font-size: 16px;
}

.modal-form .btn {
    width: 100%;
    min-height: 56px;
    margin-top: 6px;
    font-size: 14px;
}

.modal-form .form-note {
    font-size: 12px;
    margin-top: 18px;
}

/* --- Подвал --- */
.footer { 
    background-color: #111; 
    color: #888; 
    padding: 60px 0 30px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    margin-bottom: 40px; 
}

.footer-col h4,
.footer-accordion summary { 
    color: var(--white); 
    margin-bottom: 20px; 
    font-size: 16px; 
    font-weight: 700;
    text-transform: uppercase; 
}

.footer-accordion summary {
    display: block;
    list-style: none;
    cursor: default;
}

.footer-accordion summary::-webkit-details-marker {
    display: none;
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li { 
    margin-bottom: 10px; 
}

.footer-col ul a:hover { 
    color: var(--primary); 
}

.footer-logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

.footer-phone {
    color: var(--white);
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
}

.footer-bottom { 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    text-align: center; 
    font-size: 12px; 
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 13px;
}

.footer-legal strong {
    font-weight: 600;
}

/* ==================================================== */
/*              МЕДИАЗАПРОСЫ (АДАПТИВНОСТЬ)             */
/* ==================================================== */

@media (max-width: 1024px) {
    .header .container {
        gap: 14px;
    }

    .main-nav ul {
        gap: 14px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .header-phone {
        font-size: 14px;
    }

    .catalog-grid, .reviews-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .contact-wrapper { 
        flex-direction: column; 
    }
    
    .contact-form { 
        width: 100%; 
        max-width: 700px; 
    }
    
    .hero h1 { 
        font-size: 46px; 
    }
}

@media (max-width: 900px) {
    .top-bar { display: none; } 

    .header-contact {
        display: none;
    }

    .header {
        padding: 19px 0;
        box-shadow: none;
    }

    .header .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .header .mobile-header-phone {
        display: inline-flex !important;
        align-items: center;
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        justify-self: center;
        min-width: 0;
        max-width: 100%;
        padding: 0;
        background: transparent;
        color: var(--dark);
        font-size: 13.5px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        z-index: 1001;
    }

    .mobile-header-phone-list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .mobile-header-phone-list a {
        display: block;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-header-phone-list a:nth-child(2) {
        display: none;
    }
    
    .menu-icon {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .header .logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, border-color 0.4s ease-out;
    }
    
    .menu-checkbox:checked ~ .main-nav {
        max-height: 450px;
        border-top: 1px solid var(--border);
    }
    
    .main-nav ul { 
        flex-direction: column; 
        gap: 0; 
    }
    
    .main-nav a { 
        display: block; 
        padding: 15px 20px; 
        border-bottom: 1px solid var(--border); 
    }

    .mobile-menu-contact {
        display: block;
        padding: 18px 20px 20px;
        background: var(--light-gray);
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .mobile-menu-phones {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        margin-bottom: 13px;
    }

    .mobile-menu-phones > div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .main-nav .mobile-menu-phone {
        display: block;
        padding: 0;
        border-bottom: 0;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
    }

    .main-nav .mobile-menu-callback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: min(100%, 320px);
        padding: 14px 20px;
        border-bottom: 0;
        border-radius: 50px;
        background: var(--primary);
        color: var(--primary);
        color: var(--white);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
    }
    
    .menu-checkbox:checked + .menu-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-checkbox:checked + .menu-icon span:nth-child(2) { opacity: 0; }
    .menu-checkbox:checked + .menu-icon span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero { 
        padding: 80px 0; 
        height: auto; 
        min-height: 620px; 
    }
    
    .hero-overlay { 
        background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.48) 52%, rgba(0,0,0,0.38) 100%); 
    }
    
    .hero-content { 
        text-align: left; 
        margin: 0; 
    }

    .mobile-title-break {
        display: block;
    }
    
    .hero h1 { font-size: 38px; }
    
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }

    .section-padding { padding: 60px 0; }
    
    .section-title { 
        font-size: 28px; 
        margin-bottom: 30px; 
        text-align: left; 
    }
    
    .promotions-grid { 
        grid-template-columns: 1fr; 
    }

    .promo-card.promo-assembly::before,
    .promo-card.promo-appliances::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.56) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.66) 100%);
    }

    [data-mobile-slider] {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 10px;
        scrollbar-width: none;
    }

    [data-mobile-slider]::-webkit-scrollbar {
        display: none;
    }

    [data-mobile-slider] > * {
        flex: 0 0 min(86vw, 360px);
        scroll-snap-align: start;
    }

    .portfolio-grid[data-mobile-slider] > * {
        flex-basis: min(88vw, 390px);
    }

    .reviews-grid[data-mobile-slider] > * {
        flex-basis: min(84vw, 340px);
    }

    .mobile-slider-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: 18px;
    }

    .mobile-slider-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--white);
        color: var(--dark);
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .mobile-slider-btn:disabled {
        opacity: 0.35;
        cursor: default;
    }

    .mobile-slider-dots {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-slider-dot {
        width: 8px;
        height: 8px;
        border: 0;
        border-radius: 50%;
        background: #d0d0d0;
        cursor: pointer;
        padding: 0;
    }

    .mobile-slider-dot.is-active {
        width: 22px;
        border-radius: 999px;
        background: var(--primary);
    }
    
    .promo-banner h2 { font-size: 38px; }
    .promo-banner p { font-size: 16px; }
    .promo-banner {
        min-height: 430px;
        padding: 90px 0;
        text-align: left;
    }

    .promo-banner::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.48) 52%, rgba(0,0,0,0.38) 100%);
    }

    .contact-section::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.56) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.66) 100%);
    }

    .promo-banner p {
        margin-left: 0;
        margin-right: 0;
    }

    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 300px; }
    
    .portfolio-overlay { 
        opacity: 1; 
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
        padding: 20px; 
    }
    
    .portfolio-overlay h4 { font-size: 20px; }

    .contact-info h2 { font-size: 38px; }
    .contact-form { padding: 30px; }

    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: left; 
        gap: 18px; 
    }

    .footer-accordion {
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        padding-top: 18px;
    }

    .footer-accordion + .footer-col {
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        padding-top: 18px;
    }

    .footer-accordion summary {
        position: relative;
        cursor: pointer;
        margin-bottom: 0;
        padding-right: 30px;
    }

    .footer-accordion summary::after {
        content: '›';
        position: absolute;
        top: 50%;
        right: 0;
        color: var(--primary);
        font-size: 28px;
        line-height: 1;
        transform: translateY(-50%);
        transition: transform 0.25s ease;
    }

    .footer-accordion[open] summary {
        margin-bottom: 18px;
    }

    .footer-accordion[open] summary::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .footer-col:not(.footer-accordion) {
        text-align: left;
    }

    .modal-dialog {
        width: min(100%, 620px);
        grid-template-columns: 1fr;
    }

    .modal-media {
        min-height: 180px;
        border-radius: 22px 22px 0 0;
    }

    .modal-form {
        padding: 34px 28px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo {
        font-size: 25px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    .header .mobile-header-phone {
        gap: 7px;
    }

    .mobile-header-phone-list a {
        font-size: 15px;
    }

    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .promo-banner h2 { font-size: 32px; }
    .contact-info h2 { font-size: 32px; }
    .hero-video {
        transform: translate(-50%, -50%) scale(1.12);
    }
    .catalog-img { height: 250px; }
    .promo-card { padding: 40px 20px; }
    .promo-content h3 { font-size: 22px; }
    .promo-btn { width: 100%; }
    .contact-form { padding: 25px 15px; }
    .contact-form h3 { font-size: 20px; }
    .portfolio-item { height: 250px; }
    .modal {
        padding: 14.5px;
    }

    .modal-dialog {
        border-radius: 18px;
    }

    .modal-media {
        min-height: 140px;
        border-radius: 18px 18px 0 0;
    }

    .modal-form {
        padding: 46px 18px 24px;
    }

    .modal-form h3 {
        margin-bottom: 22px;
        padding-right: 20px;
    }

    .modal-form input,
    .modal-form .btn {
        min-height: 58px;
        font-size: 16px;
    }

    .modal-form .form-note {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .header .container {
        gap: 6px;
    }

    .logo {
        font-size: 25px;
    }

    .header .mobile-header-phone {
        gap: 4px;
    }

    .mobile-header-phone-list {
        gap: 8px;
    }

    .mobile-header-phone-list a {
        font-size: 10.5px;
    }

    .mobile-menu-phones > div {
        gap: 8px;
    }

    .main-nav .mobile-menu-phone {
        font-size: 15px;
    }
}
