.price {
    position: relative;
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
    padding: 156px 0 96px;
}

.price-hero {
    text-align: center;
}

.price-hero h1 {
    margin: 0 auto;
    max-width: 18ch;
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.04;
    text-wrap: balance;
}

.price-hero__lead {
    max-width: 560px;
    margin: 20px auto 0;
    color: var(--text-2);
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.6;
    text-wrap: pretty;
}

.terms {
    position: relative;
    z-index: 1;
    display: flex;
    width: fit-content;
    margin: 40px auto 0;
    border-radius: var(--r-pill);
    padding: 5px;
    background: #0b0b0d;
    box-shadow: inset 0 0 0 1px #1f1f24, 0 18px 40px -24px rgba(0, 0, 0, .9);
}

.terms button[hidden] { display: none; }

.terms__thumb {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: var(--w, 0);
    border-radius: var(--r-pill);
    background: #f4f4f5;
    box-shadow: 0 6px 18px -8px rgba(255, 255, 255, .35);
    transform: translateX(var(--x, 0));
}

.terms.is-ready .terms__thumb {
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1);
}

.terms button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    border: 0;
    border-radius: var(--r-pill);
    padding: 0 20px;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color .3s ease;
}

.terms button:hover { color: var(--text); }
.terms button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.terms button[aria-checked="true"] { color: #09090b; }

.terms:not(.is-ready) button[aria-checked="true"] { background: #f4f4f5; }

.terms__save {
    border-radius: var(--r-pill);
    padding: 2px 7px;
    background: rgba(52, 211, 153, .14);
    color: #6ee7b7;
    font-size: 11.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background-color .3s ease, color .3s ease;
}

.terms__save:empty { display: none; }
.terms button[aria-checked="true"] .terms__save { background: rgba(5, 150, 105, .14); color: #047857; }

.offer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    margin-top: 22px;
    overflow: hidden;
    border-radius: 24px;
    background: #0b0b0d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 110px -60px rgba(0, 0, 0, .95);
}

.offer::before {
    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00cfff 30%, #0047ff 70%, transparent);
    content: "";
}

.offer__buy {
    display: flex;
    flex-direction: column;
    padding: 34px;
    background: #111114;
    box-shadow: 1px 0 0 #1d1d21;
}

.offer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.offer h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.offer__tag {
    border-radius: var(--r-pill);
    padding: 3px 10px;
    background: #f4f4f5;
    color: #09090b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.offer__price {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 30px 0 0;
}

.offer__amount {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .95;
    font-variant-numeric: tabular-nums;
}

.offer__cycle {
    padding-bottom: 4px;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.3;
}

.offer__per {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: #6ee7b7;
    font-size: 14.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.offer__note {
    min-height: 1.55em;
    margin: 4px 0 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.55;
}

.offer__cycle,
.offer__per,
.offer__note { transition: opacity .16s ease, transform .16s ease; }

.offer__cycle.is-swapping,
.offer__per.is-swapping,
.offer__note.is-swapping { opacity: 0; transform: translateY(3px); }

.offer .btn:disabled { opacity: 1; background: #1d1d21; color: var(--text-2); cursor: default; }

.offer .btn {
    height: 50px;
    margin-top: 26px;
    border-radius: var(--r-pill);
    font-weight: 600;
}

.offer__facts {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #1d1d21;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.5;
    list-style: none;
}

.offer__facts li,
.offer__group li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.offer__facts .icon,
.offer__group .icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.offer__facts .icon { color: var(--ok); }
.offer__group .icon { color: var(--text-3); }

.offer__all {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 28px;
    padding: 34px;
}

.offer__group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.offer__group h3 i {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #121316;
    box-shadow: inset 0 0 0 1px #26272c;
    color: var(--c-icon);
}

.offer__group h3 .ic { width: 17px; height: 17px; }

.offer__group ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    list-style: none;
}

.pricing-test-msg {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    line-height: 1.5;
}

.pricing-test-msg.is-err { background: var(--bad-soft); color: #fca5a5; }
.pricing-test-msg.is-ok { background: var(--ok-soft); color: #86efac; }

.why {
    margin-top: 120px;
}

.why h2 {
    max-width: 22ch;
    margin: 0 auto;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.08;
    text-align: center;
    text-wrap: balance;
}

.why__body {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 56px;
    margin-top: 24px;
}

.why__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.why__step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    border-left: 2px solid #1d1d21;
    padding-left: 24px;
    opacity: .32;
    transition: opacity .45s ease, border-color .45s ease;
}

.why__step.is-on { border-left-color: #f4f4f5; opacity: 1; }

.why__n {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.why__step b {
    margin-top: 10px;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.why__step p {
    max-width: 36ch;
    margin: 10px 0 0;
    color: var(--text-2);
    font-size: 15.5px;
    line-height: 1.6;
}

.why__stage {
    position: sticky;
    top: calc(50vh - 20vw + 40px);
    align-self: start;
    margin-top: calc(30vh - 160px);
}

.why__screen {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #050608 url(/img/why-city.webp) center / cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 120px -60px #000;
    aspect-ratio: 16 / 10;
}

.why__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.why__screen[data-active="0"] .why__layer--radio,
.why__screen[data-active="1"] .why__layer--keys,
.why__screen[data-active="2"] .why__layer--alerts { opacity: 1; transform: none; }

.why__win {
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    background: #0b0b0d;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .9);
    aspect-ratio: 16 / 10;
}

.why__win img { display: block; width: 100%; height: 100%; object-fit: cover; }

.why__layer--radio .why__win { top: 9%; left: 8%; width: 84%; }
.why__layer--radio img { transform: scale(1.45); transform-origin: 71% 27%; }

.why__win--mdt { top: 13%; left: 5%; width: 64%; }

.why__phone {
    position: absolute;
    top: 7%;
    right: 6%;
    width: 23%;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .7));
}

.why__phone img { display: block; width: 100%; }

.why__phone[data-scene] { aspect-ratio: 433 / 882; filter: none; }

.why__alert {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7));
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .4s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.why__alert--911 { top: 6%; left: 4%; width: 46%; }
.why__alert--msg { top: 7%; right: 4%; width: 38%; transition-delay: .14s; }
.why__alert--call { top: 25%; right: 4%; width: 23%; transition-delay: .28s; }
.why__screen[data-active="2"] .why__alert { opacity: 1; transform: none; }

.why__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.why__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2a2a30;
    transition: width .35s ease, background-color .35s ease;
}

.why__dots i.is-on { width: 22px; border-radius: 3px; background: #f4f4f5; }

.price-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    pointer-events: none;
}

.price-stage > * {
    position: absolute;
    height: auto;
    animation: price-stage-in 1.4s var(--ease-out) .45s backwards;
}

.price-stage__mdt {
    top: 450px;
    left: calc((100vw - 100%) / -2 + 28px);
    width: 540px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    opacity: .42;
    transform: perspective(1400px) translateY(calc(var(--sy, 0) * -.12px)) rotateY(28deg) rotateX(5deg);
    -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 88%);
    mask-image: linear-gradient(90deg, #000 30%, transparent 88%);
}

.price-stage__phone {
    top: 400px;
    right: calc((100vw - 100%) / -2 + 34px);
    width: 168px;
    aspect-ratio: 433 / 882;
    opacity: .5;
    transform: perspective(1400px) translateY(calc(var(--sy, 0) * -.2px)) rotateY(-24deg) rotateX(4deg);
    -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent 92%);
    mask-image: linear-gradient(270deg, #000 35%, transparent 92%);
}

@keyframes price-stage-in {
    from { opacity: 0; }
}

@media (min-width: 1440px) {
    .price-stage { display: block; }
}

.price-page { overflow-x: clip; }

.after {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 64px;
}

.after__step {
    border-radius: var(--r-xl);
    padding: 26px;
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line);
}

.after__num {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 700;
}

.after__step h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.after__step p {
    margin: 0;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.6;
}

.pricing__note {
    max-width: 640px;
    margin: 48px auto 0;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    text-wrap: pretty;
}

.price-page .aurora-foot {
    border-top-color: var(--line);
}

.price-hero h1 .w {
    display: inline-block;
    animation: price-word .8s var(--ease-out) backwards;
    animation-delay: calc(60ms + var(--i) * 70ms);
}

.price-hero__lead,
.terms,
.offer {
    animation: price-in 700ms var(--ease-out) backwards;
}

.price-hero__lead { animation-delay: 380ms; }
.terms { animation-delay: 480ms; }
.offer { animation-delay: 560ms; }

@keyframes price-word {
    from { opacity: 0; filter: blur(10px); transform: translateY(.35em); }
}

@keyframes price-in {
    from { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 900px) {
    .offer,
    .after { grid-template-columns: minmax(0, 1fr); }
    .offer__buy { box-shadow: 0 1px 0 #1d1d21; }

    .why__body { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .why__stage { top: 72px; z-index: 2; order: -1; margin: 0 -4px; padding: 10px 4px 12px; background: #000; }
    .why__step { min-height: 52vh; }

    .why__stage::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 72px; background: #000; content: ""; }
    .why h2 { position: relative; z-index: 3; }
}

@media (max-width: 640px) {
    .price {
        width: calc(100% - 32px);
        padding-top: 120px;
    }

    .offer__buy,
    .offer__all,
    .after__step { padding: 22px; }

    .offer__all { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .offer__amount { font-size: 46px; }
    .terms { max-width: 100%; }
    .terms button { height: 40px; padding: 0 13px; font-size: 14px; }
    .terms__save { padding: 2px 5px; font-size: 10.5px; }
    .why { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .price-hero h1 .w,
    .price-hero__lead,
    .terms,
    .offer,
    .price-stage > * { animation: none; }
    .terms button,
    .terms.is-ready .terms__thumb,
    .why__step,
    .why__layer,
    .why__alert,
    .offer__cycle,
    .offer__per,
    .offer__note { transition: none; }
}
