@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-light: #FBF9F6;      /* Мягкий льняной фон */
    --bg-white: #FFFFFF;
    --dark-brown: #241D1A;    /* Глубокий кофейно-черный */
    --terracotta: #B95932;    /* Благородный терракотовый */
    --terracotta-hover: #9E4624;
    --text-muted: #5E5550;    /* Теплый серый */
    --border-color: #E6DFD9;  /* Тонкие изящные разделители */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--dark-brown);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}



/* === ТИПОГРАФИКА И КНОПКИ === */
.section-tag {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--terracotta);
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--dark-brown);
    margin-top: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border-radius: 0;
}

.btn-accent {
    background-color: var(--terracotta);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: var(--terracotta-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--dark-brown);
    color: var(--dark-brown);
}

.btn-outline:hover {
    background-color: var(--dark-brown);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* === ШАПКА === */
.main-header {
    background-color: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dark-brown);
}

.logo-accent {
    color: var(--terracotta);
}

.main-nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dark-brown);
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--terracotta);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark-brown);
}

.header-contacts .btn {
    padding: 10px 20px;
    font-size: 10px;
}

/* === ГЛАВНЫЙ ЭКРАН === */
.hero {
    padding: 100px 0 80px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--terracotta);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--dark-brown);
    margin-bottom: 25px;
}

.hero h1 strong {
    font-weight: 700;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image-placeholder {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #E6DFD9 0%, #D4C9C0 100%);
    position: relative;
    box-shadow: 0 20px 40px rgba(36, 29, 26, 0.05);
}

/* === СРАВНЕНИЕ ЦЕН === */
.comparison-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.comparison-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
}

.comparison-card.accent-card {
    border: 2px solid var(--terracotta);
}

.comparison-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comparison-card.accent-card h3 {
    color: var(--terracotta);
}

.comparison-list {
    list-style: none;
    margin-bottom: 30px;
}

.comparison-list li {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-price {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-brown);
}

.comparison-card.accent-card .comparison-price {
    color: var(--terracotta);
}

/* === ГАРАНТИИ === */
.guarantees {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.guarantee-card {
    border-left: 3px solid var(--terracotta);
    padding-left: 25px;
}

.guarantee-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.guarantee-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* === ПРОМО-БЛОК === */
.interactive-promo {
    padding: 100px 0;
    background-color: var(--dark-brown);
    color: var(--bg-white);
    text-align: center;
}

.interactive-promo h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

.interactive-promo p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* === НАПРАВЛЕНИЯ === */
.directions {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.direction-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-card:hover {
    border-color: var(--terracotta);
    transform: translateY(-5px);
    background-color: var(--bg-white);
    box-shadow: 0 15px 35px rgba(36, 29, 26, 0.03);
}

.direction-num {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--terracotta);
    font-weight: 600;
}

.direction-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin: 20px 0 15px;
}

.direction-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.direction-card .btn {
    align-self: flex-start;
    padding: 10px 0;
    font-size: 11px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--dark-brown);
}

.direction-card .btn:hover {
    border-bottom-color: var(--terracotta);
    color: var(--terracotta);
    transform: none;
}

/* === БЛОК ТЕХНОЛОГА === */
.technologist-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.technologist-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.technologist-image {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #D4C9C0 0%, #B9AEA5 100%);
    position: relative;
}

.technologist-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

.technologist-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.technologist-features {
    list-style: none;
    margin-bottom: 40px;
}

.technologist-features li {
    font-size: 14px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.technologist-features li::before {
    content: '✓';
    color: var(--terracotta);
    font-weight: bold;
}

/* === FAQ === */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-wrapper {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-brown);
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    display: none;
    padding-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

/* === ПОДВАЛ === */
.main-footer {
    background-color: var(--dark-brown);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo .logo-accent {
    color: var(--terracotta);
}

.footer-info p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4, .footer-contacts h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-white);
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.footer-contacts p {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-contacts a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* === ОГРАНИЧЕНИЕ СТИЛЕЙ ДЛЯ ТЕКСТОВЫХ ПОЛЕЙ === */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form textarea,
form select {
    width: 100%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--dark-brown);
    border-radius: 0;
    display: block;
}

/* === СБРОС И КОРРЕКТИРОВКА РАДИО-КНОПОК === */
form input[type="radio"],
form input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    cursor: pointer;
}

/* === МОДАЛЬНЫЕ ОКНА === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 29, 26, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 0;
    max-width: 550px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-brown);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* === КВИЗ ВСПЛЫВАЮЩИЙ === */
.quiz-content {
    max-width: 650px;
}

.quiz-progress {
    height: 4px;
    background-color: var(--border-color);
    margin-bottom: 30px;
}

.quiz-progress-bar {
    height: 100%;
    background-color: var(--terracotta);
    width: 25%;
    transition: width 0.3s;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--terracotta);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* === ВИДЖЕТ ЧАТА === */
.chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--terracotta);
    color: var(--bg-white);
    border: none;
    padding: 16px 28px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(185, 89, 50, 0.2);
    z-index: 999;
    transition: all 0.3s;
}

.chat-trigger:hover {
    background-color: var(--terracotta-hover);
    transform: translateY(-2px);
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    background-color: var(--bg-white);
    box-shadow: 0 15px 45px rgba(36, 29, 26, 0.1);
    display: none;
    flex-direction: column;
    z-index: 999;
    border: 1px solid var(--border-color);
}

.chat-header {
    background-color: var(--dark-brown);
    color: var(--bg-white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-status {
    width: 8px;
    height: 8px;
    background-color: #2ECC71;
    border-radius: 50%;
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-grow: 1;
}

.chat-toggle-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.chat-toggle-btn:hover {
    opacity: 1;
}

.chat-body {
    height: 280px;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    padding: 12px 16px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.5;
    border-radius: 0;
}

.bot-msg {
    background-color: var(--bg-white);
    color: var(--dark-brown);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.user-msg {
    background-color: var(--terracotta);
    color: var(--bg-white);
    align-self: flex-end;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chat-footer form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Жестко изолируем инпуты в футере чата от растягивания */
.chat-footer input[type="text"],
.chat-footer input[type="tel"] {
    margin-bottom: 0 !important;
    flex-grow: 1;
    padding: 12px !important;
    width: 100% !important;
}

.chat-footer button {
    background-color: var(--terracotta);
    border: none;
    color: var(--bg-white);
    padding: 14px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
    .hero-grid, .comparison-grid, .technologist-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .directions-grid, .guarantees-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .container {
        padding: 0 20px;
    }
    .chat-widget {
        width: calc(100% - 40px);
        right: 20px;
    }
    .quiz-options {
        grid-template-columns: 1fr;
    }
}
/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ PORTFOLIO И ABOUT === */

/* Сетка проектов */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--terracotta);
    box-shadow: 0 15px 30px rgba(36, 29, 26, 0.03);
}

.project-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #E6DFD9 0%, #D4C9C0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.project-meta {
    list-style: none;
    margin-bottom: 25px;
}

.project-meta li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

.project-meta li:last-child {
    border-bottom: none;
}

.project-meta span {
    font-weight: 500;
    color: var(--dark-brown);
}

/* О компании */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 25px;
}

.about-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--terracotta);
}

.stat-item p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Мобильный адаптив для новых страниц */
@media (max-width: 768px) {
    .projects-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .project-image {
        height: 250px;
    }
}

/* АДАПТИВНАЯ МОБИЛЬНАЯ ВЕРСИЯ (Для экранов до 768px) */
@media (max-width: 768px) {
    /* Общие отступы контейнеров */
    .container {
        padding: 0 15px !important;
    }

    /* Шапка сайта */
    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 10px !important;
    }
    .main-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    .header-contacts {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .header-contacts .phone-link {
        font-size: 18px !important;
    }
    .header-contacts .btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Первый экран (Hero) */
    .hero {
        padding: 30px 0 !important;
    }
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .hero-description {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
    }

    /* Блок сравнения цен */
    .comparison-section {
        padding: 30px 0 !important;
    }
    .comparison-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 25px !important;
    }

    /* Блок гарантий */
    .guarantees-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Направления производства */
    .directions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .direction-card {
        padding: 20px !important;
    }

    /* Блок технолога (Замер) */
    .technologist-section {
        padding: 30px 0 !important;
    }
    .technologist-grid {
        display: flex !important;
        flex-direction: column-reverse !important; /* Картинка будет снизу, текст сверху */
        gap: 25px !important;
    }
    .technologist-content {
        text-align: center !important;
    }
    .technologist-content h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .technologist-features {
        text-align: left !important;
        padding-left: 15px !important;
    }
    .technologist-content .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    /* Подвал сайта (Footer) */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    .footer-info, .footer-links, .footer-contacts {
        width: 100% !important;
    }
    .footer-links a {
        display: block !important;
        margin: 8px 0 !important;
    }
}

/* ==================== БУРГЕР-МЕНЮ И ДЕСКТОП СТИЛИ ==================== */

/* Кнопка бургера (скрыта на ПК) */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
}
.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #3e2723; /* Цвет полосок (можно заменить на цвет вашей темы) */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Анимация крестика при активации бургера */
.burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Стили обертки на десктопе */
.header-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* ==================== АДАПТИВ ДЛЯ МОБИЛЬНЫХ (До 768px) ==================== */
@media (max-width: 768px) {
    /* Общие отступы */
    .container {
        padding: 0 15px !important;
    }

    /* Поведение шапки */
    .header-container {
        position: relative !important;
        padding: 15px 10px !important;
    }

    /* Показываем бургер */
    .burger-btn {
        display: flex !important;
    }

    /* Боковая панель меню (выезжает справа) */
    .header-menu-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Прячем за экран вправо */
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 90px 30px 40px 30px !important;
        gap: 35px !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1005 !important;
        margin-left: 0 !important;
    }

    /* Состояние открытого меню */
    .header-menu-wrapper.active {
        right: 0 !important;
    }

    /* Ссылки навигации на мобильном */
    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
    }
    .main-nav .nav-link {
        font-size: 18px !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }

    /* Блок контактов на мобильном */
    .header-contacts {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .header-contacts .phone-link {
        font-size: 20px !important;
        font-weight: bold !important;
    }
    .header-contacts .btn {
        width: 100% !important;
    }

    /* Блокировка прокрутки фона при открытом меню */
    body.body-menu-open {
        overflow: hidden !important;
    }

    /* Перестроение остальных блоков сайта на мобильном */
    .hero {
        padding: 30px 0 !important;
    }
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .hero-description {
        font-size: 15px !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
    }

    .comparison-section {
        padding: 30px 0 !important;
    }
    .comparison-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .guarantees-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .directions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .direction-card {
        padding: 20px !important;
    }

    .technologist-section {
        padding: 30px 0 !important;
    }
    .technologist-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 25px !important;
    }
    .technologist-content {
        text-align: center !important;
    }
    .technologist-content h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .technologist-features {
        text-align: left !important;
        padding-left: 15px !important;
    }
    .technologist-content .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    .footer-info, .footer-links, .footer-contacts {
        width: 100% !important;
    }
}
/* ==================== БУРГЕР-МЕНЮ И ДЕСКТОП СТИЛИ ==================== */

/* Кнопка бургера (скрыта на ПК) */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
}
.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #3e2723; /* Цвет полосок (можно заменить на цвет вашей темы) */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Анимация крестика при активации бургера */
.burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Стили обертки на десктопе */
.header-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* ==================== АДАПТИВ ДЛЯ МОБИЛЬНЫХ (До 768px) ==================== */
@media (max-width: 768px) {
    /* Общие отступы */
    .container {
        padding: 0 15px !important;
    }

    /* Строго фиксируем логотип и бургер в один ряд по бокам экрана */
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        padding: 15px 10px !important;
    }

    /* Показываем бургер */
    .burger-btn {
        display: flex !important;
    }

    /* Боковая панель меню (выезжает справа) */
    .header-menu-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Прячем за экран вправо */
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 90px 30px 40px 30px !important;
        gap: 35px !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1005 !important;
        margin-left: 0 !important;
    }

    /* Состояние открытого меню */
    .header-menu-wrapper.active {
        right: 0 !important;
    }

    /* Ссылки навигации на мобильном */
    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
    }
    .main-nav .nav-link {
        font-size: 18px !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }

    /* Блок контактов на мобильном */
    .header-contacts {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .header-contacts .phone-link {
        font-size: 20px !important;
        font-weight: bold !important;
    }
    .header-contacts .btn {
        width: 100% !important;
    }

    /* Блокировка прокрутки фона при открытом меню */
    body.body-menu-open {
        overflow: hidden !important;
    }

    /* Перестроение остальных блоков сайта на мобильном */
    .hero {
        padding: 30px 0 !important;
    }
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .hero-description {
        font-size: 15px !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
    }

    .comparison-section {
        padding: 30px 0 !important;
    }
    .comparison-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .guarantees-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .directions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .direction-card {
        padding: 20px !important;
    }

    .technologist-section {
        padding: 30px 0 !important;
    }
    .technologist-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 25px !important;
    }
    .technologist-content {
        text-align: center !important;
    }
    .technologist-content h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .technologist-features {
        text-align: left !important;
        padding-left: 15px !important;
    }
    .technologist-content .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    .footer-info, .footer-links, .footer-contacts {
        width: 100% !important;
    }
}
/* ==================== ГЛОБАЛЬНЫЙ ЗАПРЕТ ГОРИЗОНТАЛЬНОГО СКРОЛЛА ==================== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* ==================== БУРГЕР-МЕНЮ И ДЕСКТОП СТИЛИ ==================== */

/* Кнопка бургера (скрыта на ПК) */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
}
.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #3e2723; /* Цвет полосок бургера */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Анимация крестика при активации бургера */
.burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Стили обертки на десктопе (восстановление оригинального вида ПК-шапки) */
.header-menu-wrapper {
    display: contents;
}

/* ==================== АДАПТИВ ДЛЯ МОБИЛЬНЫХ (До 768px) ==================== */
@media (max-width: 768px) {
    /* Общие отступы контейнеров */
    .container {
        padding: 0 15px !important;
    }

    /* Фиксируем логотип и бургер в один ряд */
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        padding: 15px 10px !important;
    }

    /* Показываем бургер */
    .burger-btn {
        display: flex !important;
    }

    /* Боковая панель меню (скрыта по умолчанию через translateX) */
    .header-menu-wrapper {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        
        /* Вместо смещения по координатам используем трансформацию (избавляет от бокового скролла) */
        transform: translateX(100%) !important; 
        
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 90px 30px 40px 30px !important;
        gap: 35px !important;
        z-index: 1005 !important;
        margin-left: 0 !important;
        
        visibility: hidden !important;
        opacity: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s !important;
    }

    /* Состояние открытого меню */
    .header-menu-wrapper.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ссылки навигации на мобильном */
    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
    }
    .main-nav .nav-link {
        font-size: 18px !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }

    /* Блок контактов на мобильном */
    .header-contacts {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .header-contacts .phone-link {
        font-size: 20px !important;
        font-weight: bold !important;
    }
    .header-contacts .btn {
        width: 100% !important;
    }

    /* Блокировка прокрутки фона */
    body.body-menu-open {
        overflow: hidden !important;
    }

    /* ==================== МОДАЛЬНЫЕ ОКНА И КВИЗ НА МОБИЛЬНОМ ==================== */
    .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 2000 !important;
        overflow-y: auto !important;
        background: rgba(0,0,0,0.75) !important;
    }

    /* Внутренний контейнер модалки (заменен 100vw на безопасный 100% для устранения скролла) */
    .modal-content,
    .modal-content.quiz-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 60px 20px 40px 20px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .close-modal {
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        font-size: 35px !important;
        line-height: 1 !important;
        padding: 5px !important;
        cursor: pointer !important;
        z-index: 2010 !important;
    }

    #quiz-form {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
    }

    /* 
       Шаги квиза. 
       Убран принудительный display: none !important и display: flex !important, 
       чтобы JS-скрипт мог плавно скрывать и показывать шаги без конфликтов.
    */
    .quiz-step {
        display: none;
        flex-direction: column;
        flex-grow: 1;
    }
    .quiz-step.active {
        display: flex;
    }

    /* Варианты ответов в квизе в один столбец */
    .quiz-options {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 20px 0 !important;
    }
    .quiz-option {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Навигационные кнопки квиза прижимаются вниз */
    .quiz-nav {
        display: flex !important;
        gap: 10px !important;
        margin-top: auto !important;
        padding-top: 25px !important;
    }
    .quiz-nav .btn,
    .quiz-step .btn {
        width: 100% !important;
    }

    /* ==================== ДРУГИЕ БЛОКИ САЙТА ==================== */
    .hero {
        padding: 30px 0 !important;
    }
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .hero-description {
        font-size: 15px !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
    }

    .comparison-section {
        padding: 30px 0 !important;
    }
    .comparison-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .guarantees-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .directions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .direction-card {
        padding: 20px !important;
    }

    .technologist-section {
        padding: 30px 0 !important;
    }
    .technologist-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 25px !important;
    }
    .technologist-content {
        text-align: center !important;
    }
    .technologist-content h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .technologist-features {
        text-align: left !important;
        padding-left: 15px !important;
    }
    .technologist-content .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    .footer-info, .footer-links, .footer-contacts {
        width: 100% !important;
    }
}