:root {
  --bg: #070203;
  --bg-2: #120609;
  --rose: #a61d32;
  --rose-deep: #5c101c;
  --petal: #d7a3ab;
  --ivory: #f4efe8;
  --ivory-dim: #cbbfb3;
  --line: rgba(244, 239, 232, 0.14);
  --serif: "Cormorant Garamond", Palatino, Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: #070203;
  background-image:
    linear-gradient(180deg, rgba(7, 2, 3, 0.46) 0%, rgba(7, 2, 3, 0.68) 32%, rgba(7, 2, 3, 0.82) 100%),
    url("/images/site-bg.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.65px);
  background-size: 3px 3px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: #7a1830; color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ivory);
  color: #2a0a10;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 6vw;
  background: rgba(7, 2, 3, 0.38);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 239, 232, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.nav-links a:hover,
.nav-links a.is-current { color: var(--ivory); }
.nav-cta {
  border: 1px solid rgba(244, 239, 232, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ivory) !important;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--ivory);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -12% -8%;
  background:
    radial-gradient(circle at 50% 46%, rgba(7, 2, 3, 0.12), rgba(7, 2, 3, 0.62) 72%),
    url("/images/site-bg.jpg") center / cover no-repeat;
  filter: saturate(1.08);
  opacity: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 36px;
  width: min(1080px, calc(100% - 40px));
  max-width: none;
  text-align: left;
}
.hero-copy { max-width: 640px; }
.eyebrow {
  margin-bottom: 18px;
  color: var(--petal);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero-logo {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.92;
}
.sublede {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--ivory-dim);
}
.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--ivory); color: #2a0a10; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: rgba(244, 239, 232, 0.4); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.facts p {
  margin: 0;
  padding: 22px 16px;
  text-align: center;
  color: var(--ivory-dim);
}
.facts b {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.facts span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.facts p + p { border-left: 1px solid var(--line); }

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}
.section-tight { padding-top: 20px; }
.section-head { max-width: 640px; margin-bottom: 8px; }
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
}
.section-note { margin-top: 14px; color: var(--ivory-dim); max-width: 460px; }
.ornament { width: min(420px, 80%); margin: 8px auto 28px; color: rgba(244, 239, 232, 0.8); }
.ornament-left { margin-left: 0; width: min(280px, 70%); }
.ornament svg { width: 100%; height: auto; display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    #14080b;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: rgba(212, 90, 104, 0.55); transform: translateY(-3px); transition: 0.2s ease; }
.card-visual { aspect-ratio: 1; overflow: hidden; background: #1a070b; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-visual.is-fallback {
  background:
    linear-gradient(180deg, rgba(7, 2, 3, 0.02) 40%, rgba(7, 2, 3, 0.82)),
    url("/images/logo.png") center 0% / 420% auto no-repeat;
}
.card:nth-child(3n+2) .card-visual.is-fallback { background-position: 72% 0%; }
.card:nth-child(3n) .card-visual.is-fallback { background-position: 28% 0%; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat {
  color: var(--petal);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card-title { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; }
.card-text {
  color: var(--ivory-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font-family: var(--serif); font-style: italic; font-size: 28px; }
.text-link { color: var(--ivory); font-size: 14px; }

.feed { display: grid; gap: 16px; }
.post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 6, 9, 0.8);
}
.post-image { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.post-date { color: var(--petal); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.post-title { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; margin: 6px 0; }
.post-text { white-space: pre-wrap; color: var(--ivory-dim); }
.empty { color: var(--ivory-dim); padding: 12px 0 24px; }

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}
#about-text { font-size: 18px; max-width: 560px; color: var(--ivory-dim); }
.contacts { list-style: none; margin: 0; padding: 8px 0 0; }
.contacts li { padding: 16px 0; border-top: 1px solid var(--line); }
.contacts span {
  display: block;
  color: var(--petal);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contacts a, .contacts strong { font-family: var(--serif); font-size: 28px; font-weight: 500; text-decoration: none; }

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 6, 9, 0.72);
}
.order-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--petal); }
.wide { grid-column: 1 / -1; }
.order-form input, .order-form select, .order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0406;
  border-radius: 12px;
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  color: var(--ivory);
}
.order-form textarea { min-height: 110px; resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: 2px solid rgba(215, 163, 171, 0.8);
  border-color: transparent;
}
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#order-status { color: var(--ivory-dim); letter-spacing: 0; text-transform: none; font-size: 15px; }
.consent { color: var(--ivory-dim); font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0; }
.hp { position: absolute; left: -9999px; }

main, .footer { position: relative; z-index: 1; }
.footer {
  padding: 48px 20px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.footer p { font-family: var(--serif); font-size: 32px; }
.footer small, .quiet { display: block; color: var(--ivory-dim); margin-top: 6px; }
.desk-switch { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.desk-switch button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ivory-dim);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.desk-switch button.is-active,
.desk-switch button:hover { color: var(--ivory); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(18, 6, 9, 0.72); }
.stat b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; }
.stat span { color: var(--ivory-dim); font-size: 13px; }
.hint { color: var(--ivory-dim); margin: 16px 0 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.list { display: grid; gap: 12px; }
.item { display: grid; gap: 8px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(18, 6, 9, 0.72); }
.item header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item h3 { font-size: 26px; margin: 0; }
.meta { color: var(--petal); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.item p { color: var(--ivory-dim); white-space: pre-wrap; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.stack { display: grid; gap: 12px; }
.stack label { display: grid; gap: 8px; color: var(--petal); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.stack input, .stack textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ivory); padding: 12px 14px; }
.check { grid-template-columns: auto 1fr; align-items: center; text-transform: none; letter-spacing: 0; color: var(--ivory); }
.check input { width: auto; }
.bind, #password-form { margin-top: 28px; }
.code { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 0.08em; margin: 8px 0 14px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 18px; }
.btn-text { background: transparent; border-color: transparent; color: var(--ivory-dim); }
.btn-danger { background: transparent; border-color: rgba(255, 180, 180, 0.35); color: #ffc9c9; }
dialog { width: min(560px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 22px; background: #14080b; color: var(--ivory); padding: 20px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(360px, calc(100% - 32px)); padding: 12px 14px; border-radius: 14px; background: var(--ivory); color: #2a0a10; }
#toast.error { background: #5c1020; color: #ffe8ea; }
#login-status { min-height: 1.2em; }
.flower-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.flower-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(244, 239, 232, 0.22);
  border-radius: 999px;
  background: rgba(7, 2, 3, 0.42);
  backdrop-filter: blur(8px);
  color: var(--ivory);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
.flower-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.flower-chip:has(input:checked),
.flower-chip:hover {
  border-color: transparent;
  background: var(--rose);
}
.flower-summary { margin-top: 16px; color: var(--ivory-dim); }
.quiet { text-decoration: none; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.quiet:hover { color: var(--ivory); }

section { scroll-margin-top: 84px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .about, .order-layout { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .post { grid-template-columns: 1fr; }
  .post-image { height: 220px; }
}
.order-side .order-form { grid-template-columns: 1fr; }
.catalog-tools {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 4, 6, 0.88);
}
.catalog-tools input,
.catalog-tools select {
  border: 1px solid var(--line);
  background: #0c0406;
  color: var(--ivory);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
}
.catalog-tools input { flex: 1; min-width: 180px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-dim);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
.filter-chip.is-on { background: var(--rose); color: var(--ivory); border-color: transparent; }
.catalog-count { color: var(--ivory-dim); margin: 0 0 14px; }
.card.is-chosen { border-color: rgba(212, 90, 104, 0.9); }
.order-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 18px;
  align-items: start;
}
.order-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12, 4, 6, 0.78);
}
.order-side h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.order-side .order-form { padding: 0; border: 0; background: transparent; }
.mode { display: flex; gap: 8px; }
.mode-option {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}
.mode-option input { width: auto; }
.order-dock {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ivory);
  color: #2a0a10;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  body { background-attachment: scroll; background-size: cover, cover; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: #14080b;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav-links.is-open { display: flex; }
  .facts { grid-template-columns: 1fr; }
  .facts p + p { border-left: 0; border-top: 1px solid var(--line); }
  .grid, .order-form, .stats, .split, .order-layout, .hero-inner { grid-template-columns: 1fr; }
  .hero-inner, .hero-copy { text-align: center; }
  .hero-logo { margin: 8px auto 0; width: 168px; }
  .hero-actions, .sublede { margin-left: auto; margin-right: auto; justify-content: center; }
  .order-side { position: static; }
  .order-dock { display: flex; }
  .section { width: min(1120px, calc(100% - 28px)); padding: 64px 0 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
