:root {
    --color-text: #f2f2f2;
    --color-map: #d9d9d9;
    --color-accent: #df002c;
    --radius: 8px;
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-blur: 8px;
    --font: "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: #000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

strong {
    font-weight: 500;
}

.page {
    position: relative;
    min-height: 100vh;
}

.page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page__bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 240px;
}

.glass {
    background: #142134;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.glass::before {
    display: none;
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 20px 0 0;
}

.site-header__logo {
    width: 349px;
    height: auto;
    margin-top: 0;
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 208vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    padding-bottom: 80px;
    text-align: center;
}

.hero__planets {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.planet-wrapper {
    position: absolute;
    will-change: transform;
    opacity: 0;
}

.planet-wrapper--sun {
    top: 44%;
    left: 50%;
    width: 931px;
    max-width: 38vw;
    z-index: 1;
}

.planet-wrapper--blue {
    top: 45%;
    left: 28%;
    width: 611px;
    max-width: 28vw;
}

.planet-wrapper--red {
    top: 45%;
    left: 72%;
    width: 492px;
    max-width: 21vw;
}

.planet {
    display: block;
    width: 100%;
    height: auto;
}

/* Мерцание планет */
.planet-wrapper--sun {
    animation: glow-sun 2.5s ease-in-out infinite alternate;
}
.planet-wrapper--blue {
    animation: glow-blue 3s ease-in-out infinite alternate;
}
.planet-wrapper--red {
    animation: glow-red 2.8s ease-in-out infinite alternate;
}

@keyframes glow-sun {
    0% {
        filter: drop-shadow(0 0 8px #ffaa00);
    }
    100% {
        filter: drop-shadow(0 0 18px #ffcc44);
    }
}
@keyframes glow-blue {
    0% {
        filter: drop-shadow(0 0 6px #4488ff);
    }
    100% {
        filter: drop-shadow(0 0 10px #66aaff);
    }
}
@keyframes glow-red {
    0% {
        filter: drop-shadow(0 0 6px #ff4444);
    }
    100% {
        filter: drop-shadow(0 0 14px #ff6666);
    }
}

.hero__titles {
    position: relative;
    z-index: 2;
    max-width: 1149px;
    margin-top: 58vh;
}

.hero__title {
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero__subtitle {
    font-size: clamp(18px, 2vw, 32px);
    font-weight: 300;
    line-height: 1.1;
    color: rgba(242, 242, 242, 0.8);
}

.hero__scroll {
    position: relative;
    z-index: 3;
    margin-top: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: background 0.2s;
    border: none;
}

.hero__scroll:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero__scroll svg {
    width: 26px;
    height: 12px;
}

.intro {
    position: relative;
    z-index: 3;
    padding: 48px 0 80px;
    background: transparent;
    opacity: 1;
    transform: translateY(40px);
    transition: none;
}

.intro__box {
    padding: 0;
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
}

.intro__text {
    font-size: clamp(18px, 2.2vw, 32px);
    line-height: 1.4;
    margin: 0;
    color: #f2f2f2;
}

.intro__text--bold {
    font-weight: 400;
    color: #f2f2f2;
}

.intro__text--light {
    font-weight: 300;
    color: rgba(242, 242, 242, 0.8);
}

.intro__text--second {
    margin-top: 16px;
}

.section-title {
    font-size: clamp(24px, 2.8vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 40px;
}

.info {
    position: relative;
    z-index: 3;
    padding-bottom: 80px;
}

.info__grid {
    display: flex;
    gap: 20px;
}

.card-m {
    flex: 0 0 calc((100% - 60px) / 4);
    aspect-ratio: 345 / 218;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 345px;
}

.card-m:hover {
    background: var(--color-accent);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.card-m__title {
    font-size: clamp(16px, 1.8vw, 28px);
    font-weight: 500;
    line-height: 1.2;
}

.card-m__action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.card-m__label {
    font-size: clamp(14px, 1.4vw, 24px);
    font-weight: 300;
    line-height: 1.1;
}

.card-m__icon {
    width: clamp(28px, 2.5vw, 40px);
    height: clamp(28px, 2.5vw, 40px);
    flex-shrink: 0;
}

.gallery {
    position: relative;
    z-index: 3;
    padding-bottom: 80px;
}

.gallery__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.card-l {
    position: relative;
    flex: 0 0 calc((100% - 40px) / 3);
    aspect-ratio: 467 / 582;
    padding: 32px;
    border-radius: var(--radius);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    max-width: 467px;
}

.card-l:hover {
    background: var(--color-accent);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.card-l__title {
    position: relative;
    z-index: 1;
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 500;
    line-height: 1.2;
    color: #f2f2f2;
}

.card-l__image {
    position: relative;
    z-index: 1;
    width: clamp(120px, 18vw, 335px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.card-l__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card-l__desc {
    font-size: clamp(14px, 1.4vw, 24px);
    font-weight: 300;
    line-height: 1.2;
    flex: 1;
    color: #f2f2f2;
    opacity: 0.8;
    margin: 0;
}

.card-l__arrow {
    width: clamp(28px, 2.5vw, 40px);
    height: clamp(28px, 2.5vw, 40px);
    flex-shrink: 0;
}

.gallery__dots {
    display: none;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.gallery__dot {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition:
        width 0.25s,
        background 0.25s;
}

.gallery__dot.is-active {
    width: 34px;
    background: #df002c;
}

.contacts {
    position: relative;
    z-index: 3;
    padding-bottom: 20px;
}

.contacts__grid {
    display: flex;
    gap: 20px;
}

.card-s {
    flex: 0 0 calc((100% - 40px) / 3);
    min-height: 138px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 467px;
}

.card-s:hover {
    background: var(--color-accent);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.card-s__label {
    font-size: clamp(14px, 1.4vw, 24px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 8px;
    opacity: 0.8;
}

.card-s__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-s__value {
    font-size: clamp(16px, 1.6vw, 24px);
    font-weight: 500;
    line-height: 1.2;
}

.card-s__icon {
    width: clamp(28px, 2.5vw, 40px);
    height: clamp(28px, 2.5vw, 40px);
    flex-shrink: 0;
}

.map-section {
    position: relative;
    z-index: 3;
    padding-bottom: 80px;
}

.map-box {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-box iframe {
    min-height: 400px;
    border-radius: 8px;
}

.map-box__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 730px;
    background: #d9d9d9;
    border-radius: var(--radius);
}

.map-box__label {
    font-size: clamp(60px, 12vw, 200px);
    font-weight: 500;
    color: #000;
    line-height: 1.1;
}

.site-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.site-footer__logo {
    width: 349px;
    height: auto;
}

.card-m__icon,
.card-l__arrow,
.card-s__icon {
    width: clamp(24px, 2vw, 34px);
    height: clamp(24px, 2vw, 34px);
    padding: 6px;
    border: 1.5px solid #f2f2f2;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.card-m:hover .card-m__icon,
.card-l:hover .card-l__arrow,
.card-s:hover .card-s__icon {
    transform: rotate(-45deg);
}

.card-m:first-child:hover .card-m__icon {
    transform: rotate(90deg);
}

.card-m__icon svg,
.card-l__arrow svg,
.card-s__icon svg {
    display: block;
    width: clamp(12px, 1.2vw, 20px);
    height: clamp(12px, 1.2vw, 20px);
    flex-shrink: 0;
}

.br-desktop {
    display: inline;
}

/* ===== ПЛАНШЕТЫ И МАЛЕНЬКИЕ НОУТБУКИ (769–1199px) ===== */
@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        padding: 0 40px;
    }

    .info__grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .card-m {
        flex: 0 0 250px;
        max-width: none;
    }

    .gallery__track {
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .card-l {
        flex: 0 0 400px;
        scroll-snap-align: start;
        max-width: none;
        clip-path: polygon(
            12px 0%,
            calc(100% - 12px) 0%,
            100% 12px,
            100% calc(100% - 12px),
            calc(100% - 12px) 100%,
            12px 100%,
            0% calc(100% - 12px),
            0% 12px
        );
        padding: 24px 20px;
    }

    .contacts__grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .card-s {
        flex: 0 0 calc(50% - 8px);
        max-width: none;
        min-height: 120px;
        padding: 24px 20px;
    }

    .gallery__dots {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 16px;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .site-header {
        padding: 20px 0 0;
    }
    .site-header__logo {
        width: 104.69px;
        height: auto;
        margin-top: 0;
    }

    .hero {
        min-height: 308vh;
        padding-top: 10vh;
        padding-bottom: 40px;
    }

    .hero__titles {
        max-width: 310px;
        margin-top: 40vh;
    }

    .hero__title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__scroll {
        width: 40px;
        height: 40px;
        margin-top: 30px;
    }

    .hero__scroll svg {
        width: 20px;
        height: 9px;
    }

    .planet-wrapper--sun {
        width: 65vw;
        top: 40%;
        left: 50%;
        max-width: none;
    }
    .planet-wrapper--blue {
        width: 42vw;
        top: 40%;
        left: 15%;
        max-width: none;
    }
    .planet-wrapper--red {
        width: 30vw;
        top: 40%;
        left: 85%;
        max-width: none;
    }

    .intro {
        padding: 20px 0 40px;
    }
    .intro__box {
        padding: 0;
    }
    .intro__text {
        font-size: 14px;
        line-height: 1.4;
    }
    .intro__text--second {
        margin-top: 4px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .info {
        padding-bottom: 40px;
    }
    .info__grid {
        flex-direction: column;
        gap: 8px;
    }
    .card-m {
        flex: 0 0 auto;
        width: 100%;
        height: 100px;
        padding: 12px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        max-width: none;
        border-radius: 8px;
    }
    .card-m__title {
        font-size: 20px;
        text-align: center;
        width: 100%;
        white-space: nowrap;
    }
    .card-m__action {
        margin-top: 0;
    }
    .card-m__label {
        font-size: 16px;
        white-space: nowrap;
    }
    .card-m__icon {
        width: 24px;
        height: 24px;
    }

    .gallery {
        padding-bottom: 40px;
    }
    .gallery__track {
        gap: 8px;
    }
    .card-l {
        flex: 0 0 186px;
        padding: 20px 16px;
        clip-path: polygon(
            4px 0%,
            calc(100% - 4px) 0%,
            100% 4px,
            100% calc(100% - 4px),
            calc(100% - 4px) 100%,
            4px 100%,
            0% calc(100% - 4px),
            0% 4px
        );
        align-items: center;
        justify-content: space-between;
        max-width: none;
    }
    .card-l__title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 0;
    }
    .card-l__image {
        width: 134px;
        margin: 0 auto;
    }
    .card-l__footer {
        gap: 4px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .card-l__desc {
        font-size: 12px;
        max-width: 120px;
        text-align: center;
    }
    .card-l__arrow {
        width: 24px;
        height: 24px;
    }
    .gallery__dots {
        display: flex;
    }

    .contacts {
        padding-bottom: 16px;
    }
    .contacts__grid {
        flex-direction: column;
        gap: 8px;
    }
    .card-s {
        flex: 0 0 auto;
        width: 100%;
        min-height: 90px;
        padding: 20px 16px;
        max-width: none;
    }
    .card-s__label {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .card-s__row {
        gap: 4px;
    }
    .card-s__value {
        font-size: 16px;
    }
    .card-s__icon {
        width: 24px;
        height: 24px;
    }

    .map-section {
        padding-bottom: 40px;
    }
    .map-box {
        padding: 16px;
    }
    .map-box__placeholder {
        min-height: 287px;
        border-radius: 8px;
    }
    .map-box__label {
        font-size: 24px;
    }

    .site-footer {
        padding: 40px 0 40px;
    }
    .site-footer__logo {
        width: 104.69px;
        height: auto;
    }
    .br-desktop {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .planet-wrapper {
        opacity: 1 !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Ракета  */
.card-l:hover .img-rocket {
    animation: floatRocket 1.6s ease-in-out infinite;
}

@keyframes floatRocket {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

/* Глаз */
.card-l:hover .img-eye {
    animation: glowEye 2.4s ease-in-out infinite;
}

@keyframes glowEye {
    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(192, 192, 192, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(220, 220, 220, 0.8));
    }
}

/* Окно  */
.card-l:hover .img-display {
    animation: glowWindow 2.2s ease-in-out infinite;
}

@keyframes glowWindow {
    0% {
        filter: drop-shadow(0 0 8px #ffaa00) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 35px #ffaa44) brightness(1.2);
    }
    100% {
        filter: drop-shadow(0 0 8px #ffaa00) brightness(1);
    }
}
