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

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #0b0c1a;
    color: #e0e5f0;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 89, 120, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(30, 200, 200, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #230526 0%, #10241d 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Анимация мерцания звёзд */
@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Элементы звёздного неба */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-image:
        radial-gradient(2px 2px at 195px 60px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 72px 430px, #b3e0ff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 850px 240px, #f8f2d0, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 320px 820px, #aac9ff, rgba(0, 0, 0, 0)),
        radial-gradient(4px 4px at 1200px 500px, #e3f0ff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 250px 1200px, #b7dcff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 1800px 300px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 95% 85%, #b7f0ff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 45% 30%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 60% 75%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 12% 92%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 35% 50%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 67% 15%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 72% 12%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 15% 30%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 60% 75%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 92% 42%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 45% 39%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 96% 32%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 64% 73%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 35% 57%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 73% 31%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 54% 77%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 63% 77%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 2% 6%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 99% 52%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 86% 56%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 76% 34%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 36% 54%, #98fb98, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 16% 88%, #ffd700, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 68% 7%, #ffa07a, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 21% 9%, #98fb98, rgba(0, 0, 0, 0));
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    animation: twinkle 4s infinite alternate;
}

/* Метеоритный дождь */
.meteor {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px 4px #005eff, 0 0 20px 6px #f200ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

@keyframes meteorShower {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(45deg);
        width: 2px;
        height: 2px;
    }

    20% {
        width: 3px;
        height: 1px;
    }

    100% {
        opacity: 1;
        transform: translateX(1500px) translateY(500px) rotate(45deg);
        width: 0;
        height: 0;
    }
}

.meteor1 {
    animation: meteorShower 2s linear infinite;
    top: 10%;
    left: -10%;
}

.meteor2 {
    animation: meteorShower 2.5s linear infinite;
    top: 20%;
    left: -10%;
    animation-delay: 0.5s;
}

.meteor3 {
    animation: meteorShower 3s linear infinite;
    top: 30%;
    left: -10%;
    animation-delay: 1s;
}

.meteor4 {
    animation: meteorShower 2.2s linear infinite;
    top: 40%;
    left: -10%;
    animation-delay: 1.5s;
}

.meteor5 {
    animation: meteorShower 2.8s linear infinite;
    top: 50%;
    left: -10%;
    animation-delay: 0.2s;
}

.meteor6 {
    animation: meteorShower 2.3s linear infinite;
    top: 60%;
    left: -10%;
    animation-delay: 0.8s;
}

.meteor7 {
    animation: meteorShower 2.7s linear infinite;
    top: 70%;
    left: -10%;
    animation-delay: 1.2s;
}

.meteor8 {
    animation: meteorShower 3.2s linear infinite;
    top: 80%;
    left: -10%;
    animation-delay: 0.3s;
}

.meteor9 {
    animation: meteorShower 2.4s linear infinite;
    top: 15%;
    left: -10%;
    animation-delay: 1.8s;
}

.meteor10 {
    animation: meteorShower 2.9s linear infinite;
    top: 85%;
    left: -10%;
    animation-delay: 0.7s;
}

header {
    background: rgba(8, 15, 30, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #2d4b6e;
    box-shadow: 0 5px 25px rgba(44, 0, 50, 0.8);
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow:
        0 0 15px #1ab2ff,
        0 0 30px #0d4d73;
    color: #d1f0ff;
    margin-bottom: 0.5rem;
    font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
}

.header-content p {
    font-size: 1.3rem;
    color: #9ec7e0;
    background: linear-gradient(90deg, transparent, #1d405b, transparent);
    padding: 0.8rem 2rem;
    display: inline-block;
    border-radius: 50px;
    letter-spacing: 1px;
    border: 1px solid #2f6080;
    box-shadow: 0 0 20px #1f4b66;
}

.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 5;
    flex: 1;
}

.content-block {
    background: rgba(10, 20, 35, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #2c5370;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 180, 255, 0.2);
    transition: transform 0.2s ease, border-color 0.2s;
}

.content-block:hover {
    border-color: #3fa2d0;
    transform: scale(1.01);
    box-shadow: 0 0 30px #1f6996;
}

.content-block h2 {
    font-size: 2.2rem;
    font-weight: 400;
    border-left: 6px solid #2eb8ff;
    padding-left: 1.5rem;
    margin-bottom: 1.8rem;
    color: #c2e4ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #0e77af;
}

.content-block p {
    font-size: 1.2rem;
    color: #cddeee;
    margin-bottom: 0.8rem;
}

.content-block ul {
    list-style: none;
}

.content-block li {
    font-size: 1.2rem;
    color: #cddeee;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.content-block li::before {
    content: "🛸";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px #6df);
}

/* Стиль для контактных данных */
.content-block:last-child p {
    display: inline-block;
    background: rgba(0, 30, 50, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    border: 1px dashed #27aae2;
    margin-right: 1rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #abe2ff;
}

.content-block:last-child p:last-of-type {
    margin-right: 0;
}

footer {
    background: #040a14;
    border-top: 3px solid #1d4e6e;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1rem;
    color: #7b98aa;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 30px #06251c;
    margin-top: auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #9fc9df;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #d4f2ff;
    text-decoration: underline;
    text-shadow: 0 0 8px #2fa0cc;
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
/* ЗВЕЗДЫ НАСЛЕДУЮТСЯ ИЗ ОСНОВНОГО КОДА! */

/* Для планшетов и небольших ноутбуков */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .content-block {
        padding: 1.8rem 2rem;
    }

    .content-block h2 {
        font-size: 2rem;
    }
}

/* Для больших смартфонов (ландшафтная ориентация и маленькие планшеты) */
@media screen and (max-width: 768px) {
    header {
        padding: 1.8rem 0.8rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .header-content p {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }

    .container {
        padding: 0 1.2rem;
        gap: 1.5rem;
    }

    .content-block {
        padding: 1.5rem 1.8rem;
        border-radius: 20px;
    }

    .content-block h2 {
        font-size: 1.8rem;
        padding-left: 1rem;
        border-left-width: 4px;
        margin-bottom: 1.2rem;
        letter-spacing: 2px;
    }

    .content-block p,
    .content-block li {
        font-size: 1.1rem;
    }

    .content-block li {
        padding-left: 1.8rem;
    }

    .content-block li::before {
        font-size: 1.2rem;
    }

    /* Контакты в строку на планшетах */
    .content-block:last-child p {
        display: block;
        width: fit-content;
        margin-right: 0;
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }

    .content-block:last-child p:last-of-type {
        margin-bottom: 0;
    }

    /* Метеоры на мобилке меньше */
    .meteor {
        box-shadow: 0 0 10px 4px #005eff, 0 0 20px 8px #f200ff;
    }

    @keyframes meteorShower {
        0% {
            opacity: 1;
            transform: translateX(0) translateY(0) rotate(45deg);
            width: 2px;
            height: 2px;
        }

        20% {
            width: 3px;
            height: 1px;
        }

        100% {
            opacity: 1;
            transform: translateX(1000px) translateY(250px) rotate(45deg);
            width: 0;
            height: 0;
        }
    }
}

/* Для смартфонов (портретная ориентация) */
@media screen and (max-width: 480px) {
    header {
        padding: 1.5rem 0.5rem;
    }

    .header-content h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .header-content p {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        border-radius: 30px;
    }

    .container {
        padding: 0 1rem;
        margin: 1.5rem auto;
        gap: 1.2rem;
    }

    .content-block {
        padding: 1.2rem 1.2rem;
        border-radius: 18px;
    }

    .content-block h2 {
        font-size: 1.5rem;
        padding-left: 0.8rem;
        border-left-width: 3px;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }

    .content-block p,
    .content-block li {
        font-size: 1rem;
        line-height: 1.5;
    }

    .content-block li {
        padding-left: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .content-block li::before {
        font-size: 1rem;
        top: 0;
    }

    /* Корректировка контактов для мобильных */
    .content-block:last-child p {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        word-break: break-all;
    }

    footer {
        padding: 1.5rem 0.5rem;
        font-size: 0.9rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        margin: 0;
    }

    .footer-links span.separator {
        display: none;
    }

    /* Убираем hover эффекты на мобильных устройствах */
    .content-block:hover {
        transform: none;
    }

    .content-block:active {
        border-color: #3fa2d0;
        box-shadow: 0 0 30px #1f6996;
    }
}

/* Для очень маленьких экранов (до 320px) */
@media screen and (max-width: 320px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-content p {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .content-block {
        padding: 1rem;
    }

    .content-block h2 {
        font-size: 1.3rem;
    }

    .content-block p,
    .content-block li {
        font-size: 0.9rem;
    }

    .content-block li {
        padding-left: 1.4rem;
    }
}

/* Убираем анимацию на слабых устройствах */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before {
        animation: none !important;
    }

    .meteor {
        display: none;
    }
}