:root {
    --bg: #eef6ff;
    --bg2: #f9fbff;
    --text: #14213d;
    --muted: #65758b;
    --white: #ffffff;
    --blue: #0878ff;
    --blue2: #04d2ff;
    --red: #ff3d2e;
    --orange: #ff8a00;
    --purple: #6f4cff;
    --border: rgba(20, 33, 61, .10);
    --shadow: 0 24px 70px rgba(15, 68, 145, .18);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 208, 255, .28), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255, 84, 64, .18), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eaf5ff 52%, #f8fbff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(8, 120, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 120, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

button,
input {
    font: inherit;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 45px rgba(17, 72, 135, .12);
    backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    font-weight: 800;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    box-shadow: 0 10px 24px rgba(8, 120, 255, .34);
}

.logo strong,
.logo small {
    display: block;
}

.logo small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    padding: 11px 14px;
    color: #304258;
    border-radius: 14px;
    transition: .2s;
}

.nav a:hover,
.cart-link {
    background: #eef6ff;
}

.cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    margin-left: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center;
    max-width: 1200px;
    margin: 34px auto 0;
    padding: 56px 22px 34px;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #0757bd;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(8, 120, 255, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 28px rgba(8, 120, 255, .10);
}

.hero h1,
.section__head h2,
.cart-page h1,
.detail-card h1 {
    margin: 18px 0 16px;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(40px, 6vw, 76px);
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero__actions,
.product-card__actions,
.buy-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s, box-shadow .18s, background .18s;
}

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

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0057ff);
    box-shadow: 0 16px 30px rgba(8, 120, 255, .27);
}

.btn--ghost {
    color: #0b5fd7;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(8, 120, 255, .16);
}

.btn--light {
    color: #12365e;
    background: #eef6ff;
}

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

.hero__visual {
    position: relative;
    min-height: 520px;
}

.hero__orb {
    position: absolute;
    inset: 40px 30px 10px;
    border-radius: 45% 55% 48% 52%;
    background: linear-gradient(145deg, rgba(8, 120, 255, .18), rgba(4, 210, 255, .12));
    filter: blur(.2px);
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 36px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.floating-card img {
    width: 235px;
    height: 235px;
    object-fit: contain;
}

.floating-card span {
    margin-top: 8px;
    color: #304258;
    font-weight: 800;
}

.floating-card--one {
    top: 18px;
    left: 14px;
    transform: rotate(-5deg);
}

.floating-card--two {
    right: 12px;
    bottom: 20px;
    transform: rotate(5deg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1160px;
    margin: 10px auto 0;
    padding: 0 22px;
}

.stats div {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 12px 40px rgba(17, 72, 135, .10);
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    color: var(--blue);
    font-size: 34px;
}

.stats span {
    margin-top: 4px;
    color: var(--muted);
}

.section,
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 82px 22px 20px;
}

.section__head {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section__head.align-left {
    margin-left: 0;
    text-align: left;
}

.section__head h2,
.cart-page h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.section__head p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 56px rgba(17, 72, 135, .12);
    backdrop-filter: blur(16px);
    transition: transform .22s, box-shadow .22s;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 70px rgba(17, 72, 135, .20);
}

.product-card__image {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(8, 120, 255, .13), rgba(4, 210, 255, .08));
}

.product-card--red .product-card__image {
    background: linear-gradient(145deg, rgba(255, 61, 46, .14), rgba(111, 76, 255, .10));
}

.product-card__image img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 20px 28px rgba(0, 43, 105, .16));
}

.product-card__body {
    padding: 24px;
}

.product-tag {
    display: inline-flex;
    padding: 7px 11px;
    color: #0757bd;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    background: #eef6ff;
}

.product-card--red .product-tag {
    color: #d92818;
    background: #fff0ee;
}

.product-card h3 {
    min-height: 78px;
    margin: 15px 0 10px;
    font-size: 22px;
    line-height: 1.18;
}

.product-card p {
    min-height: 76px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.product-card__meta span {
    color: var(--muted);
}

.product-card__meta strong {
    font-size: 22px;
}

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

.steps article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 18px 48px rgba(17, 72, 135, .10);
}

.steps span {
    display: inline-flex;
    color: var(--blue);
    font-size: 34px;
    font-weight: 900;
}

.steps h3 {
    margin: 14px 0 8px;
    font-size: 23px;
}

.steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.product-detail {
    padding-top: 22px;
}

.detail-card {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 36px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 36px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.detail-card__image {
    display: grid;
    place-items: center;
    min-height: 470px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(8, 120, 255, .15), rgba(4, 210, 255, .06));
}

.detail-card--red .detail-card__image {
    background: linear-gradient(145deg, rgba(255, 61, 46, .13), rgba(111, 76, 255, .11));
}

.detail-card__image img {
    width: min(330px, 80%);
    filter: drop-shadow(0 28px 42px rgba(0, 43, 105, .18));
}

.detail-card h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.price-box {
    display: inline-grid;
    gap: 5px;
    min-width: 230px;
    margin: 20px 0;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, #eef6ff, #fff);
}

.price-box span,
.price-box small {
    color: var(--muted);
}

.price-box strong {
    color: var(--blue);
    font-size: 34px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 8px 0 26px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    color: #304258;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
}

.buy-panel,
.checkout-box,
.empty-cart {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
}

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

.field span {
    color: #304258;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid rgba(8, 120, 255, .20);
    outline: none;
    border-radius: 16px;
    background: #fff;
    transition: .2s;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8, 120, 255, .12);
}

.checkout-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

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

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 38px rgba(17, 72, 135, .09);
}

.cart-item img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 20px;
    background: #eef6ff;
}

.cart-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.cart-item p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.45;
}

.cart-item strong {
    color: var(--blue);
    font-size: 22px;
}

.remove-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #d92818;
    border: 0;
    border-radius: 12px;
    background: #fff0ee;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.checkout-box {
    position: sticky;
    top: 110px;
    box-shadow: 0 18px 56px rgba(17, 72, 135, .12);
}

.checkout-box h2 {
    margin: 0 0 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.summary-row strong {
    color: var(--blue);
    font-size: 24px;
}

.empty-cart {
    text-align: center;
}

.empty-cart h2 {
    margin-top: 0;
}

.empty-cart p {
    color: var(--muted);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1200px;
    margin: 60px auto 20px;
    padding: 22px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--blue);
    font-weight: 800;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    max-width: 340px;
    padding: 15px 18px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #14213d, #0b5fd7);
    box-shadow: 0 18px 40px rgba(20, 33, 61, .26);
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: .22s;
}

.toast--show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 980px) {
    .hero,
    .detail-card,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 420px;
    }

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

    .checkout-box {
        position: static;
    }
}

@media (max-width: 680px) {
    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        flex-wrap: wrap;
        width: 100%;
    }

    .hero {
        padding-top: 36px;
    }

    .hero__visual {
        min-height: 340px;
    }

    .floating-card {
        border-radius: 24px;
    }

    .floating-card img {
        width: 150px;
        height: 150px;
    }

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

    .product-card h3,
    .product-card p {
        min-height: auto;
    }

    .detail-card {
        padding: 18px;
        border-radius: 26px;
    }

    .detail-card__image {
        min-height: 300px;
    }

    .cart-item {
        grid-template-columns: 74px 1fr;
    }

    .cart-item img {
        width: 74px;
        height: 74px;
    }

    .remove-btn {
        position: absolute;
        top: 14px;
        right: 14px;
    }
}

/* Ссылки на документы в подвале */
.footer__links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}
.footer__links a{
    font-weight:700;
}
.footer{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    gap:24px;
    padding:28px 0;
    border-top:1px solid rgba(15, 42, 80, .12);
}

.footer__copyright{
    color:#526783;
    font-size:15px;
}

.footer__docs{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    text-align:center;
}

.footer__docs a,
.footer__cart a{
    color:#0068ff;
    font-weight:700;
    text-decoration:none;
}

.footer__docs a:hover,
.footer__cart a:hover{
    text-decoration:underline;
}

.footer__cart{
    display:flex;
    justify-content:flex-end;
}

/* Адаптация под телефон */
@media (max-width: 768px){
    .footer{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer__cart{
        justify-content:center;
    }
}
