@import url(./global.css);
@import url(./header.css);

/* Отключены */
/* радиоволны от станции и мачты */
.emitter {
    position: absolute;
    width: 0;
    height: 0
}

.emitter i {
    position: absolute;
    left: 0;
    top: 0;
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 194, 102, .75);
    opacity: 0;
    animation: wave 4.2s ease-out infinite
}

.emitter i:nth-child(2) {
    animation-delay: 1.4s
}

.emitter i:nth-child(3) {
    animation-delay: 2.8s
}

.emitter.cold i {
    border-color: rgba(140, 220, 255, .7);
    animation-duration: 3.4s
}

@keyframes wave {
    0% {
        transform: scale(.08);
        opacity: 0
    }
    10% {
        opacity: .95
    }
    100% {
        transform: scale(1.7);
        opacity: 0
    }
}

.lamp {
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -3.5px;
    border-radius: 50%;
    background: var(--alert);
    box-shadow: 0 0 12px 3px rgba(224, 88, 79, .8);
    animation: blink 1.8s steps(1) infinite
}

@keyframes blink {
    50% {
        opacity: .15
    }
}

.ether {
    position: relative;
    background: #03090D;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    white-space: nowrap
}

.ether .label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    background: var(--alert);
    color: #fff;
    font-family: var(--cond), sans-serif;
    font-stretch: condensed;
    font-size: 15px;
    letter-spacing: .1em
}

.ether .label i {
    width: 18px;
    height: 14px;
    background:
            linear-gradient(#fff, #fff) 0 100%/3px 40% no-repeat,
            linear-gradient(#fff, #fff) 5px 100%/3px 70% no-repeat,
            linear-gradient(#fff, #fff) 10px 100%/3px 100% no-repeat;
    animation: signal 1.2s steps(2) infinite
}

@keyframes signal {
    50% {
        opacity: .4
    }
}

.ether .tape {
    display: inline-flex;
    gap: 64px;
    padding: 14px 0 14px 190px;
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 16px;
    color: var(--frost);
    animation: tape 60s linear infinite
}

.ether .tape b {
    color: var(--amber);
    font-weight: 500;
    margin-right: 8px
}

@keyframes tape {
    to {
        transform: translateX(-50%)
    }
}

/* ====================== СЕКЦИИ ====================== */

.kicker {
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 15px;
    letter-spacing: .14em;
    color: var(--amber);
    margin: 0 0 14px
}


.sub {
    color: var(--frost);
    max-width: 40em;
    margin: 0
}


/* брифинг */
.brief {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: clamp(32px, 6vw, 90px);
    align-items: start
}

.brief p {
    margin: 0 0 18px;
    max-width: 36em
}

.dossier {
    border: 1px solid var(--line);
    background: rgba(5, 14, 21, .7);
    position: relative
}

.dossier header {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--cond);
    font-stretch: condensed;
    letter-spacing: .1em;
    font-size: 14px;
    color: var(--frost)
}

.dossier header b {
    color: var(--amber);
    font-weight: 500
}

.dossier dl {
    margin: 0;
    padding: 6px 18px 12px
}

.dossier .row {
    display: grid;
    grid-template-columns:150px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(43, 75, 90, .7)
}

.dossier .row:last-child {
    border-bottom: 0
}

.dossier dt {
    color: var(--frost);
    font-size: 15px
}

.dossier dd {
    margin: 0
}

/* карта */
.map-shell {
    position: relative;
    margin-top: 44px;
    border: 1px solid var(--line);
    background: #06141C;
}

.map-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, .65)
}

.map {
    position: relative;
    aspect-ratio: 1268/567
}

.map img {
    display: block;
    width: 100%;
    height: 100%
}

.map svg.ov {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none
}

.route {
    fill: none;
    stroke: var(--amber);
    stroke-width: 3;
    stroke-dasharray: 10 12;
    animation: march 2.4s linear infinite;
    opacity: .85
}

@keyframes march {
    to {
        stroke-dashoffset: -44
    }
}

.hazard {
    fill: rgba(224, 88, 79, .12);
    stroke: var(--alert);
    stroke-width: 2;
    animation: hz 2.6s ease-in-out infinite
}

@keyframes hz {
    50% {
        fill: rgba(224, 88, 79, .32);
        stroke-opacity: .4
    }
}

.ring {
    fill: none;
    stroke: #8CE0FF;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: ring 3.6s ease-out infinite;
    opacity: 0
}

.ring.d2 {
    animation-delay: 1.2s
}

.ring.d3 {
    animation-delay: 2.4s
}

@keyframes ring {
    0% {
        transform: scale(.1);
        opacity: 0
    }
    12% {
        opacity: .9
    }
    100% {
        transform: scale(1);
        opacity: 0
    }
}

.map-sweep {
    inset: 0;
    z-index: 2;
    position: absolute;
    pointer-events: none;
    background-image: linear-gradient(
            90deg,
            transparent 0,
            rgba(108, 255, 196, .0) 40%,
            rgba(108, 255, 196, .18) 49%,
            rgba(108, 255, 196, .5) 50%,
            transparent 50%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: mapsweep 9s linear infinite
}

@keyframes mapsweep {
    from {
        background-position: 100% 0
    }
    to {
        background-position: -100% 0
    }
}

.pin {
    position: absolute;
    z-index: 4;
    width: 34px;
    height: 34px;
    margin: -17px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer
}

.pin::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(240, 168, 58, .35), 0 0 18px rgba(240, 168, 58, .9)
}

.pin::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--amber);
    animation: pinpulse 2.4s ease-out infinite
}

@keyframes pinpulse {
    from {
        transform: scale(.4);
        opacity: 1
    }
    to {
        transform: scale(1.5);
        opacity: 0
    }
}

.pin .tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    min-width: 220px;
    padding: 12px 14px;
    text-align: left;
    background: rgba(4, 14, 20, .95);
    border: 1px solid var(--amber);
    color: var(--ice);
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s
}

.pin .tip b {
    display: block;
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 17px;
    letter-spacing: .04em;
    color: var(--amber);
    margin-bottom: 4px
}

.pin:hover .tip, .pin:focus-visible .tip {
    opacity: 1;
    transform: translate(-50%, 0)
}

.map-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    color: var(--frost)
}

/* задания */
.missions {
    gap: 18px;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 44px;
    align-items: start;
}

.pack {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0E2330, #081821);
    transition: border-color .25s, transform .25s
}

.pack:hover {
    border-color: var(--amber);
    transform: translateY(-4px)
}

.pack summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 20px 20px;
    display: block
}

.pack summary::-webkit-details-marker {
    display: none
}

.pack .ico {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    color: var(--amber)
}

.pack .ico svg {
    width: 100%;
    height: 100%
}

.pack .domain {
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 14px;
    letter-spacing: .12em;
    color: var(--frost);
    margin: 0 0 4px
}

.pack h3 {
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 27px;
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: .01em
}

.seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 14px;
    letter-spacing: .1em;
    color: var(--alert);
    border: 1.5px solid var(--alert);
    padding: 4px 10px;
    transform: rotate(-4deg)
}

.pack[open] .seal {
    color: var(--frost);
    border-color: var(--line);
    transform: none
}

.pack[open] .seal .closed, .pack:not([open]) .seal .opened {
    display: none
}

.pack .body {
    padding: 0 20px 22px;
    color: #CFE0E6;
    font-size: 15.5px;
    animation: unseal .45s ease
}

.pack .body p {
    margin: 0
}

@keyframes unseal {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0)
    }
    to {
        opacity: 1;
        clip-path: inset(0)
    }
}

.pack .ico svg .spin {
    animation: spin-2 3s linear infinite
}

@keyframes spin-2 {
    to { transform: rotate(360deg); }
}

.ico .spin {
    transform-box: fill-box;
    transform-origin: top left;
}

.ico .pulse {
    animation: blink 1.4s steps(1) infinite
}

/* этапы */
.stages {
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 0;
    position: relative
}

.stages li {
    position: relative;
    padding: 0 28px 0 0
}


.stages li::after {
    content: "";
    position: absolute;
    left: 62px;
    right: 10px;
    top: 27px;
    height: 2px;
    background: var(--line);
}

.stages li.processed::after {
    background: var(--amber);
}

.stages .num {
    width: 52px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: var(--night);
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 22px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)
}

.stages h3 {
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 26px;
    margin: 0 0 6px
}

.stages .when {
    color: var(--amber);
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 17px;
    margin: 0 0 10px
}

.stages p {
    margin: 0;
    color: var(--frost);
    max-width: 24em
}

/* финальный призыв */
.final {
    text-align: center;
    overflow: hidden
}

.final .radar-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(900px, 140vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: .5;
    background:
            repeating-radial-gradient(
                    circle,
                    transparent 0 58px, rgba(43, 75, 90, .55) 58px 59px
            )
}

.final .radar-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
            from 0deg,
            transparent 260deg,
            rgba(240, 168, 58, .28) 320deg
    );
    animation: spin 6s linear infinite;
}

.final .wrap {
    position: relative
}

.final h2 {
    font-size: clamp(40px, 6.5vw, 78px)
}

.final .sub {
    margin: 0 auto 34px
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 34px
}

.countdown div {
    min-width: 86px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    background: rgba(5, 14, 21, .8)
}

.countdown span {
    display: block;
    font-family: var(--cond);
    font-stretch: condensed;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--amber);
    font-variant-numeric: tabular-nums
}

.countdown small {
    font-size: 13px;
    color: var(--frost)
}

.final .actions {
    justify-content: center
}

footer {
    padding: 34px clamp(20px, 6vw, 96px);
    border-top: 1px solid var(--line);
    background: #03090D;
    color: var(--frost);
    font-size: 14.5px
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 40px
}

/* ====================== АДАПТИВ ====================== */
@media (max-width: 900px) {
    .brief {
        grid-template-columns:1fr
    }

    .stages {
        grid-template-columns:1fr;
        gap: 10px;
    }

    .stages li {
        padding-bottom: 10px;
        padding-right: 0;
    }

    .stages li .content {
        padding-left: 52px;
    }

    .stages li::after {
        top: 62px;
        bottom: 0;
        left: 25px;
        width: 2px;
        height: auto;
    }

    .telemetry {
        display: none
    }

    .radar {
        width: 96px;
        height: 96px;
        right: 24px;
        bottom: 24px
    }

    .bar .status span:nth-child(2), .bar .status span:nth-child(3) {
        display: none
    }
}

@media (max-width: 560px) {
    .hero-copy {
        bottom: 40px
    }

    .radar, .scroll-cue {
        display: none
    }

    .bar .status {
        font-size: 12px;
        gap: 14px
    }

    .bar .status span:first-child {
        overflow: hidden;
        text-overflow: ellipsis
    }

    .actions .btn {
        width: 100%;
        justify-content: center
    }

    .dossier .row {
        grid-template-columns:1fr;
        gap: 2px
    }

    .pin .tip {
        min-width: 170px;
        font-size: 13px
    }

    .countdown {
      gap: 0;
    }

    .countdown div {
        min-width: 68px
    }

    .countdown span {
        font-size: 30px
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important
    }

    .bar {
        height: 48px
    }

    .hero-copy, .bar .status, .scroll-cue {
        opacity: 1;
        transform: none
    }

    .sat, .uav, .scan, .grain {
        display: none
    }
}
