/* Базовый сброс стилей (Reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #085F63; 
    --color-accent: #0A7A7F;  
    --color-accent-hover: #064A4D;
    --color-bg-light: #F4F5F0; 
    --color-white: #FFFFFF;
    --color-text-main: #1F2937;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --font-main: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    white-space: nowrap; 
}

/* =========================================
   ШАПКА САЙТА (HEADER)
   ========================================= */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; 
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-descriptor {
    font-size: 11px; 
    color: var(--color-text-muted);
    margin-top: 2px;
    max-width: 200px; 
    line-height: 1.3;
}

.main-nav {
    display: flex;
    gap: 20px; 
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap; 
}

.phone-link {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO ДЛЯ ПК) С ФОНОМ
   ========================================= */
.desktop-hero {
    position: relative;
    background: url('img/gallery-bg.webp') center/cover no-repeat fixed; 
    padding: 100px 0;
    overflow: hidden;
}

.desktop-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(244, 245, 240, 0.85); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px); 
    z-index: 1;
}

.desktop-hero .hero-inner {
    position: relative;
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 55%; 
}

.hero-badge {
    display: inline-block;
    background-color: rgba(8, 95, 99, 0.1); 
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--color-accent); 
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-advantages {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
}

.adv-item {
    display: flex;
    flex-direction: column;
}

.adv-item strong {
    font-size: 18px;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.adv-item span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(10, 122, 127, 0.3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.action-note {
    font-size: 13px;
    color: var(--color-text-main);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.gift-icon {
    font-size: 18px;
    line-height: 1.2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* =========================================
   ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ
   ========================================= */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 50px;
    line-height: 1.2;
}

/* =========================================
   ПРЕИМУЩЕСТВА (BENEFITS)
   ========================================= */
.benefits { background-color: var(--color-bg-light); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(8, 95, 99, 0.1); 
    border-color: rgba(8, 95, 99, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 122, 127, 0.08);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.benefit-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.benefit-text { font-size: 15px; color: var(--color-text-muted); line-height: 1.5; }

/* =========================================
   ВИТРИНА (CATALOG) 
   ========================================= */
.catalog { background-color: var(--color-bg-light); }

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -35px auto 50px;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 50px;
}

.catalog-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 30px 20px; 
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(8, 95, 99, 0.08);
}

.catalog-icon { margin-bottom: 25px; display: flex; justify-content: center; }
.catalog-title { font-size: 20px; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }

.catalog-features { 
    list-style: none; 
    margin-bottom: 30px; 
    text-align: left; 
    flex-grow: 1; 
}

.catalog-features li { font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; padding-left: 20px; position: relative; }
.catalog-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: bold; }

.catalog-price { 
    font-size: 24px; 
    font-weight: 800; 
    background-color: rgba(10, 122, 127, 0.05); 
    color: var(--color-text-main);
    padding: 12px 0; 
    border-radius: 6px; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; 
}

.catalog-price:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.custom-solutions {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-accent);
    padding: 30px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.custom-solutions-text h3 { font-size: 20px; color: var(--color-primary); margin-bottom: 10px; }
.custom-solutions-text p { color: var(--color-text-muted); font-size: 15px; line-height: 1.6; }

/* =========================================
   КВИЗ (QUIZ)
   ========================================= */
.quiz { background-color: var(--color-white); }
.quiz-wrapper { 
    display: flex; 
    background: linear-gradient(135deg, var(--color-primary), #05484a); 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.quiz-content { flex: 1; padding: 50px; color: var(--color-white); }
.quiz-title { font-size: 28px; font-weight: 800; margin-bottom: 30px; line-height: 1.3; }
.quiz-step { background-color: var(--color-white); border-radius: 12px; padding: 40px 30px; color: var(--color-text-main); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.step-question { font-size: 20px; font-weight: 700; margin-bottom: 25px; text-align: center; }
.quiz-options { display: flex; gap: 15px; margin-bottom: 30px; }

.quiz-option { 
    flex: 1; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
}
.quiz-option input { display: none; }
.option-box {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 15px;
    padding: 25px 15px; 
    border: 2px solid var(--color-border);
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 15px;
    color: var(--color-text-main);
    transition: all 0.3s ease; 
    text-align: center;
    flex: 1; 
    background-color: var(--color-white);
}

.option-box svg {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.quiz-option input:checked + .option-box { 
    border-color: var(--color-accent); 
    background-color: rgba(10, 122, 127, 0.04); 
    color: var(--color-accent); 
    box-shadow: 0 4px 15px rgba(10, 122, 127, 0.1);
}
.quiz-option input:checked + .option-box svg {
    color: var(--color-accent);
    transform: scale(1.1);
}
.quiz-option:hover .option-box { border-color: var(--color-accent); }

.btn-next { width: 100%; font-size: 16px; padding: 15px; }

.quiz-sidebar {
    width: 320px; 
    background-color: rgba(0,0,0,0.15); 
    padding: 50px 30px; 
    color: var(--color-white); 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.gift-box { text-align: center; }
.gift-icon-wrapper {
    width: 90px;
    height: 90px;
    background: rgba(251, 191, 36, 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}
.gift-box h4 { font-size: 20px; margin-bottom: 25px; line-height: 1.4; }
.gift-box ul { list-style: none; text-align: left; }
.gift-box ul li { font-size: 15px; margin-bottom: 15px; padding-left: 30px; position: relative; opacity: 0.95; line-height: 1.5; }
.gift-box ul li::before { content: "✓"; position: absolute; left: 0; color: #FBBF24; font-weight: bold; font-size: 16px; }

/* =========================================
   ГАЛЕРЕЯ (ПРОМО-БЛОК НА ГЛАВНОЙ)
   ========================================= */
.gallery-promo {
    position: relative;
    background: url('img/gallery-bg.webp') center/cover no-repeat fixed; 
    padding: 100px 0;
    text-align: center;
}

.gallery-promo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 95, 99, 0.85); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px); 
    z-index: 1;
}

.gallery-promo .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-promo-desc {
    color: var(--color-white);
    margin: 0 auto 50px;
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
}

.promo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.promo-gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 3px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.promo-gallery-grid img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
}

.gallery-btn-wrapper {
    text-align: center;
}

.gallery-promo-btn {
    background-color: #F97316; 
    color: var(--color-white);
    font-size: 18px;
    font-weight: 800;
    padding: 20px 50px;
    border-radius: 50px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.gallery-promo-btn:hover {
    background-color: #ea580c;
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.5);
}

.gallery-promo-btn span {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.gallery-promo-btn:hover span {
    transform: translateX(8px); 
}

/* =========================================
   ПРОФИЛЬ REACHMONT
   ========================================= */
.profile {
    background-color: var(--color-white);
}

.profile-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-content {
    flex: 1;
}

.profile-content .section-title span {
    color: var(--color-accent);
}

.profile-text {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.profile-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-features li {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.profile-features strong {
    color: var(--color-text-main);
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.profile-features span {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.profile-image {
    flex: 1;
    display: flex;
}

/* =========================================
   ФУРНИТУРА И БЕЗОПАСНОСТЬ (HARDWARE)
   ========================================= */
.hardware {
    background-color: var(--color-bg-light); 
}

.hardware-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hardware-image {
    flex: 1.3; 
    position: relative;
}

.hardware-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    object-fit: cover;
}

.hardware-image-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background-color: var(--color-white);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid var(--color-accent);
    z-index: 2;
}

.hardware-content {
    flex: 1;
}

.hardware-content .section-title span {
    color: var(--color-accent);
}

.hardware-text {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hardware-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hardware-features li {
    position: relative;
    padding-left: 45px;
}

.hardware-features li::before {
    content: "🛡"; 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 26px;
}

.hardware-features strong {
    color: var(--color-text-main);
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.hardware-features span {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================
   FAQ (ЧАСТЫЕ ВОПРОСЫ)
   ========================================= */
.faq { background-color: var(--color-bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.faq-item { 
    background-color: var(--color-white); 
    border-radius: 8px; 
    border: 1px solid var(--color-border); 
    overflow: hidden;
}

.faq-question { 
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    outline: none;
    font-family: inherit;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer { 
    padding: 0 30px 25px 30px; 
    color: var(--color-text-muted); 
    font-size: 15px; 
    line-height: 1.6; 
}

/* =========================================
   МОДАЛЬНОЕ ОКНО (ПОПАП)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-header h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-body p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.modal-input:focus {
    border-color: var(--color-accent);
}

.modal-note {
    font-size: 12px !important;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0 !important;
}

/* =========================================
   ПЛАВАЮЩАЯ КНОПКА ЗВОНКА
   ========================================= */
.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.floating-text {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-phone:hover .floating-text {
    opacity: 1;
    transform: translateX(0);
}

.phone-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(10, 122, 127, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.floating-phone:hover .phone-icon-wrapper {
    transform: scale(1.05);
}

.pulsing-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================
   ОТЗЫВЫ (VK СТИЛЬ)
   ========================================= */
.reviews { background-color: var(--color-bg-light); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.reviewer-avatar {
    width: 45px;
    height: 45px;
    background-color: #2787F5; 
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 15px;
}
.reviewer-info {
    display: flex;
    flex-direction: column;
}
.reviewer-info strong {
    color: var(--color-text-main);
    font-size: 16px;
}
.reviewer-info span {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 2px;
}
.vk-icon {
    position: absolute;
    right: 0;
    top: 5px;
    color: #2787F5;
    font-weight: 800;
    font-size: 14px;
    background: rgba(39, 135, 245, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}
.review-text {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* =========================================
   ПОДВАЛ (FOOTER) - НОВЫЙ ДИЗАЙН
   ========================================= */
.footer { 
    background-color: #1F2937; 
    color: #F3F4F6; 
    padding: 60px 0 30px; 
    border-top: none; 
}
.footer-top { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1.5fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}
.footer-col h4 { 
    color: #FFFFFF; 
    font-size: 18px; 
    margin-bottom: 20px; 
    font-weight: 700; 
}
.footer-col ul { 
    list-style: none; 
}
.footer-col ul li { 
    margin-bottom: 12px; 
}
.footer-col ul li a { 
    color: #9CA3AF; 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.3s; 
    cursor: pointer; 
}
.footer-col ul li a:hover { 
    color: #FFFFFF; 
}
.footer-contacts-col { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}
.footer-logo { 
    margin-bottom: 5px; 
    display: flex; 
    align-items: center; 
}
.footer-logo-text { 
    font-size: 20px; 
    font-weight: 800; 
    color: #FFFFFF; 
}
.footer-desc { 
    font-size: 12px; 
    color: #9CA3AF; 
    margin-bottom: 15px; 
}
.footer-phone { 
    font-size: 20px; 
    font-weight: 800; 
    color: #FFFFFF; 
    text-decoration: none; 
    margin-bottom: 5px; 
    display: inline-block; 
    transition: color 0.3s;
}
.footer-phone:hover {
    color: var(--color-accent);
}
.footer-callback { 
    color: #F97316; 
    background: none; 
    border: none; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-bottom: 20px; 
    padding: 0; 
    text-decoration: none;
}
.footer-callback:hover { 
    text-decoration: underline; 
}
.footer-socials { 
    margin-bottom: 20px; 
    font-size: 13px; 
    color: #9CA3AF; 
}
.social-icons { 
    display: flex; 
    gap: 10px; 
    margin-top: 8px; 
}
.soc-icon { 
    width: 32px; 
    height: 32px; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 12px; 
    transition: transform 0.3s; 
}
.soc-icon:hover { 
    transform: translateY(-3px); 
}
.soc-icon.tg { background-color: #27A5E7; }
.soc-icon.vk { background-color: #2787F5; }
.soc-icon.wa { background-color: #25D366; }
.footer-legal { 
    font-size: 12px; 
    color: #6B7280; 
    line-height: 1.5; 
    margin-bottom: 15px; 
}
.footer-payments { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}
.footer-payments span { 
    font-weight: 800; 
    font-style: italic; 
    color: #E5E7EB; 
    font-size: 18px;
} 
.footer-payments .mc { 
    color: #F97316; 
    font-size: 18px; 
    font-weight: bold;
}
.footer-bottom { 
    border-top: 1px solid #374151; 
    padding-top: 20px; 
    font-size: 11px; 
    color: #6B7280; 
    line-height: 1.6; 
    text-align: justify; 
}

/* =========================================
   СЕРТИФИКАТЫ
   ========================================= */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.cert-item {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-border);
}
.cert-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* =========================================
   ТУМБЛЕР ГЛАВНЫХ ЭКРАНОВ (ПК / МОБИЛЬНЫЙ)
   ========================================= */
.mobile-hero {
    display: none !important;
}
.desktop-hero {
    display: block;
}

/* =========================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .header-inner { justify-content: center; }
    .main-nav { order: 3; width: 100%; justify-content: center; margin-top: 10px; flex-wrap: wrap; gap: 15px;}
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-advantages { flex-direction: column; gap: 20px; border-left: none; border-top: 4px solid var(--color-primary); padding-left: 0; padding-top: 20px; align-items: center; }
    .hero-actions { align-items: center; }
    .action-note { justify-content: center; text-align: center; }
    
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
    .certificates-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .quiz-wrapper { flex-direction: column; }
    .quiz-sidebar { width: 100%; padding: 30px; }
    .custom-solutions { flex-direction: column; text-align: center; }
    .profile-inner { flex-direction: column; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
	
    /* Настройки фурнитуры для мобильных */
    .hardware-inner { flex-direction: column; }
    .hardware-image-badge { bottom: 20px; right: 20px; font-size: 14px; padding: 10px 15px; }
}

@media (max-width: 768px) {
    /* ПЕРЕКЛЮЧЕНИЕ ГЛАВНЫХ ЭКРАНОВ */
    .mobile-hero {
        display: block !important;
    }
    .desktop-hero {
        display: none !important;
    }

    .hero-title { font-size: 32px; }
    .benefits-grid, .catalog-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .quiz-options { flex-direction: column; }
    .quiz-content { padding: 30px 20px; }
    
    .promo-gallery-grid { grid-template-columns: 1fr !important; gap: 15px; }

    .floating-phone { bottom: 20px; right: 20px; }
    .floating-text { display: none; }

    .reviews-grid { 
        grid-template-columns: 1fr !important; 
        gap: 15px; 
    }
    .certificates-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .review-card {
        padding: 20px; 
    }

    /* Умная обрезка баннера на телефонах */
    .hero-image-mobile {
        height: 500px !important; 
        max-height: none !important;
        object-position: 0% center !important; 
    }
}

/* ИСПРАВЛЕННАЯ ШАПКА ДЛЯ МОБИЛЬНЫХ В ОДНУ ЛИНИЮ */
@media (max-width: 576px) {
    .header-inner {
        flex-wrap: nowrap; 
        justify-content: space-between; 
        align-items: center; 
        gap: 10px;
    }
    .logo { 
        order: 1; 
        flex-shrink: 0;
    }
    .logo img { 
        height: 35px !important; 
    }
    .logo-descriptor {
        display: none !important; 
    }
    
    .header-contacts { 
        order: 2; 
        margin-top: 0; 
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }
    .header-contacts .btn-primary {
        display: none; 
    }
    .phone-link {
        font-size: 16px; 
        font-weight: 800;
        background: transparent; 
        padding: 0;
        white-space: nowrap;
    }
    
    .burger-menu { 
        order: 3; 
        flex-shrink: 0;
    }
}

/* =========================================
   МОБИЛЬНОЕ МЕНЮ (БУРГЕР)
   ========================================= */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    position: relative;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    pointer-events: none; 
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .burger-menu {
        display: flex; 
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 250px;
        height: 100vh;
        background-color: var(--color-bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 9998; 
        padding: 40px;
        margin-top: 0; 
    }

    .main-nav.active {
        right: 0; 
    }

    .main-nav a {
        font-size: 18px;
        margin-bottom: 25px;
    }
}

/* =========================================
   ЛАЙТБОКС (УВЕЛИЧЕНИЕ ФОТО ПРИ КЛИКЕ)
   ========================================= */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #FFFFFF;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--color-accent);
}