/* Общие стили */
/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px; /* Толщина скроллбара */
}

::-webkit-scrollbar-track {
    background: var(--color-beige); /* Цвет трека - темно-фиолетовый фон */
}

::-webkit-scrollbar-thumb {
    background: var(--color-brown); /* Цвет ползунка - сиреневый акцент */
    border-radius: 5px;
    border: 2px solid var(--color-beige); /* Отступ вокруг ползунка */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brown-dark); /* Темнее при наведении - яркий фиолетовый */
}

/* Сброс для кросс-браузерности */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 50px !important;
}

/* Обнуление отступов и padding */
*::before,
*::after {
  margin: 0;
  padding: 0;

}

/* Убираем стандартные стили для списков */
ul,
ol {
  list-style: none;
}

/* Убираем подчеркивание у ссылок */
a {
  text-decoration: none;
  color: inherit;
}

/* Наследование шрифтов для форм */
input,
button,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

:root {
    /* Фоны (темные для ночной темы) */
    --color-beige-light: #1A1625;      /* Темно-фиолетовый фон */
    --color-beige: #231F33;            /* Чуть светлее */
    --color-beige-dark: #2D2840;       /* Для акцентов фона */
    
    /* Акценты (яркие) */
    --color-brown-light: #5D4B8C;      /* Приглушенный фиолетовый */
    --color-brown: #8A6DE9;            /* Сиреневый акцент */
    --color-brown-dark: #6C4BD9;       /* Яркий фиолетовый */
    
    /* Текст (светлый на темном фоне) */
    --color-text: #E2DAFF;             /* Светло-лавандовый */
    --color-text-light: #A99BFF;       /* Для подтекста */
    
    /* Нейтральные */
    --color-white: #FFFFFF;
    --color-shadow: rgba(0, 0, 0, 0.25);
    
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-beige-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 50px 0;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-brown-dark);
    position: relative;
    letter-spacing: 0.5px;
}


.section__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--color-brown);
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: var(--color-brown);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn:hover {
    background-color: var(--color-brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn--primary {
    background-color: var(--color-brown);
    font-weight: 600;
}

.btn--large {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.btn--full {
    width: 100%;
}

.bold{
    font-weight: 600;
    color: var(--color-brown);
}

.text{
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
}

.about__block{
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: .5rem;
    border-left: 2.5px solid #4C1D95;

}

.about__decore{
    padding: 1.5rem;
    border-radius: .5rem;
    border-right: 2.5px solid #4C1D95;
    transition: var(--transition)
}


.about__end{
    padding: 1.5rem;
    border-radius: .5rem;
    border-left: 2.5px solid #4C1D95;
    transition: var(--transition)
}

/* Навигационное меню */
.nav {
    position: sticky;
    top: 20px;
    z-index: 1000;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-beige-light);
    border: 2px solid #4C1D95;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px var(--color-shadow);
}
.nav__container:hover{ 
    box-shadow: 0 12px 25px var(--color-shadow);
    border-color: var(--color-brown);
}
.nav__logo {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-brown-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav__container:hover .nav__logo{
    color: var(--color-brown);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav__link {
   text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brown);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-brown);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-text);
    cursor: pointer;
}

/* Главная секция */
.hero {
    padding-top: 30px;
    margin-bottom: 1rem;
}

.hero__content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero__info {
    flex: 1;
}

.hero__title {
    font-size: 3.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-brown);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.hero__subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-brown);
    border-radius: 2px;
}


.hero__text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--color-text-light);
    max-width: 550px;
    line-height: 1.7;
}

.hero__image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Секция "Обо мне" */
.about__content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 1rem;
}

.about__image {
    flex: 1;
}

.about__info {
    flex: 1;
}

.about__info p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.7;
}

.about__list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}


.about__list li::before {
    content: '→';
    color: var(--color-brown);
    font-weight: bold;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.about__list li:hover::before {
    transform: translateX(5px);
}

.about__stats {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-brown-dark);
}

.stat__text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
}


/* Секция "Направления работы" */
.specializations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.specialization-card {
    background-color: var(--color-beige);
    border-radius: var(--border-radius);
    border: 2px solid #4C1D95;
    padding: 25px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px var(--color-shadow);
}

.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--color-shadow);
    border-color: var(--color-brown);
}

.specialization-card__icon {
    font-size: 2.5rem;
    color: var(--color-brown);
    margin-bottom: 18px;
    text-align: center;
}

.specialization-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-brown-dark);
    text-align: center;
}

.specialization-card__text {
    margin-bottom: 18px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 0;
}

.specialization-card__list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.specialization-card__list li {
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-text);
}

.specialization-card__list li::before {
    content: '✓';
    color: var(--color-brown);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.specialization-card__footer {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    border-top: 1px solid rgba(106, 75, 217, 0.2);
    padding-top: 15px;
    flex-grow: 0;
}

/* Секция услуг */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--color-beige);
    border-radius: var(--border-radius);
    border: 2px solid #4C1D95;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--color-shadow);
    border-color: var(--color-brown);
}

.service-card__icon {
    font-size: 2.5rem;
    color: var(--color-brown);
    margin-bottom: 18px;
}

.service-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-brown-dark);
}

.service-card__text {
    margin-bottom: 18px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card__price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-brown-dark);
}

/* Секция контактов */
.contacts__content {
    display: flex;
    gap: 50px;
}

.contacts__info {
    flex: 1;
}

.contacts__map {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 1rem;
    border: 2px solid #4C1D95;
    border-radius: .5rem;
    background: #2d2840;
}

.contact-item__icon {
    font-size: 1.3rem;
    color: var(--color-brown);
    margin-right: 18px;
    margin-top: 4px;
}

.contact-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-brown-dark);
}

.contact-item__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}



/* Футер */
.footer {
    background-color: var(--color-beige-dark);
    padding: 50px 0 25px;
    border-top: 2px solid var(--color-brown-dark);
}


.footer__content {
    text-align: center;
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer__text {
    max-width: 550px;
    margin: 0 auto 25px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-brown);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
    transform: translateY(-4px);
}

.footer__copyright {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* Заглушки для изображений */
.placeholder-image {
    width: 100%;
    height: 380px;
    background-color: var(--color-beige);
    border-radius: var(--border-radius);
    border: 2px solid #4C1D95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-brown);
    font-size: 4rem;
    box-shadow: 0 4px 12px var(--color-shadow);
}

.placeholder-image p {
    font-size: 1.1rem;
    margin-top: 18px;
    color: var(--color-text-light);
    font-weight: 300;
}

.map-placeholder {
    height: 350px;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    background-color: var(--color-beige);
    border-radius: var(--border-radius);
    padding: 17px 33px;
    border: 2px solid #4C1D95;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--color-brown);
}

.modal__title {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-brown-dark);
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.3px;
}

.modal__subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Форма записи */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 6px;
    font-weight: 300;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
    padding: 10px 14px;
    border: 1px solid var(--color-beige-dark);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 300;
    transition: var(--transition);
    background-color: var(--color-beige-light);
    color: var(--color-brown);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-brown);
    box-shadow: 0 0 0 2px rgba(184, 162, 138, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Табы для выбора способа связи */
.contact-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 5px;
    background-color: var(--color-beige-light);
    border: 1px solid var(--color-beige-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-tab:hover {
    background-color: var(--color-beige);
}

.contact-tab.active {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
}

.contact-tab.active .contact-tab__icon {
    color: var(--color-white);
}

.contact-tab__icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--color-brown);
    transition: var(--transition);
}

.contact-tab__text {
    font-size: 0.85rem;
    font-weight: 300;
}

/* Контейнер для полей ввода контактов */
#contact-input-container {
    position: relative;
}

#contact-input-container .form-label,
#contact-input-container .form-input {
    display: none;
}

#contact-input-container .form-label.active,
#contact-input-container .form-input.active {
    display: block;
}

/* Чекбоксы с услугами */
.services-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-row {
    display: flex;
    gap: 15px;
}

.checkbox-wrapper {
    flex: 1;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--color-text);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-beige-dark);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background-color: var(--color-beige-light);
    transition: var(--transition);
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 1px;
}

.checkbox-text {
    line-height: 1.4;
}

.consent-checkbox {
    margin-top: 5px;
}

/* Уведомление об успешной отправке */
.notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: 380px;
}

.notification.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification__icon {
    font-size: 1.8rem;
    color: #4CAF50;
    flex-shrink: 0;
}

.notification__text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* Адаптация под мобильные устройства */
@media (max-width: 992px) {
    .hero__content, .about__content, .contacts__content {
        flex-direction: column;
        gap: 35px;
    }
    
    .hero__title {
        font-size: 2.4rem;
    }
    .hero__info{
        margin-bottom: 2rem;
    }

    .hero__image{
        width: 80%;
    }

    .section__title {
        font-size: 2rem;
    }
    .about__block{
        width: 80%;
        margin: 1rem auto 5rem;
    }
    .about__image{
        width: 80%;
    }
    .about__info{
        width: 80%;
    }
    .about__end{
        width: 80%;
        margin: 0 auto;
    }
    .nav__list {
        gap: 18px;
    }
    
    .checkbox-row {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-beige);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 1001;
        gap: 30px;
    }
    
    .nav__list.active {
        transform: translateY(0);
    }
    
    .nav__toggle {
        display: block;
        z-index: 1002;
    }
    
    .nav__item:last-child {
        margin-top: 20px;
    }
    
    .hero__title {
        font-size: 2.2rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .modal__content {
        padding: 25px 18px;
    }
    
    .contact-tabs {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 1.9rem;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .btn--large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .footer__social {
        flex-wrap: wrap;
    }
    
    .notification {
        left: 18px;
        right: 18px;
        max-width: none;
    }
    
    .modal__title {
        font-size: 1.6rem;
    }
    
    .placeholder-image {
        height: 240px;
        font-size: 3.5rem;
    }
    
    .placeholder-image p {
        font-size: 1rem;
    }
}




/* Ночное небо */
.night-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Оставить 100% */
    min-height: -webkit-fill-available; /* ДОБАВИТЬ ЭТУ СТРОКУ */
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, 
        #0a0618 0%, 
        #1a1625 30%, 
        #231f33 60%, 
        #2d2840 100%
    );

}

/* Луна */
.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f5f3ff, #ddd6fe);
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(221, 214, 254, 0.3),
        0 0 80px rgba(221, 214, 254, 0.2),
        0 0 120px rgba(221, 214, 254, 0.1);
    animation: moonFloat 20s ease-in-out infinite;
}

/* Лунные кратеры */
.moon::before,
.moon::after {
    content: '';
    position: absolute;
    background: rgba(196, 181, 253, 0.3);
    border-radius: 50%;
}

.moon::before {
    width: 15px;
    height: 15px;
    top: 20px;
    left: 25px;
}

.moon::after {
    width: 10px;
    height: 10px;
    top: 45px;
    left: 50px;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ПАДАЮЩАЯ ЗВЕЗДА (Метеор) */
.meteor {
    position: absolute;
    top: -50px;
    right: 300px;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    border-radius: 50%;
    box-shadow: 
        0 0 10px 2px rgba(255, 255, 255, 0.8),
        0 0 20px 5px rgba(138, 109, 233, 0.6),
        0 0 30px 10px rgba(106, 75, 217, 0.4);
    transform: rotate(-45deg);
    opacity: 0;
    animation: meteorFall 5s linear infinite 2s;
}

/* Вторая падающая звезда */
.meteor--secondary {
    top: -30px;
    right: 150px;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #A99BFF);
    box-shadow: 
        0 0 5px 1px rgba(169, 155, 255, 0.8),
        0 0 15px 3px rgba(138, 109, 233, 0.6);
    animation: meteorFall 8s linear infinite 7s;
    transform: rotate(-30deg);
}

/* Анимация падения метеора */
@keyframes meteorFall {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(45deg);
    }
    10% {
        opacity: 1;
        transform: translate(-100px, 100px) rotate(45deg);
    }
    20% {
        opacity: 0.8;
        transform: translate(-200px, 200px) rotate(45deg);
    }
    30% {
        opacity: 0.6;
        transform: translate(-300px, 300px) rotate(45deg);
    }
    40% {
        opacity: 0.4;
        transform: translate(-400px, 400px) rotate(45deg);
    }
    50% {
        opacity: 0.2;
        transform: translate(-500px, 500px) rotate(45deg);
    }
    60% {
        opacity: 0;
        transform: translate(-600px, 600px) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translate(-600px, 600px) rotate(45deg);
    }
}

/* Альтернативная анимация (более плавная) */
@keyframes meteorFall2 {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(45deg);
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0.8;
        transform: translateX(-300px) translateY(300px) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-800px) translateY(800px) rotate(45deg);
    }
}

/* Звёзды */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: starTwinkle 3s infinite;
}

.star--small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.star {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.star--large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

/* Мерцающие звёзды */
.star--twinkling {
    animation: starTwinkle 1.5s infinite alternate;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* Созвездия */
.constellation {
    position: absolute;
}

.constellation__dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(221, 214, 254, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(221, 214, 254, 0.4);
}

.constellation__line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(221, 214, 254, 0.3), 
        transparent
    );
}

/* Адаптивность для ночного неба */
@media (max-width: 768px) {
    .night-sky{
        height: 120vh;
        background-attachment: scroll; /* Для мобильных */
        min-height: 100%;
           min-height: -webkit-fill-available; /* ДОБАВИТЬ ЭТУ СТРОКУ */
    }
    .moon {
        width: 60px;
        height: 60px;
        right: 5%;
        top: 10%;
    }
    
    .moon::before {
        width: 10px;
        height: 10px;
        top: 15px;
        left: 15px;
    }
    
    .moon::after {
        width: 7px;
        height: 7px;
        top: 35px;
        left: 35px;
    }
    
    .meteor {
        right: 200px;
    }
    
    .meteor--secondary {
        right: 100px;
    }
}

/* Стили для логотипа-окна */
.logo {
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(106, 75, 217, 0.2));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(138, 109, 233, 0.4));
}

/* Анимация для звёзд в окне */
.window-stars circle, 
.porthole-stars circle,
.city-stars circle,
.abstract-sky circle {
    animation: windowStarTwinkle 3s infinite;
}

.window-stars circle:nth-child(2n),
.porthole-stars circle:nth-child(2n) {
    animation-delay: 1s;
}

.window-stars circle:nth-child(3n),
.city-stars circle:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes windowStarTwinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1);
    }
}

/* Анимация для луны в окне */
.logo:hover #moonGradientWindow,
.logo:hover #portholeMoon,
.logo:hover #cityMoon {
    animation: moonGlow 2s infinite alternate;
}

@keyframes moonGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.2);
    }
}

/* Анимация для отражения на стекле */
.logo:hover #glassReflection,
.logo:hover #portholeReflection,
.logo:hover #windowReflection {
    animation: reflectionMove 4s infinite alternate;
}

@keyframes reflectionMove {
    0% {
        transform: translateX(-5px) translateY(-5px);
    }
    100% {
        transform: translateX(5px) translateY(5px);
    }
}

/* Для логотипа в навигации */
.nav__logo .logo {
    width: 45px;
    height: 45px;
    transition: transform 0.6s ease;
}

.nav__logo:hover .logo {
    transform: rotateY(180deg) scale(1.1);
}

/* Анимация занавесок */
.curtains path {
    animation: curtainsSway 8s ease-in-out infinite;
}

@keyframes curtainsSway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}