:root {
  --background: #fffaf7;
  --foreground: #241916;
  --muted: #755f58;
  --accent: #9f2443;
  --accent-strong: #7d1430;
  --leaf: #2f6f56;
  --leaf-soft: #e3f0e7;
  --rose: #f7d5d2;
  --cream: #fff2df;
  --line: rgba(55, 36, 30, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  background: #2e1d1d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(255,250,247,.98), rgba(255,250,247,.82) 34%, rgba(255,250,247,.18) 68%), var(--hero-image, url("../hero-florist.png"));
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,250,247,0), var(--background));
}
.topbar, .hero-content, .section, .custom-order, .delivery, .contacts {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent-strong); font-weight: 800; }
.brand span:first-child {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: white; background: var(--accent); font-size: 14px;
}
.nav { display: flex; gap: 22px; color: #3f302d; font-size: 15px; font-weight: 650; }
.hero-content { padding: 70px 0 130px; align-self: center; }
.eyebrow {
  margin: 0 0 16px; color: var(--leaf); font-size: 13px;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 640px; margin-bottom: 22px; color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(68px, 9vw, 132px);
  line-height: .9;
}
.hero-lead { max-width: 560px; margin-bottom: 34px; color: #3b2d29; font-size: clamp(20px,2.2vw,28px); line-height: 1.35; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0 22px; border: 0; font-weight: 800;
}
.primary { color: white; background: var(--accent); box-shadow: 0 18px 38px rgba(159,36,67,.28); }
.secondary { color: var(--accent-strong); background: rgba(255,255,255,.72); border: 1px solid rgba(125,20,48,.22); }
.facts { width: min(660px, 100%); margin: 46px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.facts div { min-height: 86px; padding: 18px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.74); backdrop-filter: blur(10px); }
.facts strong { display: block; color: var(--accent-strong); font-size: 22px; }
.facts span { display: block; margin-top: 6px; color: var(--muted); }
.section { padding: 78px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section h2, .custom-order h2, .delivery h2, .contacts h2 {
  margin-bottom: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px,4.5vw,62px); line-height: 1;
}
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.category-filter button {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  background: rgba(255,255,255,.72); color: var(--foreground); font-weight: 700; font-size: 14px;
}
.category-filter button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.intro-card { border: 1px solid var(--line); border-radius: 8px; padding: 28px; color: var(--muted); background: rgba(255,255,255,.74); font-size: 18px; line-height: 1.55; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.shop-card, .promo-card, .brief-card {
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.82);
  overflow: hidden; box-shadow: 0 18px 42px rgba(55,36,30,.08);
}
.shop-card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; display: block; background: var(--cream); }
.shop-card-body { padding: 13px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { color: #111; font-size: 17px; font-weight: 900; }
.price span, del { color: #8a807c; font-weight: 750; }
.shop-card h3 { min-height: 38px; margin: 5px 0 2px; font-size: 16px; line-height: 1.18; }
.shop-card p { margin-bottom: 12px; color: #8a97a4; font-size: 14px; }
.shop-card button, .promo-card button {
  width: 100%; min-height: 38px; border: 0; border-radius: 7px; color: white;
  background: var(--accent); font-weight: 850;
}
.empty-note { padding: 24px; border-radius: 8px; background: var(--cream); color: var(--muted); }
.promos { padding-top: 86px; }
.promo-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.promo-card img { width: 100%; aspect-ratio: 1 / .95; object-fit: cover; display: block; }
.promo-card div { padding: 15px; }
.promo-card .badge { display: inline-flex; margin-bottom: 10px; padding: 6px 9px; border-radius: 999px; color: var(--accent-strong); background: var(--rose); font-size: 12px; font-weight: 900; }
.custom-order {
  margin-top: 86px; padding: 56px; border-radius: 8px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 42px; align-items: center; background: linear-gradient(135deg, #fff2df, #f7d5d2 54%, #e3f0e7);
}
.custom-order p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.58; }
.brief-card { padding: 28px; }
.brief-card ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.brief-card li { padding: 15px 16px; border-radius: 8px; background: rgba(255,250,247,.88); color: var(--muted); }
.delivery {
  margin-top: 86px; padding: 52px; border-radius: 8px; display: grid; grid-template-columns: 1fr .85fr;
  gap: 44px; background: #243d32; color: #fffaf7;
}
.delivery .eyebrow { color: #b8d4a6; }
.delivery p { color: rgba(255,250,247,.78); font-size: 18px; line-height: 1.6; }
.delivery ul { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.delivery li { padding: 18px 20px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-weight: 750; }
.contacts { padding: 86px 0 96px; display: grid; grid-template-columns: 1fr .55fr; gap: 18px; }
.contacts-panel, .contacts-note { border: 1px solid var(--line); border-radius: 8px; padding: 34px; background: rgba(255,255,255,.74); }
.contact-list { margin-top: 30px; display: grid; gap: 14px; color: var(--accent-strong); font-size: 20px; font-weight: 800; }
.floating-cart {
  position: fixed; right: 22px; bottom: 22px; z-index: 20; min-height: 54px;
  display: inline-flex; align-items: center; gap: 12px; padding: 0 20px;
  border: 0; border-radius: 999px; color: #fff; background: var(--accent);
  box-shadow: 0 18px 42px rgba(125,20,48,.32); font-weight: 900;
}
.floating-cart span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-strong); background: white; }
.cart-panel {
  position: fixed; top: 0; right: 0; z-index: 30; width: min(480px,100%); height: 100vh;
  padding: 28px; overflow-y: auto; transform: translateX(102%); transition: transform .24s ease;
  background: linear-gradient(180deg, #fffaf7, #fff2df); box-shadow: -28px 0 60px rgba(55,36,30,.18);
}
.cart-panel.open { transform: translateX(0); }
.cart-backdrop, .modal-backdrop { position: fixed; inset: 0; border: 0; background: rgba(36,25,22,.52); }
.cart-backdrop { z-index: 29; }
.modal-backdrop { z-index: 39; }
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.cart-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1; }
.close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--accent-strong); font-size: 30px; line-height: 1; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.cart-line img { width: 74px; height: 84px; border-radius: 7px; object-fit: cover; }
.quantity { width: fit-content; margin-top: 8px; display: grid; grid-template-columns: 34px 34px 34px; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quantity button { height: 32px; border: 0; background: var(--cream); color: var(--accent-strong); font-weight: 900; }
.quantity span { text-align: center; }
.cart-empty { padding: 18px; border-radius: 8px; background: var(--cream); color: var(--muted); line-height: 1.45; }
.cart-total { margin: 20px 0; padding: 18px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cart-total strong { color: var(--accent-strong); font-size: 24px; }
.checkout { display: grid; gap: 14px; }
.checkout label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 800; }
.checkout input, .checkout select, .checkout textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; background: white; color: var(--foreground); }
.payment-fieldset { margin: 0; padding: 16px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.payment-fieldset legend { padding: 0 7px; color: var(--muted); font-size: 14px; font-weight: 900; }
.payment-option { display: flex !important; align-items: center; gap: 10px !important; padding: 12px; border-radius: 8px; background: white; color: var(--foreground) !important; }
.payment-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.transfer { display: none; padding: 18px; border: 1px solid rgba(47,111,86,.2); border-radius: 8px; background: white; }
.transfer.open { display: block; }
.transfer strong { display: block; margin-bottom: 7px; color: var(--leaf); font-size: 18px; }
.transfer p, .transfer small { color: var(--muted); line-height: 1.45; }
.transfer img { width: min(220px,100%); margin: 14px auto 10px; display: block; border-radius: 18px; }
.message { margin: 0; padding: 13px 14px; border-radius: 8px; line-height: 1.42; background: #e3f0e7; color: #1f5b42; }
.message.error { background: #fbe4e4; color: #7d1430; }
.product-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; }
.product-dialog {
  position: relative; z-index: 41; width: min(860px,100%); max-height: min(760px, calc(100vh - 44px));
  overflow: auto; display: grid; grid-template-columns: .95fr 1.05fr; border: 1px solid var(--line);
  border-radius: 8px; background: #fffaf7; box-shadow: 0 28px 90px rgba(36,25,22,.28);
}
.product-dialog > img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; background: var(--cream); }
.product-content { padding: 38px; }
.product-content h2 { margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px,4vw,54px); line-height: 1; }
.product-content > p { margin: 20px 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.product-content ul { margin: 0 0 26px; padding: 0; display: grid; gap: 10px; list-style: none; }
.product-content li { padding: 12px 14px; border-radius: 8px; background: var(--cream); color: var(--muted); }
.product-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.site-footer { margin-top: 90px; padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 920px) {
  .nav { display: none; }
  .facts, .intro, .custom-order, .delivery, .contacts { grid-template-columns: 1fr; }
  .product-grid, .promo-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .product-grid, .promo-grid, .facts { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .delivery, .custom-order, .contacts-panel, .contacts-note { padding: 28px; }
  .product-dialog { grid-template-columns: 1fr; }
  .product-dialog > img { min-height: 320px; max-height: 420px; }
  .product-content { padding: 28px; }
}
