:root {
    --bg: #fcf9fa;
    --paper: #fdfbfc;
    --ink: #3a3129;
    --muted: #8a7d72;
    --accent: #c45c5c;
    --accent-dark: #a84646;
    --gold: #d4b896;
    --line: rgba(58, 49, 41, 0.08);
    --shadow: 0 18px 40px rgba(58, 49, 41, 0.06);
    --paper-image: url("/images/paper-bg.png");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    color: var(--ink);
    background-color: var(--bg);
    background-image: var(--paper-image);
    background-repeat: repeat;
    font-family: Manrope, sans-serif;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    isolation: isolate;
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    border-bottom: 1px solid var(--line);
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(10px);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 196px;
}
.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}
.header-socials a,
.footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.header-socials a:hover,
.footer-socials a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
.header-socials svg,
.footer-socials svg {
    width: 18px;
    height: 18px;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-self: center;
}
.logo img {
    width: 165px;
    height: auto;
    max-width: none;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.logo strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    line-height: 0.95;
    font-weight: 600;
}
.logo small { color: var(--muted); font-size: 14px; }
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    justify-self: end;
}
.site-nav {
    display: flex;
    gap: 22px;
    font-weight: 500;
    font-size: 15px;
    color: var(--muted);
}
.site-nav a:hover { color: var(--ink); }
.header-phone { font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.footer-socials { display: flex; gap: 10px; margin-top: 12px; }

.hero {
    min-height: 68vh;
    display: grid;
    align-items: center;
    background: transparent;
    color: var(--ink);
    padding: 64px 0 56px;
}
.hero-inner { padding-bottom: 8px; max-width: 720px; }
.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0 0 14px;
    color: var(--accent);
    font-weight: 700;
}
.hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.98;
    margin: 0 0 18px;
    max-width: 13ch;
    font-weight: 600;
    color: var(--ink);
}
.hero-text {
    max-width: 44ch;
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(196, 92, 92, 0.22);
}
.btn:hover { background: var(--accent-dark); }
.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(58, 49, 41, 0.08);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.catalog { padding: 72px 0 96px; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 52px;
    margin: 0;
    font-weight: 600;
}
.cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.cake-card {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cake-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(58, 49, 41, 0.1);
}
.cake-photo { aspect-ratio: 1.08; background: #f4ece3; }
.cake-photo img { width: 100%; height: 100%; object-fit: cover; }
.cake-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cake-body h3 { font-family: "Cormorant Garamond", serif; font-size: 30px; margin: 0; font-weight: 600; }
.cake-body p { color: var(--muted); margin: 0; flex: 1; }
.cake-fillings {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cake-fillings li {
    font-size: 12px;
    font-weight: 600;
    background: #f6eee6;
    color: #6f6157;
    padding: 5px 10px;
    border-radius: 999px;
}
.cake-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { font-weight: 800; font-size: 18px; }

.page-hero { padding: 56px 0 12px; }
.page-hero h1 { font-family: "Cormorant Garamond", serif; font-size: 56px; margin: 0; }
.page-body { padding: 12px 0 80px; }
.prose { font-size: 18px; max-width: 70ch; }
.prose p { margin: 0 0 16px; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    color: var(--muted);
    background: transparent;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner strong {
    display: block;
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.flash {
    margin: 16px auto 0;
    width: min(1160px, calc(100% - 40px));
    background: #eef7ec;
    border: 1px solid #cfe3ca;
    padding: 12px 16px;
    border-radius: 12px;
}
.order-dialog { border: 0; border-radius: 24px; padding: 0; width: min(420px, 92vw); box-shadow: var(--shadow); }
.order-form { padding: 24px; display: grid; gap: 12px; background: #fff; }
.order-form h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 32px; }
.order-form label, .form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.order-form input, .order-form textarea, .form input, .form textarea, .form select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    background: #fbf8f3;
}
.dialog-actions { display: flex; gap: 8px; }
.form-error { color: var(--accent); margin: 0; }
.empty { color: var(--muted); }

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        padding: 14px 0 16px;
        min-height: 0;
    }
    .header-socials,
    .header-right {
        justify-self: center;
    }
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo img { width: 134px; height: auto; }
    .logo strong { font-size: 40px; }
    .site-nav { gap: 16px; }
    .header-phone { display: none; }
    .hero { min-height: 58vh; padding-top: 40px; }
}
