:root {
  --ink: #17110f;
  --wine: #541b26;
  --wine-dark: #2a0e16;
  --cream: #f5efe5;
  --paper: #fffaf2;
  --gold: #b99758;
  --gold-soft: #d9c394;
  --muted: #746a61;
  --line: rgba(23, 17, 15, .14);
  --shadow: 0 22px 60px rgba(31, 16, 15, .12);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }
.narrow-wide { width: min(920px, 100%); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 500; margin: 0 0 18px; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.03em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 18px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; color: var(--wine); }
.large-text { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; }
.text-center { text-align: center; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,239,229,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); color: var(--wine); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.15rem; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 21px; font-size: .9rem; font-weight: 650; }
.main-nav a { padding: 9px 0; }
.main-nav a:hover { color: var(--wine); }
.nav-accent { color: var(--wine); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; }

.flash-stack { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; pointer-events: none; }
.flash { padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow); background: white; border: 1px solid var(--line); pointer-events: auto; }
.flash-success { border-left: 4px solid #58875b; }
.flash-warning { border-left: 4px solid #c8953f; }
.flash-danger { border-left: 4px solid #b23e4a; }

.hero, .page-hero, .reviews-section, .story-section, .success-page { background: radial-gradient(circle at top right, rgba(185,151,88,.18), transparent 35%), linear-gradient(135deg, #1e1015 0%, #3c1620 48%, #160d0f 100%); color: var(--paper); }
.hero { min-height: 720px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; padding: 80px 0; }
.hero .eyebrow, .page-hero .eyebrow, .reviews-section .eyebrow, .story-section .eyebrow, .success-page .eyebrow { color: var(--gold-soft); }
.hero-lead { font-size: 1.2rem; max-width: 660px; color: rgba(255,250,242,.83); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.button-row.center { justify-content: center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 23px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #1d120e; }
.button-secondary { border-color: rgba(255,255,255,.35); color: white; }
.button-dark { background: var(--wine); color: white; }
.button-outline-dark { border-color: rgba(23,17,15,.25); color: var(--ink); }
.button-small { min-height: 38px; padding: 0 16px; font-size: .86rem; background: var(--ink); color: white; }
.full-width { width: 100%; }
.text-link { color: var(--wine); font-weight: 800; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 38px; color: rgba(255,250,242,.68); font-size: .86rem; }
.hero-notes span::before { content: '✦'; color: var(--gold); margin-right: 8px; }
.hero-art { display: grid; place-items: center; }
.hero-frame { width: min(430px, 100%); aspect-ratio: 4/5; border: 1px solid rgba(217,195,148,.55); position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(185,151,88,.24), transparent 55%); box-shadow: 0 30px 90px rgba(0,0,0,.36), inset 0 0 0 10px rgba(255,255,255,.015); }
.hero-frame::before, .hero-frame::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(217,195,148,.25); }
.hero-frame::after { inset: 34px; border-radius: 50% 50% 45% 45%; }
.hero-medallion { position: relative; z-index: 2; width: 70%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 1px solid var(--gold); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.08), transparent 35%), #210f14; }
.hero-medallion span, .hero-medallion strong, .hero-medallion small { display: block; }
.hero-medallion span { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold-soft); }
.hero-medallion strong { font-family: var(--serif); font-size: 3.6rem; font-weight: 500; }
.hero-medallion small { text-transform: uppercase; letter-spacing: .28em; color: var(--gold-soft); }
.ornament { position: absolute; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 2rem; }
.ornament-top { top: 8%; }
.ornament-bottom { bottom: 7%; }

.section { padding: 100px 0; }
.section-light { background: var(--cream); color: var(--ink); }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.split-heading { max-width: none; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px rgba(34,20,16,.06); transition: .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #2f171d; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.availability { position: absolute; top: 14px; right: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(255,250,242,.9); color: var(--wine); font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.product-card-body { padding: 24px; }
.product-card-body h3 { margin-bottom: 10px; }
.product-card-body > p:not(.eyebrow) { color: var(--muted); font-size: .93rem; }
.product-card-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.product-card-footer strong { font-family: var(--serif); font-size: 1.2rem; }

.story-grid { display: grid; grid-template-columns: .25fr 1fr 1fr; gap: 48px; align-items: start; }
.story-number { font-family: var(--serif); color: var(--gold); font-size: 3rem; }
.story-grid > div:nth-child(2) p:not(.eyebrow) { color: rgba(255,250,242,.75); }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.process-list li { display: flex; gap: 17px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.process-list li > span { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; }
.process-list strong { font-family: var(--serif); font-size: 1.35rem; }
.process-list p { color: rgba(255,250,242,.68); font-size: .9rem; margin: 5px 0 0; }
.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.editorial-image, .portrait-placeholder { min-height: 520px; display: grid; place-items: center; border-radius: var(--radius); background: radial-gradient(circle at 30% 25%, rgba(217,195,148,.25), transparent 35%), linear-gradient(145deg, #2b1219, #6a2635); color: var(--gold-soft); border: 1px solid rgba(185,151,88,.5); text-align: center; font-family: var(--serif); font-size: 3rem; line-height: 1.05; }
.editorial-copy p:not(.eyebrow) { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { border: 1px solid rgba(217,195,148,.32); padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); }
.review-card p { font-family: var(--serif); font-size: 1.22rem; }
.review-card strong, .review-card small { display: block; }
.review-card small { color: var(--gold-soft); margin-top: 6px; }
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; }
.empty-state { padding: 55px; border: 1px dashed rgba(23,17,15,.22); border-radius: var(--radius); text-align: center; }
.dark-empty { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
.dark-empty span { color: var(--gold-soft); }

.page-hero { padding: 110px 0; }
.compact-hero { text-align: center; }
.compact-hero .container { max-width: 900px; }
.compact-hero h1 { font-size: clamp(3rem, 6vw, 5.3rem); }
.compact-hero p:last-child { max-width: 720px; margin-inline: auto; color: rgba(255,250,242,.75); font-size: 1.15rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-pill { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.35); font-size: .86rem; font-weight: 700; }
.filter-pill.active, .filter-pill:hover { background: var(--wine); color: white; }

.product-page { padding-top: 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: start; }
.product-gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #281319; }
.gallery-note { padding: 15px 20px; color: var(--muted); font-size: .84rem; text-align: center; }
.product-info { position: sticky; top: 115px; }
.product-info h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.product-intro { font-size: 1.16rem; color: var(--muted); }
.product-price { font-family: var(--serif); font-size: 2.2rem; color: var(--wine); margin: 25px 0; }
.product-price small { font-size: 1rem; font-family: var(--sans); }
.detail-list { border-top: 1px solid var(--line); margin: 26px 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; }
.product-description { margin: 25px 0; }
.stacked-buttons { display: grid; gap: 11px; }
.stacked-buttons .text-link { text-align: center; padding: 8px; }

.form-hero { text-align: center; }
.form-hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); }
.form-hero p:last-child { color: rgba(255,255,255,.75); }
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.card-form, .admin-form { display: grid; gap: 25px; }
.card-form { background: var(--paper); border: 1px solid var(--line); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-step { display: flex; gap: 14px; align-items: start; border-top: 1px solid var(--line); padding-top: 22px; }
.form-step:first-child { border-top: 0; padding-top: 0; }
.form-step > span { width: 32px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: white; font-family: var(--serif); }
.form-step h2 { font-size: 1.8rem; margin-bottom: 4px; }
.form-step p { color: var(--muted); margin: 0; }
.form-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, 1fr); }
label { display: grid; gap: 8px; font-weight: 750; font-size: .9rem; }
input, textarea, select { width: 100%; border: 1px solid rgba(23,17,15,.18); border-radius: 12px; background: white; padding: 13px 14px; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,151,88,.16); }
label small { color: var(--muted); font-weight: 500; }
.consent { grid-template-columns: auto 1fr; align-items: start; }
.consent input { width: auto; margin-top: 5px; }
.form-note { color: var(--muted); font-size: .82rem; text-align: center; }
.form-aside { background: #261219; color: white; border-radius: var(--radius); padding: 25px; position: sticky; top: 115px; }
.form-aside img { border-radius: 14px; margin-bottom: 20px; }
.form-aside ol { padding-left: 22px; color: rgba(255,255,255,.72); }
.aside-art { min-height: 260px; border: 1px solid rgba(217,195,148,.35); display: grid; place-content: center; text-align: center; margin-bottom: 24px; background: radial-gradient(circle, rgba(185,151,88,.18), transparent 60%); }
.aside-art strong, .aside-art span { display: block; }
.aside-art strong { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.aside-art span { color: rgba(255,255,255,.65); }

.success-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.success-mark { width: 74px; aspect-ratio: 1; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 2rem; }
.success-page h1 { font-size: clamp(3rem, 6vw, 5rem); }
.success-page p { color: rgba(255,255,255,.75); font-size: 1.1rem; }

.text-columns { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.quote-block { max-width: 850px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.quote-block > span { color: var(--gold); font-family: var(--serif); font-size: 6rem; line-height: .8; }
blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-grid article { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature-grid article > span { color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.faq-list { display: grid; gap: 14px; max-width: 900px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; background: var(--paper); }
summary { font-family: var(--serif); font-size: 1.35rem; cursor: pointer; }
details p { color: var(--muted); padding-top: 15px; margin-bottom: 0; }

.auth-page { min-height: 74vh; display: grid; place-items: center; padding: 80px 20px; background: radial-gradient(circle at top, rgba(185,151,88,.12), transparent 30%), var(--cream); }
.auth-card { width: min(470px, 100%); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 38px; border-radius: var(--radius); }
.auth-card h1 { font-size: 3rem; }
.auth-card form { display: grid; gap: 18px; margin-top: 24px; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--wine); font-weight: 800; }
.wide-card { width: min(620px, 100%); }

.admin-shell { background: #efe7db; min-height: 75vh; padding: 42px 0 90px; }
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.admin-nav { position: sticky; top: 112px; display: grid; padding: 16px; border-radius: 18px; background: #1f1116; color: white; box-shadow: var(--shadow); }
.admin-nav a { padding: 12px 14px; border-radius: 10px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: var(--gold-soft); }
.admin-content { min-width: 0; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.admin-heading h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.admin-heading p { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 25px; }
.stats-grid article { background: var(--paper); border: 1px solid var(--line); padding: 24px; border-radius: 16px; }
.stats-grid span { font-family: var(--serif); font-size: 2.5rem; color: var(--wine); }
.stats-grid p { margin: 2px 0 0; color: var(--muted); }
.admin-panel { background: var(--paper); border: 1px solid var(--line); padding: 25px; border-radius: 18px; box-shadow: 0 8px 28px rgba(31,17,15,.05); }
.admin-panel + .admin-panel { margin-top: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1.8rem; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
td a { color: var(--wine); font-weight: 800; }
.status-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #eee1d1; color: var(--wine); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.admin-card-list { display: grid; gap: 16px; }
.admin-product-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 16px; border-radius: 18px; }
.admin-product-card img { width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #2a1219; }
.admin-product-card h2 { font-size: 1.7rem; margin-bottom: 8px; }
.admin-product-card p { color: var(--muted); margin-bottom: 8px; }
.admin-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-meta span { background: #f0e6d8; border-radius: 999px; padding: 5px 9px; font-size: .72rem; }
.admin-actions { display: grid; gap: 8px; justify-items: end; }
.danger-link { border: 0; background: none; color: #a12e3a; font-weight: 800; padding: 0; }
.admin-form h2 { font-size: 1.8rem; }
.check-list { display: grid; gap: 12px; }
.check-list label { grid-template-columns: auto 1fr; align-items: center; }
.check-list input { width: auto; }
.current-upload { width: min(360px, 100%); border-radius: 14px; margin-bottom: 18px; }
.admin-filters { margin-bottom: 18px; }
.order-admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.status-panel { position: sticky; top: 112px; }
.order-data { display: grid; grid-template-columns: 160px 1fr; gap: 11px 18px; }
.order-data dt { color: var(--muted); }
.order-data dd { margin: 0; font-weight: 650; }
.message-box { padding: 18px; background: #f1e8dc; border-radius: 12px; white-space: pre-wrap; }
.reference-preview { max-width: 460px; border-radius: 14px; }
.review-admin-list { display: grid; gap: 18px; }
.account-orders { display: grid; gap: 16px; }
.account-order { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--paper); padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.account-order h2 { font-size: 1.7rem; margin-bottom: 8px; }
.account-order p { color: var(--muted); margin-bottom: 0; }
.account-status { display: grid; justify-items: end; gap: 10px; }

.site-footer { background: #120b0d; color: rgba(255,255,255,.68); padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.footer-grid h3 { color: white; font-size: 1.2rem; }
.footer-grid a { display: block; margin-bottom: 9px; }
.footer-brand { color: white; margin-bottom: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 45px; padding-top: 20px; font-size: .8rem; }
.mobile-order-cta { display: none; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 82px; left: 20px; right: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-grid, .editorial-grid, .product-detail-grid, .form-layout, .text-columns, .order-admin-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .product-info, .form-aside, .status-panel { position: static; }
  .product-grid, .review-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: auto 1fr; }
  .process-list { grid-column: 2; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { padding-bottom: 68px; }
  .container { width: min(100% - 26px, 1180px); }
  .hero { min-height: auto; }
  .hero-grid { padding: 60px 0; gap: 45px; }
  h1 { font-size: 3.2rem; }
  .section { padding: 72px 0; }
  .page-hero { padding: 78px 0; }
  .product-grid, .review-grid, .feature-grid, .two-columns { grid-template-columns: 1fr; }
  .split-heading, .admin-heading, .account-order { align-items: stretch; flex-direction: column; }
  .story-grid { grid-template-columns: 1fr; }
  .story-number { display: none; }
  .process-list { grid-column: auto; }
  .card-form, .auth-card { padding: 24px; }
  .admin-product-card { grid-template-columns: 88px 1fr; align-items: start; }
  .admin-product-card img { width: 88px; }
  .admin-actions { grid-column: 1 / -1; grid-auto-flow: column; justify-items: start; justify-content: start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-nav { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .order-data { grid-template-columns: 1fr; gap: 2px; }
  .order-data dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-order-cta { display: flex; position: fixed; z-index: 50; bottom: 10px; left: 13px; right: 13px; min-height: 50px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold); color: #21130e; font-weight: 900; box-shadow: 0 12px 35px rgba(0,0,0,.26); }
  .account-status { justify-items: start; }
}

/* Editable site content */
.preserve-lines { white-space: pre-line; }
.hero-art.has-image { align-self: stretch; min-height: 560px; }
.hero-uploaded-image { width: min(470px, 100%); height: 100%; max-height: 650px; min-height: 560px; object-fit: cover; object-position: center; border: 1px solid rgba(217,195,148,.55); box-shadow: 0 30px 90px rgba(0,0,0,.36); }
.editorial-image.has-uploaded-image, .portrait-placeholder.has-uploaded-image { overflow: hidden; padding: 0; }
.editorial-image.has-uploaded-image img, .portrait-placeholder.has-uploaded-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; }
.settings-image-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 28px; align-items: start; margin-top: 22px; }
.settings-preview-tall { width: 100%; height: 360px; object-fit: cover; object-position: center; margin: 0; }
.upload-empty { min-height: 240px; display: grid; place-items: center; text-align: center; padding: 24px; border: 1px dashed rgba(23,17,15,.25); border-radius: 14px; color: var(--muted); background: #f4eadc; }
.inline-check { display: grid; grid-template-columns: auto 1fr; align-items: center; margin-top: 16px; font-weight: 650; }
.inline-check input { width: auto; }
.email-preview-list { display: grid; gap: 16px; }
.email-preview-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.email-preview-card h2 { font-size: 1.5rem; margin: 10px 0 5px; }
.email-preview-card p { margin: 0 0 3px; color: var(--muted); }
.email-preview-card small { color: var(--muted); }

@media (max-width: 980px) {
  .hero-art.has-image { min-height: auto; }
  .hero-uploaded-image { min-height: 0; height: auto; aspect-ratio: 4/5; }
  .settings-image-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .editorial-image, .portrait-placeholder { min-height: 390px; }
  .editorial-image.has-uploaded-image img, .portrait-placeholder.has-uploaded-image img { min-height: 390px; }
  .email-preview-card { align-items: stretch; flex-direction: column; }
  .email-preview-card .admin-actions { justify-items: stretch; }
}


/* Бесплатная подарочная упаковка */
.gift-image-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: rgba(42,14,22,.9); color: var(--gold-soft); border: 1px solid rgba(217,195,148,.45); font-size: .7rem; font-weight: 850; backdrop-filter: blur(8px); }
.gift-card-note { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 18px; padding: 11px 12px; border-radius: 13px; background: #f4eadc; color: var(--wine); font-size: .82rem; font-weight: 750; line-height: 1.4; }
.gift-card-note > span:first-child { font-size: 1.05rem; }
.gift-promise { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; margin: 22px 0 8px; padding: 18px; border: 1px solid rgba(185,151,88,.55); border-radius: 16px; background: linear-gradient(135deg,#fff9ed,#f1e3cb); }
.gift-promise-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); font-size: 1.25rem; }
.gift-promise strong { display: block; color: var(--wine); font-family: var(--serif); font-size: 1.2rem; }
.gift-promise p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.gift-order-box { padding: 20px; border: 1px solid rgba(185,151,88,.65); border-radius: 17px; background: linear-gradient(135deg,#fff9ed,#f1e3cb); }
.gift-order-choice { display: grid; grid-template-columns: auto auto 1fr; gap: 13px; align-items: center; cursor: pointer; }
.gift-order-choice input { width: 21px; height: 21px; accent-color: var(--wine); }
.gift-order-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); font-size: 1.3rem; }
.gift-order-choice strong, .gift-order-choice small { display: block; }
.gift-order-choice strong { color: var(--wine); font-family: var(--serif); font-size: 1.22rem; }
.gift-order-choice small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.gift-note-field { margin-top: 17px; padding-top: 16px; border-top: 1px solid rgba(84,27,38,.16); }
.gift-note-field[hidden] { display: none; }
.gift-note-field > small { display: block; margin-top: 7px; color: var(--muted); }
.aside-gift-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 15px; margin-bottom: 23px; border: 1px solid rgba(217,195,148,.35); border-radius: 14px; background: rgba(255,255,255,.06); }
.aside-gift-note > span { font-size: 1.3rem; }
.aside-gift-note strong, .aside-gift-note small { display: block; }
.aside-gift-note strong { color: var(--gold-soft); }
.aside-gift-note small { margin-top: 4px; color: rgba(255,255,255,.68); line-height: 1.45; }
.success-gift { max-width: 620px; margin: 24px auto 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; padding: 17px 20px; border: 1px solid rgba(217,195,148,.55); border-radius: 16px; background: rgba(255,250,242,.08); }
.success-gift > span { font-size: 1.6rem; }
.success-gift strong, .success-gift small { display: block; }
.success-gift strong { color: var(--gold-soft); }
.success-gift small { margin-top: 3px; color: rgba(255,250,242,.72); }
.gift-admin-badge, .account-gift-mark, .table-gift-mark { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; background: #f0e2c8; color: var(--wine); font-size: .75rem; font-weight: 850; }
.gift-admin-badge { padding: 5px 10px; }
.account-gift-mark { margin-top: 10px; padding: 5px 10px; }
.table-gift-mark { margin-top: 5px; padding: 3px 8px; }

@media (max-width: 680px) {
  .gift-image-badge { left: 10px; bottom: 10px; font-size: .64rem; }
  .gift-order-choice { grid-template-columns: auto 1fr; }
  .gift-order-choice input { grid-row: 1 / span 2; }
  .gift-order-icon { display: none; }
}


/* Условия заказа: сроки, предоплата и срочное изготовление */
.order-policy-note {
  margin: -4px 0 15px;
  color: #857971;
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .01em;
}
.product-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid #e2d5c3;
  border-radius: 15px;
  background: #e2d5c3;
}
.product-terms > div {
  padding: 13px 12px;
  background: #fbf6ee;
}
.product-terms span,
.product-terms strong {
  display: block;
}
.product-terms span {
  color: #82766f;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-terms strong {
  margin-top: 4px;
  color: var(--wine);
  font-size: .86rem;
}
.product-terms-caption {
  margin: 8px 0 18px;
  color: #887b74;
  font-size: .73rem;
  line-height: 1.5;
}
.quiet-order-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: -3px 0 25px;
  padding: 11px 14px;
  border: 1px solid #e4d9ca;
  border-radius: 13px;
  background: #faf7f1;
  color: #776d67;
  font-size: .76rem;
  font-weight: 700;
}
.quiet-order-terms span::before {
  content: "•";
  margin-right: 7px;
  color: var(--gold);
}
.rush-order-box {
  padding: 17px 19px;
  border: 1px solid #d9cdbd;
  border-radius: 15px;
  background: #faf7f1;
}
.rush-order-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.rush-order-choice input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--wine);
}
.rush-order-choice strong,
.rush-order-choice small {
  display: block;
}
.rush-order-choice strong {
  color: #4e2930;
  font-size: .96rem;
}
.rush-order-choice small {
  margin-top: 4px;
  color: #7c716b;
  line-height: 1.5;
}
.delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.delivery-summary > div {
  padding: 22px 20px;
  border: 1px solid #e0d3c2;
  border-radius: 17px;
  background: #fffaf2;
  text-align: center;
}
.delivery-summary span,
.delivery-summary strong,
.delivery-summary small {
  display: block;
}
.delivery-summary span {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 2rem;
}
.delivery-summary strong {
  margin-top: 4px;
}
.delivery-summary small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.success-rush {
  max-width: 620px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 17px 20px;
  border: 1px solid rgba(217,195,148,.42);
  border-radius: 16px;
  background: rgba(255,250,242,.055);
}
.success-rush > span { font-size: 1.45rem; }
.success-rush strong,
.success-rush small { display: block; }
.success-rush strong { color: var(--gold-soft); }
.success-rush small {
  margin-top: 3px;
  color: rgba(255,250,242,.72);
  line-height: 1.45;
}
.rush-admin-badge,
.account-rush-mark,
.table-rush-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #eee7dd;
  color: #5d3b42;
  font-size: .75rem;
  font-weight: 850;
}
.rush-admin-badge { padding: 5px 10px; }
.account-rush-mark { margin: 10px 0 0 6px; padding: 5px 10px; }
.table-rush-mark { margin-top: 5px; padding: 3px 8px; }

@media (max-width: 720px) {
  .product-terms,
  .delivery-summary { grid-template-columns: 1fr; }
  .quiet-order-terms { display: grid; gap: 5px; }
  .account-rush-mark { margin-left: 0; }
}

.auth-secondary { margin-top: 14px; text-align: center; }
.auth-secondary a { color: var(--wine); font-weight: 700; }
.button-outline { background: transparent; border: 1px solid #cab9a0; color: var(--wine); }
.button-outline:hover { background: #f6efe6; }
.account-security-box {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 24px; border: 1px solid #e0d3c2; background: #fffaf3; border-radius: 18px; margin-bottom: 22px;
}
.account-security-box h2 { margin: 2px 0 8px; font-size: 1.25rem; }
.account-security-box p { margin: 0; color: #6e625c; max-width: 700px; }
@media (max-width: 720px) {
  .account-security-box { flex-direction: column; align-items: flex-start; }
}


/* Telegram-канал в подвале */
.telegram-footer-link {
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  margin-top: 14px !important;
  padding: 10px 14px;
  border: 1px solid rgba(217, 195, 148, .35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(84, 27, 38, .45), rgba(185, 151, 88, .08));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.telegram-footer-link:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 195, 148, .75);
  background: linear-gradient(135deg, rgba(84, 27, 38, .75), rgba(185, 151, 88, .16));
}
.telegram-footer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .035);
}
.telegram-footer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transform: translateX(-1px);
}
.telegram-footer-link strong,
.telegram-footer-link small {
  display: block;
  line-height: 1.2;
}
.telegram-footer-link strong {
  color: #fffaf2;
  font-family: var(--serif);
  font-size: .98rem;
}
.telegram-footer-link small {
  margin-top: 3px;
  color: var(--gold-soft);
  font-size: .74rem;
}


/* Безопасность административного аккаунта */
.admin-security-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-top: 22px;
}
.admin-security-note {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}
.admin-security-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #ddcfba;
  border-radius: 999px;
  background: #f7efe3;
  color: var(--wine);
  font-size: .74rem;
  font-weight: 850;
}
.admin-security-warning {
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid #d5a263;
  border-radius: 14px;
  background: #fff4df;
  color: #694318;
  line-height: 1.55;
}
.admin-security-info code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0e7dc;
  color: var(--wine);
}
.admin-security-info p {
  max-width: 830px;
  color: var(--muted);
  line-height: 1.65;
}

/* Юридические документы и отдельные согласия */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}
.legal-document {
  background: #fffaf2;
  border: 1px solid #e2d5c4;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 18px 46px rgba(43, 18, 25, .07);
}
.legal-document h2 { margin: 32px 0 12px; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document h3 {
  margin: 0 0 8px;
  color: var(--wine);
  font-size: 1.08rem;
}
.legal-document p,
.legal-document li { color: var(--muted); line-height: 1.78; }
.legal-document ul { padding-left: 22px; }
.legal-document a { color: var(--wine); font-weight: 750; }
.legal-purpose {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #e5d9ca;
  border-radius: 14px;
  background: rgba(255, 255, 255, .48);
}
.legal-purpose p { margin: 8px 0 0; }
.review-consent-details {
  margin: 22px 0 16px;
  padding: 20px;
  border: 1px solid #d5a263;
  border-radius: 16px;
  background: #fff4df;
}
.review-consent-details h2 { margin: 0 0 8px; }
.review-consent-details .legal-data { margin: 16px 0; }
.consent-resource-url {
  display: block;
  overflow-wrap: anywhere;
}
.legal-version {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e5d9ca;
  font-size: .88rem;
}
.legal-data {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) 1.3fr;
  margin: 0;
  border-top: 1px solid #e5d9ca;
}
.legal-data dt,
.legal-data dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e5d9ca;
}
.legal-data dt { color: var(--muted); }
.legal-data dd { font-weight: 750; overflow-wrap: anywhere; }
.legal-nav {
  position: sticky;
  top: 104px;
  background: #2a0e16;
  color: #fffaf2;
  border-radius: 20px;
  padding: 24px;
}
.legal-nav h2 {
  margin: 0 0 14px;
  color: #d9c394;
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.legal-nav a {
  display: block;
  color: #fffaf2;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  line-height: 1.35;
}
.legal-nav a:last-child { border-bottom: 0; }
.legal-consent-stack { display: grid; gap: 12px; margin: 8px 0 18px; }
.legal-consent {
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid #ddcfba;
  border-radius: 14px;
  background: #fffaf2;
  line-height: 1.55;
}
.legal-consent input { margin-top: 4px; flex: 0 0 auto; }
.legal-consent a { color: var(--wine); font-weight: 800; text-decoration: underline; }
.private-address-panel {
  border: 2px solid #b99758;
  background: linear-gradient(180deg, #fffaf2, #fbf3e8);
}
.agreement-panel { margin-top: 28px; }
.footer-legal-column a { display: block; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}
@media (max-width: 620px) {
  .legal-data { grid-template-columns: 1fr; }
  .legal-data dt { padding-bottom: 2px; border-bottom: 0; }
  .legal-data dd { padding-top: 2px; }
}
.footer-grid { grid-template-columns: 1.35fr .65fr .9fr .95fr; gap: 38px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }


/* Production security UI */
.nav-logout-form { display: inline; margin: 0; }
.nav-logout-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.nav-logout-button:hover { color: var(--wine); }

/* Исправление блока FAQ на странице индивидуального заказа */
.reviews-section .legal-document {
  color: var(--ink);
}

.reviews-section .legal-document > h3 {
  color: var(--wine);
  margin: 0 0 12px;
}

.reviews-section .legal-document > h3:not(:first-child) {
  margin-top: 32px;
}

.reviews-section .legal-document > p {
  margin: 0;
  color: var(--muted);
}
/* Парные декоративные кавычки в разделе «О художнице» */
.quote-block {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.quote-block .quote-close {
  align-self: end;
  transform: translateY(-0.05em);
}

@media (max-width: 700px) {
  .quote-block {
    gap: 10px;
  }

  .quote-block > span {
    font-size: 3.5rem;
  }
}

/* Кавычки вплотную к цитате с одинаковым расстоянием */
.quote-block {
  display: block;
}

.quote-block > .quote-open,
.quote-block > .quote-close {
  display: none;
}

.quote-block blockquote::before {
  content: "«\00a0";
  color: var(--gold);
}

.quote-block blockquote::after {
  content: "\00a0»";
  color: var(--gold);
}

.quote-block blockquote::before,
.quote-block blockquote::after {
  font-size: 0.9em;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

/* Согласие на необязательную аналитику */
.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  width: min(940px, calc(100% - 44px));
  margin: 0 auto;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid #d7c4a7;
  border-radius: 20px;
  background: #fffaf2;
  box-shadow: 0 20px 60px rgba(34, 13, 20, 0.24);
  color: var(--ink);
}

.analytics-consent[hidden] { display: none; }
.analytics-consent strong {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.analytics-consent p {
  max-width: 620px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.55;
}
.analytics-consent a {
  color: var(--wine);
  font-weight: 800;
  text-decoration: underline;
}
.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.analytics-consent-actions .button {
  min-width: 170px;
  white-space: nowrap;
}
.cookie-settings-link {
  display: block;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--gold); }

@media (max-width: 780px) {
  .analytics-consent {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: calc(100% - 28px);
    padding: 19px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .analytics-consent-actions .button {
    width: 100%;
    min-width: 0;
  }
}

/* Управление сроками хранения и ручным удалением */
.button-danger {
  border-color: #8f2430;
  background: #8f2430;
  color: #fff;
}
.button-danger:hover {
  border-color: #6f1721;
  background: #6f1721;
}
.retention-user-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.retention-user-item {
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: none;
}
.retention-user-item summary {
  font-family: inherit;
  font-size: 1rem;
}
.retention-user-item summary .form-note {
  display: inline;
  margin-left: 8px;
}
.retention-user-item .admin-security-form {
  max-width: 620px;
  margin-top: 16px;
}
