@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --ink: #0A0A0A;
    --ink-2: #141414;
    --ink-3: #1E1E1E;
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .18);
    --paper: #F5F2EC;
    --paper-2: #ECE7DC;
    --text: #F5F2EC;
    --text-dim: rgba(245, 242, 236, .62);
    --text-faint: rgba(245, 242, 236, .38);
    --brand-soft: #C7FFA7;
    --brand-toxic: #E8FF3D;
    --brand-accent: var(--brand-toxic);
    --brand-lime: var(--brand-accent);
    --acc-pink: #FF8FB8;
    --acc-magenta: #E84A9E;
    --acc-lime: var(--brand-accent);
    --acc-amber: #FFC78A;
    --acc-cyan: #B4D4FF;
    --acc-coral: #FF9E80;
    --pst-svidanie: #FFD4DD;
    --pst-devichnik: #C7FFA7;
    --pst-semya: #FFE4C7;
    --pst-kino: #D4DFFF;
    --pst-bday: #FFC7E0;
    --pst-biznes: #E8E8E8;
    --r-card: 18px;
    --r-pill: 999px;
    --r-tile: 24px;
    --container: 1540px;
    --pad-x: clamp(18px, 3.4vw, 58px);
    --font: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
    color: var(--text);
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.2;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--brand-accent);
    border-radius: 20px;
    border: 2px solid transparent;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

::selection {
    color: var(--ink);
    background: var(--brand-lime);
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-130%);
    padding: 12px 18px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

.section {
    position: relative;
    padding: clamp(78px, 10vw, 156px) 0;
    border-top: 1px solid var(--line);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, .82);
    backdrop-filter: blur(18px);
}

.header-grid {
    min-height: 86px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    letter-spacing: -.055em;
    font-size: clamp(26px, 2.3vw, 37px);
    font-weight: 950;
    text-transform: lowercase;
    white-space: nowrap;
}

.logo span {
    color: var(--text);
}

.logo strong {
    color: var(--brand-lime);
}

.logo i {
    color: var(--brand-lime);
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 38px);
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 760;
}

.main-nav a {
    position: relative;
    transition: color .2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--brand-lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    overflow: hidden;
    font-weight: 900;
    letter-spacing: -.02em;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn::after {
    content: "→";
    margin-left: 10px;
    transition: transform .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::after {
    transform: translateX(4px);
}

.btn--lime {
    background: var(--brand-lime);
    color: var(--ink);
}

.btn--lime:hover {
    background: var(--brand-soft);
}

.btn--ghost {
    color: var(--text);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, .03);
}

.btn--ghost:hover {
    border-color: rgba(232, 255, 61, .55);
    background: rgba(232, 255, 61, .06);
}

.btn--small {
    min-height: 44px;
    padding-inline: 22px;
    font-size: 14px;
}

.btn--xl {
    min-height: 58px;
    padding-inline: 30px;
    font-size: clamp(15px, 1.15vw, 19px);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: transparent;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

body.nav-open .burger span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

body.nav-open .burger span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
    min-height: calc(90vh);
    display: flex;
    align-items: center;
    border-top: 0;
    overflow: hidden;
    padding-top: 100px;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: clamp(34px, 6vw, 90px);
}

.eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(22px, 3vw, 42px);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 15px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pill--lime {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 960px;
    font-size: 6rem;
    line-height: .84;
    letter-spacing: -.035em;
}

h1::first-line {
    color: var(--paper);
}

h1 strong,
h1 em {
    color: var(--brand-lime);
    font-style: normal;
}

.hero__lead {
    max-width: 760px;
    margin-top: clamp(24px, 3vw, 38px);
    color: var(--text-dim);
    font-size: 1.5rem;
    line-height: 1.22;
    letter-spacing: -.035em;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(28px, 4vw, 54px);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 820px;
    padding: 0;
    margin: clamp(34px, 5vw, 68px) 0 0;
    list-style: none;
}

.hero__facts li {
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .025);
}

.hero__facts strong {
    display: block;
    color: var(--brand-lime);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero__facts span {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.35;
}

.hero__stage {
    position: relative;
    min-height: min(680px, 74vh);
}

.phone-card,
.mini-result {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--ink-3);
    box-shadow: 0 34px 120px rgba(0, 0, 0, .5);
}

.phone-card img,
.mini-result img,
.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.92) contrast(.98);
}

.phone-card::after,
.mini-result::after,
.shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
    box-shadow: inset 0 -180px 120px rgba(0, 0, 0, .72);
    pointer-events: none;
}

.phone-card--main {
    z-index: 2;
    right: 8%;
    top: 2%;
    width: min(440px, 62vw);
    height: min(660px, 72vh);
    border-radius: 36px;
}

.phone-card__top,
.phone-card__bottom {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.phone-card__top {
    top: 22px;
}

.phone-card__bottom {
    bottom: 22px;
}

.phone-card__top b,
.phone-card__bottom b {
    padding: 7px 12px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
}

.mini-result {
    z-index: 3;
    width: 180px;
    height: 230px;
    border-radius: 28px;
}

.mini-result span {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    padding: 7px 10px;
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mini-result--one {
    left: 3%;
    top: 13%;
    transform: rotate(-7deg);
}

.mini-result--two {
    left: 8%;
    bottom: 9%;
    transform: rotate(6deg);
}

.orbit-badge {
    position: absolute;
    z-index: 4;
    right: 2%;
    bottom: 13%;
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.04em;
    text-align: center;
    transform: rotate(8deg);
}

.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--brand-lime);
    color: var(--ink);
}

.ticker__track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 0;
    animation: ticker 25s linear infinite;
}

.ticker span {
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.section-head,
.split-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 30px;
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 70px);
}

.section-kicker {
    margin-bottom: 18px;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h2 {
    max-width: 100%;
    font-size: clamp(42px, 3.2vw, 104px);
    line-height: .9;
    letter-spacing: -.075em;
    text-transform: none;
}

h2::first-letter {
    letter-spacing: -.09em;
}

.section-head>p,
.split-head>p,
.faq__intro p,
.privacy__inner>p,
.quests__copy p,
.final-cta__box p {
    color: var(--text-dim);
    font-size: clamp(17px, 1.45vw, 24px);
    line-height: 1.3;
    letter-spacing: -.025em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.shot {
    position: relative;
    min-height: 440px;
    grid-column: span 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-3);
}

.shot--tall {
    grid-row: span 2;
    min-height: 680px;
}

.shot--wide {
    grid-column: span 6;
}

.shot__meta {
    position: absolute;
    z-index: 2;
    inset: auto 18px 18px;
    display: grid;
    gap: 6px;
}

.shot__meta span,
.shot__meta em {
    color: var(--text-dim);
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.shot__meta b {
    color: var(--text);
    font-size: 28px;
    letter-spacing: -.045em;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.template-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(10, 10, 10, .12);
    border-radius: var(--r-tile);
    background: var(--tile, var(--paper));
    color: var(--ink);
    transition: all .25s ease;
}

.template-card:hover {
    transform: translateY(-10px) rotate(-2deg) !important;
}

.template-card span {
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .11em;
    opacity: .55;
}

.template-card h3,
.step-card h3 {
    font-size: clamp(25px, 2.1vw, 38px);
    line-height: .95;
    letter-spacing: -.055em;
}

.template-card p {
    max-width: 420px;
    color: rgba(10, 10, 10, .68);
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.process {
    background: var(--ink-2);
}

.process-head {
    align-items: end;
    gap: 24px;
    margin-bottom: clamp(32px, 5vw, 72px);
}

.process-head span {
    color: var(--text-faint);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 2.4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(0, 0, 0, .28);
}

.step-card small {
    color: var(--brand-lime);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.step-card p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.quests__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(340px, 1fr);
    gap: clamp(32px, 5vw, 86px);
    align-items: center;
    padding-block: clamp(12px, 3vw, 40px);
}

.quests__copy h2 {
    margin-bottom: 26px;
}

.quests__copy .btn {
    margin-top: 34px;
}

.quest-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quest-board article {
    min-height: 220px;
    padding: clamp(22px, 2.6vw, 34px);
    border-radius: var(--r-tile);
    background: var(--brand-lime);
    color: var(--ink);
}

.quest-board article:first-child {
    grid-column: 1 / -1;
}

.quest-board span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brand-lime);
    font-size: 24px;
    font-weight: 950;
}

.quest-board b {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(24px, 2.2vw, 40px);
    letter-spacing: -.06em;
}

.quest-board p {
    color: rgba(10, 10, 10, .62);
    font-size: 17px;
    line-height: 1.25;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.review-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 2.4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: rgba(255, 255, 255, .025);
}

.review-card--score {
    background: var(--brand-lime);
    color: var(--ink);
    border-color: transparent;
}

.review-card span {
    color: var(--brand-lime);
    font-size: 14px;
    letter-spacing: .08em;
}

.review-card--score span {
    color: rgba(10, 10, 10, .55);
}

.review-card strong {
    display: block;
    font-size: clamp(64px, 8vw, 118px);
    letter-spacing: -.085em;
    line-height: .8;
}

.review-card p {
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -.02em;
}

.review-card--score p {
    color: rgba(10, 10, 10, .62);
}

.review-card b {
    color: var(--text);
    font-size: 15px;
}

.privacy {
    padding: clamp(54px, 7vw, 98px) 0;
    background: var(--ink-2);
}

.privacy__inner {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(280px, 1fr);
    align-items: center;
    gap: 32px;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: rgba(0, 0, 0, .18);
}

.privacy h2 {
    font-size: clamp(40px, 5vw, 82px);
}

.faq__inner {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 90px);
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: 128px;
}

.faq__intro h2 {
    margin-bottom: 24px;
}

.accordion {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    min-height: 94px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0;
    color: var(--text);
    background: transparent;
    text-align: left;
}

.faq-item button span {
    font-size: clamp(21px, 2vw, 34px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.faq-item button i {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    position: relative;
}

.faq-item button i::before,
.faq-item button i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--brand-lime);
    transform: translate(-50%, -50%);
}

.faq-item button i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity .2s ease;
}

.faq-item button[aria-expanded="true"] i::after {
    opacity: 0;
}

.faq-item__body {
    padding: 0 76px 30px 0;
}

.faq-item__body p {
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.final-cta {
    padding-top: 0;
}

.final-cta__box {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(36px, 6vw, 76px);
    border-radius: clamp(26px, 4vw, 48px);
    background: var(--brand-lime);
    color: var(--ink);
    overflow: hidden;
}

.final-cta__box .section-kicker,
.final-cta__box p {
    color: rgba(10, 10, 10, .62);
}

.final-cta__box h2 {
    max-width: 1100px;
}

.final-cta__box p {
    max-width: 760px;
    margin-top: 24px;
}

.final-cta__box .btn {
    margin-top: 38px;
    background: var(--ink);
    color: var(--text);
}

.final-cta__box .btn:hover {
    background: var(--ink-3);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 42px 0;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 42px;
}

.site-footer p {
    max-width: 560px;
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.45;
}

.site-footer nav,
.footer-meta {
    display: grid;
    gap: 13px;
    color: var(--text-dim);
    font-size: 15px;
}

.site-footer a:hover {
    color: var(--brand-lime);
}

.toast {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: 15px;
    max-width: calc(100vw - 36px);
    transform: translate(-50%, 130%);
    padding: 14px 22px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: rgba(20, 20, 20, .92);
    color: var(--text);
    box-shadow: 0 18px 80px rgba(0, 0, 0, .45);
    transition: transform .24s ease;
    backdrop-filter: blur(18px);
}

.toast.is-visible {
    transform: translate(-50%, 0);
}

.chat-button {
    position: fixed;
    z-index: 90;
    right: clamp(18px, 2.2vw, 36px);
    bottom: clamp(18px, 2.2vw, 36px);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.chat-button span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 17px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.chat-button span::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: -5px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(36deg);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        gap: 18px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__stage {
        min-height: 620px;
    }

    .phone-card--main {
        right: 12%;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .shot,
    .shot--wide {
        grid-column: span 3;
    }

    .shot--tall {
        grid-column: span 3;
    }

    .template-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq__inner {
        grid-template-columns: 1fr;
    }

    .faq__intro {
        position: static;
    }
}

@media (max-width: 920px) {
    .header-grid {
        min-height: 74px;
    }

    .burger {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 75px 14px auto;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(10, 10, 10, .96);
        box-shadow: 0 30px 90px rgba(0, 0, 0, .56);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease;
    }

    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 17px 14px;
        border-bottom: 1px solid var(--line);
        font-size: 18px;
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .main-nav a::after {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .section-head,
    .split-head,
    .process-head,
    .privacy__inner,
    .quests__inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero__facts {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        gap: 12px;
    }

    .shot,
    .shot--wide,
    .shot--tall {
        grid-column: span 6;
        min-height: 480px;
    }

    .quest-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --pad-x: 16px;
    }

    body {
        background: var(--ink);
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 46px;
    }

    h1 {
        font-size: clamp(43px, 10vw, 92px);
    }

    h2 {
        font-size: clamp(42px, 10vw, 70px);
    }

    .hero__lead {
        font-size: 19px;
    }

    .hero__cta {
        display: grid;
    }

    .btn--xl {
        width: 100%;
    }

    .hero__stage {
        min-height: 500px;
        margin-inline: -10px;
    }

    .phone-card--main {
        right: 50%;
        transform: translateX(50%);
        width: min(330px, 82vw);
        height: 480px;
        border-radius: 28px;
    }

    .mini-result {
        width: 128px;
        height: 168px;
        border-radius: 20px;
    }

    .mini-result--one {
        left: 1%;
        top: 8%;
    }

    .mini-result--two {
        left: auto;
        right: 2%;
        bottom: 4%;
    }

    .orbit-badge {
        width: 84px;
        height: 84px;
        font-size: 13px;
        right: 7%;
        bottom: 31%;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .shot,
    .shot--wide,
    .shot--tall {
        min-width: min(330px, 82vw);
        min-height: 440px;
        scroll-snap-align: start;
    }

    .template-grid,
    .steps,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .template-card,
    .step-card,
    .review-card {
        min-height: 220px;
    }

    .quest-board article:first-child {
        grid-column: auto;
    }

    .faq-item button {
        min-height: 82px;
    }

    .faq-item__body {
        padding-right: 0;
    }

    .final-cta__box {
        min-height: 440px;
        padding: 28px;
    }

    .site-footer {
        padding-bottom: 96px;
    }

    .toast {
        width: calc(100vw - 28px);
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/*  */
/* АВТОРИЗАЦИЯ */
/*  */

.auth-page {
    min-height: 100vh;
    background: var(--ink);
    color: var(--text);
    overflow-x: hidden;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: var(--ink-2);
}

.auth-visual__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.92) contrast(.98);
}

.auth-visual__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .36);
    box-shadow: inset 0 -260px 170px rgba(0, 0, 0, .78), inset 0 160px 120px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.auth-brand {
    position: absolute;
    z-index: 3;
    top: clamp(24px, 3vw, 48px);
    left: clamp(24px, 3vw, 58px);
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    color: var(--text);
    font-size: clamp(28px, 2.45vw, 43px);
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.055em;
    text-transform: lowercase;
    white-space: nowrap;
}

.auth-brand strong,
.auth-brand i {
    color: var(--brand-lime);
}

.auth-brand i {
    font-style: normal;
}

.auth-brand--mobile {
    display: none;
    position: static;
    margin-bottom: clamp(44px, 10vw, 72px);
}

.auth-visual__bottom {
    position: absolute;
    z-index: 3;
    left: clamp(24px, 3vw, 58px);
    right: clamp(24px, 3vw, 58px);
    bottom: clamp(28px, 4vw, 70px);
    display: grid;
    gap: 18px;
}

.auth-visual__bottom p,
.auth-eyebrow,
.auth-label {
    margin: 0;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-visual__bottom span {
    max-width: 680px;
    color: var(--text);
    font-size: 3rem;
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.075em;
}

.auth-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(26px, 5vw, 92px);
}

.auth-box {
    width: min(100%, 520px);
}

.auth-copy {
    margin-bottom: clamp(34px, 5vw, 62px);
}

.auth-eyebrow {
    margin-bottom: 18px;
}

.auth-copy h1 {
    max-width: 560px;
    margin: 0;
    font-size: 4rem;
    line-height: .85;
    letter-spacing: -.08em;
}

.auth-copy p:not(.auth-eyebrow) {
    max-width: 470px;
    margin: 22px 0 0;
    color: var(--text-dim);
    font-size: clamp(17px, 1.25vw, 22px);
    line-height: 1.28;
    letter-spacing: -.025em;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-step {
    display: grid;
    gap: 14px;
    animation: authStepIn .28s ease both;
}

.auth-step[hidden] {
    display: none !important;
}

@keyframes authStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-input,
.auth-code input {
    width: 100%;
    border: 1px solid var(--line-2);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .035);
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.auth-input {
    height: 68px;
    padding: 0 22px;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -.025em;
}

.auth-input::placeholder {
    color: var(--text-faint);
}

.auth-input:focus,
.auth-code input:focus {
    border-color: rgba(232, 255, 61, .82);
    background: rgba(232, 255, 61, .055);
}

.auth-button {
    width: 100%;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-weight: 950;
    letter-spacing: -.02em;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.auth-button::after {
    content: "→";
    margin-left: 10px;
    transition: transform .2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    background: var(--brand-soft);
}

.auth-button:hover::after {
    transform: translateX(4px);
}

.auth-button:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

.auth-change,
.auth-resend {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    transition: color .2s ease;
}

.auth-change:hover,
.auth-resend:not(:disabled):hover {
    color: var(--brand-lime);
}

.auth-sent {
    margin: 4px 0 6px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.35;
}

.auth-sent b {
    color: var(--text);
}

.auth-code {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.auth-code input {
    aspect-ratio: 1;
    min-height: 70px;
    padding: 0;
    text-align: center;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
}

.auth-resend {
    justify-self: center;
    margin-top: 2px;
}

.auth-resend:disabled {
    color: var(--text-faint);
    cursor: default;
}

.auth-message {
    text-align: center;
    min-height: 20px;
    margin: 2px 0 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.4;
}

.auth-message.is-error {
    color: var(--acc-coral);
}

.auth-message.is-success {
    color: var(--brand-soft);
}

.auth-legal {
    max-width: 460px;
    margin: clamp(28px, 4vw, 46px) 0 0;
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .auth-layout {
        display: block;
        min-height: 100svh;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100svh;
        place-items: stretch;
        align-items: center;
        padding: clamp(22px, 7vw, 34px);
    }

    .auth-box {
        width: 100%;
        margin: auto 0;
    }

    .auth-brand--mobile {
        display: inline-flex;
    }

    .auth-copy {
        margin-bottom: 34px;
    }

    .auth-copy h1 {
        font-size: 2.8rem;
    }

    .auth-copy p:not(.auth-eyebrow) {
        font-size: 17px;
    }

    .auth-input,
    .auth-button {
        min-height: 60px;
    }

    .auth-code {
        gap: 8px;
    }

    .auth-code input {
        min-height: 58px;
        border-radius: 16px;
        font-size: clamp(28px, 9vw, 40px);
    }
}

@media (max-width: 420px) {
    .auth-panel {
        padding-inline: 18px;
    }

    .auth-code input {
        min-height: 52px;
    }
}

/*  */
/* Личный кабинет */
/*  */

.app-page {
    min-height: 100vh;
    background: var(--ink);
    color: var(--text);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 22px;
    border-right: 1px solid var(--line);
    background: var(--ink);
}

.app-logo {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    font-size: 34px;
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: lowercase;
}

.app-logo span {
    color: var(--text);
}

.app-logo strong,
.app-logo i {
    color: var(--brand-lime);
    font-style: normal;
}

.app-nav {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.app-nav__link {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-card);
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 850;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.app-nav__link span {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--brand-lime);
}

.app-nav__link span svg * {
    fill: var(--brand-lime)
}

.app-nav__link span svg {
    height: calc(100% - 10px);
}

.app-nav__link:hover,
.app-nav__link:focus-visible,
.app-nav__link.is-active {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, .045);
    transform: translateX(3px);
}

.coin-card {
    margin-top: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.coin-card span,
.app-kicker {
    display: block;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.coin-card strong {
    display: block;
    margin-top: 18px;
    font-size: 76px;
    line-height: .78;
    letter-spacing: -.08em;
}

.coin-card p {
    margin: 12px 0 20px;
    color: var(--text-dim);
    font-size: 15px;
}

.app-main {
    min-width: 0;
    padding: 24px clamp(18px, 3vw, 44px) 70px;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -24px calc(clamp(18px, 3vw, 44px) * -1) 0;
    padding: 14px clamp(18px, 3vw, 44px);
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, .86);
    backdrop-filter: blur(18px);
}

.app-logo--mobile {
    display: none;
    font-size: 28px;
}

.topbar-spacer {
    flex: 1;
}

.topbar-coins,
.user-chip {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-pill);
    font-weight: 900;
}

.topbar-coins {
    gap: 8px;
    padding: 0 18px;
    background: var(--brand-lime);
    color: var(--ink);
}

.topbar-coins svg {
    display: none;
}

.topbar-coins svg * {
    fill: var(--ink);
}

.topbar-coins b {
    font-size: 13px;
    opacity: .62;
}

.user-chip {
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}

.user-chip img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-chip span {
    font-size: 14px;
}

.composer,
.templates-area,
.app-offers {
    margin-top: clamp(34px, 5vw, 50px);
}

.composer__head,
.templates-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.composer__head h1,
.templates-head h2,
.offer-card h2 {
    margin: 12px 0 0;
    font-size: 5rem;
    line-height: .86;
    letter-spacing: -.075em;
}

.templates-head p,
.offer-card p {
    color: var(--text-dim);
    font-size: clamp(16px, 1.25vw, 21px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.composer__head p:last-child {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.generator-form {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(380px, .72fr);
    gap: 18px;
    align-items: stretch;
}

.upload-zone,
.prompt-panel {
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.upload-zone {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.upload-zone.is-dragover {
    border-color: var(--brand-lime);
    background: rgba(232, 255, 61, .06);
    transform: translateY(-2px);
}

.upload-zone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-zone__empty {
    max-width: 520px;
    padding: clamp(26px, 4vw, 50px);
    text-align: center;
}

.upload-zone__icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 54px;
    font-weight: 650;
    line-height: 1;
}

.upload-zone h2,
.prompt-panel h2 {
    margin: 0;
    font-size: clamp(34px, 3vw, 56px);
    line-height: .9;
    letter-spacing: -.065em;
}

.upload-zone p {
    margin: 18px auto 26px;
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.35;
}

.upload-zone__preview {
    position: absolute;
    inset: 0;
}

.upload-zone__preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 0;
}

.upload-zone__preview img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 1;
}

.upload-zone__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -180px 140px rgba(0, 0, 0, .78);
    pointer-events: none;
    z-index: 2;
}

.upload-zone__remove {
    position: absolute;
    z-index: 3;
    left: 22px;
    bottom: 22px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.prompt-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 34px);
}

.prompt-panel__top h2 {
    font-size: 2.2rem;
}

.prompt-panel__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.prompt-cost {
    flex: 0 0 auto;
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .03em;
}

.prompt-panel textarea {
    flex: 1;
    width: 100%;
    min-height: 230px;
    resize: vertical;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    outline: none;
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    transition: border-color .2s ease, background .2s ease;
}

.prompt-panel textarea::placeholder {
    color: var(--text-faint);
}

.prompt-panel textarea:focus {
    border-color: rgba(232, 255, 61, .64);
    background: rgba(0, 0, 0, .28);
}

.choice-status {
    min-height: 42px;
    display: flex;
    align-items: center;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.3;
}

.choice-status strong {
    color: var(--brand-lime);
    margin-left: 5px;
}

.prompt-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 18px;
}

.app-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 950;
    letter-spacing: -.02em;
    text-align: center;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.app-btn:hover,
.app-btn:focus-visible {
    transform: translateY(-2px);
}

.app-btn--lime {
    background: var(--brand-lime);
    color: var(--ink);
}

.app-btn--lime:hover,
.app-btn--lime:focus-visible {
    background: var(--brand-soft);
}

.app-btn--ghost {
    border-color: var(--line-2);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
}

.app-btn--ghost:hover,
.app-btn--ghost:focus-visible {
    border-color: rgba(232, 255, 61, .55);
    background: rgba(232, 255, 61, .06);
}

.app-btn--dark {
    background: var(--ink);
    color: var(--text);
}

.app-btn--wide {
    width: 100%;
}

.template-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.template-tabs button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .025);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 900;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.template-tabs button:hover,
.template-tabs button:focus-visible,
.template-tabs button.is-active {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.template-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.template-photo-card {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    color: var(--text);
    text-align: left;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, opacity .2s ease;
}

.template-photo-card[hidden] {
    display: none;
}

.template-photo-card:hover,
.template-photo-card:focus-visible {
    transform: translateY(-7px);
    border-color: var(--line-2);
}

.template-photo-card.is-selected {
    border-color: var(--brand-lime);
    box-shadow: 0 0 0 3px rgba(232, 255, 61, .18);
}

.template-photo-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.92) contrast(.96);
}

.template-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .12);
    box-shadow: inset 0 -190px 130px rgba(0, 0, 0, .86);
}

.template-photo-card__cost {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.template-photo-card b,
.template-photo-card em {
    position: relative;
    z-index: 2;
}

.template-photo-card b {
    font-size: clamp(24px, 2vw, 26px);
    line-height: .92;
    letter-spacing: -.06em;
}

.template-photo-card em {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-offers {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
    gap: 18px;
}

.offer-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.offer-card--main {
    background: var(--brand-lime);
    color: var(--ink);
}

.offer-card--main .app-kicker,
.offer-card--main p {
    color: rgba(10, 10, 10, .62);
}

.offer-card h2 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: 5rem;
}

.offer-card p {
    max-width: 650px;
    margin-bottom: 28px;
}

.mobile-tabbar {
    display: none;
}

.app-toast {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 5px;
    max-width: calc(100vw - 36px);
    transform: translate(-50%, 140%);
    padding: 14px 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: rgba(20, 20, 20, .94);
    color: var(--text);
    box-shadow: 0 18px 80px rgba(0, 0, 0, .5);
    backdrop-filter: blur(18px);
    transition: transform .24s ease;
}

.app-toast.is-visible {
    transform: translate(-50%, 0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1320px) {
    .template-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .generator-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .app-logo--mobile {
        display: inline-flex;
    }

    .app-main {
        padding-bottom: 112px;
    }

    .mobile-tabbar {
        position: fixed;
        z-index: 90;
        left: 12px;
        right: 12px;
        bottom: 12px;
        min-height: 70px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--line-2);
        border-radius: 26px;
        background: rgba(20, 20, 20, .9);
        box-shadow: 0 18px 80px rgba(0, 0, 0, .55);
        backdrop-filter: blur(18px);
    }

    .mobile-tabbar a {
        min-width: 0;
        display: grid;
        place-items: center;
        border-radius: 20px;
        color: var(--text-dim);
        font-size: 11px;
        font-weight: 900;
        padding: 3px;
    }

    .mobile-tabbar a span {
        height: 24px;
        width: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-tabbar a span svg * {
        fill: var(--brand-lime);
    }

    .mobile-tabbar a span svg {
        height: 100%;
    }

    .mobile-tabbar a.is-active {
        background: var(--brand-lime);
        color: var(--ink);
    }

    .mobile-tabbar a.is-active span svg * {
        fill: var(--ink);
    }
}

@media (max-width: 860px) {

    .composer__head,
    .templates-head,
    .app-offers {
        grid-template-columns: 1fr;
    }

    .template-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .template-photo-card {
        min-height: 350px;
    }

    .user-chip span {
        display: none;
    }
}

@media (max-width: 620px) {
    .app-main {
        padding-inline: 14px;
    }

    .app-topbar {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .topbar-coins {
        min-height: 42px;
        padding-inline: 13px;
    }

    .topbar-coins b {
        display: none;
    }

    .topbar-coins svg {
        display: block;
    }

    .user-chip {
        min-height: 42px;
        padding: 3px;
    }

    .user-chip img {
        width: 36px;
        height: 36px;
    }

    .composer__head h1,
    .templates-head h2,
    .offer-card h2 {
        font-size: clamp(44px, 15vw, 76px);
    }

    .upload-zone,
    .prompt-panel {
        min-height: 430px;
    }

    .upload-zone__empty {
        padding: 24px 18px;
    }

    .prompt-panel__top h2 {
        font-size: 2rem;
    }

    .prompt-cost {
        width: fit-content;
    }

    .prompt-actions {
        grid-template-columns: 1fr;
    }

    .template-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .template-tabs::-webkit-scrollbar {
        display: none;
    }

    .template-tabs button {
        flex: 0 0 auto;
    }

    .template-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-photo-card {
        min-height: 320px;
    }

    .offer-card {
        min-height: 310px;
    }
}

/*  */
/* История */
/*  */

.history-page {
    background: var(--ink);
}

.history-main {
    padding-bottom: 92px;
}

.history-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: 18px;
    align-items: stretch;
    margin-top: clamp(34px, 5vw, 70px);
}

.history-hero__copy,
.storage-card {
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.history-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 54px);
}

.history-hero h1 {
    margin: 16px 0 22px;
    font-size: 5rem;
    line-height: .82;
    letter-spacing: -.085em;
}

.history-hero__copy>p:last-child {
    max-width: 760px;
    color: var(--text-dim);
    font-size: clamp(17px, 1.35vw, 23px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.storage-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 3.6vw, 42px);
    background: var(--brand-lime);
    color: var(--ink);
}

.storage-card span {
    width: fit-content;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--brand-lime);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.storage-card strong {
    display: block;
    font-size: 5rem;
    line-height: .78;
    letter-spacing: -.09em;
}

.storage-card p {
    color: rgba(10, 10, 10, .64);
    font-size: 17px;
    line-height: 1.32;
    letter-spacing: -.02em;
}

.history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-tabs button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .025);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 950;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.history-tabs button:hover,
.history-tabs button:focus-visible,
.history-tabs button.is-active {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.history-tabs button:hover,
.history-tabs button:focus-visible {
    transform: translateY(-2px);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.history-card {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    color: var(--text);
    text-align: left;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, opacity .2s ease;
}

.history-card[hidden] {
    display: none;
}

button.history-card--success:hover,
button.history-card--success:focus-visible {
    transform: translateY(-7px);
    border-color: var(--line-2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.history-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.94) contrast(.97);
}

.history-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0) 15%);
    pointer-events: none;
}

.history-card__status {
    position: absolute;
    z-index: 4;
    left: 14px;
    top: 14px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-card__status--success {
    background: var(--brand-lime);
    color: var(--ink);
}

.history-card__status--processing {
    background: var(--acc-cyan);
    color: var(--ink);
}

.history-card__status--error {
    background: var(--acc-coral);
    color: var(--ink);
}

.history-card__content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 7px;
    padding: 20px;
}

.history-card__content b {
    font-size: 1.5rem;
    line-height: .9;
    letter-spacing: -.06em;
}

.history-card__content em {
    color: var(--text-dim);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-card__content p {
    margin: 6px 0 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.32;
}

.history-card__content--static {
    margin-top: auto;
}

.history-card--processing,
.history-card--error {
    min-height: 350px;
    padding: 18px;
}

.history-card--processing .history-card__content,
.history-card--error .history-card__content {
    padding: 0;
}

.processing-preview,
.error-preview {
    position: absolute;
    inset: 18px 18px 140px;
    display: grid;
    place-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .035);
}

.processing-preview {
    grid-template-columns: repeat(3, 34px);
    gap: 10px;
}

.processing-preview span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-lime);
    animation: bloomPulse 1.35s ease-in-out infinite;
}

.processing-preview span:nth-child(2) {
    animation-delay: .15s;
    opacity: .74;
}

.processing-preview span:nth-child(3) {
    animation-delay: .3s;
    opacity: .48;
}

.processing-preview--dark span {
    background: var(--acc-cyan);
}

@keyframes bloomPulse {

    0%,
    100% {
        transform: translateY(0) scale(.82);
        opacity: .45;
    }

    50% {
        transform: translateY(-12px) scale(1);
        opacity: 1;
    }
}

.progress-line {
    height: 8px;
    overflow: hidden;
    margin-top: 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .08);
}

.progress-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-lime);
    transition: all 0.3s;
}

.error-preview {
    color: var(--acc-coral);
    font-size: 132px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.08em;
}

.mini-action {
    width: fit-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 0 13px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.history-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 42px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    text-align: center;
}

.history-empty[hidden] {
    display: none;
}

.history-empty span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 40px;
    font-weight: 950;
}

.history-empty h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 68px);
    line-height: .9;
    letter-spacing: -.07em;
}

.history-empty p {
    max-width: 460px;
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.35;
}

body.history-modal-open {
    overflow: hidden;
}

.history-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.history-modal[hidden] {
    display: none;
}

.history-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(18px);
}

.history-modal__panel {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .82fr);
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: clamp(24px, 3vw, 38px);
    background: var(--ink-2);
    box-shadow: 0 30px 120px rgba(0, 0, 0, .65);
}

.history-modal__close {
    position: absolute;
    z-index: 4;
    right: 16px;
    top: 16px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: rgba(10, 10, 10, .82);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
}

.history-modal__image-wrap {
    position: relative;
    min-height: min(760px, calc(100vh - 36px));
    background: var(--ink-3);
}

.history-modal__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-modal__tools {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-modal__tools button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: rgba(10, 10, 10, .76);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.history-modal__tools button.is-active {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.history-modal__info {
    overflow: auto;
    padding: clamp(28px, 4vw, 46px);
}

.history-modal__info h2 {
    margin: 14px 0 16px;
    font-size: 3rem;
    line-height: .84;
    letter-spacing: -.08em;
}

.history-modal__info>p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.modal-meta div {
    min-height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .03);
}

.modal-meta dt {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.modal-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
}

.modal-prompt {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(0, 0, 0, .18);
}

.modal-prompt span {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-lime);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.modal-prompt p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.35;
}

.modal-actions a {
    width: 100%;
    margin-top: 18px;
}

.modal-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--r-card);
    background: var(--brand-lime);
    color: rgba(10, 10, 10, .68);
    font-size: 15px;
    line-height: 1.32;
}

.modal-note b {
    color: var(--ink);
}

@media (max-width: 1320px) {
    .history-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .history-main {
        padding-bottom: 122px;
    }

    .history-modal__panel {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .history-modal__image-wrap {
        min-height: 560px;
    }
}

@media (max-width: 900px) {
    .history-hero {
        grid-template-columns: 1fr;
    }

    .history-hero__copy,
    .storage-card {
        min-height: 300px;
    }

    .history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .history-toolbar>.app-btn {
        width: 100%;
    }

    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .history-hero {
        margin-top: 28px;
    }

    .history-hero__copy,
    .storage-card {
        min-height: auto;
        padding: 24px;
    }

    .history-hero h1 {
        font-size: 3rem;
    }

    .storage-card strong {
        margin: 38px 0 22px;
        font-size: 3rem;
    }

    .history-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .history-tabs::-webkit-scrollbar {
        display: none;
    }

    .history-tabs button {
        flex: 0 0 auto;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-card,
    .history-card--processing,
    .history-card--error {
        min-height: 440px;
    }

    .history-modal {
        padding: 0;
        align-items: stretch;
    }

    .history-modal__panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border-inline: 0;
    }

    .history-modal__image-wrap {
        min-height: 58vh;
    }

    .history-modal__info {
        padding: 24px 16px 110px;
    }

    .modal-meta {
        grid-template-columns: 1fr;
    }
}

/*  */
/* Профиль */
/*  */

.profile-main {
    padding-bottom: 90px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
    gap: 20px;
    align-items: end;
    margin-top: clamp(42px, 6vw, 82px);
}

.profile-hero__heading h1,
.profile-section-head h2,
.profile-danger h2 {
    margin: 12px 0 0;
    font-size: clamp(50px, 6vw, 112px);
    line-height: .84;
    letter-spacing: -.078em;
}

.profile-hero__heading>p:last-child {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--text-dim);
    font-size: clamp(17px, 1.3vw, 22px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.profile-card {
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.profile-card--identity {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    padding: clamp(24px, 3vw, 38px);
}

.profile-avatar-wrap {
    position: relative;
    width: 132px;
    height: 132px;
}

.profile-avatar {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 36px;
    border: 1px solid var(--line-2);
}

.avatar-change {
    position: absolute;
    inset: auto 8px 8px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    cursor: pointer;
}

.profile-identity {
    min-width: 0;
}

.profile-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-identity h2 {
    overflow: hidden;
    margin: 18px 0 8px;
    font-size: clamp(30px, 3vw, 52px);
    line-height: 1.2;
    letter-spacing: -.06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-identity p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
}

.profile-identity small {
    display: block;
    margin-top: 10px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.profile-menu-button {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 5px 20px;
    background: rgba(255, 255, 255, .03);
    color: var(--text-dim);
    font-size: 18px;
    letter-spacing: .08em;
}

.profile-menu-button:hover,
.profile-menu-button:focus-visible {
    border-color: var(--line-2);
    color: var(--text);
}

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

.profile-stat {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.profile-stat>span {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-stat strong {
    display: block;
    font-size: 4rem;
    line-height: .78;
    letter-spacing: -.075em;
    word-break: break-word;
}

.profile-stat .profile-stat--lime {
    margin-top: auto;
}

.profile-stat p {
    margin: 15px 0 0;
    color: var(--text-dim);
    font-size: 14px;
}

.profile-stat a {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 950;
}

.profile-stat--lime {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.profile-stat--lime>span,
.profile-stat--lime p {
    color: rgba(10, 10, 10, .58);
}

.profile-details,
.profile-tasks,
.profile-danger {
    margin-top: clamp(64px, 9vw, 130px);
}

.profile-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 450px);
    gap: 30px;
    align-items: end;
    margin-bottom: 26px;
}

.profile-section-head h2 {
    font-size: clamp(46px, 5.5vw, 96px);
}

.profile-progress {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .025);
}

.profile-progress__copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-progress__copy span {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 850;
}

.profile-progress__copy strong {
    color: var(--brand-lime);
    font-size: 22px;
}

.profile-progress__line {
    height: 9px;
    overflow: hidden;
    margin-top: 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .08);
}

.profile-progress__line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-lime);
    transition: width .5s ease;
}

.profile-details__grid {
    display: grid;
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr);
    gap: 18px;
}

.profile-details__intro,
.profile-form {
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.profile-details__intro {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 4vw, 42px);
}

.profile-details__number {
    display: grid;
    place-items: center;
    border-radius: 25px;
    padding: 10px 20px;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 24px;
    font-weight: 950;
}

.profile-details__intro h3 {
    max-width: 520px;
    margin: auto 0 20px;
    font-size: clamp(34px, 4vw, 66px);
    line-height: .88;
    letter-spacing: -.07em;
}

.profile-details__intro p {
    margin: 0;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.42;
}

.profile-details__intro ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    color: var(--text-faint);
    font-size: 13px;
    list-style: none;
}

.profile-details__intro li::before {
    content: "↳";
    margin-right: 9px;
    color: var(--brand-lime);
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(22px, 3vw, 34px);
}

.profile-field {
    display: grid;
    gap: 10px;
}

.profile-field--wide {
    grid-column: 1 / -1;
}

.profile-field>span {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 900;
}

.profile-field input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    outline: none;
    background: rgba(0, 0, 0, .2);
    color: var(--text);
    font-size: 16px;
    transition: border-color .2s ease, background .2s ease;
}

.profile-field input::placeholder {
    color: var(--text-faint);
}

.profile-field input:focus {
    border-color: rgba(232, 255, 61, .62);
    background: rgba(0, 0, 0, .3);
}

.profile-field select {
    width: 100%;
    min-height: 58px;
    padding: 0 52px 0 18px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background-color: var(--ink-2);
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23E8FF3D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;

    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-field select:hover {
    border-color: var(--line-2);
    background-color: var(--ink-3);
}

.profile-field select:focus {
    border-color: var(--brand-lime);
    box-shadow: 0 0 0 4px rgba(232, 255, 61, 0.1);
}

.profile-field select:required:invalid {
    color: var(--text-faint);
}

.profile-field select option {
    background: var(--ink-2);
    color: var(--text);
}

.profile-field select option:disabled {
    color: var(--text-faint);
}

.profile-field select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 640px) {
    .profile-field select {
        min-height: 54px;
        padding-left: 16px;
        padding-right: 48px;
        background-position: right 16px center;
        font-size: 16px;
    }
}

.profile-form__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
}

.profile-form__footer p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
}

.profile-section-head--tasks>p {
    margin: 0;
    color: var(--text-dim);
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.4;
}

.task-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .025);
}

.task-summary>div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.task-summary span,
.task-summary p {
    color: var(--text-dim);
    font-size: 13px;
}

.task-summary strong {
    font-size: 25px;
    letter-spacing: -.04em;
}

.task-summary p {
    margin: 0;
}

.task-summary p b {
    color: var(--brand-lime);
}

.task-list {
    display: grid;
    gap: 14px;
}

.task-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) minmax(170px, auto);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.task-card:not(.is-completed):hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
}

.task-card.is-completed {
    background: rgba(232, 255, 61, .07);
    border-color: rgba(232, 255, 61, .23);
}

.task-card__icon {
    width: 100px;
    height: 100px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .035);
}

.task-card.is-completed .task-card__icon {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.task-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.task-status,
.task-reward {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.task-status {
    border: 1px solid var(--line-2);
    color: var(--text-dim);
}

.task-status--done {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.task-reward {
    background: rgba(255, 255, 255, .06);
    color: var(--brand-lime);
}

.task-card__body h3 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: .95;
    letter-spacing: -.055em;
}

.task-card__body p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.38;
}

.task-card__action {
    min-width: 170px;
    display: grid;
    justify-items: stretch;
    gap: 9px;
}

.task-card__action small {
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    letter-spacing: .05em;
}

.task-done-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 24px;
    font-weight: 950;
}

.task-card.is-checking {
    pointer-events: none;
    opacity: .72;
}

.profile-danger {
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--acc-magenta);
    border-radius: var(--r-tile);
    background: #e84a9e1f;
}

.profile-danger h2 {
    font-size: clamp(40px, 4vw, 70px);
}

.profile-danger p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 1280px) {
    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-card--identity {
        max-width: 760px;
        min-height: 150px;
    }

    .profile-details__grid {
        grid-template-columns: 1fr;
    }

    .profile-details__intro {
        min-height: 390px;
    }
}

@media (max-width: 900px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-stat {
        min-height: 190px;
    }

    .profile-section-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .task-card {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .task-card__icon {
        width: 68px;
        height: 68px;
    }

    .task-card__action {
        grid-column: 2;
        min-width: 0;
        justify-items: start;
    }

    .task-card__action .app-btn {
        min-width: 170px;
    }

    .task-done-mark {
        margin-inline: 0;
    }
}

@media (max-width: 620px) {
    .profile-hero {
        margin-top: 32px;
    }

    .profile-hero__heading h1,
    .profile-section-head h2 {
        font-size: clamp(46px, 15vw, 74px);
    }

    .profile-card--identity {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .profile-avatar-wrap,
    .profile-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-avatar {
        border-radius: 26px;
    }

    .avatar-change {
        inset: auto 5px 5px;
        min-height: 28px;
        font-size: 9px;
    }

    .profile-menu-button {
        position: absolute;
        right: 14px;
        top: 14px;
    }

    .profile-state {
        min-height: 26px;
        font-size: 8px;
    }

    .profile-identity h2 {
        margin-top: 12px;
        font-size: 26px;
    }

    .profile-identity p {
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-stat {
        min-height: 170px;
    }

    .profile-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .profile-field--wide,
    .profile-form__footer {
        grid-column: auto;
    }

    .profile-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-details__intro {
        min-height: 420px;
        padding: 24px;
    }

    .profile-details__intro h3 {
        font-size: 43px;
    }

    .task-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 14px;
        padding: 17px;
    }

    .task-card__icon {
        width: 70px;
        height: 100%;
        border-radius: 18px;
        font-size: 18px;
    }

    .task-card__body h3 {
        font-size: 25px;
    }

    .task-card__body p {
        font-size: 13px;
    }

    .task-card__action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .task-card__action .app-btn {
        width: 100%;
    }

    .task-done-mark {
        width: 48px;
        height: 48px;
    }

    .profile-danger {
        align-items: stretch;
        flex-direction: column;
    }
}

/*  */
/* Баланс */
/*  */

.balance-main {
    padding-bottom: 110px;
}

.topbar-coins--active {
    box-shadow: 0 0 0 4px rgba(232, 255, 61, .12);
}

.coin-card--current .app-btn {
    width: 100%;
    padding-inline: 14px;
    font-size: 13px;
}

.balance-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 32px;
    align-items: end;
    margin-top: clamp(42px, 6vw, 82px);
}

.balance-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(58px, 7vw, 132px);
    line-height: .82;
    letter-spacing: -.082em;
}

.balance-hero h1 strong {
    color: var(--brand-lime);
    font-style: normal;
}

.balance-hero>p {
    margin: 0;
    color: var(--text-dim);
    font-size: clamp(17px, 1.4vw, 23px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.balance-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(34px, 5vw, 62px);
}

.balance-rules article {
    min-height: 128px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .025);
}

.balance-rules article>span {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.balance-rules b {
    display: block;
    font-size: 18px;
    letter-spacing: -.025em;
}

.balance-rules p {
    margin: 6px 0 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.3;
}

.checkout-flow {
    margin-top: 50px;
}

.checkout-steps {
    max-width: 600px;
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
}

.checkout-step span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 950;
}

.checkout-step b {
    font-size: 13px;
}

.checkout-step.is-active {
    color: var(--text);
}

.checkout-step.is-active span,
.checkout-step.is-complete span {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
}

.checkout-step.is-complete {
    color: var(--text-dim);
}

.checkout-steps>i {
    height: 1px;
    background: var(--line);
}

.checkout-panel[hidden] {
    display: none !important;
}

.checkout-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: 30px;
    align-items: end;
    margin-bottom: 28px;
}

.checkout-panel__head h2 {
    margin: 12px 0 0;
    font-size: 4rem;
    line-height: .86;
    letter-spacing: -.075em;
}

.checkout-panel__head>p {
    margin: 0;
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.checkout-back {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 850;
}

.checkout-back:hover,
.checkout-back:focus-visible {
    color: var(--brand-lime);
}

.price-grid {
    display: grid;
    gap: 12px;
}

.price-card {
    position: relative;
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto minmax(126px, auto) 36px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    color: var(--text);
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.price-card:hover,
.price-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--line-2);
}

.price-card.is-selected {
    border-color: var(--brand-lime);
    background: rgba(232, 255, 61, .055);
    box-shadow: 0 0 0 3px rgba(232, 255, 61, .1);
}

.price-card__icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-content: center;
    border-radius: 21px;
    background: var(--paper);
}

.price-card__icon img {
    height: 100%;
    padding: 7px;
}

.price-card__icon--mini {
    background: rgb(255, 212, 221, 0.15);
}

.price-card__icon--bloom {
    background: rgb(180, 212, 255, 0.15);
}

.price-card__icon--hit {
    background: rgb(232, 255, 61, 0.15);
}

.price-card__icon--pro {
    background: rgb(180, 212, 255, 0.15);
}

.price-card__icon--mega {
    background: rgb(255, 158, 128, 0.15);
}

.price-card__copy {
    min-width: 0;
}

.price-card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.price-card__title b {
    font-size: 22px;
    letter-spacing: -.04em;
}

.price-card__title em {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.price-card__copy>small {
    display: block;
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.3;
}

.price-card__saving {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: var(--r-pill);
    background: rgba(232, 255, 61, .12);
    color: var(--brand-lime);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.price-card__saving--none {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-faint);
}

.price-card__price {
    display: grid;
    justify-items: end;
    gap: 5px;
    white-space: nowrap;
}

.price-card__price b {
    font-size: 24px;
    letter-spacing: -.04em;
}

.price-card__price small {
    color: var(--text-faint);
    font-size: 11px;
}

.price-card__check {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--paper);
    font-style: normal;
    font-weight: 950;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.price-card.is-selected .price-card__check {
    border-color: transparent;
    background: var(--brand-lime);
    color: var(--ink);
    transform: scale(1.04);
}

.plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .025);
}

.plan-footer p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

.plan-footer p strong {
    color: var(--text);
}

.plan-next {
    min-width: 250px;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: 18px;
    align-items: start;
}

.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-method {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 38px;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.payment-method:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
}

.payment-method.is-selected {
    border-color: var(--brand-lime);
    background: rgba(232, 255, 61, .055);
}

.payment-method input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.payment-method__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -.025em;
}

.payment-method__icon--stars {
    background: var(--acc-cyan);
    font-size: 28px;
}

.payment-method__icon--sbp {
    background: var(--brand-lime);
}

.payment-method__icon--erip {
    background: var(--paper-2);
}

.payment-method__icon--crypto {
    background: var(--acc-amber);
    font-size: 27px;
}

.payment-method__copy {
    min-width: 0;
}

.payment-method__copy b {
    display: block;
    font-size: 21px;
    letter-spacing: -.035em;
}

.payment-method__copy small {
    display: block;
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.3;
}

.payment-method__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--ink);
    font-weight: 950;
}

.payment-method.is-selected .payment-method__mark {
    border-color: transparent;
    background: var(--brand-lime);
}

.order-card {
    position: sticky;
    top: 100px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.order-card__title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.order-card__title span {
    font-size: 18px;
    font-weight: 850;
}

.order-card__title strong {
    font-size: 24px;
    letter-spacing: -.04em;
}

.order-card__coin {
    margin: 28px 0;
    padding: 26px;
    border-radius: var(--r-card);
    background: var(--brand-lime);
    color: var(--ink);
}

.order-card__coin span,
.order-card__coin b {
    display: block;
    color: rgba(10, 10, 10, .58);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.order-card__coin strong {
    display: block;
    margin: 16px 0 8px;
    font-size: clamp(70px, 8vw, 108px);
    line-height: .7;
    letter-spacing: -.085em;
}

.order-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.order-details>div {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.order-details dt {
    color: var(--text-dim);
    font-size: 13px;
}

.order-details dd {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.order-saving {
    color: var(--brand-lime);
}

.payment-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin: 22px 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

.payment-consent input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-lime);
}

.order-pay:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.order-card__note {
    margin: 14px 0 0;
    color: var(--text-faint);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.balance-help {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(72px, 10vw, 140px);
}

.balance-help article {
    min-height: 260px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 20px 24px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--r-tile);
    background: var(--ink-2);
}

.balance-help article>span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
}

.balance-help h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 54px);
    line-height: .9;
    letter-spacing: -.06em;
}

.balance-help p {
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.4;
}

.balance-help .app-btn {
    grid-column: 2;
    justify-self: start;
}

.balance-help__lime {
    border-color: transparent !important;
    background: var(--brand-lime) !important;
    color: var(--ink);
}

.balance-help__lime>span {
    background: var(--ink) !important;
    color: var(--brand-lime) !important;
}

.balance-help__lime>span svg * {
    fill: var(--brand-lime) !important;
}

.balance-help__lime p {
    color: rgba(10, 10, 10, .6);
}

@media (max-width: 1080px) {
    .order-card {
        top: 92px;
    }
}

@media (max-width: 920px) {

    .balance-hero,
    .checkout-panel__head,
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .order-card {
        position: static;
    }

    .balance-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .balance-rules {
        grid-template-columns: 1fr;
    }

    .price-card {
        grid-template-columns: 64px minmax(0, 1fr) 32px;
        gap: 14px;
        min-height: 100px;
        padding: 16px;
    }

    .price-card__icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .price-card__saving {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
    }

    .price-card__price {
        grid-column: 2;
        justify-items: start;
        margin-top: -4px;
    }

    .price-card__check {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .plan-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .plan-footer p {
        display: none;
    }

    .plan-next {
        width: 100%;
        min-width: 0;
    }

    .checkout-steps {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .balance-main {
        padding-inline: 14px;
    }

    .balance-hero h1 {
        font-size: clamp(54px, 17vw, 82px);
    }

    .balance-hero>p {
        font-size: 16px;
    }

    .checkout-panel__head h2 {
        font-size: clamp(45px, 14vw, 70px);
    }

    .checkout-step b {
        display: none;
    }

    .price-card {
        grid-template-columns: 58px minmax(0, 1fr) 30px;
        gap: 13px;
        padding: 14px;
        border-radius: 20px;
    }

    .price-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
    }

    .price-card__icon strong {
        font-size: 21px;
        font-weight: 800;
    }

    .price-card__title b {
        font-size: 19px;
    }

    .price-card__title em {
        min-height: 22px;
        font-size: 8px;
    }

    .price-card__copy>small {
        font-size: 12px;
    }

    .price-card__saving {
        min-height: 27px;
        font-size: 10px;
    }

    .price-card__price b {
        font-size: 21px;
    }

    .price-card__check {
        width: 30px;
        height: 30px;
    }

    .checkout-steps {
        grid-template-columns: 34px 1fr 34px;
    }

    .payment-method {
        grid-template-columns: 58px minmax(0, 1fr) 30px;
        gap: 13px;
        padding: 16px;
    }

    .payment-method__icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 11px;
    }

    .payment-method__copy b {
        font-size: 18px;
    }

    .payment-method__copy small {
        font-size: 12px;
    }

    .payment-method__mark {
        width: 30px;
        height: 30px;
    }

    .balance-help article {
        grid-template-columns: 1fr;
    }

    .balance-help .app-btn {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .price-card,
    .payment-method {
        transition: none;
    }
}

/* Profile runtime additions */
.profile-avatar,
.user-chip img {
    object-fit: cover;
}

.profile-menu-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.avatar-change[aria-busy="true"] {
    pointer-events: none;
    opacity: .7;
}

.profile-form button:disabled {
    cursor: wait;
    opacity: .7;
}

.profile-form [data-profile-form-status] {
    min-height: 1.3em;
    color: var(--brand-toxic);
}

.profile-progress__line i {
    transition: width .35s ease;
}

.profile-tasks .task-summary {
    opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
    .profile-progress__line i {
        transition: none;
    }
}

/* Balance checkout: functional states */
.payment-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin: 22px 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

.payment-consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--brand-lime);
}

.order-pay:disabled,
.price-card:disabled,
.payment-method input:disabled+* {
    opacity: .55;
    cursor: not-allowed;
}

.order-card__note[data-order-status] {
    min-height: 1.4em;
    font-weight: 700;
}

.order-card__note[data-order-status][data-type="success"] {
    color: var(--brand-lime);
}

.order-card__note[data-order-status][data-type="error"] {
    color: var(--brand-toxic, #ff5c7a);
}

.order-card__note[data-order-status][data-type="info"] {
    color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {

    .checkout-flow,
    .checkout-panel,
    .price-card,
    .payment-method {
        scroll-behavior: auto;
        transition: none !important;
    }
}

/* Выбор и поиск шаблонов на странице генерации */
.prompt-panel [hidden],
.selected-template[hidden],
.template-empty[hidden] {
    display: none !important;
}

.selected-template {
    min-height: 100%;
    display: grid;
    grid-template-rows: minmax(220px, 1fr) auto;
    gap: 22px;
}

.selected-template__cover {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--ink-3);
}

.selected-template__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 48%);
    pointer-events: none;
}

.selected-template__cover img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
}

.selected-template__price {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
}

.selected-template__body {
    display: grid;
    gap: 14px;
}

.selected-template__body h2 {
    font-size: clamp(34px, 3vw, 52px);
}

.selected-template__body>p:not(.app-kicker) {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.4;
}

.selected-template__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 6px;
}

.templates-head--search {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    align-items: end;
}

.template-search {
    position: relative;
    display: block;
}

.template-search input {
    width: 100%;
    min-height: 56px;
    padding: 0 52px 0 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    outline: none;
    background: rgba(255, 255, 255, .035);
    color: var(--text);
    font-size: 15px;
    margin-bottom: 1rem;
    transition: border-color .2s ease, background .2s ease;
}

.template-search input::placeholder {
    color: var(--text-faint);
}

.template-search input:focus {
    border-color: rgba(232, 255, 61, .7);
    background: rgba(232, 255, 61, .05);
}

.template-search__icon {
    position: absolute;
    top: 36%;
    right: 25px;
    color: var(--brand-lime);
    font-size: 32px;
    transform: translateY(-50%);
    pointer-events: none;
}

.template-search-meta {
    min-height: 24px;
    margin: -4px 0 12px;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 800;
}

.template-empty {
    padding: 54px 24px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-tile);
    text-align: center;
}

.template-empty strong {
    display: block;
    margin-bottom: 10px;
    font-size: 26px;
    letter-spacing: -.04em;
}

.template-empty p {
    color: var(--text-dim);
    line-height: 1.4;
}

@media (max-width: 860px) {
    .templates-head--search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .selected-template__actions {
        grid-template-columns: 1fr;
    }

    .template-search input {
        min-height: 52px;
        border-radius: var(--r-card);
    }
}

/* =========================
   CUSTOM 404 PAGE
========================= */

.not-found-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--ink);
}

.lost-page {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 110px var(--pad-x) 92px;
    isolation: isolate;
}

.lost-page__logo {
    position: absolute;
    z-index: 8;
    top: clamp(24px, 3vw, 42px);
    left: var(--pad-x);
    display: inline-flex;
    align-items: baseline;
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: lowercase;
}

.lost-page__logo strong,
.lost-page__logo i {
    color: var(--brand-lime);
    font-style: normal;
}

.lost-page__noise {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.lost-page__orb {
    position: absolute;
    z-index: -2;
    width: min(48vw, 680px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .18;
    background: var(--brand-lime);
    animation: lostFloat 9s ease-in-out infinite alternate;
}

.lost-page__orb--one {
    top: -26%;
    right: -13%;
}

.lost-page__orb--two {
    bottom: -36%;
    left: -18%;
    animation-delay: -4s;
}

.lost-page__content {
    width: min(100%, 1040px);
    display: grid;
    justify-items: center;
    text-align: center;
}

.lost-page__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.4vw, 34px);
    margin-bottom: clamp(28px, 4vw, 48px);
    color: var(--paper);
    font-size: clamp(112px, 19vw, 270px);
    font-weight: 950;
    line-height: .66;
    letter-spacing: -.11em;
    user-select: none;
}

.lost-page__code>span:last-child {
    color: var(--brand-lime);
}

.lost-page__code>span:first-child {
    margin-right: 1.2rem;
}

.lost-page__portal {
    position: relative;
    flex: 0 0 auto;
    width: clamp(78px, 11vw, 154px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px solid var(--line-2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    box-shadow:
        0 0 0 14px rgba(232, 255, 61, .035),
        0 30px 100px rgba(0, 0, 0, .45);
}

.lost-page__portal::before,
.lost-page__portal::after {
    content: "";
    position: absolute;
    border: 1px dashed rgba(232, 255, 61, .42);
    border-radius: 50%;
    animation: lostSpin 12s linear infinite;
}

.lost-page__portal::before {
    inset: 9px;
}

.lost-page__portal::after {
    inset: -13px;
    animation-direction: reverse;
    animation-duration: 18s;
}

.lost-page__portal-core {
    width: 58%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    box-shadow: 0 0 60px rgba(232, 255, 61, .34);
}

.lost-page__portal-core svg {
    height: 32px;
}

.lost-page__kicker {
    margin-bottom: 16px;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.lost-page h1 {
    max-width: 920px;
    margin: 0;
    color: var(--paper);
    font-size: clamp(52px, 8.2vw, 126px);
    line-height: .82;
    letter-spacing: -.075em;
}

.lost-page h1 strong {
    color: var(--brand-lime);
}

.lost-page__lead {
    max-width: 690px;
    margin-top: clamp(24px, 3vw, 38px);
    color: var(--text-dim);
    font-size: clamp(17px, 1.5vw, 23px);
    line-height: 1.35;
    letter-spacing: -.025em;
}

.lost-page__actions {
    margin-top: clamp(30px, 4vw, 48px);
}

.lost-page__button {
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 0 10px 0 26px;
    border-radius: var(--r-pill);
    background: var(--brand-lime);
    color: var(--ink);
    font-weight: 950;
    letter-spacing: -.025em;
    transition:
        transform .22s ease,
        background .22s ease;
}

.lost-page__button b {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brand-lime);
    font-size: 20px;
    transition: transform .22s ease;
}

.lost-page__button:hover {
    transform: translateY(-3px);
    background: var(--brand-soft);
}

.lost-page__button:hover b {
    transform: rotate(-18deg);
}

.lost-page__button:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 5px;
}

.lost-page__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.lost-page__meta i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-lime);
}

@keyframes lostSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lostFloat {
    to {
        transform: translate3d(5%, 7%, 0) scale(1.08);
    }
}

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

@media (max-width: 640px) {
    .lost-page {
        padding-top: 100px;
        padding-bottom: 82px;
    }

    .lost-page__code {
        gap: 6px;
        font-size: clamp(92px, 32vw, 150px);
    }

    .lost-page__portal {
        width: clamp(62px, 22vw, 92px);
    }

    .lost-page h1 {
        font-size: clamp(46px, 15vw, 74px);
    }

    .lost-page__lead {
        font-size: 17px;
    }

    .lost-page__meta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lost-page__orb,
    .lost-page__portal::before,
    .lost-page__portal::after,
    .lost-page__ticker>div {
        animation: none !important;
    }

    .lost-page__button {
        transition: none;
    }
}

@media (max-width: 720px) {
    .price-card {
        grid-template-columns: 58px minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 6px 10px;
        min-height: 88px;
        padding: 14px;
    }

    .price-card__title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin-bottom: 5px;
        flex-wrap: nowrap;
    }

    .price-card__title b {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Убираем "чаще выбирают" и "максимальная выгода" */
    .price-card__title em {
        display: none;
    }

    .price-card__copy>small {
        grid-column: 2 / span 2;
        grid-row: 2;
        align-self: start;
        margin-top: 0;
        overflow: hidden;
        color: var(--text-dim);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Процент выгоды располагается рядом с названием */
    .price-card__saving {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: start;
        min-height: 24px;
        margin: 0;
        padding-inline: 8px;
        font-size: 9px;
    }

    /*
     * Для пакета без скидки не показываем бейдж,
     * чтобы возле "Мини" не выводилось "без скидки".
     */
    .price-card__saving--none {
        display: none;
    }

    /* Галочку полностью убираем */
    .price-card__check {
        display: none;
    }

    /* Вместо галочки справа выводим стоимость */
    .price-card__price {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
        justify-items: end;
        margin: 0;
    }

    .price-card__price b {
        color: var(--text);
        font-size: 20px;
        line-height: 1;
        white-space: nowrap;
    }

    /* Подписи вроде "попробовать" на мобильном скрываем */
    .price-card__price small {
        display: none;
    }

    /* Выбранный пакет подчёркивается рамкой, а не галочкой */
    .price-card.is-selected {
        border-color: var(--brand-lime);
        background: rgba(232, 255, 61, .055);
        box-shadow: inset 0 0 0 1px rgba(232, 255, 61, .18);
    }
}

@media (max-width: 420px) {
    .price-card {
        grid-template-columns: 54px minmax(0, 1fr) auto auto;
        gap: 5px 7px;
        padding: 12px;
    }

    .price-card__icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .price-card__title b {
        font-size: 17px;
    }

    .price-card__saving {
        min-height: 21px;
        padding-inline: 6px;
        font-size: 10px;
    }

    .price-card__copy>small {
        font-size: 11px;
    }

    .price-card__price b {
        font-size: 18px;
    }
}

/* Задания и модальные окна */
.task-card__icon {
    overflow: hidden;
    padding: 0;
}

.task-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
}

.task-card.is-completed .task-card__icon {
    background: rgba(232, 255, 61, .12);
}

.task-modal {
    width: min(960px, calc(100vw - 28px));
    max-height: calc(100svh - 28px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--text);
    overflow: visible;
}

.task-modal::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(12px);
}

.task-modal__surface {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 30px;
    background: var(--ink-2);
    box-shadow: 0 36px 140px rgba(0, 0, 0, .65);
}

.task-modal__close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: rgba(10, 10, 10, .7);
    color: var(--text);
    font-size: 25px;
}

.task-modal__visual {
    min-height: 520px;
    background: var(--brand-lime);
}

.task-modal__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: clamp(30px, 5vw, 64px);
}

.task-modal__content h3 {
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: .88;
    letter-spacing: -.065em;
}

.task-modal__content>p:not(.app-kicker):not(.task-modal__message):not(.task-modal__hint) {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.4;
}

.task-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.task-modal__actions .app-btn {
    width: 100%;
}

.task-install-guide {
    display: grid;
    gap: 7px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .035);
}

.task-install-guide span,
.task-modal__hint {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.4;
}

.task-bio-copy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(232, 255, 61, .3);
    border-radius: var(--r-card);
    background: rgba(232, 255, 61, .08);
    color: var(--text);
    text-align: left;
}

.task-bio-copy span {
    line-height: 1.35;
    font-style: italic;
}

.task-bio-copy b {
    color: var(--brand-lime);
    font-size: 11px;
    text-transform: uppercase;
}

.task-field {
    display: grid;
    gap: 9px;
}

.task-field span {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.task-field input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .035);
    color: var(--text);
    outline: none;
}

.task-field input:focus {
    border-color: var(--brand-lime);
}

.task-modal__message {
    min-height: 20px;
    margin: 0;
    color: var(--acc-coral);
    font-size: 13px;
    line-height: 1.4;
}

.task-modal__message.is-success {
    color: var(--brand-soft);
}

@media (max-width: 760px) {
    .task-modal {
        max-height: calc(100svh - 16px);
    }

    .task-modal__surface {
        grid-template-columns: 1fr;
        max-height: calc(100svh - 16px);
        overflow-y: auto;
        border-radius: 24px;
    }

    .task-modal__visual {
        min-height: 210px;
        max-height: 250px;
    }

    .task-modal__content {
        padding: 25px 20px 28px;
    }

    .task-modal__content h3 {
        font-size: 42px;
    }

    .task-modal__actions {
        display: grid;
    }

    .task-modal__actions .app-btn {
        width: 100%;
    }
}

/* Дополнительные задания: ручная проверка и OCR скриншота */
.task-check-note {
    display: grid;
    gap: 7px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .035);
}

.task-check-note strong {
    color: var(--text);
    font-size: 14px;
}

.task-check-note span {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.4;
}

.task-upload {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed rgba(232, 255, 61, .48);
    border-radius: var(--r-card);
    background: rgba(232, 255, 61, .045);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.task-upload:hover,
.task-upload:focus-within {
    border-color: var(--brand-lime);
    background: rgba(232, 255, 61, .075);
    transform: translateY(-2px);
}

.task-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.task-upload__empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

.task-upload__empty::before {
    content: "+";
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
}

.task-upload__empty b {
    font-size: 17px;
}

.task-upload__empty small {
    color: var(--text-dim);
    font-size: 12px;
}

.task-upload__preview {
    position: absolute;
    inset: 0;
}

.task-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, .28);
}

.task-upload__preview::after {
    content: "Нажми, чтобы заменить";
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 11px;
    border-radius: var(--r-pill);
    background: rgba(10, 10, 10, .82);
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.task-modal__content>.app-btn {
    width: 100%;
}

@media (max-width: 760px) {
    .task-upload {
        min-height: 160px;
    }
}