:root {
    --bg: #fbf8fc;
    --panel: #ffffff;
    --text: #17131d;
    --muted: #71687a;
    --line: #e7dce8;
    --pink: #d83f91;
    --pink-dark: #a91764;
    --violet: #724cff;
    --silver: #eef1f5;
    --silver-dark: #aeb7c4;
    --soft-pink: #fff0f8;
    --green: #0f7a4f;
    --green-bg: #e8f8ef;
    --red: #b42318;
    --red-bg: #fff1f0;
    --shadow: 0 22px 60px rgba(38, 29, 48, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at top right, rgba(216, 63, 145, .18), transparent 34%),
        linear-gradient(180deg, #fff7fb 0%, #f7f3f8 100%);
}

a {
    color: var(--pink-dark);
}

.container {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 950;
    font-size: 23px;
    letter-spacing: -.03em;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #c9ced7, var(--pink));
    color: white;
    border-radius: 18px;
    font-size: 14px;
    letter-spacing: .06em;
    box-shadow: 0 12px 28px rgba(216, 63, 145, .24);
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

nav a {
    color: #342d39;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

nav a:hover,
nav a.active {
    color: var(--pink-dark);
    background: var(--soft-pink);
}

/* HERO */

.hero {
    padding: 74px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    gap: 38px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: var(--pink-dark);
    background: var(--soft-pink);
    border: 1px solid #ffd1e8;
    padding: 8px 15px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.058em;
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 28px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    color: white;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(216, 63, 145, .20);
}

.btn:hover {
    filter: brightness(.95);
}

.btn.ghost {
    background: #ffffff;
    color: var(--pink-dark);
    border: 1px solid var(--line);
    box-shadow: none;
}

.hero-card {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.card-stack {
    position: relative;
    min-height: 320px;
}

.mock-card {
    position: absolute;
    width: 74%;
    min-height: 190px;
    border-radius: 28px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px rgba(38, 29, 48, .14);
}

.mock-card span {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .16em;
}

.mock-card strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.04em;
}

.mock-card em {
    font-style: normal;
    font-weight: 900;
}

.back-card {
    top: 12px;
    left: 8px;
    color: white;
    background: linear-gradient(135deg, #c5cbd4, #d95d9c);
    transform: rotate(-5deg);
}

.front-card {
    right: 0;
    bottom: 8px;
    color: #17131d;
    background: linear-gradient(135deg, #ffffff, #e9edf5);
    transform: rotate(4deg);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 8px 0 48px;
}

.feature-row article {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(38, 29, 48, .06);
}

.feature-row h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.feature-row p {
    margin: 0;
    color: var(--muted);
}

/* PAGES */

.page-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 34px;
    margin-top: 42px;
    margin-bottom: 50px;
}

.page-card h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.page-card p {
    color: var(--muted);
    font-size: 16px;
}

.page-heading {
    max-width: 780px;
    margin-bottom: 24px;
}

.catalog-notice {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff0f8, #f1f4f8);
    border: 1px solid #ffd1e8;
    color: #6f3151;
    margin-bottom: 24px;
}

.catalog-notice strong {
    color: var(--pink-dark);
}

/* SHOP */

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

.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(38, 29, 48, .06);
}

.product-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--soft-pink);
    color: var(--pink-dark);
    border: 1px solid #ffd1e8;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 950;
    font-size: 12px;
}

.product-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #f4f6f9, #fff0f8);
    font-size: 25px;
    margin-bottom: 16px;
}

.product-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.category {
    color: var(--pink-dark) !important;
    margin: 0 0 10px;
    font-weight: 950;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-bottom {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-bottom strong {
    font-size: 19px;
}

.stock-label {
    background: #f1f4f8;
    color: #5b6472;
    border: 1px solid #d9e0ea;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

/* FORMS */

.form-wrap {
    max-width: 680px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 15px;
    margin-bottom: 15px;
    outline: none;
    background: #ffffff;
}

input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(216, 63, 145, .12);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 900;
}

.alert.success {
    background: var(--green-bg);
    color: var(--green);
}

.alert.error {
    background: var(--red-bg);
    color: var(--red);
}

.contact-box,
.contact-note {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    margin-top: 8px;
}

.contact-box span {
    color: var(--muted);
    font-size: 13px;
}

.contact-note {
    display: block;
    margin-top: 18px;
    color: var(--muted);
}

code {
    background: #fff0f8;
    padding: 3px 7px;
    border-radius: 7px;
    font-size: 13px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 14px;
}

th {
    text-align: left;
    background: #fff0f8;
}

td {
    color: #3c3441;
    word-break: break-word;
}

/* FOOTER */

footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    margin-top: 40px;
}

.footer-row {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-row div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-row a {
    text-decoration: none;
    color: var(--pink-dark);
    font-weight: 800;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .hero-grid,
    .feature-row,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .mock-card {
        width: 82%;
    }
}

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

    nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 38px;
    }
}

@media (max-width: 700px) {
    .page-card {
        padding: 24px;
    }

    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
