* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #64B5F6;
    --secondary: #4caf50;
    --accent: #FF9800;
    --text: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --snow: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

/* Фон с пузырями */
.bubble-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float-bubble 15s infinite linear;
    opacity: 0.1;
}

@keyframes float-bubble {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.05; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Снежинки - уменьшенное количество и постоянная скорость */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    color: #e0f7fa;
    font-size: 18px;
    opacity: 0.6;
    animation: fall 8s linear infinite; /* Постоянная скорость */
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Шапка */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.header-scrolled {
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Мобильная навигация - всегда видна на мобильных */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: none;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1001;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Герой секция - СИНЕ-ГОЛУБОЙ БАННЕР */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 50%, #E3F2FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 80px; /* Увеличил отступ снизу для мобильного меню */
}

/* Анимированные снежинки на баннере */
.hero-snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-snowflake {
    position: absolute;
    color: white;
    font-size: 20px;
    opacity: 0.7;
    animation: hero-fall 6s linear infinite; /* Постоянная скорость */
    text-shadow: 0 0 5px rgba(255,255,255,0.5); /* Белая кайма для елки */
}

@keyframes hero-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.hero-tree {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: tree-pulse 3s ease-in-out infinite;
    display: block;
    text-shadow: 0 0 10px white, 0 0 20px white; /* Белая кайма для елки */
    filter: drop-shadow(0 0 8px white);
}

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: badge-pulse 2s infinite;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 15px rgb(29 140 255 / 30%);
    background: linear-gradient(45deg, #FFFFFF, #E3F2FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: 500;
}

.cities-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.city-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.city-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Единый стиль кнопок - синий градиент */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px 50px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.4);
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(21, 101, 192, 0.6);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

.button-icon {
    font-size: 1.6rem;
}

/* Общие стили секций */
section {
    padding: 80px 20px;
    position: relative;
}

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

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* Программы поздравлений */
.programs {
    background: var(--snow);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.program-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.program-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.program-features {
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

.program-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-features li:before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

.program-button {
    margin-top: auto;
}

/* Календарь с временными интервалами */
.booking-section {
    background: white;
}

.booking-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--snow);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* Стили для ссылок телефона и почты */
.phone-link, .email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.phone-link:hover, .email-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Стилизация Flatpickr */
.flatpickr-calendar {
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.flatpickr-day.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.flatpickr-day.today {
    border-color: var(--primary-light);
}

.flatpickr-day.weekend {
    color: var(--primary);
}

.flatpickr-day.blocked {
    color: #ccc;
    text-decoration: line-through;
    background: #f5f5f5;
}

.time-slots {
    display: flex !important;
    opacity: 1 !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.time-slot {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
	margin: 4px;
}

.time-slot:hover {
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot.booked {
    background: var(--snow);
    color: var(--text-light);
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.weekend {
    background: #e3f2fd;
    border-color: #bbdefb;
}

/* Чекбоксы согласия */
.checkbox-group {
    margin: 25px 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    margin-bottom: 10px;
    line-height: 1.4;
}

.checkbox-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Опыт работы */
.experience {
    background: var(--snow);
    text-align: center;
}

.experience-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: slide-in 1s ease;
}

@keyframes slide-in {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

/* Портфолио */
.portfolio {
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    background: #f5f5f5;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Модальное окно портфолио */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-slider {
    position: relative;
    width: 100%;
    height: 70vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Контакты */
.contacts {
    background: var(--snow);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary);
}

.contact-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.4);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

/* Всплывающее окно */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s ease;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary);
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: tada 1s ease;
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Кнопка отправки формы */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.4);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

/* Адаптивность */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-nav-btn {
        display: none; /* Убираем бургер */
    }

    section {
        padding: 60px 15px;
    }

    h2 {
        font-size: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .booking-form {
        padding: 20px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-slider {
        height: 50vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .cta-button {
        padding: 18px 35px;
        font-size: 1.2rem;
    }

    .hero {
        padding: 100px 20px 80px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* Анимации появления при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}