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

:root {
    --primary-orange: #FF6B35;
    --cloud-blue: #5BC0EB;
    --bg-blue: #243E9B;
    --text-white: #ffffff;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-white);
    position: relative;
}

/* ============================================== */
/* СНЕЖИНКИ                                       */
/* ============================================== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1rem;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ============================================== */
/* ЭКРАНЫ                                         */
/* ============================================== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.active {
    display: block;
    opacity: 1;
}

/* Экран 1 - фон с домиками */
.screen-main {
    background: url('assets/background.jpg') no-repeat center bottom;
    background-size: cover;
}

/* Экран 2 - тёмно-синий фон */
.screen-preview {
    background: var(--bg-blue);
}

.content {
    min-height: 100%;
    padding: 20px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-preview {
    background: url('assets/background-preview.jpg') no-repeat center bottom;
    background-size: cover;
    position: relative;
}

/* ============================================== */
/* ХЕДЕР И ЛОГОТИП                                */
/* ============================================== */
.header {
    width: 100%;
    text-align: center;
    padding: 10px 0 20px;
}

.logo-img {
    height: 24px;
    width: auto;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

.logo-img-badge {
    height: 20px;
}

.logo-text-badge {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.logo-360 {
    color: var(--primary-orange);
}

/* ============================================== */
/* ЗАГОЛОВКИ                                      */
/* ============================================== */
.title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 14px;
    text-align: center;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 24px;
}

.title-light,
.subtitle-light {
    color: white;
}

/* ============================================== */
/* СЕКЦИЯ ОБЛАЧКОВ                                */
/* ============================================== */
.clouds-section {
    width: 100%;
    position: relative;
    z-index: 20;
}

.clouds-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 10px;
}

/* ============================================== */
/* ПЕРСОНАЖИ - НАСТРОЙКА ПОЗИЦИЙ                  */
/* ============================================== */
/* 
   ИНСТРУКЦИЯ: Чтобы двигать персонажей:
   - top/bottom: вертикальная позиция
   - left/right: горизонтальная позиция  
   - width: размер персонажа
   - transform: дополнительное смещение или поворот
*/

.character {
    position: absolute;
    z-index: 15;
    pointer-events: none;
}

/* Коробка (красный персонаж слева) */
.character-box {
    width: 120px;
    top: 150px;
    left: -20px;
}

/* Кораблик (синий, справа вверху) */
.character-ship {
    width: 100px;
    top: 200px;
    right: -10px;
}

/* Ёлочка (зелёная, справа внизу) */
.character-tree {
    width: 110px;
    bottom: 250px;
    right: 0;
}

/* АДАПТАЦИЯ ПЕРСОНАЖЕЙ ДЛЯ РАЗНЫХ ЭКРАНОВ */
@media (min-width: 500px) {
    .character-box {
        width: 140px;
        top: 120px;
        left: 10px;
    }
    .character-ship {
        width: 120px;
        top: 180px;
        right: 20px;
    }
    .character-tree {
        width: 130px;
        bottom: 280px;
        right: 30px;
    }
}

@media (min-width: 700px) {
    .character-box {
        width: 160px;
        top: 100px;
        left: 50px;
    }
    .character-ship {
        width: 140px;
        top: 150px;
        right: 60px;
    }
    .character-tree {
        width: 150px;
        bottom: 300px;
        right: 80px;
    }
}

@media (min-width: 900px) {
    .character-box {
        width: 180px;
        top: 80px;
        left: 100px;
    }
    .character-ship {
        width: 160px;
        top: 120px;
        right: 120px;
    }
    .character-tree {
        width: 170px;
        bottom: 320px;
        right: 140px;
    }
}

/* ============================================== */
/* ОБЛАЧКА - ПОЗИЦИИ ДЛЯ РУЧНОЙ НАСТРОЙКИ         */
/* ============================================== */
/* 
   ИНСТРУКЦИЯ ПО НАСТРОЙКЕ ПОЗИЦИЙ:
   
   Каждое облачко имеет свой nth-child номер (1-16).
   Меняй значения translateX и translateY:
   - translateX: смещение влево (-) или вправо (+)
   - translateY: смещение вверх (-) или вниз (+)
   
   Пример: transform: translate(-20px, 15px);
   означает: сдвинуть на 20px влево и 15px вниз
*/

.cloud {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ФИКСИРОВАННЫЙ РАЗМЕР - НЕ МЕНЯЕТСЯ */
    width: 150px;
    height: 95px;
}

/* ============================================== */
/* ПОЗИЦИИ ОБЛАЧКОВ - НАСТРАИВАЙ ЗДЕСЬ            */
/* ============================================== */

/* Облачко 1: "Желаю не болеть и радоваться мелочам" */
.cloud:nth-child(1) { 
    transform: translate(0px, 0px); 
}

/* Облачко 2: "Выйдешь за меня?" */
.cloud:nth-child(2) { 
    transform: translate(0px, 15px); 
}

/* Облачко 3: "Желаю жить самую счастливую жизнь" */
.cloud:nth-child(3) { 
    transform: translate(0px, -10px); 
}

/* Облачко 4: "Желаю отпуск без уведомлений в чатах" */
.cloud:nth-child(4) { 
    transform: translate(0px, 20px); 
}

/* Облачко 5: "Желаю нам чаще видеться" */
.cloud:nth-child(5) { 
    transform: translate(0px, 5px); 
}

/* Облачко 6: "Желаю любить и ценить себя" */
.cloud:nth-child(6) { 
    transform: translate(0px, -15px); 
}

/* Облачко 7: "Желаю весь год выглядеть свежо и бодро" */
.cloud:nth-child(7) { 
    transform: translate(0px, 10px); 
}

/* Облачко 8: "Желаю закрыть ипотеку и сделать ремонт" */
.cloud:nth-child(8) { 
    transform: translate(0px, -5px); 
}

/* Облачко 9: "Желаю нам встретить самый красивый рассвет" */
.cloud:nth-child(9) { 
    transform: translate(0px, 25px); 
}

/* Облачко 10: "Желаю получать комплименты каждый день" */
.cloud:nth-child(10) { 
    transform: translate(0px, -20px); 
}

/* Облачко 11: "Желаю поплавать с дельфинами" */
.cloud:nth-child(11) { 
    transform: translate(0px, 8px); 
}

/* Облачко 12: "Желаю поднимать витамин D только солнцем и морем" */
.cloud:nth-child(12) { 
    transform: translate(0px, -12px); 
}

/* Облачко 13: "Желаю завести денежное дерево..." */
.cloud:nth-child(13) { 
    transform: translate(0px, 18px); 
}

/* Облачко 14: "Желаю найти новые треки и танцевать до упаду" */
.cloud:nth-child(14) { 
    transform: translate(0px, -8px); 
}

/* Облачко 15: "Желаю встретить самый красивый закат" */
.cloud:nth-child(15) { 
    transform: translate(0px, 12px); 
}

/* Облачко 16: "Желаю всегда быть в своей прайм-эре" */
.cloud:nth-child(16) { 
    transform: translate(0px, -18px); 
}

/* ============================================== */
/* HOVER ЭФФЕКТЫ (сохраняют позицию + scale)      */
/* ============================================== */
.cloud:hover {
    filter: brightness(1.05);
}

.cloud:nth-child(1):hover { transform: translate(0px, 0px) scale(1.05); }
.cloud:nth-child(2):hover { transform: translate(0px, 15px) scale(1.05); }
.cloud:nth-child(3):hover { transform: translate(0px, -10px) scale(1.05); }
.cloud:nth-child(4):hover { transform: translate(0px, 20px) scale(1.05); }
.cloud:nth-child(5):hover { transform: translate(0px, 5px) scale(1.05); }
.cloud:nth-child(6):hover { transform: translate(0px, -15px) scale(1.05); }
.cloud:nth-child(7):hover { transform: translate(0px, 10px) scale(1.05); }
.cloud:nth-child(8):hover { transform: translate(0px, -5px) scale(1.05); }
.cloud:nth-child(9):hover { transform: translate(0px, 25px) scale(1.05); }
.cloud:nth-child(10):hover { transform: translate(0px, -20px) scale(1.05); }
.cloud:nth-child(11):hover { transform: translate(0px, 8px) scale(1.05); }
.cloud:nth-child(12):hover { transform: translate(0px, -12px) scale(1.05); }
.cloud:nth-child(13):hover { transform: translate(0px, 18px) scale(1.05); }
.cloud:nth-child(14):hover { transform: translate(0px, -8px) scale(1.05); }
.cloud:nth-child(15):hover { transform: translate(0px, 12px) scale(1.05); }
.cloud:nth-child(16):hover { transform: translate(0px, -18px) scale(1.05); }

.cloud-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.cloud-bg.white {
    opacity: 1;
}

.cloud-bg.blue {
    opacity: 0;
}

/* Выбранное облачко - синее */
.cloud.selected .cloud-bg.white {
    opacity: 0;
}

.cloud.selected .cloud-bg.blue {
    opacity: 1;
}

.cloud-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 12px 15px;
    line-height: 1.3;
    max-width: 85%;
    transition: color 0.3s ease;
}

.cloud.selected .cloud-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Анимация свечения для выбранных облачков */
.cloud.selected {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(91, 192, 235, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(91, 192, 235, 0.9)) 
               drop-shadow(0 0 40px rgba(91, 192, 235, 0.5));
    }
}

.cloud:active {
    transform: scale(0.98);
}

/* ============================================== */
/* УВЕДОМЛЕНИЕ "МОЖНО ВЫБРАТЬ ТОЛЬКО ОДНО"        */
/* ЗАКРЕПЛЕНО ВНИЗУ ЭКРАНА                        */
/* ============================================== */
.notification-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, rgba(220, 230, 250, 0.95), rgba(240, 245, 255, 0.95));
    backdrop-filter: blur(20px);
    padding: 14px 50px 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
}

.notification-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.notification-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.3;
}

.notification-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.notification-close:hover {
    background: rgba(255,255,255,0.9);
}

.notification-icon {
    width: 40px;
    height: 40px;
}

.notification-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

/* ============================================== */
/* ФОРМА И КНОПКИ                                 */
/* ============================================== */
.form-section {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.dropdown-wrapper {
    position: relative;
}

.dropdown {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 16px;
    background: white;
    color: #333;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: #999;
    font-size: 20px;
    pointer-events: none;
}

.btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    background: var(--primary-orange);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-send {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: var(--primary-orange);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ============================================== */
/* КАРТОЧКА ПОЧТЫ (ЭКРАН 2)                       */
/* ============================================== */
.mail-card {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    padding: 4px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 24px;
}

.mail-card-inner {
    background: white;
    border-radius: 20px;
    padding: 20px;
}

.mail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mail-logo {
    font-size: 28px;
}

.mail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-orange);
}

.mail-content {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
}

.mail-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mail-wish {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.mail-wish-small {
    font-size: 16px;
}

.mail-recipients {
    display: flex;
    gap: 30px;
}

.mail-recipient {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mail-recipient-label {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
}

.mail-recipient-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-orange);
}

.mail-card-small {
    max-width: 300px;
}

.mail-card-small .mail-card-inner {
    padding: 15px;
}

/* ============================================== */
/* ИЛЛЮСТРАЦИЯ СНИЗУ                              */
/* ============================================== */
.bottom-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.bottom-illustration img {
    width: 100%;
    max-width: 500px;
}

/* ============================================== */
/* ЭКРАН "ОТПРАВЛЕНО" → "БИНГО"                   */
/* ============================================== */
.screen-sent {
    background: linear-gradient(180deg, #3B5998 0%, #6B8DD6 50%, #FFB347 100%);
}

.content-sent {
    background: url('assets/background-preview.jpg') no-repeat center bottom;
    background-size: cover;
    position: relative;
    justify-content: flex-start;
    padding-top: 20px;
}

.bingo-card {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 4px;
}

.bingo-card-inner {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.bingo-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 15px;
}

.bingo-text {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-bingo {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-bingo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.bottom-illustration-sent {
    margin-top: auto;
}

.sent-icon {
    font-size: 64px;
    margin: 30px 0 20px;
}

.link-more {
    display: block;
    text-align: center;
    color: white;
    font-size: 14px;
    opacity: 0.8;
    text-decoration: underline;
    margin-top: 15px;
}

/* ============================================== */
/* АДАПТАЦИЯ - ОБЛАЧКА НЕ МЕНЯЮТ РАЗМЕР           */
/* ============================================== */
@media (min-width: 500px) {
    .title {
        font-size: 28px;
    }
    .clouds-container {
        gap: 18px;
        max-width: 700px;
    }
}

@media (min-width: 700px) {
    .title {
        font-size: 32px;
    }
    .subtitle {
        font-size: 16px;
    }
    .clouds-container {
        gap: 20px;
        max-width: 800px;
    }
}

@media (min-width: 900px) {
    .clouds-container {
        max-width: 1000px;
        gap: 24px;
    }
}
