@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #FF6B00;
    --text-color: #FFFFFF;
    --dark-blue: #0D2A4F;
    --container-width: 1200px;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: var(--text-color);
    height: 100%;
}

.main-wrapper {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.site-header {
    padding: 20px 0;
}

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

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

.header-logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 15px;
}

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

.contact-info {
    text-align: right;
    margin-right: 20px;
}

.contact-info span {
    font-size: 14px;
    display: block;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    display: block;
}

.contact-info .phone-number {
    font-size: 22px;
}

.work-hours {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.whatsapp-icon img {
    height: 40px;
    width: 40px;
}

/* Main Content */
.site-content .container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-top: 150px;
    padding-bottom: 50px;
}

.promo-section {
    max-width: 50%;
    z-index: 2;
}

.promo-section h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    padding-left: 25px;
    margin-bottom: 40px;
}

.features-list li {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
}

.features-list li::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    position: absolute;
    left: -25px;
    top: 6px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
}

.promo-offer {
    max-width: 250px;
    margin-left: 20px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.feedback-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 42, 79, 0.7);
    z-index: 1;
}

.site-header, .site-content {
    position: relative;
    z-index: 2;
}

.header-logo img {
    height: 65px;
}

.site-content .container {
    display: flex;
    justify-content: space-between;
}

.promo-section {
    max-width: 60%;
}

.image-section {
    max-width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
}

/* Modal Styles */
.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    color: #333;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 850px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}

.form-step {
    display: none;
}
.form-step.active {
    display: block;
}

#calculator-form h2 {
    margin-top: 0;
    color: #333;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.option-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.option-item img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.option-item span {
    font-weight: 500;
    color: #333;
}

.option-item input[type="radio"] {
    display: none;
}

.option-item:has(input[type="radio"]:checked) {
    border-color: #FF6B00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

#calculator-form input[type="text"],
#calculator-form input[type="tel"],
#calculator-form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Footer */
.site-footer {
    background-color: #0052ff;
    color: #ffffff;
    padding: 30px 0;
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-logo img {
    height: 60px;
}

.footer-address, .footer-contacts {
    line-height: 1.5;
}

.footer-address p {
    margin: 0;
}

.footer-contacts a, .footer-contacts span {
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.footer-contacts .phone-number {
    font-size: 18px;
    font-weight: 700;
}

.footer-social .whatsapp-icon img {
    height: 40px;
}

.footer-legal {
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.8;
}

.footer-legal a:hover {
    opacity: 1;
}

.modal-wrapper.text-modal .modal-content {
    max-width: 800px;
    text-align: left;
}

.modal-text-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
}

.modal-text-content h2,
.modal-text-content h4 {
    color: #333;
}

.modal-text-content p {
    line-height: 1.6;
    color: #555;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    /* Header becomes column */
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-info {
        margin-right: 0;
    }

    /* Main content stacks */
    .site-content .container {
        flex-direction: column;
        padding-top: 100px;
    }
    .promo-section,
    .image-section {
        max-width: 100%;
    }
    .promo-section {
        text-align: center;
    }
    .promo-section h1 {
        font-size: 32px;
    }
    .features-list li {
        font-size: 16px;
    }

    /* CTA buttons stack */
    .cta-buttons {
        flex-direction: column;
    }
    .promo-offer {
        margin: 15px 0 0;
        max-width: 100%;
    }

    /* Footer columns */
    .footer-main {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .promo-section h1 {
        font-size: 24px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .contact-info .phone-number {
        font-size: 18px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #FF6B00;
    --text-color: #FFFFFF;
    --dark-blue: #0D2A4F;
    --container-width: 1200px;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    color: var(--text-color);
    height: 100%;
}

.main-wrapper {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* --- Header --- */
.site-header {
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 40px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.contact-info {
    margin-right: 0;
    text-align: center;
}

.contact-info span {
    font-size: 12px;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.contact-info .phone-number {
    font-size: 18px;
}

.work-hours {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.whatsapp-icon img {
    height: 35px;
    width: 35px;
}

/* --- Main Content --- */
.site-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
}

.promo-section {
    max-width: 100%;
    z-index: 2;
    order: 2; /* Текстовый блок будет под картинкой на мобильных */
}

.promo-section h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    margin-top: 20px;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    font-size: 16px;
    margin-bottom: 10px;
}

.features-list li::before {
    top: 5px;
    left: -20px;
    width: 8px;
    height: 8px;
}

.cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 25px;
    font-size: 14px;
}

.promo-offer {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
}

.feedback-time {
    font-size: 12px;
}

.image-section {
    max-width: 80%;
    order: 1; /* Картинка будет над текстом */
    margin-bottom: 20px;
}

.image-section img {
    max-width: 100%;
    height: auto;
}

/* --- Background & Z-index --- */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 42, 79, 0.7);
    z-index: 1;
}

.site-header, .site-content {
    position: relative;
    z-index: 2;
}


/* --- Modal Window --- */
.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    color: #333;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 850px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- Modal Form --- */
.form-step { display: none; }
.form-step.active { display: block; }

#calculator-form h2 {
    font-size: 18px;
    text-align: center;
}

.options-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.option-item img {
    width: 100%;
    height: 140px;
}

/* --- Footer --- */
.site-footer {
    background-color: #0052ff;
    color: #ffffff;
    padding: 20px 0;
    font-size: 12px;
    text-align: center;
}

.footer-main {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-logo img {
    height: 50px;
}

.footer-contacts .phone-number {
    font-size: 16px;
}

.footer-social .whatsapp-icon img {
    height: 35px;
}

.footer-legal {
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}


/* === TABLET STYLES === */
@media (min-width: 768px) {
    /* --- Header --- */
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-contacts {
        flex-direction: row;
        gap: 20px;
    }

    .contact-info {
        text-align: right;
    }

    /* --- Main Content --- */
    .site-content .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 80px;
    }

    .promo-section {
        max-width: 55%;
        order: 1; /* Возвращаем текстовый блок на первое место */
    }

    .promo-section h1 {
        font-size: 38px;
        margin-top: 0;
    }

    .features-list {
        text-align: left;
        padding-left: 25px;
    }

     .features-list li::before {
        left: -25px;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .promo-offer {
        text-align: left;
        margin-left: 20px;
    }

    .image-section {
        max-width: 40%;
        order: 2; /* Картинка снова справа */
        margin-bottom: 0;
    }

    /* --- Modal Window --- */
    .modal-content {
        width: 80%;
    }

    #calculator-form h2 {
        font-size: 22px;
        text-align: left;
    }

    /* --- Footer --- */
    .footer-main {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .footer-legal {
        flex-direction: row;
        justify-content: flex-start;
        gap: 30px;
    }
}


/* === DESKTOP STYLES === */
@media (min-width: 1024px) {
    /* --- Header --- */
    .header-logo img {
        height: 65px;
    }
     .contact-info .phone-number {
        font-size: 22px;
    }
     .whatsapp-icon img {
        height: 40px;
        width: 40px;
    }

    /* --- Main Content --- */
     .site-content .container {
        padding-top: 150px;
        padding-bottom: 50px;
    }

    .promo-section h1 {
        font-size: 48px;
    }

    .features-list li {
        font-size: 18px;
    }

    .promo-section {
        max-width: 60%;
    }

    .image-section {
        max-width: 35%;
    }

    /* --- Footer --- */
    .footer-logo img {
        height: 60px;
    }

    .footer-contacts .phone-number {
        font-size: 18px;
    }
}

