/* ============================================================
   ui.css — компоненты. Кнопки, карточки, товары, формы, слайдер.
   ============================================================ */

/* ---- кнопки ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding-inline: var(--s-6);
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: .01em;
    text-align: center;
    white-space: nowrap;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
    background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

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

.btn:active {
    transform: translateY(0);
}

.btn--sm {
    height: 46px;
    padding-inline: var(--s-5);
    font-size: var(--fs-xs);
}

.btn--lg {
    height: 62px;
    padding-inline: var(--s-7);
}

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

.btn--primary {
    background: var(--magenta);
    color: var(--white);
    box-shadow: var(--shadow-magenta);
}

.btn--primary:hover {
    background: var(--magenta-dark);
    box-shadow: 0 24px 50px -18px rgba(255, 0, 120, .8);
}

.btn--ghost {
    border-color: currentColor;
    color: var(--graphite);
}

.btn--ghost:hover {
    background: var(--graphite);
    color: var(--white);
    border-color: var(--graphite);
}

.btn--light {
    background: var(--white);
    color: var(--graphite);
}

.btn--light:hover {
    box-shadow: var(--shadow-md);
}

.btn--on-magenta {
    background: var(--white);
    color: var(--magenta);
}

.btn--on-magenta:hover {
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, .45);
    color: var(--white);
}

.btn--outline-light:hover {
    background: var(--white);
    color: var(--graphite);
    border-color: var(--white);
}

/* круглая иконочная кнопка */
.icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--graphite);
    display: grid;
    place-items: center;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.icon-btn:hover {
    background: var(--magenta);
    border-color: var(--magenta);
    color: var(--white);
}

.icon-btn[disabled] {
    opacity: .35;
    pointer-events: none;
}

/* ---- карточка-факт (преимущества) ------------------------ */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-5) var(--s-5) var(--s-6);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-fast);
}

.card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 26px 50px -26px rgba(255, 0, 120, .45);
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--magenta-wash);
    color: var(--magenta);
    margin-bottom: var(--s-4);
}

.card__icon svg {
    width: 22px;
    height: 22px;
}

.card h4 {
    margin: 0 0 var(--s-2);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.card p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--gray);
    line-height: 1.55;
}

/* ---- рамка под фото -------------------------------------- */
.frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--mist);
    aspect-ratio: 4 / 5;
}

.frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
    pointer-events: none;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame--wide {
    aspect-ratio: 16 / 10;
}

.frame--tall {
    aspect-ratio: 3 / 4;
}

/* плашка с цифрой, наезжающая на фото */
.fact {
    position: absolute;
    right: -22px;
    bottom: 34px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--r-md);
    padding: 22px 26px;
    box-shadow: var(--shadow-lg);
    min-width: 190px;
}

.fact b {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1;
}

.fact small {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* ---- герой: светильник и спектр -------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    padding: 140px 0 90px;
    text-align: center;
}

.hero::before { /* пятно света */
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: -28vh;
    width: 120vw;
    height: 82vh;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(255, 0, 120, .42) 0%, rgba(123, 61, 240, .20) 42%, transparent 72%);
    filter: blur(10px);
}

.hero::after { /* сетка-стеллаж */
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
}

.hero__in {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* фоновая фотография героя: задаётся инлайново через --photo */
.hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--photo);
    background-size: cover;
    background-position: center;
}

.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 18, 24, .55) 0%, rgba(16, 18, 24, .80) 55%, var(--ink) 100%);
}

.hero h1 {
    text-shadow: 0 0 80px rgba(255, 0, 120, .35);
}

.hero h1 .is-accent {
    display: block;
    color: var(--magenta);
}

.hero__tag {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 2.6vw, 30px);
    color: rgba(255, 255, 255, .66);
    margin: var(--s-5) 0 0;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--s-7);
}

.lamp {
    width: min(560px, 80%);
    margin: 0 auto var(--s-7);
    position: relative;
}

.lamp__bar {
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--spectrum);
    box-shadow: 0 0 34px 6px rgba(255, 0, 120, .55);
    animation: lamp-on 1.5s var(--ease) both;
}

.lamp__beam {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 120%;
    height: 280px;
    transform: translateX(-50%);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 0, 120, .28), transparent 78%);
    clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
    filter: blur(14px);
    animation: beam-on 1.9s var(--ease) both;
}

@keyframes lamp-on {
    0% {
        opacity: 0;
        transform: scaleX(.2);
        box-shadow: none;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes beam-on {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.spectrum {
    max-width: 560px;
    margin: var(--s-8) auto 0;
}

.spectrum__bar {
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--spectrum);
    opacity: .85;
}

.spectrum__marks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .42);
}

/* ---- счётчики -------------------------------------------- */
.stats {
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: auto 0 -60% 0;
    height: 120%;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(80, 92, 253, .30), transparent 70%);
}

.stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 8px var(--s-5);
    border-left: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.stat:first-child {
    border-left: 0;
}

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1;
    letter-spacing: -.03em;
}

.stat > span {
    display: block;
    margin-top: var(--s-3);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

/* ---- карточки направлений -------------------------------- */
.dir {
    position: relative;
    border-radius: var(--r-lg);
    padding: 40px 34px 36px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

.dir:hover {
    transform: translateY(-8px);
}

.dir__glow {
    position: absolute;
    left: 50%;
    top: -40%;
    width: 150%;
    height: 90%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-slow) var(--ease);
}

.dir:hover .dir__glow {
    opacity: 1;
}

.dir__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    opacity: .6;
}

.dir h3 {
    margin: var(--s-4) 0 var(--s-4);
    font-size: 26px;
}

.dir hr {
    margin: 0 0 var(--s-5);
    opacity: .28;
    background: currentColor;
}

.dir ul {
    margin: 0 0 auto;
    font-size: 15.5px;
    line-height: 2;
}

.dir .btn {
    margin-top: var(--s-6);
    align-self: flex-start;
}

.dir--fito {
    background: linear-gradient(160deg, #ff0078, #e0006a 60%, #c9195f);
    color: var(--white);
    box-shadow: 0 26px 60px -30px rgba(255, 0, 120, .8);
}

.dir--fito .dir__glow {
    background: radial-gradient(ellipse 40% 60% at 50% 60%, rgba(255, 255, 255, .45), transparent 70%);
}

.dir--art {
    background: var(--graphite);
    color: var(--white);
}

.dir--art .dir__glow {
    background: radial-gradient(ellipse 40% 60% at 50% 60%, rgba(80, 92, 253, .55), transparent 70%);
}

.dir--corp {
    background: var(--white);
    color: var(--graphite);
    border: 3px solid var(--line);
}

.dir--corp .dir__glow {
    background: radial-gradient(ellipse 40% 60% at 50% 60%, rgba(255, 0, 120, .16), transparent 70%);
}

.dir--corp:hover {
    box-shadow: 0 26px 55px -28px rgba(0, 0, 0, .3);
}

/* ---- карточка товара (каталог фито / корп) ---------------- */
.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-fast);
}

.product:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 28px 56px -28px rgba(255, 0, 120, .4);
}

.product__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(155deg, #fff 0%, var(--mist) 100%);
}

.product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.product:hover .product__media img {
    transform: scale(1.05);
}

/* спектральная полоса «зажигается» под фотографией */
.product__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--spectrum);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow) var(--ease);
}

.product:hover .product__media::after {
    transform: scaleX(1);
}

.product__body {
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product__name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--graphite);
}

.product__name a {
    transition: color var(--t-fast);
}

.product__name a:hover {
    color: var(--magenta);
}

.product__foot .btn {
    flex: none;
}

/* короткие технические факты — то, по чему реально выбирают лампу */
.product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray);
}

.product__meta span {
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--mist);
    white-space: nowrap;
}

.product__foot {
    margin-top: auto;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
}

.product__price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.product__price i {
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    margin-left: 4px;
}

.product__price s {
    display: block;
    color: var(--gray-light);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
}

.product__go {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--magenta);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.product__go svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-mid) var(--ease);
}

.product:hover .product__go svg {
    transform: translateX(4px);
}

/* бейджи «хит», «новинка», «акция» */
.badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: rgba(16, 18, 24, .72);
    color: var(--white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.badge--sale {
    background: var(--magenta);
}

.badge--new {
    background: rgba(80, 92, 253, .88);
}

.badge--best {
    background: var(--ink);
}

/* ---- таблица характеристик ------------------------------- */
.specs {
    width: 100%;
    border-collapse: collapse;
}

.specs tr {
    border-bottom: 1px solid var(--line);
}

.specs tr:last-child {
    border-bottom: 0;
}

.specs th, .specs td {
    padding: 14px 0;
    text-align: left;
    font-size: var(--fs-sm);
    vertical-align: top;
}

.specs th {
    color: var(--gray);
    font-weight: 500;
    width: 45%;
}

.specs td {
    font-weight: 700;
}

/* ---- хлебные крошки -------------------------------------- */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray);
}

.crumbs a:hover {
    color: var(--magenta);
}

.crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    opacity: .5;
}

.crumbs li {
    display: flex;
    align-items: center;
}

/* ---- слайдер отзывов ------------------------------------- */
.rev-box {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: clamp(32px, 5vw, 64px);
    position: relative;
    overflow: hidden;
}

.rev-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--spectrum);
}

.rev-slide {
    display: none;
    grid-template-columns: auto 1fr;
    gap: var(--s-7);
    align-items: center;
}

.rev-slide.is-on {
    display: grid;
    animation: fade-up .5s var(--ease) both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.rev-ava {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 34px;
    box-shadow: 0 0 0 8px var(--magenta-wash);
}

.rev-text {
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.6;
    font-weight: 500;
    margin: 0 0 var(--s-5);
}

.rev-name {
    font-weight: 800;
    letter-spacing: -.01em;
}

.rev-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: var(--s-6);
}

.rev-count {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--gray);
    margin-left: 6px;
}

.rev-track {
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.rev-fill {
    height: 100%;
    background: var(--magenta);
    border-radius: 2px;
    transition: width var(--t-mid) var(--ease);
}

/* ---- призыв к действию ----------------------------------- */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -50%;
    width: 80vw;
    height: 120%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 0, 120, .28), transparent 70%);
}

.cta__in {
    position: relative;
    z-index: 1;
}

/* ---- формы ----------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > label {
    font-size: var(--fs-xs);
    color: var(--gray);
    padding-left: 2px;
}

.input, .textarea,
.form-wrap input[type="text"], .form-wrap input[type="email"], .form-wrap textarea {
    width: 100%;
    padding: 15px 22px;
    background: var(--white);
    color: var(--graphite);
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.textarea, .form-wrap textarea {
    border-radius: var(--r-md);
    min-height: 130px;
    resize: vertical;
}

.input::placeholder, .textarea::placeholder,
.form-wrap input::placeholder, .form-wrap textarea::placeholder {
    color: var(--gray-light);
}

.input:focus, .textarea:focus,
.form-wrap input:focus, .form-wrap textarea:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 0 4px var(--magenta-wash);
}

/* всплывающее уведомление после отправки формы */
.snackbars {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 300;
    max-width: min(540px, calc(100% - 32px));
    padding: 14px 22px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--white);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-lg);
}

.snackbars:empty {
    display: none;
}

/* ---- галерея проектов (арт / корпоратив) ----------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-4);
}

.gallery__item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--mist);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.gallery__item:hover img {
    transform: scale(1.06);
}

/* фильтр по категориям */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
}

.filter {
    padding: 10px 20px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--line);
    background: transparent;
    font-size: var(--fs-xs);
    font-weight: 700;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.filter:hover {
    border-color: var(--graphite);
}

.filter.is-active {
    background: var(--magenta);
    border-color: var(--magenta);
    color: var(--white);
}

/* ---- адаптив компонентов --------------------------------- */
@media (max-width: 980px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--s-6);
    }

    .stat {
        border-left: 0;
    }

    .fact {
        right: 16px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 70px;
    }
}

@media (max-width: 640px) {
    .btn {
        height: 52px;
    }

    .rev-slide.is-on {
        grid-template-columns: 1fr;
        gap: var(--s-5);
    }

    .dir {
        min-height: 0;
        padding: 32px 26px;
    }

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

/* ============================================================
   Компоненты внутренних страниц
   ============================================================ */

/* ---- герой внутренней страницы --------------------------- */
.page-hero {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: calc(124px + var(--s-8)) 0 var(--s-8);
    overflow: hidden;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    padding: 140px 0 90px;
    text-align: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: -50%;
    width: 100vw;
    height: 130%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse 45% 50% at 50% 60%, rgba(255, 0, 120, .32), transparent 70%);
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--spectrum);
    opacity: .9;
}

.page-hero__in {
    position: relative;
    z-index: 2;
}

/* фоновая фотография внутренней страницы; путь задаётся инлайново через --photo */
.page-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--photo);
    background-size: cover;
    background-position: center;
}

.page-hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 18, 24, .62) 0%, rgba(16, 18, 24, .82) 60%, rgba(16, 18, 24, .94) 100%);
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 68px);
}

.page-hero__tag {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, .66);
    font-size: clamp(17px, 2vw, 22px);
    margin: var(--s-4) 0 0;
}

.page-hero .crumbs {
    justify-content: center;
    color: rgba(255, 255, 255, .45);
    margin-bottom: var(--s-5);
}

.page-hero .crumbs a:hover {
    color: var(--white);
}

@media (max-width: 980px) {
    .page-hero {
        padding-top: calc(72px + var(--s-7));
    }
}

/* заголовок секции с чертой снизу */
.section-head {
    margin-bottom: var(--s-7);
}

.section-head h2, .section-head h3 {
    position: relative;
    padding-bottom: var(--s-4);
}

.section-head h2::after, .section-head h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: var(--magenta);
    border-radius: 2px;
}

.section-head--center {
    text-align: center;
}

.section-head--center h2::after, .section-head--center h3::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---- инфо-блок с иконкой --------------------------------- */
.info-box {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-md);
    padding: var(--s-6) var(--s-5);
    height: 100%;
}

.info-box__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--magenta-wash);
    color: var(--magenta);
    margin-bottom: var(--s-4);
}

.info-box__icon svg {
    width: 24px;
    height: 24px;
}

.info-box h4 {
    margin: 0 0 var(--s-3);
    font-size: 17px;
}

.info-box p, .info-box ul {
    margin: 0;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}

.info-box ul li {
    padding-left: 18px;
    position: relative;
}

.info-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--magenta);
}

/* ---- таблица данных с поиском ---------------------------- */
.table-tools {
    display: flex;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.table-tools .input {
    max-width: 460px;
}

.data-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    max-height: 560px;
    overflow-y: auto;
    background: var(--white);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--ink);
    color: var(--white);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 14px 20px;
}

.data-table td {
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: var(--magenta-wash);
}

.data-table td:last-child {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    white-space: nowrap;
    color: var(--magenta);
}

.table-empty {
    padding: var(--s-6);
    text-align: center;
    color: var(--gray);
}

/* ---- коллаж-галерея -------------------------------------- */
.collage {
    column-count: 3;
    column-gap: var(--s-4);
}

.collage img {
    width: 100%;
    margin-bottom: var(--s-4);
    border-radius: var(--r-md);
    break-inside: avoid;
    cursor: zoom-in;
    transition: transform var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}

.collage img:hover {
    transform: scale(1.015);
    filter: brightness(.85);
}

@media (max-width: 980px) {
    .collage {
        column-count: 2;
    }
}

@media (max-width: 560px) {
    .collage {
        column-count: 1;
    }
}

/* ---- лайтбокс -------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s-5);
    background: rgba(10, 11, 15, .93);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox.is-open {
    display: flex;
    animation: fade-up .25s var(--ease) both;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: var(--white);
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.lightbox__close:hover {
    background: var(--magenta);
    border-color: var(--magenta);
}

/* ============================================================
   Страница товара
   ============================================================ */
.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.pdp__stage {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: var(--s-5);
    background: linear-gradient(155deg, #fff 0%, var(--mist) 100%);
    border: 1px solid var(--line);
}

.pdp__stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--spectrum);
    opacity: .85;
}

.pdp__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.thumbs {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-3);
    flex-wrap: wrap;
}

.thumb {
    width: 92px;
    height: 92px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--mist);
    padding: 0;
    flex: none;
    transition: border-color var(--t-fast);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover {
    border-color: var(--line);
}

.thumb.is-active {
    border-color: var(--magenta);
}

.pdp__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);
}

.pdp__head h1 {
    font-size: clamp(26px, 3.2vw, 40px);
}

.pdp__sku {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: var(--s-3);
}

.pdp__price {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--magenta);
    margin: var(--s-5) 0 var(--s-5);
}

.pdp__price s {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--gray-light);
}

.facts {
    display: grid;
    gap: var(--s-2);
}

.fact-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
}

.fact-row svg {
    width: 18px;
    height: 18px;
    color: var(--magenta);
    flex: none;
}

.fact-row b {
    margin-left: auto;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-5);
}

.tag {
    padding: 7px 16px;
    border-radius: var(--r-pill);
    background: var(--magenta-wash);
    color: var(--magenta);
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* кнопка WhatsApp */
.btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .8);
}

.btn--wa:hover {
    background: #1eb856;
}

.btn--wa svg {
    width: 20px;
    height: 20px;
}

/* ---- вкладки --------------------------------------------- */
.tabs {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: var(--s-1);
    overflow-x: auto;
}

.tab {
    padding: 16px 22px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--gray);
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.tab:hover {
    color: var(--graphite);
}

.tab.is-active {
    color: var(--magenta);
    border-bottom-color: var(--magenta);
}

.tab-panel {
    display: none;
    padding-top: var(--s-6);
}

.tab-panel.is-active {
    display: block;
    animation: fade-up .35s var(--ease) both;
}

.tab-panel :is(h2, h3, h4) {
    margin-block: var(--s-5) var(--s-3);
}

.tab-panel img {
    border-radius: var(--r-md);
}

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

    .pdp__head {
        flex-direction: column;
    }
}

/* ---- шкала-показатель (страница «О нас») ------------------ */
.meter + .meter {
    margin-top: var(--s-5);
}

.meter__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.meter__name {
    font-weight: 700;
    font-size: var(--fs-sm);
}

.meter__val {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--magenta);
}

.meter__bar {
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--line);
    overflow: hidden;
}

.meter__fill {
    height: 100%;
    border-radius: inherit;
    background: var(--spectrum);
    width: 0;
    transition: width 1.2s var(--ease);
}

.is-in .meter__fill {
    width: var(--to);
}

/* ---- контактная карточка --------------------------------- */
.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-6) var(--s-5);
    height: 100%;
    transition: box-shadow var(--t-mid) var(--ease), border-color var(--t-fast);
}

.contact-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.contact-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--magenta-wash);
    color: var(--magenta);
    margin-bottom: var(--s-4);
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card h4 {
    margin: 0 0 var(--s-3);
    font-size: 16px;
}

.contact-card a {
    display: block;
    font-size: var(--fs-sm);
    line-height: 2;
}

.contact-card a:hover {
    color: var(--magenta);
}

/* карта */
.map-frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 400px;
    background: var(--mist);
}

.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-top: var(--s-4);
    font-size: var(--fs-sm);
}

.map-links a {
    color: var(--magenta);
}

.map-links a:hover {
    text-decoration: underline;
}

/* ---- страница 404 ---------------------------------------- */
.err {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.err::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90vw;
    height: 90vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 0, 120, .3), transparent 70%);
}

.err__in {
    position: relative;
    z-index: 1;
    padding: var(--s-7) var(--shell-pad);
}

.err__code {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.05em;
    font-size: clamp(90px, 22vw, 240px);
    line-height: .85;
    background: var(--spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ============================================================
   Этапы работы
   ============================================================ */
.steps {
    counter-reset: step;
    display: grid;
    gap: var(--s-4);
}

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

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

.step {
    counter-increment: step;
    position: relative;
    padding: var(--s-6) var(--s-5) var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--ease);
}

.step:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--magenta);
    display: block;
    margin-bottom: var(--s-4);
}

/* соединительная линия между шагами */
.step::after {
    content: "";
    position: absolute;
    top: calc(var(--s-6) + 7px);
    right: -1px;
    width: 1px;
    height: 1px;
}

.steps--dark .step {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
}

.steps--dark .step:hover {
    border-color: rgba(255, 255, 255, .28);
    box-shadow: none;
}

.step h4 {
    margin: 0 0 var(--s-3);
    font-size: 17px;
}

.step p {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--gray);
}

.steps--dark .step p {
    color: rgba(255, 255, 255, .62);
}

/* ============================================================
   Полоса доверия
   ============================================================ */
.trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
}

.trust__item {
    display: flex;
    gap: var(--s-4);
    align-items: flex-start;
}

.trust__icon {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--magenta-wash);
    color: var(--magenta);
}

.trust__icon svg {
    width: 22px;
    height: 22px;
}

.trust h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.trust p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--gray);
    line-height: 1.55;
}

/* ============================================================
   Вопрос-ответ (на <details>, без JS)
   ============================================================ */
.faq {
    border-top: 1px solid var(--line);
}

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

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 48px 22px 0;
    position: relative;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
    transition: color var(--t-fast);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--magenta);
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--magenta);
    border-bottom: 2px solid var(--magenta);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--t-mid) var(--ease);
}

.faq details[open] summary::after {
    transform: translateY(-20%) rotate(-135deg);
}

.faq__body {
    padding: 0 48px 26px 0;
    color: var(--gray);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.faq details[open] .faq__body {
    animation: fade-up .3s var(--ease) both;
}

/* ============================================================
   Калькулятор мощности
   ============================================================ */
.calc {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(24px, 4vw, 56px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 4vw, 48px);
}

.calc__field {
    margin-bottom: var(--s-5);
}

.calc__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.calc__pair {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.calc__pair .input {
    max-width: 130px;
}

.calc__pair span {
    color: var(--gray);
    font-size: var(--fs-sm);
}

.calc__choices {
    display: grid;
    gap: 8px;
}

.calc__choice {
    position: relative;
}

.calc__choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc__choice span {
    display: block;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: border-color var(--t-fast), background var(--t-fast);
}

.calc__choice span b {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.calc__choice span i {
    font-style: normal;
    color: var(--gray);
    font-size: var(--fs-xs);
}

.calc__choice input:checked + span {
    border-color: var(--magenta);
    background: var(--magenta-wash);
}

.calc__choice input:focus-visible + span {
    outline: 2px solid var(--magenta);
    outline-offset: 2px;
}

.calc__out {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--r-md);
    padding: var(--s-6) var(--s-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc__out::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--spectrum);
}

.calc__big {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.calc__big i {
    font-style: normal;
    font-size: 20px;
    color: rgba(255, 255, 255, .5);
    margin-left: 6px;
}

.calc__cap {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: var(--s-3);
}

.calc__rows {
    margin-top: var(--s-5);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.calc__row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: var(--fs-sm);
}

.calc__row:last-child {
    border-bottom: 0;
}

.calc__row b {
    font-weight: 800;
}

.calc__note {
    margin-top: var(--s-4);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .42);
    line-height: 1.6;
}

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

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

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

@media (max-width: 640px) {
    .steps--4, .steps--3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Корзина и оформление заказа
   ============================================================ */

/* кнопка корзины в шапке */
.cart-btn {
    position: relative;
}

.cart-btn__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: var(--magenta);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px var(--ink);
}

.cart-btn__count.is-empty {
    display: none;
}

/* счётчик количества */
.qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
}

.qty button {
    width: 40px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--graphite);
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: color var(--t-fast);
}

.qty button:hover {
    color: var(--magenta);
}

.qty button:disabled {
    opacity: .3;
    cursor: default;
}

.qty input {
    width: 44px;
    height: 44px;
    border: 0;
    text-align: center;
    background: none;
    font-weight: 700;
    -moz-appearance: textfield;
}

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

/* строка товара в корзине */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.cart-row {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: var(--s-5);
    align-items: center;
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
}

.cart-row:first-child {
    border-top: 1px solid var(--line);
}

.cart-row__img {
    width: 96px;
    height: 96px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: linear-gradient(155deg, #fff, var(--mist));
    border: 1px solid var(--line);
}

.cart-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row__name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.01em;
}

.cart-row__name:hover {
    color: var(--magenta);
}

.cart-row__sku {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 6px;
}

.cart-row__price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-row__drop {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: none;
    color: var(--gray-light);
    display: grid;
    place-items: center;
    transition: color var(--t-fast), background var(--t-fast);
}

.cart-row__drop:hover {
    background: var(--magenta-wash);
    color: var(--magenta);
}

.cart-row.is-going {
    opacity: .35;
    pointer-events: none;
}

/* итоги */
.summary {
    background: var(--mist);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    position: sticky;
    top: 110px;
}

.summary h3 {
    font-size: 20px;
    margin-bottom: var(--s-5);
}

.summary__row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 11px 0;
    font-size: var(--fs-sm);
    color: var(--gray);
}

.summary__row b {
    color: var(--graphite);
    font-weight: 700;
}

.summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-3);
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.summary__total b {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.summary .btn {
    margin-top: var(--s-5);
}

.summary__note {
    margin-top: var(--s-4);
    font-size: var(--fs-xs);
    color: var(--gray);
    line-height: 1.6;
}

/* пустая корзина */
.empty-state {
    text-align: center;
    padding: var(--s-9) 0;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--line);
    margin: 0 auto var(--s-5);
}

/* оформление заказа */
.checkout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}

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

.field__error {
    color: var(--danger);
    font-size: var(--fs-xs);
}

.input.has-error, .textarea.has-error {
    border-color: var(--danger);
}

/* выбор способа доставки */
.radio-cards {
    display: grid;
    gap: 10px;
}

.radio-cards label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    transition: border-color var(--t-fast), background var(--t-fast);
}

.radio-cards input {
    accent-color: var(--magenta);
    width: 18px;
    height: 18px;
}

.radio-cards label:has(input:checked) {
    border-color: var(--magenta);
    background: var(--magenta-wash);
}

/* итоговая страница */
.done {
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
}

.done__mark {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto var(--s-6);
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--magenta);
    box-shadow: var(--shadow-magenta);
}

.done__mark svg {
    width: 40px;
    height: 40px;
}

.done__number {
    display: inline-block;
    margin-top: var(--s-5);
    padding: 12px 24px;
    border-radius: var(--r-pill);
    background: var(--mist);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    letter-spacing: .12em;
}

/* ---- всплывающие уведомления ------------------------------ */
.toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-radius: var(--r-md);
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: var(--fs-sm);
    line-height: 1.5;
    animation: toast-in .35s var(--ease) both;
}

.toast.is-out {
    animation: toast-out .3s var(--ease) forwards;
}

.toast__ico {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--magenta);
}

.toast--success .toast__ico {
    color: #35d07f;
}

.toast--error .toast__ico {
    color: #ff6b6b;
}

.toast__close {
    margin-left: auto;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .45);
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.toast__close:hover {
    color: var(--white);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

@media (max-width: 900px) {
    .cart-layout, .checkout {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-row {
        grid-template-columns: 72px 1fr auto;
        row-gap: var(--s-3);
    }

    .cart-row__img {
        width: 72px;
        height: 72px;
    }

    .cart-row__qty {
        grid-column: 2;
    }

    .cart-row__price {
        grid-column: 3;
    }

    .cart-row__drop {
        grid-row: 1;
        grid-column: 3;
        align-self: start;
    }

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

    .toasts {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* заглушка, когда фотография товара не загружена */
.no-photo {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: grid;
    place-items: center;
    color: var(--line);
    background: linear-gradient(155deg, #fff, var(--mist));
}

.no-photo svg {
    width: 38%;
    max-width: 64px;
    height: auto;
}

/* ловушка для ботов: не display:none — часть ботов такие поля пропускает */
.hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* форма поиска на отдельной странице */
.search-form {
    display: flex;
    gap: var(--s-3);
    max-width: 620px;
}

.search-form .input {
    flex: 1;
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: var(--s-3);
    }

    .search-form .input {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    .search-form .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ловушка для ботов: поле не видно и не попадает в табуляцию */
.trap-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.trap-field {
    opacity: 0;
}

/* ---- карточка статуса заказа ------------------------------ */
.order-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-6);
}

.order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--s-4);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: none;
    margin-top: 6px;
    background: var(--gray-light);
}

.status-dot--new {
    background: var(--magenta);
    box-shadow: 0 0 0 5px var(--magenta-wash);
}

.status-dot--confirmed {
    background: var(--violet);
    box-shadow: 0 0 0 5px rgba(80, 92, 253, .14);
}

.status-dot--shipped {
    background: #f0a020;
    box-shadow: 0 0 0 5px rgba(240, 160, 32, .14);
}

.status-dot--done {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(34, 160, 107, .14);
}

.status-dot--canceled {
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(233, 66, 66, .14);
}

.track {
    display: flex;
    gap: var(--s-2);
    margin-top: var(--s-6);
    flex-wrap: wrap;
}

.track__step {
    flex: 1 1 120px;
    font-size: var(--fs-xs);
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track__step span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
}

.track__step.is-now {
    color: var(--magenta);
    font-weight: 700;
}

.track__step.is-now span {
    background: var(--spectrum);
}

/* наличие товара */
.badge--order {
    background: rgba(240, 160, 32, .9);
}

.stock-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: var(--s-5);
    padding: 11px 16px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    background: rgba(240, 160, 32, .13);
    color: #a9700d;
}

.stock-line--yes {
    background: rgba(34, 160, 107, .12);
    color: #1a7d53;
}

.stock-line svg {
    flex: none;
}
