/* ==========================================================================
   804KM — дизайн-система
   Тёплая бумага + графит + электрический кобальт и лайм.
   ========================================================================== */

:root {
    --paper: #F3F0E9;
    --paper-2: #E9E5DB;
    --paper-3: #DFDACE;
    --card: #FBF9F4;
    --white: #FFFFFF;
    --ink: #141416;
    --ink-2: #37373B;
    --muted: #75756D;
    --line: rgba(20, 20, 22, .12);
    --line-strong: rgba(20, 20, 22, .26);
    --cobalt: #2036E8;
    --cobalt-deep: #1727AB;
    --lime: #D9FF4B;
    --lime-deep: #B6DA2C;
    --coral: #FF6A3D;
    --success: #1D7A4C;
    --danger: #C5321C;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(20, 20, 22, .05), 0 10px 30px rgba(20, 20, 22, .06);
    --shadow-md: 0 2px 6px rgba(20, 20, 22, .06), 0 24px 60px rgba(20, 20, 22, .12);
    --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.02em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
ul { padding-left: 1.1em; }
button { font-family: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.icon {
    width: 20px; height: 20px; flex: 0 0 auto;
    display: inline-block; vertical-align: middle;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

.container-xl { max-width: 1320px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575px) { .container-xl { padding-left: 16px; padding-right: 16px; } }

.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.45; }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-2);
    margin-bottom: 18px;
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cobalt); box-shadow: 0 0 0 4px rgba(32, 54, 232, .12);
}
.eyebrow--light { color: var(--paper); }
.eyebrow--light .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 255, 75, .16); }

.hl {
    position: relative; display: inline-block; z-index: 0;
    padding: 0 .08em;
}
.hl::after {
    content: ''; position: absolute; left: -.02em; right: -.02em;
    bottom: .08em; height: .34em; background: var(--lime);
    z-index: -1; transform: rotate(-.6deg);
    border-radius: 2px;
}

.hl--cobalt::after { background: var(--cobalt); opacity: .9; }

/* --- Кнопки ------------------------------------------------------------- */
.btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px;
    border: 1px solid transparent; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.2;
    cursor: pointer; text-align: center;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--primary:hover { --btn-bg: var(--cobalt); --btn-fg: #fff; box-shadow: 0 10px 24px rgba(32, 54, 232, .25); }
.btn--accent { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn--accent:hover { --btn-bg: var(--ink); --btn-fg: var(--lime); }
.btn--cobalt { --btn-bg: var(--cobalt); --btn-fg: #fff; }
.btn--cobalt:hover { --btn-bg: var(--cobalt-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); border-color: var(--line); }
.btn--light:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--lg { padding: 17px 30px; font-size: 15px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); border-color: rgba(197, 50, 28, .3); }
.btn--danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn--cart {
    --btn-bg: transparent; --btn-fg: var(--ink);
    border: 1px solid var(--line-strong);
    padding: 9px 14px; font-size: 13px;
}
.btn--cart:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--cart .cart-badge { background: var(--paper-2); }
.btn--cart:hover .cart-badge { background: var(--lime); color: var(--ink); }

.icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; background: transparent; color: inherit;
    cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.icon-btn:hover { background: rgba(20, 20, 22, .06); }
.icon-btn--light { color: var(--paper); }
.icon-btn--light:hover { background: rgba(255, 255, 255, .12); }

.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--paper-2); color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    transition: background .2s, color .2s;
}
.cart-badge.is-filled { background: var(--cobalt); color: #fff; }

/* --- Бейджи, чипы, стикеры ---------------------------------------------- */
.sticker {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    border: 1px solid var(--ink); border-radius: 999px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    background: var(--white);
    transform: rotate(-2deg);
}
.sticker--lime { background: var(--lime); }
.sticker--cobalt { background: var(--cobalt); color: #fff; border-color: var(--cobalt); transform: rotate(1.5deg); }
.sticker--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .5);
    font-size: 13px; color: var(--ink-2); cursor: pointer;
    transition: .18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    background: var(--paper-2); color: var(--ink-2);
}
.badge--lime { background: var(--lime); color: var(--ink); }
.badge--cobalt { background: rgba(32, 54, 232, .1); color: var(--cobalt); }
.badge--coral { background: rgba(255, 106, 61, .14); color: #B23A16; }

/* --- Объявление и шапка ------------------------------------------------- */
.announce {
    background: var(--ink); color: var(--paper);
    overflow: hidden; height: 34px; display: flex; align-items: center;
}
.announce__track {
    display: flex; align-items: center; gap: 34px;
    white-space: nowrap; width: max-content;
    animation: announceScroll 38s linear infinite;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.announce__track span { opacity: .92; }
.announce__star { color: var(--lime); font-size: 12px; }
@keyframes announceScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(243, 240, 233, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .2s, box-shadow .2s;
}
.site-header.is-scrolled {
    background: rgba(243, 240, 233, .97);
    box-shadow: 0 10px 28px rgba(20, 20, 22, .07);
}
.header__inner {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo {
    display: inline-flex; align-items: center; gap: 2px;
    font-family: var(--font-display); font-weight: 900;
    font-size: 24px; letter-spacing: -.06em; line-height: 1;
    color: var(--ink);
}
.logo__num { letter-spacing: -.07em; }
.logo__km {
    border: 2px solid currentColor; border-radius: 6px;
    padding: 1px 4px 0; margin-left: 4px;
    font-size: 15px; letter-spacing: .02em; font-weight: 700;
}
.logo__dot {
    width: 7px; height: 7px; margin-left: 6px; border-radius: 50%;
    background: var(--cobalt); align-self: flex-end; margin-bottom: 3px;
}
.logo--light { color: var(--paper); }
.logo--light .logo__dot { background: var(--lime); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav__link {
    position: relative; padding: 10px 12px; border-radius: 999px;
    font-size: 13.5px; color: var(--ink-2); font-weight: 500;
    transition: background .18s, color .18s;
}
.main-nav__link:hover { background: rgba(20, 20, 22, .05); color: var(--ink); }
.main-nav__link.is-active { color: var(--ink); }
.main-nav__link.is-active::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px;
    height: 2px; background: var(--cobalt); border-radius: 2px;
}
.main-nav__link.is-featured {
    background: var(--lime); color: var(--ink); font-weight: 600;
}
.main-nav__link.is-featured:hover { background: var(--ink); color: var(--paper); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.header__phone {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
    margin-right: 8px; color: var(--ink-2);
}
.header__phone:hover { color: var(--cobalt); }
.header__account { display: inline-flex; gap: 8px; width: auto; padding: 0 10px; border-radius: 999px; height: 42px; }
.header__auth { display: flex; align-items: center; gap: 2px; }
.header__auth-link {
    padding: 9px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 12px; font-weight: 600; color: var(--ink-2);
    transition: background .18s, color .18s;
}
.header__auth-link:hover { background: rgba(20, 20, 22, .06); color: var(--ink); }
.header__auth-link--accent { color: var(--cobalt); }
.header__auth-link--accent:hover { background: var(--cobalt); color: #fff; }
.header__user-name { font-size: 12px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.burger { display: none; }

@media (max-width: 1120px) {
    .main-nav { display: none; }
    .burger { display: inline-flex; }
    .header__phone { display: none; }
    .header__auth-link:not(.header__auth-link--accent) { display: none; }
    .header__auth-link { padding: 8px 9px; font-size: 11.5px; }
}
@media (max-width: 620px) {
    .header__account .header__user-name { display: none; }
    .btn--cart .btn__label { display: none; }
    .btn--cart { padding: 9px 11px; }
    .logo { font-size: 21px; }
}

/* --- Мобильное меню ------------------------------------------------------ */
.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--ink); color: var(--paper);
    padding: 20px 22px 32px;
    display: flex; flex-direction: column; gap: 26px;
    transform: translateY(-102%); visibility: hidden;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), visibility .35s;
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; border-bottom: 1px solid rgba(243, 240, 233, .16);
    font-family: var(--font-display); font-size: clamp(1.35rem, 6vw, 1.9rem);
    letter-spacing: -.03em;
}
.mobile-menu__nav a .icon { width: 20px; height: 20px; color: var(--lime); }
.mobile-menu__nav a.is-featured { color: var(--lime); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 6px; font-size: 14px; color: rgba(243, 240, 233, .72); }
.mobile-menu__foot a { color: var(--paper); font-family: var(--font-mono); font-size: 13px; }
.mobile-menu__foot p { margin: 6px 0 0; }

/* --- Формы --------------------------------------------------------------- */
label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
    width: 100%; padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; color: var(--ink);
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #A3A39B; }
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(32, 54, 232, .14);
    background: #fff;
}
.input.is-error, .textarea.is-error { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .input-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--cobalt); cursor: pointer; }
.check a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.account-password-form { display: grid; gap: 14px; max-width: 680px; }
.account-password-form__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.account-password-form__actions .form-note { margin: 0; }
.check.is-invalid { color: var(--danger); }
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 3px; border-radius: 3px; }
.field.is-invalid .input,
.field.is-invalid .textarea,
.input.is-invalid,
.textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(197, 50, 28, .12); }
.pvz-list.is-invalid { outline: 2px solid var(--danger); outline-offset: 6px; border-radius: var(--radius); }
.check-group { display: grid; gap: 12px; margin: 16px 0 18px; }
.form-error { color: var(--danger); font-size: 12px; margin: 0; }
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.form > .alert { margin-bottom: 16px; }
.form-note { font-size: 11.5px; margin: 7px 0 0; color: var(--muted); line-height: 1.4; }
.form-note--center { text-align: center; }
.form-note--ok { color: var(--success); }
.form-note--error { color: var(--danger); }

.alert {
    padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--white);
    font-size: 13.5px;
    transition: opacity .28s, transform .28s;
}
.alert.is-hiding { opacity: 0; transform: translateY(-6px); }
.alert--error { border-color: rgba(197, 50, 28, .35); background: #FDF2EF; color: #8E2412; }
.alert--success { border-color: rgba(29, 122, 76, .3); background: #EFF8F2; color: #14522F; }
.alert--info { border-color: rgba(32, 54, 232, .25); background: #EFF1FE; color: #18257F; }
.flash-stack { display: grid; gap: 10px; margin-top: 18px; }

/* --- Базовые секции ------------------------------------------------------ */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: clamp(24px, 4vw, 44px);
}
.section-head h2 { margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); max-width: 540px; }
.section-head__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
    border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
    white-space: nowrap;
}
.section-head__link:hover { border-color: var(--cobalt); color: var(--cobalt); }
@media (max-width: 767px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.surface {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.surface--white { background: var(--white); }
.surface--pad { padding: clamp(20px, 3vw, 32px); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--paper);
    padding: 10px 16px; border-radius: 8px; font-size: 13px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* --- Первый экран -------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px);
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    opacity: .55;
}
.hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.hero__title { margin: 0 0 22px; }
.hero__lead { font-size: clamp(15px, 1.35vw, 17.5px); color: var(--ink-2); max-width: 470px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }
.hero__note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hero__stats {
    display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
    padding-top: 22px; border-top: 1px solid var(--line);
}
.stat__num {
    font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700; letter-spacing: -.04em; line-height: 1;
}
.stat__num small { font-size: .5em; font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.stat__label { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__stage {
    position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.03;
    border-radius: 34px; border: 1px solid var(--line);
    background:
        radial-gradient(circle at 78% 18%, rgba(217, 255, 75, .85) 0 18%, transparent 18.5%),
        radial-gradient(circle at 20% 82%, rgba(32, 54, 232, .12) 0 24%, transparent 24.5%),
        linear-gradient(160deg, #FBFAF5 0%, #EFEBE1 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero__stage::after {
    content: ''; position: absolute; inset: 16px; border-radius: 22px;
    border: 1px dashed rgba(20, 20, 22, .18); pointer-events: none;
}
.hero__tee {
    position: relative; z-index: 1;
    width: 80%; max-height: 88%;
    transform: rotate(-3deg);
    filter: drop-shadow(0 30px 30px rgba(20, 20, 22, .16));
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hero__stage:hover .hero__tee { transform: rotate(0deg) scale(1.02); }
.hero__tag {
    position: absolute; z-index: 3;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    font-size: 12px; line-height: 1.3;
}
.hero__tag strong { display: block; font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.hero__tag--price { left: 5%; bottom: 12%; transform: rotate(-4deg); }
.hero__tag--ai { right: 4%; top: 14%; transform: rotate(5deg); display: flex; align-items: center; gap: 8px; }
.hero__tag--ai .icon { color: var(--cobalt); }
.hero__tag--ship { right: 7%; bottom: 6%; transform: rotate(-2deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero__tag--ship strong { color: var(--lime); }
.hero__badge {
    position: absolute; z-index: 3; left: 4%; top: 9%;
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--cobalt); color: #fff;
    display: grid; place-content: center; text-align: center;
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
    line-height: 1.35; transform: rotate(-10deg);
    box-shadow: 0 14px 30px rgba(32, 54, 232, .3);
}
.hero__badge b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -.03em; }

@media (max-width: 991px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .hero__stage { max-width: 460px; aspect-ratio: 1 / .95; }
    .hero__lead { max-width: none; }
}
@media (max-width: 575px) {
    .hero__stage { border-radius: 24px; }
    .hero__tag--ship { display: none; }
    .hero__badge { width: 70px; height: 70px; }
    .hero__actions .btn { flex: 1 1 100%; }
}

/* --- Бегущая строка-разделитель ------------------------------------------ */
.marquee {
    background: var(--ink); color: var(--paper);
    padding: 14px 0; overflow: hidden;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.marquee__track {
    display: flex; align-items: center; gap: 28px; width: max-content;
    animation: marqueeScroll 34s linear infinite;
}
.marquee__item {
    display: inline-flex; align-items: center; gap: 28px;
    font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 700; letter-spacing: -.02em; text-transform: uppercase;
    white-space: nowrap;
}
.marquee__item i { font-style: normal; color: var(--lime); font-size: .8em; }
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 233, .6); }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Преимущества -------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento__item {
    position: relative; overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--card);
    display: flex; flex-direction: column; gap: 12px;
    min-height: 190px;
}
.bento__item h3 { margin: 0; font-size: 1.15rem; }
.bento__item p { margin: 0; font-size: 13.5px; color: var(--muted); }
.bento__item--wide { grid-column: span 5; }
.bento__item--half { grid-column: span 4; }
.bento__item--third { grid-column: span 3; }
.bento__item--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bento__item--dark p { color: rgba(243, 240, 233, .68); }
.bento__item--lime { background: var(--lime); border-color: var(--lime); }
.bento__item--lime p { color: rgba(20, 20, 22, .68); }
.bento__item--cobalt { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.bento__item--cobalt p { color: rgba(255, 255, 255, .72); }
.bento__icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(20, 20, 22, .06); color: var(--ink);
    margin-bottom: auto;
}
.bento__item--dark .bento__icon { background: rgba(217, 255, 75, .14); color: var(--lime); }
.bento__item--cobalt .bento__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.bento__item--lime .bento__icon { background: rgba(20, 20, 22, .1); }
.bento__num {
    position: absolute; right: 18px; top: 8px;
    font-family: var(--font-display); font-size: 64px; font-weight: 900;
    letter-spacing: -.06em; opacity: .07; line-height: 1;
}
.bento__big {
    font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    letter-spacing: -.04em; line-height: 1;
}
@media (max-width: 991px) {
    .bento__item--wide { grid-column: span 12; }
    .bento__item--half { grid-column: span 6; }
    .bento__item--third { grid-column: span 6; }
}
@media (max-width: 575px) {
    .bento__item--half, .bento__item--third { grid-column: span 12; }
    .bento__item { min-height: 0; padding: 22px; }
}

/* --- Шаги ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
    position: relative; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--white);
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.step__num {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
    color: var(--cobalt); display: flex; align-items: center; gap: 8px;
}
.step__num::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step__icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--paper); border: 1px solid var(--line);
    display: grid; place-items: center;
}
.step h3 { margin: 4px 0 0; font-size: 1.05rem; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* --- Карточка товара ----------------------------------------------------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1199px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-search { display: flex; gap: 8px; align-items: center; }
.catalog-search .input { min-width: 220px; }
.catalog-count { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 767px) {
    .catalog-toolbar { align-items: stretch; }
    .catalog-search { width: 100%; }
    .catalog-search .input { flex: 1 1 auto; min-width: 0; }
}
.product-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.product-card__media {
    position: relative; display: block; aspect-ratio: 1 / 1.05;
    background: var(--paper); padding: 10px;
}
.product-card__media .tee-svg { width: 100%; height: 100%; }
.product-card__print {
    position: absolute; left: 50%; top: 29%;
    width: 33%; transform: translateX(-50%);
    pointer-events: none;
}
.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.3; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--muted); }

/* Сама футболка */
.tee-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tee-svg--thumb { max-width: 130px; }
.tee-preview {
    --shirt: #F6F3EC;
    position: relative; width: 100%;
    display: flex; align-items: center; justify-content: center;
}
.tee-preview__print {
    position: absolute; left: 50%; top: 25.5%;
    width: 38%; height: 44%;
    transform: translateX(-50%);
    display: flex; align-items: flex-start; justify-content: center;
    pointer-events: none;
}
.tee-preview__print img { width: 100%; height: auto; object-fit: contain; }

/* --- Отзывы -------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
    display: flex; flex-direction: column; gap: 14px;
    padding: 24px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.review__stars { display: flex; gap: 3px; color: var(--cobalt); }
.review__stars .icon { width: 15px; height: 15px; fill: currentColor; }
.review__text { margin: 0; font-size: 14px; line-height: 1.55; }
.review__author { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.review__avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper-2); border: 1px solid var(--line);
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.review__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.review__meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 991px) { .reviews { grid-template-columns: 1fr; } }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.faq .accordion-button {
    background: transparent; box-shadow: none; padding: 20px 44px 20px 0;
    font-family: var(--font-display); font-size: 15.5px; font-weight: 600; letter-spacing: -.02em;
    color: var(--ink); border-radius: 0;
}
.faq .accordion-button:not(.collapsed) { color: var(--cobalt); background: transparent; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq .accordion-button::after {
    background-image: none; content: '+';
    font-family: var(--font-body); font-size: 22px; font-weight: 400; line-height: 1;
    width: 28px; height: 28px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 50%;
    transition: background .25s, border-color .25s;
}
.faq .accordion-button:not(.collapsed)::after { content: '−'; background: var(--lime); border-color: var(--ink); }
.faq .accordion-body { padding: 0 40px 22px 0; font-size: 14px; color: var(--ink-2); max-width: 760px; }
.faq .accordion-body p:last-child { margin-bottom: 0; }

/* --- CTA перед футером --------------------------------------------------- */
.footer-cta { padding: 0 0 clamp(36px, 5vw, 64px); }
.footer-cta__card {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 52px);
    border-radius: var(--radius-xl);
    background: var(--cobalt); color: #fff;
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
}
.footer-cta__card::before {
    content: ''; position: absolute; right: -60px; top: -80px;
    width: 340px; height: 340px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .05), 0 0 0 90px rgba(255, 255, 255, .04);
}
.footer-cta__text { position: relative; z-index: 1; max-width: 620px; }
.footer-cta__text h2 { color: #fff; margin: 16px 0 12px; }
.footer-cta__text p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 470px; }
.footer-cta__text .sticker--lime { color: var(--ink); }
.footer-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cta__actions .btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.footer-cta__actions .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--cobalt); border-color: #fff; }
.footer-cta__actions .btn--primary { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.footer-cta__actions .btn--primary:hover { --btn-bg: var(--ink); --btn-fg: var(--lime); }
.footer-cta__mark {
    position: absolute; right: 24px; bottom: -34px;
    font-family: var(--font-display); font-size: 170px; font-weight: 900;
    letter-spacing: -.08em; color: rgba(255, 255, 255, .09); line-height: 1;
    pointer-events: none;
}
@media (max-width: 767px) {
    .footer-cta__actions { width: 100%; }
    .footer-cta__actions .btn { flex: 1 1 100%; }
    .footer-cta__mark { font-size: 120px; }
}

/* --- Футер --------------------------------------------------------------- */
.site-footer {
    background: var(--ink); color: var(--paper);
    padding: clamp(40px, 5vw, 64px) 0 28px;
    position: relative; overflow: hidden;
}
.footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px; padding-bottom: 36px;
}
.footer__brand p { color: rgba(243, 240, 233, .62); font-size: 13px; margin: 16px 0 20px; max-width: 280px; }
.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(243, 240, 233, .22);
    display: grid; place-items: center;
    transition: background .2s, color .2s, border-color .2s;
}
.footer__socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 {
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(243, 240, 233, .5); margin: 4px 0 6px;
}
.footer__col a, .footer__col p { font-size: 13.5px; color: rgba(243, 240, 233, .82); margin: 0; transition: color .18s; }
.footer__col a:hover { color: var(--lime); }
.footer__phone { font-family: var(--font-display); font-size: 17px !important; color: var(--paper) !important; letter-spacing: -.02em; }
.footer__contacts .muted { color: rgba(243, 240, 233, .45) !important; }
.footer__pay {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 0; border-top: 1px solid rgba(243, 240, 233, .14);
}
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip {
    padding: 6px 12px; border-radius: 6px;
    border: 1px solid rgba(243, 240, 233, .2);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(243, 240, 233, .8);
}
.delivery-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(243, 240, 233, .7); }
.delivery-chip .icon { color: var(--lime); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding-top: 18px; border-top: 1px solid rgba(243, 240, 233, .14);
}
.footer__bottom p { margin: 0; font-size: 11.5px; color: rgba(243, 240, 233, .55); max-width: 520px; }
.footer__wordmark {
    margin-top: 26px;
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(64px, 16vw, 220px); line-height: .78;
    letter-spacing: -.08em; text-align: center;
    color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 233, .16);
    user-select: none;
}
@media (max-width: 991px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
    .footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .footer__wordmark { margin-top: 18px; }
}

/* --- Cookie и кнопка «наверх» ------------------------------------------- */
.cookie-bar {
    position: fixed; z-index: 80; left: 20px; bottom: 20px;
    max-width: 380px; display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    animation: cookieIn .4s ease both;
}
.cookie-bar p { margin: 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.cookie-bar a { text-decoration: underline; text-underline-offset: 2px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.to-top {
    position: fixed; z-index: 70; right: 20px; bottom: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: var(--paper); border: 0;
    display: grid; place-items: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: .25s ease;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cobalt); }
@media (max-width: 575px) {
    .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .to-top { display: none; }
}

/* --- Внутренняя шапка страницы ------------------------------------------ */
.page-head { padding: clamp(24px, 3.6vw, 44px) 0 clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
    color: var(--muted); margin-bottom: 14px;
}
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs span.sep { opacity: .55; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 0 0 10px; }
.page-head p { margin: 0; color: var(--muted); max-width: 620px; font-size: 14.5px; }

/* --- Авторизация --------------------------------------------------------- */
.auth { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.auth__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 980px; margin: 0 auto;
    border: 1px solid var(--line); border-radius: var(--radius-xl);
    overflow: hidden; background: var(--white);
}
.auth__aside {
    position: relative; padding: clamp(28px, 4vw, 44px);
    background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; gap: 18px; overflow: hidden;
}
.auth__aside::after {
    content: ''; position: absolute; right: -70px; bottom: -70px;
    width: 280px; height: 280px; border-radius: 50%;
    border: 1px solid rgba(217, 255, 75, .3);
    box-shadow: 0 0 0 36px rgba(217, 255, 75, .05), 0 0 0 80px rgba(217, 255, 75, .04);
}
.auth__aside h2 { color: var(--paper); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.auth__aside p { color: rgba(243, 240, 233, .68); font-size: 13.5px; margin: 0; }
.auth__aside ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }
.auth__aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(243, 240, 233, .86); }
.auth__aside li .icon { color: var(--lime); margin-top: 2px; }
.auth__form { padding: clamp(26px, 4vw, 44px); }
.auth__form h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.auth__form > p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.auth__alt { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.auth__alt a { color: var(--cobalt); font-weight: 600; }
.auth__demo {
    margin-top: 20px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--paper); border: 1px dashed var(--line-strong);
    font-size: 11.5px; color: var(--muted); line-height: 1.6;
}
.auth__demo code { font-family: var(--font-mono); color: var(--ink); }
@media (max-width: 860px) {
    .auth__grid { grid-template-columns: 1fr; }
    .auth__aside { order: 1; }
    .auth__aside ul { display: none; }
}

/* --- Корзина ------------------------------------------------------------- */
.cart-page { padding: clamp(22px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 24px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px; align-items: center;
    padding: 14px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.cart-item__media {
    position: relative; width: 92px; height: 96px;
    border-radius: var(--radius-sm); background: var(--paper);
    display: grid; place-items: center; overflow: hidden;
}
.cart-item__media img { max-width: 84%; max-height: 84%; object-fit: contain; }
.cart-item__title { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.cart-item__opts { font-size: 12px; color: var(--muted); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cart-item__opts b { color: var(--ink-2); font-weight: 500; }
.cart-item__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.cart-item__sum { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.cart-item__unit { font-size: 11px; color: var(--muted); }
.link-danger {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-size: 11.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
}
.link-danger:hover { color: var(--danger); }
@media (max-width: 640px) {
    .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
    .cart-item__media { width: 72px; height: 78px; }
    .cart-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

.qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--white); overflow: hidden; height: 34px;
}
.qty button {
    width: 32px; height: 100%; border: 0; background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
    transition: background .15s;
}
.qty button:hover { background: var(--paper-2); color: var(--ink); }
.qty input {
    width: 38px; height: 100%; border: 0; background: transparent;
    text-align: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
    -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 44px; }
.qty--lg button { width: 42px; }
.qty--lg input { width: 48px; font-size: 14px; }

.summary {
    position: sticky; top: calc(var(--header-h) + 16px);
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 22px;
}
.summary h2, .summary h3 {
    font-size: 1.05rem; margin: 0 0 16px; letter-spacing: -.01em;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.summary__row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 9px 0; font-size: 13.5px; color: var(--ink-2);
}
.summary__row span:last-child { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.summary__row--free span:last-child { color: var(--success); }
.summary__row--discount span:last-child { color: var(--cobalt); }
.summary__divider { height: 1px; background: var(--line); margin: 10px 0; }
.summary__total {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 6px 0 2px;
}
.summary__total-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.summary__total-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.summary__note { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.summary .btn { margin-top: 16px; }
.summary__perks { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.summary__perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--muted); }
.summary__perks .icon { width: 15px; height: 15px; color: var(--success); margin-top: 1px; }

.promo-form { display: flex; gap: 8px; margin: 4px 0 12px; }
.promo-form .input { padding: 9px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.promo-form .btn { padding: 9px 16px; }
.promo-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    background: rgba(217, 255, 75, .28); border: 1px dashed var(--lime-deep);
    font-size: 12px; margin-bottom: 12px;
}
.promo-applied .icon { color: var(--success); }
.promo-applied span { min-width: 0; }
.promo-applied small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.promo-applied button { background: none; border: 0; cursor: pointer; color: var(--muted); display: grid; place-items: center; }

.empty-state {
    text-align: center; padding: clamp(36px, 6vw, 72px) 24px;
    border: 1px dashed var(--line-strong); border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .5);
}
.empty-state__icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center;
    background: var(--paper-2); color: var(--ink-2);
}
.empty-state h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; font-size: 14px; }
.empty-state__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 991px) {
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
}

/* --- Оформление заказа --------------------------------------------------- */
.checkout-page { padding: clamp(22px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .85fr); gap: 24px; align-items: start; }
.checkout-form { display: grid; gap: 16px; }
.checkout-block {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 28px);
}
.checkout-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.checkout-block__num {
    width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--ink); color: var(--lime);
    font-family: var(--font-mono); font-size: 12px;
}
.checkout-block__head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.checkout-block__head .muted { margin-left: auto; font-size: 11.5px; }

.delivery-option {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.delivery-option:last-of-type { margin-bottom: 0; }
.delivery-option:hover { border-color: var(--line-strong); }
.delivery-option.is-selected { background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.delivery-option input { margin-top: 3px; accent-color: var(--ink); width: 17px; height: 17px; }
.delivery-option__body { flex: 1; min-width: 0; }
.delivery-option__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.delivery-option__title .price { font-size: 14px; }
.delivery-option__hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.delivery-option__badge { margin-left: 6px; }

.pvz-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
@media (max-width: 575px) { .pvz-tools { grid-template-columns: 1fr; } }
.pvz-map {
    height: 320px; width: 100%; margin: 4px 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-2); overflow: hidden; z-index: 0;
}
.pvz-map[hidden] { display: none; }
.pvz-map .pvz-marker {
    position: absolute;
    width: 30px; height: 38px;
    margin: 0; padding: 0; border: 0;
    background: transparent;
    transform: translate(-50%, -100%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pvz-map .pvz-marker span {
    display: block;
    position: absolute;
    left: 50%; top: 7px;
    width: 24px; height: 24px; border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    background: var(--cobalt);
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(20, 20, 22, .3);
    transition: background .18s, transform .18s;
}
.pvz-map .pvz-marker:hover span,
.pvz-map .pvz-marker:focus-visible span { background: var(--cobalt-deep); }
.pvz-map .pvz-marker.is-selected span {
    background: var(--coral);
    transform: translateX(-50%) rotate(-45deg) scale(1.12);
}
.pvz-map .pvz-marker:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 8px;
}
.pvz-map .pvz-marker-holder {
    width: 30px; height: 38px;
    background: transparent; border: 0;
}
.pvz-map .pvz-marker-holder .pvz-marker {
    left: 50%; top: 100%;
}
.pvz-popup {
    position: absolute;
    width: min(270px, 72vw);
    padding: 12px 34px 12px 14px;
    transform: translate(-50%, calc(-100% - 46px));
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11.5px;
    line-height: 1.45;
    pointer-events: auto;
}
.pvz-popup::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -7px;
    width: 12px; height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--white);
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.pvz-popup strong {
    display: block;
    margin-bottom: 3px;
    padding-right: 4px;
    font-size: 12.5px;
    line-height: 1.3;
}
.pvz-popup span { display: block; color: var(--muted); }
.pvz-popup .pvz-popup__time { margin-top: 3px; }
.pvz-popup a {
    display: inline-block;
    margin-top: 7px;
    color: var(--cobalt);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pvz-popup__actions {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 9px;
}
.pvz-popup__actions .btn { margin: 0; }
.pvz-popup__actions a { margin-top: 0; }
.pvz-popup-body {
    width: min(270px, 70vw);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11.5px;
    line-height: 1.45;
}
.pvz-popup-body strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
    line-height: 1.3;
}
.pvz-popup-body span { display: block; color: var(--muted); }
.pvz-popup-body .pvz-popup__time { margin-top: 3px; }
.pvz-popup-body a {
    color: var(--cobalt);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pvz-leaflet-popup .leaflet-popup-content-wrapper { border-radius: var(--radius); }
.pvz-leaflet-popup .leaflet-popup-content { margin: 12px 14px; }
.pvz-popup__close {
    position: absolute;
    top: 7px; right: 7px;
    width: 22px; height: 22px;
    padding: 0; border: 0; border-radius: 50%;
    background: var(--paper); color: var(--ink);
    font-size: 16px; line-height: 22px; text-align: center;
    cursor: pointer;
}
.pvz-popup__close:hover { background: var(--paper-2); }
.pvz-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.pvz-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer; background: var(--white); transition: border-color .18s, background .18s;
}
.pvz-item:hover { border-color: var(--line-strong); }
.pvz-item.is-selected { border-color: var(--cobalt); background: #F3F5FF; }
.pvz-item input { margin-top: 3px; accent-color: var(--cobalt); }
.pvz-item__name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.pvz-item__addr { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pvz-item__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pvz-empty { padding: 22px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.pvz-status { font-size: 11.5px; color: var(--muted); }
.pvz-selected {
    margin: 10px 0 0; padding: 10px 12px; font-size: 11.5px; line-height: 1.45;
    color: var(--ink); background: rgba(217, 255, 75, .28);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pvz-selected[hidden] { display: none; }

.pay-option {
    display: flex; gap: 12px; align-items: center;
    padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--radius);
    background: var(--paper);
}
.pay-option__logo {
    padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
}
.pay-option__text { font-size: 12px; color: var(--muted); }

.checkout-aside { display: grid; gap: 14px; }
.checkout-items { display: grid; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.checkout-item { display: flex; gap: 10px; align-items: center; }
.checkout-item__media {
    width: 46px; height: 46px; border-radius: 8px; background: var(--paper);
    display: grid; place-items: center; flex: 0 0 auto; overflow: hidden;
}
.checkout-item__media img { max-width: 86%; max-height: 86%; }
.checkout-item__name { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.checkout-item__opts { font-size: 11px; color: var(--muted); }
.checkout-item__price { margin-left: auto; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
@media (max-width: 991px) { .checkout-layout { grid-template-columns: 1fr; } }

/* --- Личный кабинет ------------------------------------------------------ */
.account-page { padding: clamp(22px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.account-head {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    padding: clamp(18px, 2.6vw, 26px); margin-bottom: 18px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--ink); color: var(--paper);
}
.account-head__user { display: flex; align-items: center; gap: 14px; }
.account-head__avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--lime); color: var(--ink);
    font-family: var(--font-display); font-size: 19px; font-weight: 700;
}
.account-head h1 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 3px; color: var(--paper); }
.account-head p { margin: 0; font-size: 12px; color: rgba(243, 240, 233, .65); }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.account-tile { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.account-tile__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.account-tile__value { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; }
.order-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--white); padding: 18px 20px; margin-bottom: 12px;
}
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.order-card__num { font-family: var(--font-mono); font-size: 12.5px; }
.order-card__date { font-size: 11.5px; color: var(--muted); }
.order-card__body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.order-card__items { display: flex; gap: 8px; }
.order-card__thumb {
    width: 52px; height: 56px; border-radius: 8px; background: var(--paper);
    display: grid; place-items: center; overflow: hidden;
}
.order-card__thumb img { max-width: 88%; max-height: 88%; }
.order-card__sum { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
    background: var(--paper-2); color: var(--ink-2);
}
.status--paid, .status--done, .status--shipped { background: rgba(29, 122, 76, .12); color: var(--success); }
.status--pending { background: rgba(255, 106, 61, .14); color: #B23A16; }
.status--canceled { background: rgba(20, 20, 22, .08); color: var(--muted); }
@media (max-width: 767px) { .account-grid { grid-template-columns: 1fr; } }
.account-section { margin-bottom: 30px; }
.account-section__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 12px;
}
.account-section__head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.account-section__head a { font-size: 12.5px; }
.link-muted { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-muted:hover { color: var(--cobalt); }
.order-card__meta { display: grid; gap: 2px; font-size: 11.5px; color: var(--ink-2); }
.order-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-card__actions form { margin: 0; }
.order-card__num { font-weight: 600; }
.order-card__num:hover { color: var(--cobalt); }
.order-card__thumb { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.account-note {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
    background: rgba(255, 255, 255, .6); font-size: 12.5px; color: var(--muted);
}
.account-note .icon { color: var(--cobalt); flex: 0 0 auto; }
.account-note p { margin: 0; flex: 1 1 260px; line-height: 1.5; }
.print-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.print-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); transition: box-shadow .18s, transform .18s;
}
.print-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.print-card__media {
    aspect-ratio: 4 / 3; display: grid; place-items: center;
    background: var(--paper); padding: 12px;
}
.print-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.print-card__media .icon { color: var(--muted); }
.print-card__body { padding: 12px 14px 14px; }
.print-card__body h3 { font-size: 13px; margin: 0 0 4px; line-height: 1.3; }
.print-card__body p { margin: 0; font-size: 11px; color: var(--muted); }
@media (max-width: 991px) { .print-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .print-grid { grid-template-columns: 1fr; } }

/* --- Текстовые страницы -------------------------------------------------- */
.legal-page { padding: clamp(22px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.prose { max-width: 780px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.prose h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 34px 0 12px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 13px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 600; }
.prose strong { color: var(--ink); }
.legal-aside {
    position: sticky; top: calc(var(--header-h) + 16px);
    padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--white); display: grid; gap: 12px;
}
.legal-aside h2 { font-size: 13px; margin: 0; letter-spacing: 0; font-family: var(--font-mono); text-transform: uppercase; font-weight: 500; color: var(--muted); font-size: 10.5px; letter-spacing: .12em; }
.legal-aside a { font-size: 12.5px; }
.legal-aside a:hover { color: var(--cobalt); }
@media (max-width: 991px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .legal-aside { position: static; order: 2; } }

/* --- Успешный заказ и 404 ------------------------------------------------ */
.result-page { padding: clamp(32px, 5vw, 64px) 0 clamp(52px, 7vw, 88px); }
.result-card {
    max-width: 720px; margin: 0 auto; text-align: center;
    padding: clamp(26px, 4vw, 46px);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
}
.result-card__icon {
    width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 20px;
    display: grid; place-items: center;
    background: var(--lime); color: var(--ink);
}
.result-card__icon .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.result-card__icon--error { background: #FBE4DE; color: var(--danger); }
.result-card h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 10px; }
.result-card > p { color: var(--muted); max-width: 480px; margin: 0 auto 22px; font-size: 14.5px; }
.result-card__box {
    text-align: left; margin: 0 0 22px; padding: 18px 20px;
    background: var(--paper); border-radius: var(--radius);
    display: grid; gap: 10px;
}
.result-card__box .summary__row { padding: 0; }
.result-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.result-card__note { font-size: 11.5px; color: var(--muted); margin: 18px 0 0; }

/* --- Страница заказа ------------------------------------------------------ */
.order-success { padding: clamp(22px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.order-success__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-success__layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
.order-success__main { display: grid; gap: 14px; }
.order-success__card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 26px);
}
.order-success__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-success__card-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
.order-success__summary { position: sticky; top: calc(var(--header-h) + 16px); }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-item { display: flex; gap: 12px; align-items: center; }
.order-item + .order-item { padding-top: 12px; border-top: 1px solid var(--line); }
.order-item__media {
    width: 56px; height: 60px; flex: 0 0 auto; border-radius: 8px;
    background: var(--paper); display: grid; place-items: center; overflow: hidden;
}
.order-item__media img { max-width: 86%; max-height: 86%; }
.order-item__media .icon { color: var(--muted); }
.order-item__body { display: grid; gap: 3px; min-width: 0; }
.order-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.order-item__opts { font-size: 11.5px; color: var(--muted); }
.order-item__price { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.order-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.order-fact {
    display: grid; gap: 4px; align-content: start;
    padding: 16px 18px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.order-fact__label {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
}
.order-fact__label .icon { width: 14px; height: 14px; }
.order-fact__value { font-size: 13px; font-weight: 600; line-height: 1.35; }
.order-fact__meta { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.order-comment p { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 991px) {
    .order-success__layout { grid-template-columns: 1fr; }
    .order-success__summary { position: static; }
    .order-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) { .order-facts { grid-template-columns: 1fr; } }


/* --- Установщик ---------------------------------------------------------- */
.install-page {
    min-height: 100vh; display: grid; place-items: center;
    padding: 32px 18px;
    background:
        radial-gradient(circle at 82% 12%, rgba(217, 255, 75, .7) 0 12%, transparent 12.5%),
        radial-gradient(circle at 12% 88%, rgba(32, 54, 232, .1) 0 18%, transparent 18.5%),
        var(--paper);
    font-family: var(--font-body, system-ui, sans-serif);
}
.install-card {
    width: 100%; max-width: 560px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: 24px; padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}
.install-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 10px; }
.install-card .eyebrow { margin-bottom: 12px; }
.install-log {
    list-style: none; padding: 0; margin: 16px 0;
    display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11.5px;
    color: var(--ink-2);
}
.install-log li { display: flex; gap: 8px; }
.install-log li::before { content: '✓'; color: var(--success); }
.install-form { display: grid; gap: 14px; margin: 18px 0 14px; }
.install-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* --- Утилиты ------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important;
    white-space: nowrap !important; border: 0 !important;
    clip-path: inset(50%) !important;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-100 { width: 100% !important; }
[hidden] { display: none !important; }

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

/* ==========================================================================
   КОНСТРУКТОР (design.php)
   ========================================================================== */
.page-designer { background: var(--paper-2); }
.page-designer .site-footer { display: none; }
.page-designer .announce { display: none; }

.studio {
    display: grid;
    grid-template-columns: 344px minmax(0, 1fr) 332px;
    align-items: start;
    min-height: calc(100vh - var(--header-h));
    border-top: 1px solid var(--line);
}
.studio__tools {
    border-right: 1px solid var(--line);
    background: var(--paper);
    display: flex; flex-direction: column;
    min-width: 0;
    min-height: calc(100vh - var(--header-h));
    position: sticky; top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
}
.studio__stage-wrap { padding: 14px clamp(12px, 2vw, 24px) 24px; min-width: 0; }
.studio__options {
    border-left: 1px solid var(--line);
    background: var(--paper);
    position: sticky; top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}

/* Табы инструментов */
.tool-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px; padding: 10px 10px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.tool-tab {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 4px 12px;
    background: none; border: 0; border-bottom: 2px solid transparent;
    font-size: 10.5px; font-weight: 500; color: var(--muted);
    cursor: pointer; transition: color .18s, border-color .18s;
}
.tool-tab:hover { color: var(--ink); }
.tool-tab .icon { width: 19px; height: 19px; }
.tool-tab.is-active { color: var(--ink); border-color: var(--cobalt); }
.tool-tab.is-active .icon { color: var(--cobalt); }

.tool-panels { flex: 1; overflow-y: auto; padding: 18px; min-width: 0; }
.tool-panel { display: none; }
.tool-panel.is-active { display: block; animation: panelIn .22s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tool-panel h2 { font-size: 1rem; margin: 0 0 6px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.tool-panel > p { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.tool-panel .field:last-child { margin-bottom: 0; }
.tool-section { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.tool-section__title {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.tool-counter { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: right; }

.prompt-voice {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    min-height: 38px; margin-top: 6px;
}
.prompt-voice__btn {
    width: 38px; height: 38px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 50%;
    background: var(--white); color: var(--ink-2);
    cursor: pointer; flex: 0 0 auto;
    transition: border-color .16s, color .16s, background .16s, box-shadow .16s;
    touch-action: none; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.prompt-voice__btn:hover { border-color: var(--cobalt); color: var(--cobalt); background: #F3F5FF; }
.prompt-voice__btn .icon { width: 17px; height: 17px; }
.prompt-voice__btn.is-recording {
    border-color: var(--danger); color: #fff; background: var(--danger);
    box-shadow: 0 0 0 5px rgba(214, 69, 45, .12);
}
.prompt-voice__btn.is-recording .icon { animation: voicePulse 1.1s ease-in-out infinite; }
.prompt-voice__btn.is-processing {
    border-color: var(--cobalt); color: var(--cobalt); background: #F3F5FF;
}
.prompt-voice__btn.is-processing .icon { animation: voicePulse .8s ease-in-out infinite; }
.prompt-voice__btn:disabled { opacity: .65; cursor: wait; }
.prompt-voice__btn.is-processing:disabled { opacity: 1; }
.prompt-voice__status {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 10px; border-radius: 999px;
    font-family: var(--font-mono); font-size: 9.5px; line-height: 1.3;
    color: var(--ink-2); background: var(--paper-2);
}
.prompt-voice__status[hidden] { display: none; }
.prompt-voice__status.is-recording { color: var(--danger); background: #FDF2EF; }
.prompt-voice__status.is-recording::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; animation: voicePulse 1.1s ease-in-out infinite;
}
.prompt-voice__status.is-processing { color: var(--cobalt); background: #F3F5FF; }
.prompt-voice__status.is-processing::before {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    border: 1.5px solid currentColor; border-right-color: transparent;
    animation: voiceSpin .7s linear infinite;
}
@keyframes voicePulse { 50% { opacity: .35; } }
@keyframes voiceSpin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .prompt-voice { min-height: 44px; }
    .prompt-voice__btn { width: 44px; height: 44px; }
    .prompt-voice__btn .icon { width: 19px; height: 19px; }
}

.prompt-suggest {
    display: flex; flex-wrap: nowrap; gap: 5px;
    margin: -4px 0 12px; overflow-x: auto; min-width: 0;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.prompt-suggest::-webkit-scrollbar { display: none; }
.prompt-suggest button {
    flex: 0 0 auto; padding: 3px 7px; border-radius: 999px;
    border: 1px dashed var(--line-strong); background: transparent;
    font-size: 9.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
    transition: background .16s, border-color .16s;
}
.prompt-suggest button:hover { background: var(--lime); border-color: var(--ink); border-style: solid; }

.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.style-option {
    display: grid; gap: 4px; padding: 9px 6px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer; text-align: center;
    font-size: 10.5px; color: var(--ink-2); line-height: 1.25;
    transition: border-color .16s, background .16s;
}
.style-option:hover { border-color: var(--line-strong); }
.style-option.is-active { border-color: var(--ink); background: var(--lime); color: var(--ink); font-weight: 600; }
.style-option .icon { width: 17px; height: 17px; margin: 0 auto; }

.field__hint {
    margin-left: 4px; font-family: var(--font-mono); font-size: 9.5px;
    font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0;
}
.ai-ref {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .55); cursor: pointer;
    transition: border-color .18s, background .18s;
}
.ai-ref:hover, .ai-ref.is-drag { border-color: var(--cobalt); background: #F3F5FF; }
.ai-ref.is-loading, .ai-ref.is-full { opacity: .7; pointer-events: none; }
.ai-ref input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-ref__icon {
    width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 50%; background: var(--paper-2); color: var(--ink);
}
.ai-ref__icon .icon { width: 18px; height: 18px; }
.ai-ref__text { display: grid; gap: 2px; min-width: 0; }
.ai-ref__text strong { font-size: 11.5px; }
.ai-ref__text span { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.ai-ref__count {
    margin-left: auto; flex: 0 0 auto; font-family: var(--font-mono);
    font-size: 9.5px; color: var(--muted);
}
.ai-ref-previews { display: grid; gap: 6px; margin-top: 8px; }
.ai-ref-previews[hidden] { display: none; }
.ai-ref-preview {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 8px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--white);
}
.ai-ref-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.ai-ref-preview__meta {
    min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 10.5px; color: var(--muted);
}
.ai-ref-preview__remove {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--white); display: grid; place-items: center; cursor: pointer;
}
.ai-ref-preview__remove:hover { border-color: var(--danger); color: var(--danger); }
.ai-ref-preview__remove .icon { width: 12px; height: 12px; }

.ai-actions { display: grid; gap: 8px; }
.ai-cost { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); }

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ai-grid--single { grid-template-columns: 1fr; }
.ai-thumb {
    position: relative; aspect-ratio: 1; border-radius: var(--radius-sm);
    border: 1px solid var(--line); overflow: hidden; cursor: pointer;
    background: repeating-conic-gradient(#F3F0E9 0 25%, #FFFFFF 0 50%) 50% / 18px 18px; padding: 0;
}
.ai-grid--single .ai-thumb { aspect-ratio: 3 / 4; }
.ai-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ai-thumb:hover { border-color: var(--cobalt); }
.ai-thumb__use {
    position: absolute; inset: auto 4px 4px; padding: 4px;
    background: rgba(20, 20, 22, .82); color: #fff; border-radius: 5px;
    font-size: 9.5px; text-align: center;
}
.ai-result-note {
    margin: 8px 0 0; font-size: 10.5px; line-height: 1.45;
    color: var(--muted); text-align: center;
}
.ai-loading {
    display: grid; place-items: center; gap: 10px; text-align: center;
    padding: 22px 12px; border-radius: var(--radius);
    border: 1px dashed var(--line-strong); background: var(--white);
    font-size: 11.5px; color: var(--muted); margin-top: 14px;
}
.ai-loading__spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--cobalt);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading__bar { width: 100%; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.ai-loading__bar i { display: block; height: 100%; width: 30%; background: var(--cobalt); animation: loadbar 1.6s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* Полноэкранная загрузка ИИ-генерации */
body.is-ai-generating { overflow: hidden; }
.ai-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center; padding: 24px;
    background: rgba(20, 20, 22, .72);
    backdrop-filter: blur(10px);
}
.ai-overlay[hidden] { display: none; }
.ai-overlay__card {
    width: min(100%, 430px); padding: 32px 30px 26px;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 26px;
    background: var(--paper); text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    animation: aiOverlayIn .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes aiOverlayIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-overlay__orb {
    position: relative; width: 96px; height: 96px;
    margin: 0 auto 20px;
}
.ai-overlay__orb span {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid rgba(32, 54, 232, .3);
    border-top-color: var(--cobalt);
    animation: aiOrbit 2.4s linear infinite;
}
.ai-overlay__orb span:nth-child(2) { inset: 10px; animation-duration: 1.9s; animation-direction: reverse; border-color: rgba(32, 54, 232, .18); border-right-color: var(--cobalt); }
.ai-overlay__orb span:nth-child(3) { inset: 20px; animation-duration: 1.4s; border-color: rgba(32, 54, 232, .14); border-bottom-color: var(--cobalt); }
.ai-overlay__orb b {
    position: absolute; inset: 29px; display: grid; place-items: center;
    border-radius: 50%; background: var(--lime); color: var(--ink);
    animation: aiPulse 1.8s ease-in-out infinite;
}
.ai-overlay__orb .icon { width: 20px; height: 20px; }
@keyframes aiOrbit { to { transform: rotate(360deg); } }
@keyframes aiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ai-overlay__eyebrow {
    display: block; margin-bottom: 8px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--cobalt);
}
.ai-overlay__card h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.ai-overlay__status { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); min-height: 39px; }
.ai-overlay__progress { height: 6px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.ai-overlay__progress i {
    display: block; height: 100%; width: 8%;
    border-radius: inherit; background: var(--cobalt);
    transition: width .7s ease;
    position: relative; overflow: hidden;
}
.ai-overlay__progress i::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-100%); animation: aiShimmer 1.2s infinite;
}
@keyframes aiShimmer { to { transform: translateX(100%); } }
.ai-overlay__steps {
    display: grid; grid-template-columns: repeat(2, max-content); justify-content: center;
    gap: 7px 16px; margin: 14px 0 16px; padding: 0; list-style: none;
    font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); text-align: left;
}
.ai-overlay__steps li { display: inline-flex; align-items: center; gap: 5px; }
.ai-overlay__steps li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.ai-overlay__steps li.is-active { color: var(--ink); }
.ai-overlay__steps li.is-active::before { background: var(--cobalt); box-shadow: 0 0 0 3px rgba(32, 54, 232, .12); }
.ai-overlay__note { display: block; font-size: 10px; line-height: 1.45; color: var(--muted); }

/* Загрузка файлов */
.dropzone {
    position: relative; display: grid; place-items: center; gap: 8px;
    padding: 26px 16px; text-align: center;
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
    background: rgba(255, 255, 255, .6); cursor: pointer;
    transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--cobalt); background: #F3F5FF; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.dropzone strong { font-size: 12.5px; }
.dropzone span { font-size: 10.5px; color: var(--muted); }
.upload-list { display: grid; gap: 8px; margin-top: 12px; }
.upload-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white);
}
.upload-item__preview { width: 40px; height: 40px; border-radius: 6px; background: var(--paper); overflow: hidden; flex: 0 0 auto; }
.upload-item__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-item__name { font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item__meta { font-size: 10px; color: var(--muted); }

/* --- Сцена --------------------------------------------------------------- */
.stage-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 12px; flex-wrap: wrap;
}
.stage-bar__group {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 4px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line);
}
.stage-bar__btn {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
    transition: background .16s, color .16s;
}
.stage-bar__btn:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); }
.stage-bar__btn:disabled { opacity: .3; cursor: default; }
.stage-bar__btn.is-danger:hover { background: #FBE4DE; color: var(--danger); }
.stage-bar__btn .icon { width: 17px; height: 17px; }
.side-toggle {
    display: inline-flex; padding: 4px; border-radius: 999px;
    background: var(--white); border: 1px solid var(--line);
}
.side-toggle button {
    padding: 7px 16px; border: 0; border-radius: 999px; background: transparent;
    font-size: 11.5px; font-weight: 500; color: var(--muted); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: .18s;
}
.side-toggle button.is-active { background: var(--ink); color: var(--paper); }

.stage {
    position: relative;
    border: 1px solid var(--line); border-radius: var(--radius-xl);
    background-color: #E7E3D9;
    background-image: radial-gradient(rgba(20, 20, 22, .13) 1px, transparent 1px);
    background-size: 18px 18px;
    padding: clamp(14px, 2.4vw, 30px) clamp(10px, 2vw, 24px);
    display: flex; align-items: center; justify-content: center;
    min-height: 420px;
    overflow: hidden;
    touch-action: none;
}
.stage__inner {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}
.stage__tee { position: absolute; inset: 0; }
.stage__tee .tee-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__photo {
    display: block; width: 100%; height: 100%;
    object-fit: contain; pointer-events: none;
    filter: drop-shadow(0 18px 30px rgba(20, 20, 22, .18));
}
.stage__tee--photo { inset: 0; }
.stage__side { display: none; }
.stage__side.is-active { display: block; }
.stage-bar__note {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
}
.stage-bar__note .icon { width: 15px; height: 15px; color: var(--cobalt); }
.stage__shine {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .16), transparent 62%);
}
.stage__hint {
    position: absolute; left: 14px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--muted);
    backdrop-filter: blur(6px);
}
.stage__zoom {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
    border-radius: 999px; padding: 3px; backdrop-filter: blur(6px);
}
.stage__zoom button { width: 26px; height: 26px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.stage__zoom button:hover { background: var(--paper-2); }
.stage__zoom span { font-family: var(--font-mono); font-size: 10px; min-width: 34px; text-align: center; color: var(--muted); }

/* Зона печати: 21 × 29 см. На 20% меньше предыдущей, по центру груди. */
.print-zone {
    position: absolute;
    left: 36.4%; top: 24.7%;
    width: 27.2%; height: 37.6%;
    container-type: inline-size;
    border: 1.5px dashed rgba(217, 255, 75, .88);
    border-radius: 6px;
    background: rgba(217, 255, 75, .08);
    box-shadow: 0 0 0 1px rgba(20, 20, 22, .28), inset 0 0 18px rgba(217, 255, 75, .08);
}
.print-zone__label {
    position: absolute; left: 0; top: -19px;
    font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em;
    color: #D9FF4B; text-transform: uppercase; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(20, 20, 22, .9);
    pointer-events: none;
}
.print-zone.is-dragover { border-color: #D9FF4B; background: rgba(217, 255, 75, .16); }
.layers { position: absolute; inset: 0; }

/* --- Слои принта --------------------------------------------------------- */
.layer {
    position: absolute;
    transform: rotate(var(--rot, 0deg));
    transform-origin: center center;
    touch-action: none;
    cursor: move;
    outline: 1px solid transparent;
    outline-offset: 0;
    user-select: none;
}
.layer__content { position: relative; display: block; width: 100%; line-height: 1.05; }
.layer__text {
    display: block;
    font-size: calc(var(--fs, 12) * 1cqw);
    line-height: 1.08;
    letter-spacing: -.01em;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: center;
    font-weight: 700;
}
.layer__img { display: block; width: 100%; height: auto; pointer-events: none; }
.layer__frame { position: absolute; inset: -1px; border: 1.5px solid transparent; pointer-events: none; }
.layer.is-selected .layer__frame { border-color: var(--cobalt); }
.layer__handle {
    position: absolute; width: 9px; height: 9px;
    margin: -5px; background: var(--white);
    border: 1.5px solid var(--cobalt); border-radius: 2px;
    display: none; pointer-events: auto;
}
.layer.is-selected .layer__handle { display: block; }
.layer__handle::before { content: ''; position: absolute; inset: -9px; }
.layer__handle--nw { left: 0; top: 0; cursor: nwse-resize; }
.layer__handle--ne { left: 100%; top: 0; cursor: nesw-resize; }
.layer__handle--sw { left: 0; top: 100%; cursor: nesw-resize; }
.layer__handle--se { left: 100%; top: 100%; cursor: nwse-resize; }
.layer__rotate {
    position: absolute; left: 50%; top: 0;
    width: 20px; height: 20px; margin: -34px 0 0 -10px;
    border-radius: 50%; background: var(--white);
    border: 1.5px solid var(--cobalt);
    display: none; place-items: center; cursor: grab; pointer-events: auto;
}
.layer.is-selected .layer__rotate { display: grid; }
.layer__rotate::after { content: '↻'; font-size: 11px; line-height: 1; color: var(--cobalt); }
.layer__rotate::before {
    content: ''; position: absolute; left: 50%; top: 100%;
    width: 1.5px; height: 13px; background: var(--cobalt);
}
.layer.is-locked { opacity: .55; cursor: not-allowed; }
.layer.is-locked .layer__handle,
.layer.is-locked .layer__rotate,
.layer.is-locked .layer-bar { display: none !important; }

.layer-bar {
    position: absolute; left: 50%; bottom: -44px;
    transform: translateX(-50%);
    display: none; align-items: center; gap: 2px;
    padding: 4px; border-radius: 999px;
    background: var(--ink); color: var(--paper);
    box-shadow: var(--shadow-sm); z-index: 5;
}
.layer.is-selected .layer-bar { display: flex; }
.layer-bar button {
    width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: inherit; display: grid; place-items: center;
    cursor: pointer; transition: background .15s, color .15s;
}
.layer-bar button:hover { background: rgba(255, 255, 255, .18); }
.layer-bar button.is-active { background: var(--lime); color: var(--ink); }
.layer-bar button.is-danger:hover { background: var(--danger); }
.layer-bar .icon { width: 15px; height: 15px; }
.layer-bar__sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .22); margin: 0 2px; }

/* Панель текста */
.text-tools { display: grid; gap: 12px; }
.text-align-group { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.text-align-group button {
    width: 36px; height: 34px; border: 0; background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
    border-right: 1px solid var(--line);
}
.text-align-group button:last-child { border-right: 0; }
.text-align-group button.is-active { background: var(--ink); color: var(--paper); }
.font-select { font-size: 13px; }
.font-preview {
    margin-top: 8px; padding: 10px 12px; text-align: center;
    border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper-2); color: var(--ink);
    font-size: 21px; line-height: 1.2; overflow: hidden; white-space: nowrap;
}
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-swatch {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid rgba(20, 20, 22, .18);
    background: var(--c); cursor: pointer; padding: 0;
    transition: transform .15s, box-shadow .15s;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.color-input {
    width: 34px; height: 28px; padding: 0; border: 1px solid var(--line-strong);
    border-radius: 6px; background: none; cursor: pointer;
}
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--cobalt); }
.range-row output { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); min-width: 30px; text-align: right; }

/* --- Правая панель: параметры футболки ---------------------------------- */
.studio-panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px;
}
.studio-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.studio-panel__head h2, .studio-panel__head h3 {
    font-size: 12px; margin: 0; letter-spacing: .02em;
    font-family: var(--font-mono); text-transform: uppercase; font-weight: 500; color: var(--ink-2);
}
.studio-panel__head span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(20, 20, 22, .18);
    background: var(--c); cursor: pointer; padding: 0; position: relative;
    transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.color-name { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)); gap: 5px; }
.size-option {
    padding: 7px 0; border: 1px solid var(--line); border-radius: 7px;
    background: var(--paper); font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-2); cursor: pointer; text-align: center;
    transition: .15s;
}
.size-option:hover:not(:disabled) { border-color: var(--ink); }
.size-option.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size-option:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.size-grid.is-invalid {
    outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 9px;
    animation: size-invalid-pulse .45s ease-in-out 2;
}
@keyframes size-invalid-pulse {
    0%, 100% { outline-color: var(--danger); }
    50% { outline-color: rgba(197, 50, 28, .3); }
}
.size-hint { font-size: 10.5px; color: var(--muted); margin: 8px 0 0; }

.cut-list { display: grid; gap: 6px; }
.cut-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--paper); cursor: pointer; text-align: left;
}
.cut-option.is-active { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--ink) inset; }
.cut-option__icon { width: 30px; height: 30px; border-radius: 7px; background: var(--white); display: grid; place-items: center; flex: 0 0 auto; }
.cut-option__body { min-width: 0; }
.cut-option__name { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.cut-option__desc { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.cut-option__price { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; }

/* Итоговая панель */
.studio-panel--summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.studio-summary__row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    font-size: 11.5px; color: rgba(243, 240, 233, .68); padding: 5px 0;
}
.studio-summary__row span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--paper); }
.studio-summary__row--discount span:last-child { color: var(--lime); }
.studio-summary__divider { height: 1px; background: rgba(243, 240, 233, .16); margin: 9px 0; }
.studio-summary__total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.studio-summary__total span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 240, 233, .55); }
.studio-summary__total strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.studio-summary__save {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; color: var(--lime); margin: 2px 0 12px;
}
.studio-panel--summary .btn--primary {
    --btn-bg: var(--lime); --btn-fg: var(--ink); margin-top: 4px;
}
.studio-panel--summary .btn--primary:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
.studio-panel--summary .tiny { color: rgba(243, 240, 233, .48); margin: 10px 0 0; line-height: 1.5; }
.studio-panel--summary .btn--ghost { --btn-fg: var(--paper); border-color: rgba(243, 240, 233, .28); margin-top: 8px; }
.studio-panel--summary .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; border-color: rgba(243, 240, 233, .5); }

/* Мобильная панель покупки */
.studio__mobile-bar {
    position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
    display: none; align-items: center; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 240, 233, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.studio__mobile-price { line-height: 1.1; }
.studio__mobile-price span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.studio__mobile-price strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -.03em; }
.studio__mobile-bar .btn { flex: 1; }

/* --- Тосты и модалки ----------------------------------------------------- */
.toast-stack {
    position: fixed; z-index: 120; right: 18px; bottom: 18px;
    display: grid; gap: 8px; max-width: 340px;
}
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--ink); color: var(--paper);
    box-shadow: var(--shadow-md); font-size: 12.5px; line-height: 1.45;
    animation: toastIn .25s ease both;
}
.toast .icon { color: var(--lime); margin-top: 1px; }
.toast--error { background: #7E1D0E; }
.toast--error .icon { color: #FFC3B2; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(20, 20, 22, .55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-md);
    transform: translateY(12px); transition: transform .22s;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { font-size: 1.2rem; margin: 0; }
.modal__head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.modal__close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { background: var(--paper-2); }

/* Список слоёв */
.layer-list { display: grid; gap: 4px; }
.layer-row {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 7px;
    border: 1px solid transparent; background: transparent;
    font-size: 11.5px; color: var(--ink-2); cursor: pointer; text-align: left;
    transition: background .15s, border-color .15s;
}
.layer-row:hover { background: var(--white); border-color: var(--line); }
.layer-row.is-active { background: var(--white); border-color: var(--ink); }
.layer-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-row__type { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.layer-row__btn {
    width: 22px; height: 22px; border: 0; border-radius: 5px; background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.layer-row__btn:hover { background: var(--paper-2); color: var(--ink); }
.layer-row__btn.is-active { color: var(--cobalt); }
.layer-row .icon { width: 13px; height: 13px; }
.layer-empty { font-size: 11px; color: var(--muted); padding: 8px 0; }

/* Размерная сетка в конструкторе */
.size-chart {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}
.size-chart summary {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 12px; cursor: pointer;
    font-size: 11.5px; font-weight: 600; color: var(--ink-2);
    list-style: none;
}
.size-chart summary::-webkit-details-marker { display: none; }
.size-chart summary .icon { width: 14px; height: 14px; color: var(--cobalt); }
.size-chart[open] summary { border-bottom: 1px solid var(--line); }
.size-chart img {
    display: block; width: 100%; height: auto;
    background: var(--ink);
}
.size-chart p { padding: 10px 12px; margin: 0; }

/* --- Адаптив конструктора ------------------------------------------------ */
@media (max-width: 1320px) {
    .studio { grid-template-columns: 312px minmax(0, 1fr) 306px; }
    .tool-panels { padding: 15px; }
    .studio__options { padding: 14px; }
}

@media (max-width: 1150px) {
    .studio {
        grid-template-columns: 322px minmax(0, 1fr);
        grid-template-areas: "tools stage" "options options";
        min-height: 0;
    }
    .studio__tools { grid-area: tools; }
    .studio__stage-wrap { grid-area: stage; }
    .studio__options {
        grid-area: options;
        position: static; max-height: none; overflow: visible;
        border-left: 0; border-top: 1px solid var(--line);
        flex-direction: row; flex-wrap: wrap; align-items: flex-start;
        padding: 16px clamp(12px, 2vw, 24px) 26px;
    }
    .studio__options > * { flex: 1 1 232px; min-width: 0; }
    .studio__options > .studio-panel--summary { flex: 1 1 100%; }
    .studio-panel--summary .studio-summary__total strong { font-size: 24px; }
}

@media (max-width: 880px) {
    .studio {
        grid-template-columns: 1fr;
        grid-template-areas: "stage" "tools" "options";
        padding-bottom: 78px;
    }
    .studio__stage-wrap { padding: 12px 12px 0; }
    .studio__tools {
        position: static; max-height: none; min-height: 0;
        border-right: 0; border-top: 1px solid var(--line);
    }
    .tool-panels { overflow: visible; padding: 16px; }
    .tool-tabs { position: sticky; top: var(--header-h); z-index: 6; }
    .stage {
        min-height: 0; padding: 20px 12px;
        border-radius: var(--radius); background-size: 14px 14px;
    }
    .stage__inner { width: min(100%, 400px); }
    .stage__hint { display: none; }
    .print-zone__label { display: none; }
    .layer-bar { bottom: -40px; }
    .page-designer .studio__mobile-bar { display: flex; }
    .studio-panel--summary .btn--primary { display: none; }
    .studio-panel--summary .tiny { margin-top: 6px; }
    .studio__options { padding: 16px 12px 22px; }
    .toast-stack { left: 12px; right: 12px; bottom: 88px; max-width: none; }
}

@media (max-width: 560px) {
    .studio__options > * { flex: 1 1 100%; }
    .stage-bar { gap: 6px; }
    .stage-bar__btn { width: 30px; height: 30px; }
    .side-toggle button { padding: 6px 11px; font-size: 11px; }
    .size-grid { grid-template-columns: repeat(5, 1fr); }
    .style-grid { grid-template-columns: repeat(2, 1fr); }
    .stage__zoom { display: none; }
    .tool-panel h2 { font-size: .95rem; }
    .modal__dialog { padding: 18px; border-radius: var(--radius); }
    .ai-overlay { padding: 12px; }
    .ai-overlay__card { padding: 24px 18px 20px; border-radius: 20px; }
    .ai-overlay__orb { width: 78px; height: 78px; margin-bottom: 14px; }
    .ai-overlay__orb b { inset: 23px; }
    .ai-overlay__steps { gap: 5px 8px; font-size: 9px; }
}


/* --- Информационные страницы: доставка, как это работает, контакты ------- */
.delivery-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: clamp(22px, 3.4vw, 38px);
    background: var(--ink); color: var(--paper);
    border-radius: var(--radius-xl);
}
.delivery-banner h2 { color: var(--paper); font-size: clamp(1.25rem, 2.4vw, 1.9rem); margin: 14px 0 8px; }
.delivery-banner p { color: rgba(243, 240, 233, .7); max-width: 560px; margin: 0; font-size: 14px; }
.delivery-banner .btn--primary { --btn-bg: var(--lime); --btn-fg: var(--ink); border-color: var(--lime); flex: 0 0 auto; }
.delivery-banner .btn--primary:hover { --btn-bg: var(--paper); }

.table-wrap {
    overflow-x: auto; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.tariff-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.tariff-table th {
    text-align: left; padding: 12px 16px; background: var(--paper);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; font-weight: 500; color: var(--muted);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tariff-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tariff-table tbody tr:last-child td { border-bottom: 0; }
.tariff-table tbody tr:hover td { background: rgba(22, 22, 26, .02); }
.tariff-table td.is-free { color: var(--success); font-weight: 600; }

.pay-list { display: grid; gap: 10px; }
.pay-card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.pay-card__icon {
    width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
    display: grid; place-items: center; background: var(--paper); color: var(--cobalt);
}
.pay-card__icon .icon { width: 19px; height: 19px; }
.pay-card h3 { font-size: 13.5px; margin: 0 0 4px; }
.pay-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.check-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check-list .icon { width: 18px; height: 18px; color: var(--cobalt); flex: 0 0 auto; margin-top: 1px; }

.compare { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare__row {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px;
    padding: 13px 18px; font-size: 12.5px; border-top: 1px solid var(--line);
}
.compare__row:first-child { border-top: 0; }
.compare__row > span:first-child { color: var(--muted); }
.compare__row > span:last-child { color: var(--muted); }
.compare__row--head {
    background: var(--paper); font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.compare__row--head > span:nth-child(2) { color: var(--cobalt); font-weight: 600; }

.care-list { display: grid; gap: 10px; }
.care-item {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.care-item > span {
    min-width: 48px; height: 34px; padding: 0 8px; border-radius: 8px;
    display: grid; place-items: center; background: var(--paper);
    font-family: var(--font-mono); font-size: 11px; color: var(--ink);
}
.care-item .icon { width: 18px; height: 18px; color: var(--cobalt); }
.care-item p { margin: 0; font-size: 12.5px; color: var(--ink-2); }


.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card {
    display: grid; align-content: start; gap: 6px;
    padding: 20px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    color: var(--ink); text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.contact-card__icon {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px;
    display: grid; place-items: center; background: var(--lime); color: var(--ink);
}
.contact-card__icon .icon { width: 20px; height: 20px; }
.contact-card h2 { font-size: 12px; margin: 0; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.contact-card p.tiny { margin: 0; }

.panel {
    padding: clamp(20px, 3vw, 30px);
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}
.panel h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 6px 0 18px; }
.panel > h2:first-child { margin-top: 0; }
.panel--soft { background: var(--paper); border-color: var(--line); }
.panel .alert { margin-bottom: 16px; }
.panel .studio-note { margin-bottom: 16px; }

.studio-note { display: grid; gap: 8px; }
.studio-note__row { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.studio-note__row .icon { width: 16px; height: 16px; color: var(--cobalt); flex: 0 0 auto; margin-top: 1px; }

.rating-summary {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rating-summary__value { font-family: var(--font-mono); font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.rating-summary p { margin: 4px 0 0; }

.rating-input { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-input label { cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; font-size: 12.5px; font-weight: 600;
    border: 1px solid var(--line-strong); border-radius: 100px;
    background: var(--white); transition: background .15s ease, color .15s ease;
}
.rating-input span .icon { width: 14px; height: 14px; fill: currentColor; color: var(--cobalt); }
.rating-input input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rating-input input:checked + span .icon { color: var(--lime); }
.rating-input input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

@media (max-width: 991px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .delivery-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
    .contact-grid { grid-template-columns: 1fr; }
    .compare__row { grid-template-columns: 1.2fr 1fr 1fr; font-size: 11.5px; padding: 11px 14px; }
    .tariff-table { font-size: 12.5px; }
    .rating-summary { width: 100%; justify-content: space-between; }
}

