/* ===========================
   ГЛОБАЛЬНЫЕ СТИЛИ
   =========================== */
:root {
    --color-wood-primary: #8B7355;
    --color-wood-secondary: #A0826D;
    --color-graphite: #2C2C2C;
    --color-blue-accent: #4A90E2;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-medium-gray: #E0E0E0;
    --color-success: #27AE60;
    --color-error: #E74C3C;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--color-graphite);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===========================
   ЭКРАНЫ
   =========================== */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* ===========================
   КНОПКИ
   =========================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--color-blue-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-small);
}

.btn-primary:hover:not(:disabled) {
    background: #3a7bc8;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-graphite);
    border: 2px solid var(--color-medium-gray);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--color-blue-accent);
    color: var(--color-blue-accent);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-social {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-white);
}

.btn-vk { background: #4680C2; }
.btn-telegram { background: #0088cc; }
.btn-whatsapp { background: #25D366; }
.btn-copy { background: var(--color-graphite); }

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===========================
   INTRO SCREEN (Заставка)
   =========================== */
#intro-screen {
    background: linear-gradient(135deg, var(--color-wood-primary) 0%, var(--color-wood-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.intro-container {
    max-width: 700px;
    text-align: center;
    color: var(--color-white);
}

.logo-container {
    margin-bottom: 40px;
}

.company-name {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.company-tagline {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

.intro-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-large);
    color: var(--color-graphite);
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-wood-primary);
}

.intro-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-graphite);
}

.intro-benefits {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
}

.intro-benefits li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.intro-benefits i {
    color: var(--color-success);
    font-size: 20px;
}

.intro-value {
    font-size: 18px;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--color-error);
    font-weight: 600;
}

.intro-free {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 30px;
}

.intro-stats {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* ===========================
   QUIZ SCREEN (Экран квиза)
   =========================== */
#quiz-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.quiz-header {
    background: var(--color-white);
    box-shadow: var(--shadow-small);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-wood-primary);
}

.progress-info {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-graphite);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue-accent) 0%, var(--color-wood-primary) 100%);
    border-radius: 8px;
    transition: width var(--transition-slow);
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-blue-accent);
    min-width: 45px;
    text-align: right;
}

/* Основной контент квиза */
.quiz-main {
    flex: 1;
    padding: 60px 20px;
    display: flex;
    align-items: center;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.question-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-block {
    margin-bottom: 20px;
}

.question-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.question-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 30px;
    line-height: 1.4;
}

.question-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* Варианты ответов */
.options-grid {
    display: grid;
    gap: 16px;
}

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

.option-card {
    background: var(--color-light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-card:hover {
    border-color: var(--color-blue-accent);
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.option-card.selected {
    border-color: var(--color-blue-accent);
    background: rgba(74, 144, 226, 0.1);
}

.option-card.multiple-choice {
    position: relative;
}

.option-card.multiple-choice::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-medium-gray);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.option-card.multiple-choice.selected::before {
    background: var(--color-blue-accent);
    border-color: var(--color-blue-accent);
}

.option-card.multiple-choice.selected::after {
    content: '✓';
    position: absolute;
    top: 9px;
    right: 15px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
}

.option-icon {
    font-size: 32px;
    color: var(--color-wood-primary);
}

.option-card.selected .option-icon {
    color: var(--color-blue-accent);
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: #666;
}

/* Текстовые поля */
.input-field {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-medium-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-blue-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Футер с навигацией */
.quiz-footer {
    background: var(--color-white);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ===========================
   LOADING SCREEN (Генерация)
   =========================== */
#loading-screen {
    background: linear-gradient(135deg, var(--color-wood-primary) 0%, var(--color-wood-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loading-container {
    text-align: center;
    color: var(--color-white);
}

.loading-animation {
    margin-bottom: 40px;
}

.house-building {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.building-layer {
    width: 100%;
    height: 30px;
    background: var(--color-white);
    position: absolute;
    opacity: 0;
    animation: buildLayer 2s ease infinite;
}

.layer-1 {
    bottom: 0;
    animation-delay: 0s;
}

.layer-2 {
    bottom: 30px;
    animation-delay: 0.3s;
}

.layer-3 {
    bottom: 60px;
    animation-delay: 0.6s;
}

.building-roof {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 50px solid var(--color-white);
    position: absolute;
    bottom: 90px;
    left: 0;
    opacity: 0;
    animation: buildRoof 2s ease infinite 0.9s;
}

@keyframes buildLayer {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    50%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buildRoof {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    50%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.loading-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.loading-progress-bar {
    max-width: 500px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: var(--color-white);
    border-radius: 12px;
    width: 0;
    transition: width 0.3s ease;
}

.loading-percent {
    font-size: 24px;
    font-weight: 700;
}

/* ===========================
   GENERATED SCREEN (Сгенерированные изображения)
   =========================== */
#generated-screen {
    padding: 40px 20px 80px;
    background: var(--color-light-gray);
}

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

.generated-header {
    text-align: center;
    margin-bottom: 40px;
}

.generated-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-wood-primary);
    margin-bottom: 16px;
}

.generated-subtitle {
    font-size: 20px;
    color: #666;
}

/* Карточка характеристик */
.generated-specs-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 50px;
}

.generated-specs-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 24px;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-light-gray);
    border-radius: 12px;
}

.spec-icon {
    font-size: 32px;
    color: var(--color-blue-accent);
    min-width: 50px;
    text-align: center;
}

.spec-info {
    flex: 1;
}

.spec-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-graphite);
}

/* Секции с изображениями */
.generated-section {
    margin-bottom: 50px;
}

.generated-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Галерея изображений */
.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.images-gallery.floor-plans {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.gallery-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-graphite);
    background: var(--color-light-gray);
}

/* Анимация появления */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

/* Модальное окно для изображений */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-modal.active {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--color-graphite);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-blue-accent);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* CTA блок на экране генерации */
.generated-cta {
    margin-bottom: 50px;
}

.generated-cta .cta-box {
    background: linear-gradient(135deg, var(--color-blue-accent) 0%, var(--color-wood-primary) 100%);
    color: var(--color-white);
}

.generated-cta .cta-box h3 {
    color: var(--color-white);
}

.generated-cta .cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-highlight {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 24px;
}

/* Контакты на экране генерации */
.generated-contact .contact-box {
    background: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.generated-contact .contact-person {
    background: transparent;
    color: var(--color-graphite);
}

/* ===========================
   UNLOCK SECTION (Форма разблокировки изображений)
   =========================== */
.unlock-section {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid var(--color-blue-accent);
    border-bottom: 3px solid var(--color-blue-accent);
}

.unlock-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    text-align: center;
}

.unlock-icon {
    margin-bottom: 24px;
    color: var(--color-blue-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.unlock-box h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 16px;
    line-height: 1.3;
}

.unlock-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.unlock-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.unlock-form .form-group {
    margin-bottom: 0;
}

.unlock-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 8px;
}

.unlock-form label i {
    margin-right: 8px;
    color: var(--color-blue-accent);
}

.unlock-form input[type="tel"],
.unlock-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.unlock-form input[type="tel"]:focus,
.unlock-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-blue-accent);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.unlock-form input[type="tel"]:invalid,
.unlock-form input[type="email"]:invalid {
    border-color: #dc3545;
}

.unlock-form .form-checkboxes {
    margin-bottom: 24px;
    text-align: left;
}

.unlock-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
}

.unlock-form .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.required-star {
    color: #dc3545;
    font-weight: 700;
}

.btn-unlock {
    width: 100%;
    margin-top: 8px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-blue-accent) 0%, #357abd 100%);
    transition: all var(--transition-fast);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

.btn-unlock:active {
    transform: translateY(0);
}

.unlock-privacy {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

.unlock-privacy i {
    color: #28a745;
    margin-right: 6px;
}

/* Блюр изображений */
.gallery-item.locked {
    position: relative;
    pointer-events: none;
}

.gallery-item.locked img {
    filter: blur(20px);
    transform: scale(1.05);
}

.gallery-item.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    pointer-events: none;
}

.lock-overlay i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.lock-overlay p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0 20px;
    line-height: 1.4;
}

/* Анимация разблокировки */
.gallery-item.unlocking {
    animation: unlockAnimation 0.8s ease forwards;
}

@keyframes unlockAnimation {
    0% {
        filter: blur(20px);
        opacity: 0.5;
    }
    50% {
        filter: blur(10px);
        opacity: 0.75;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.gallery-item.unlocked img {
    filter: blur(0) !important;
}

/* Скрытие формы после отправки */
.unlock-section.hidden {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .unlock-box {
        padding: 40px 24px;
    }
    
    .unlock-box h2 {
        font-size: 24px;
    }
    
    .unlock-description {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .btn-unlock {
        font-size: 16px;
        padding: 16px 24px;
    }
}

/* ===========================
   RESULT SCREEN (Результат)
   =========================== */
#result-screen {
    padding: 40px 20px 80px;
    background: var(--color-light-gray);
}

.result-container {
    max-width: 1000px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
}

.result-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-wood-primary);
    margin-bottom: 16px;
}

.result-subtitle {
    font-size: 20px;
    color: #666;
}

.result-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.result-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: all var(--transition-normal);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.result-card-image {
    color: var(--color-blue-accent);
    margin-bottom: 20px;
}

.result-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 12px;
}

.result-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.result-specs {
    margin-top: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #666;
}

.spec-value {
    font-weight: 700;
    color: var(--color-blue-accent);
}

/* CTA блок */
.result-cta {
    margin-bottom: 50px;
}

.cta-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 12px;
}

.cta-value {
    font-size: 18px;
    color: #666;
    margin-bottom: 12px;
}

.cta-price {
    font-size: 20px;
    margin-bottom: 30px;
}

.email-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group input {
    flex: 1;
}

.form-checkboxes {
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

/* Шеринг */
.result-share {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    text-align: center;
    margin-bottom: 50px;
}

.result-share h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.result-share p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.referral-link-container {
    font-size: 14px;
    color: #666;
}

.referral-link-container code {
    background: var(--color-light-gray);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin-top: 8px;
}

/* Контакты */
.result-contact {
    margin-bottom: 50px;
}

.contact-box {
    background: linear-gradient(135deg, var(--color-wood-primary) 0%, var(--color-wood-secondary) 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    color: var(--color-white);
}

.contact-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-box > p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-person {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    align-items: center;
    color: var(--color-graphite);
}

.contact-photo {
    color: var(--color-wood-primary);
}

.contact-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-position {
    font-size: 16px;
    color: var(--color-blue-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-experience {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details a {
    color: var(--color-graphite);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--color-blue-accent);
}

/* ===========================
   THANK YOU SCREEN
   =========================== */
#thank-you-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--color-light-gray);
}

.thank-you-container {
    max-width: 700px;
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-large);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--color-success);
    margin-bottom: 30px;
}

.thank-you-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-graphite);
    margin-bottom: 20px;
}

.thank-you-container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.next-steps {
    background: var(--color-light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}

.next-steps h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-steps i {
    color: var(--color-blue-accent);
    font-size: 20px;
}

/* ===========================
   АДАПТИВНОСТЬ
   =========================== */
@media (max-width: 768px) {
    .company-name {
        font-size: 48px;
        letter-spacing: 4px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .intro-content {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .progress-info {
        width: 100%;
    }
    
    .question-card {
        padding: 30px 20px;
    }
    
    .question-title {
        font-size: 22px;
    }
    
    .options-grid.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        padding: 16px;
    }
    
    .option-icon {
        font-size: 24px;
    }
    
    .option-title {
        font-size: 16px;
    }
    
    .result-title {
        font-size: 28px;
    }
    
    .result-preview {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .contact-person {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 36px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .question-title {
        font-size: 20px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
}
