/* ===== ПЕРЕМЕННЫЕ И СБРОС ===== */
:root {
    --primary: #ff6b35;
    --primary-dark: #e85d2c;
    --primary-light: #ff8c5a;
    --secondary: #2ec4b6;
    --secondary-dark: #25a89b;
    --accent: #ffd93d;
    --success: #06d6a0;
    --danger: #ef476f;
    --dark: #2d3142;
    --dark-gray: #4f5d75;
    --gray: #7c8a9e;
    --light-gray: #e5e9f0;
    --light: #f8f9ff;
    --white: #ffffff;
    
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-2: linear-gradient(135deg, #2ec4b6 0%, #25a89b 100%);
    --gradient-3: linear-gradient(135deg, #ffd93d 0%, #ffc107 100%);
    --gradient-4: linear-gradient(135deg, #2d3142 0%, #4f5d75 100%);
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ХЕДЕР ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.2rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header.scrolled .navbar { padding: 0.2rem 0; }
.header.scrolled .logo h1 { font-size: 1.3rem; margin-bottom: 0; }
.header.scrolled .logo p { display: none; }
.header.scrolled .nav-menu a { padding: 0.15rem 0; font-size: 0.9rem; }
.header.scrolled .phone { padding: 0.4rem 1rem !important; font-size: 0.85rem; }
.header.scrolled .telegram-link { padding: 0.25rem 0.6rem !important; font-size: 0.8rem; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}
.logo h1 i { color: var(--secondary); animation: rotate 10s linear infinite; }
.logo p { color: var(--gray); font-size: 0.875rem; }

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: var(--radius-full);
}
.nav-menu a:hover { color: var(--primary); transform: translateY(-2px); }
.nav-menu a:hover::after { width: 100%; }

.phone {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
}
.phone:hover { transform: translateY(-2px) scale(1.05) !important; box-shadow: var(--shadow-glow); }
.phone::after { display: none !important; }

.telegram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: var(--transition);
}
.telegram-link:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3); }

.mobile-menu-btn {
    display: none;
    background: var(--gradient-1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-btn:hover { transform: rotate(90deg); }

/* ===== HERO ===== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 8s infinite;
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; animation: slideIn 1s ease; }
.hero h1 span { color: var(--accent); position: relative; display: inline-block; }
.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s infinite;
}
.hero-subtitle { font-size: 1.75rem; margin-bottom: 1rem; animation: slideIn 1s ease 0.2s both; }
.hero-description { margin-bottom: 2.5rem; animation: slideIn 1s ease 0.4s both; }
.hero-buttons { animation: slideIn 1s ease 0.6s both; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: -1;
}
.btn:hover::before { left: 100%; }
.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow);
    margin-right: 1rem;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-glow); }
.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }
.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--light-gray);
}
.btn-secondary:hover { background: var(--light-gray); }

/* ===== СЕКЦИЯ КОТЕЛЬНЫХ С ПАРАЛЛАКСОМ ===== */
.boilers-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--dark);
    background-image: url('https://tgs-teplo.ru/img/kot.jpg');
    background-attachment: fixed;
    background-position: center 17%;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    color: var(--white);
}
.boilers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}
.boilers-section .section-title,
.boilers-section .section-title::after,
.boilers-section p { color: var(--white); }
.boilers-section .section-title::after { background: var(--gradient-1); }

.boilers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.boiler-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.boiler-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}
.boiler-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.boiler-icon i { color: var(--primary); }
.boiler-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--dark); }

.features-list {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    font-size: 0.875rem;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}
.features-list li i { color: var(--secondary); margin-top: 0.25rem; }

.boiler-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.boiler-link:hover { color: var(--primary-dark); gap: 0.5rem; }

/* ===== ТЕХНОЛОГИИ МОНТАЖА С ПАРАЛЛАКСОМ ===== */
.technology-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--light);
    background-image: url('https://tgs-teplo.ru/img/10.jpg');
    background-attachment: fixed;
    background-position: center 18%;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    color: var(--white);
}
.technology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}
.technology-section .section-title,
.technology-section .section-title::after { color: var(--white); position: relative; z-index: 1; }
.technology-section .section-title::after { background: var(--gradient-1); }

.technology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    color: var(--white);
}
.tech-card:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-10px); }
.tech-card h3 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.5rem; }

.tech-steps { list-style: none; counter-reset: step; }
.tech-steps li {
    counter-increment: step;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}
.tech-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.additional-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.service-item:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-10px); }
.service-item i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; transition: var(--transition); }
.service-item:hover i { transform: scale(1.2) rotate(360deg); }
.service-item h4 { color: var(--accent); margin-bottom: 1rem; }

/* ===== СТОИМОСТЬ МОНТАЖА ===== */
.pricing-section { padding: 80px 0; background: var(--white); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
}

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.pricing-grid-top { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }

.price-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.price-card:hover::before { transform: translateX(0); }
.price-card.highlight { background: var(--gradient-1); color: var(--white); }
.price-card.highlight .price { color: var(--white); }
.price-header h3 { font-size: 1.1rem; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.price-header h3 i { color: var(--primary); }
.price-card.highlight .price-header h3 i { color: var(--white); }
.price { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

/* ===== КВИЗ ===== */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}
.quiz-header { text-align: center; margin-bottom: 3rem; }
.quiz-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--white); }

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-hover);
}

.quiz-progress { margin-bottom: 2rem; }
.progress-stats { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: var(--dark); }
.progress-bar { height: 10px; background: var(--light-gray); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 20%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

.question { display: none; animation: slideIn 0.5s ease; }
.question.active { display: block; }
.question h3 { color: var(--dark); margin-bottom: 1.5rem; font-size: 1.25rem; }

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f2937;
    text-align: center;
    font-weight: 500;
}
.option label i { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--primary); }
.option input:checked + label {
    background: var(--gradient-1);
    border-color: var(--primary);
    color: #ffffff;
}
.option input:checked + label i { color: #ffffff; }
.option label:hover { border-color: var(--primary); transform: translateY(-2px); }

.area-input { display: flex; align-items: center; gap: 1rem; }
.area-input input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}
.area-input input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-glow); }
.area-input span { font-size: 1.125rem; color: var(--gray); }

.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ===== КОМПАКТНЫЙ КВИЗ ===== */
.quiz-container {
    max-width: 700px;
    padding: 1.5rem;
}

.quiz-progress {
    margin-bottom: 1rem;
}

.progress-stats {
    font-size: 0.8rem;
}

.question h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.options-grid {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.option label {
    padding: 0.5rem;
    font-size: 0.85rem;
}

.option label i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.area-input input {
    padding: 0.6rem;
}

.quiz-nav {
    margin-top: 1rem;
}

.quiz-nav .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* ===== РЕЗУЛЬТАТ КВИЗА - ФИОЛЕТОВЫЙ ФОН, ДВЕ КОЛОНКИ ===== */
.quiz-result {
    background: #6762c0;
    border-radius: var(--radius-lg);
    display: none;
    animation: slideIn 0.5s ease;
}

.quiz-result .result-content {
    padding: 1.5rem;
    background: #6762c0;
}

/* Стиль для иконки результата */
.quiz-result .result-content i:first-child {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: #ffd966;
}

.quiz-result .result-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-weight: 600;
}

.quiz-result .result-content > p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Сводка в две колонки на фиолетовом фоне */
.result-summary-compact {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-line {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-line strong {
    color: #ffd966;
    font-weight: 600;
}

/* Форма в две колонки */
.result-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.result-fields {
    background: transparent;
}

.result-fields .form-group {
    margin-bottom: 1rem;
}

.result-fields input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    background: #ffffff;
    color: #1e293b;
    font-size: 0.9rem;
}

.result-fields input:focus {
    outline: none;
    border-color: #ffd966;
    box-shadow: 0 0 0 2px rgba(255, 217, 102, 0.3);
}

.result-fields .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-fields .checkbox-group input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #ff6b35;
}

.result-fields .checkbox-group label {
    font-size: 0.8rem;
    color: #ffffff;
    cursor: pointer;
}

.result-fields .checkbox-group a {
    color: #ffd966;
    text-decoration: underline;
}

/* ===== ОТДЕЛЬНЫЙ СТИЛЬ ДЛЯ КНОПКИ ОТПРАВКИ ===== */
.btn-send-result {
    background: transparent;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-send-result i {
    color: #ffffff;
    font-size: 1rem;
}

.btn-send-result:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Способы получения - брендовые цвета иконок, тёмные подписи */
.contact-methods {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    padding: 1rem;
}

.contact-methods h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methods-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #f1f5f9;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.method-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #ff6b35;
}

.method-option i {
    width: 28px;
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Текст подписи */
.method-option span {
    flex: 1;
    color: #1e293b;
    margin-left: 0;
    padding-left: 0;
}

/* Оригинальные цвета иконок */
.method-option i.fa-telegram { color: #26A5E4; }
.method-option i.fa-whatsapp { color: #25D366; }
.method-option i.fa-envelope { color: #EA4335; }
.method-option i.fa-sms { color: #34B7F1; }

.method-option:hover {
    background: #ffffff;
    transform: translateX(4px);
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.method-option:has(input:checked) {
    background: #ffd966;
    border-color: #ff6b35;
}

.method-option:has(input:checked) i {
    color: #2d3748 !important;
}

.method-option:has(input:checked) span {
    color: #2d3748;
}

/* ===== ПРОЕКТЫ ===== */
.projects-section { padding: 80px 0; background: var(--light); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    min-height: 400px;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-15px) scale(1.02); box-shadow: var(--shadow-hover); }

.project-gallery { position: relative; height: 250px; overflow: hidden; }
.gallery-slider { position: relative; height: 100%; }
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-dot.active { background: var(--white); transform: scale(1.2); }

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.25rem;
    transition: var(--transition);
    z-index: 2;
}
.gallery-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.gallery-arrow.left { left: 1rem; }
.gallery-arrow.right { right: 1rem; }

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--success);
    color: var(--white);
    z-index: 2;
}
.project-info { padding: 1.5rem; }
.project-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.project-meta { display: flex; gap: 1rem; margin: 0.75rem 0; color: var(--gray); font-size: 0.875rem; }
.project-meta i { color: var(--primary); }
.project-prices { background: var(--light); padding: 1rem; border-radius: var(--radius); margin: 1rem 0; }
.price-item { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.price-item:last-child { margin-bottom: 0; }
.price-label { color: var(--gray); }
.price-value { font-weight: 600; color: var(--primary); }

/* ===== ПРОЦЕСС РАБОТЫ ===== */
.process-section { padding: 80px 0; background: var(--light); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.step {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}
.step:hover::before { opacity: 0.05; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.step:hover .step-number { transform: rotate(360deg) scale(1.1); }
.step h4 { font-size: 1rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.step p { font-size: 0.875rem; color: var(--gray); position: relative; z-index: 1; }

/* ===== КОНТАКТЫ ===== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d3142 0%, #4f5d75 100%);
    color: var(--white);
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-hover);
}
.contact-info { padding: 3rem; background: var(--gradient-4); color: var(--white); }
.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-details { margin-top: 2rem; }
.contact-details p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-details i { width: 24px; color: var(--accent); }

.contact-form { padding: 3rem; background: var(--white); }
.modern-form .form-group { margin-bottom: 1.5rem; }
.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}
.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ФОРМА В ПОДВАЛЕ */
.footer-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-form .checkbox-group input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; cursor: pointer; }
.footer-form .checkbox-group label {
    margin: 0;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    line-height: 1.3;
}
.footer-form .checkbox-group a { color: #ffaa66; text-decoration: underline; }
.footer-form .checkbox-group a:hover { color: #ff8c5a; }

/* ===== ФУТЕР ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
}
.footer h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
}
.footer p, .footer a {
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}
.footer a:hover { color: var(--white); transform: translateX(5px); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--gray);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay.active { display: flex; }
.modal-content { position: relative; max-width: 90vw; max-height: 90vh; }
.modal-content img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.5); transform: rotate(90deg); }
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}
.modal-nav:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-50%) scale(1.1); }
.modal-nav.prev { left: 20px; }
.modal-nav.next { right: 20px; }
.modal-counter {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: 0.875rem;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 1200px) {
    .boilers-grid { grid-template-columns: repeat(3, 1fr); }
    .process-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .contact-card { grid-template-columns: 1fr; }
    .pricing-grid, .pricing-grid-top { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        flex-direction: column;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .header.scrolled .logo p { display: block; font-size: 0.7rem; }
    .telegram-link { width: fit-content; margin-top: 0.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .boilers-grid { grid-template-columns: repeat(2, 1fr); }
    .boilers-section { background-attachment: scroll; background-position: center 10%; }
    .technology-section { background-attachment: scroll; }
    .process-steps { grid-template-columns: 1fr; }
    .modal-nav { width: 40px; height: 40px; font-size: 1rem; }
    .modal-nav.prev { left: 10px; }
    .modal-nav.next { right: 10px; }
    
    /* Мобильные стили для квиза */
    .quiz-container {
        padding: 1rem;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .option label {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .option label i {
        font-size: 1rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-nav {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quiz-nav .btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Мобильные стили для результата квиза */
    .quiz-result .result-content {
        padding: 1rem;
    }
    
    .result-summary-compact {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .summary-line {
        font-size: 0.85rem;
    }
    
    .result-form-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-methods {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .methods-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .method-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .options-grid { grid-template-columns: 1fr; }
    .quiz-nav { flex-direction: column; }
    .project-gallery { height: 200px; }
    .pricing-grid, .pricing-grid-top { grid-template-columns: 1fr; }
    .boilers-grid { grid-template-columns: 1fr; }
    
    /* Дополнительные мобильные стили */
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .result-summary-compact {
        padding: 0.6rem;
    }
    
    .summary-line {
        font-size: 0.8rem;
    }
    
    .quiz-result .result-content {
        padding: 0.75rem;
    }
    
    .quiz-result .result-content h3 {
        font-size: 1.2rem;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ЛОГОТИПА И МОБИЛЬНОЙ ВЕРСИИ ===== */

/* Логотип как ссылка */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-link:hover .logo h1 {
    color: var(--primary-dark);
    transition: var(--transition);
}

/* Кнопка "Получить расчёт" по центру на мобильных */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
        width: auto;
        min-width: 200px;
        text-align: center;
    }
}

/* Иконки для этажей */
.option label[for="floor1"] i,
.option label[for="floor2"] i,
.option label[for="floor3"] i {
    font-size: 1.5rem;
}

/* Исправление отображения иконок в квизе */
.options-grid .option label i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Стили для мобильного меню при открытии */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .nav-menu.active a {
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu.active .telegram-link,
    .nav-menu.active .phone {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ЦВЕТА ССЫЛОК В ПОДВАЛЕ И ФОРМЕ ===== */

/* Контакты в подвале - белые ссылки */
.footer .footer-grid .contacts a,
.footer .footer-grid a {
    color: #e2e8f0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-grid .contacts a:hover,
.footer .footer-grid a:hover {
    color: #ffaa66 !important;
    text-decoration: underline;
}

/* Контакты в секции "Смета и проект бесплатно" - белые ссылки */
.contact-details a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Иконки в контактах - жёлтые */
.contact-details i {
    color: #ffd966;
}

/* Форма обратной связи в подвале - белый текст для чекбокса */
.footer-form .checkbox-group label {
    color: #e2e8f0 !important;
}

.footer-form .checkbox-group a {
    color: #ffaa66 !important;
    text-decoration: underline;
}

.footer-form .checkbox-group a:hover {
    color: #ff8c5a !important;
}

/* Контакты в подвале - иконка и ссылка в одной строке */
.footer .footer-grid .contacts p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer .footer-grid .contacts i {
    width: 24px;
    color: #ffaa66;
}