/* Пастэльная золотисто-коричневая палитра */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
    background-color: #faf8f5;
    color: #6e4b2a;
    line-height: 1.6;
}

.page-wrapper {
    background: linear-gradient(135deg, #fefcf8 0%, #f5f1eb 100%);
    min-height: 100vh;
    padding: 40px 0;
}

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

/* Шапка */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.header .subtitle {
    font-size: 18px;
    color: #bfa77a;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.header h1 {
    font-size: 38px;
    margin: 0 auto 20px;
    color: #c9a063;
    line-height: 1.3;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(201, 160, 99, 0.08);
}

/* Основной контент */
.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.image-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(201, 160, 99, 0.13);
    border: 1px solid #f7e9d2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
    object-fit: cover;
}

.main-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 20px 40px rgba(201, 160, 99, 0.18);
}

.text-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.intro-text {
    font-weight: 700;
    margin-bottom: 25px;
    color: #6e4b2a;
    font-size: 18px;
}

.benefits-list {
    list-style-type: none;
    margin-bottom: 30px;
}

.benefits-list li {
    margin-bottom: 18px;
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.5;
}

.benefits-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background-color: #e7c48a;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: #e7c48a;
}

/* Кнопка */
.button-container {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #f3d7a6 0%, #c9a063 100%);
    color: #6e4b2a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(201, 160, 99, 0.18);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(201, 160, 99, 0.25);
    background: linear-gradient(135deg, #e7c48a 0%, #bfa77a 100%);
}

.button-shadow {
    position: absolute;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(201, 160, 99, 0.18) 0%, rgba(0,0,0,0) 70%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    filter: blur(5px);
}

/* Стили модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(201, 160, 99, 0.18);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-container {
    background: #fffaf3;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(201, 160, 99, 0.13);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    padding: 30px;
}

.modal-content h2 {
    color: #6e4b2a;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #bfa77a;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #c9a063;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group--spaced {
    margin-top: 16px;
}

.form-group input {
    padding: 15px;
    border: 2px solid #f3e3c3;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fdf6ee;
}

.form-group input:focus {
    outline: none;
    border-color: #c9a063;
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.13);
    background-color: #fffaf3;
}

.form-group select {
    padding: 15px;
    border: 2px solid #f3e3c3;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fdf6ee;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #c9a063;
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.13);
    background-color: #fffaf3;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fffaf3;
    border-radius: 12px;
    border: 1px solid #f3e3c3;
    box-shadow: 0 2px 8px rgba(201, 160, 99, 0.08);
}

.form-section h3 {
    color: #6e4b2a;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e7c48a;
    padding-bottom: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e7c48a;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fffaf3;
    color: #6e4b2a;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #c9a063;
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.13);
    background-color: #fffaf3;
}

.form-group textarea::placeholder {
    color: #bfa77a;
}

.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.phone-input-group select {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    max-width: 200px;
}

.phone-input-group input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.form-question {
    font-weight: 600;
    color: #6e4b2a;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkbox-option:hover {
    background-color: rgba(201, 160, 99, 0.05);
}

.checkbox-option input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e7c48a;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
    background-color: #fffaf3;
}

.checkbox-option input:checked ~ .checkbox-custom {
    background-color: #c9a063;
    border-color: #c9a063;
}

.checkbox-option input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-option:hover .checkbox-custom {
    border-color: #c9a063;
}

/* Текст после квадратика делаем курсивным во всех пунктах множественного выбора */
.checkbox-option .checkbox-custom + span {
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e7c48a;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked ~ .radio-custom {
    background-color: #c9a063;
    border-color: #c9a063;
}

.radio-option:hover .radio-custom {
    border-color: #c9a063;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header h1 {
        font-size: 28px;
    }
    
    .content {
        flex-direction: column;
        gap: 40px;
    }
    
    .main-image {
        transform: none;
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-input-group select,
    .phone-input-group input[type="tel"] {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .form-section h3 {
        font-size: 18px;
    }
    
    .form-group--spaced {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }
    
    .header .subtitle {
        font-size: 16px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-group select {
        padding: 12px;
        font-size: 14px;
    }
    
    .checkbox-group {
        gap: 12px;
    }
}

html {
    scroll-behavior: smooth;
}