:root {
  --color-milk: #fff8f1;
  --color-cream: #f7efe7;
  --color-lavender: #b9a4f4;
  --color-lavender-dark: #8a72d9;
  --color-graphite: #26232b;
  --color-muted: #716b78;
  --color-sage: #7d9275;
  --color-white: #ffffff;
  --color-border: rgba(38, 35, 43, 0.12);
  --shadow: 0 18px 48px rgba(38, 35, 43, 0.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--color-graphite);
  background: var(--color-milk);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-lavender-dark); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(138, 114, 217, 0.45); outline-offset: 3px; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.band { background: linear-gradient(180deg, var(--color-cream), #fffaf5); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2, .split h2, .trust-panel h2, .page-hero h1 { margin: 0 0 14px; line-height: 1.05; }
h1, h2, h3 { color: var(--color-graphite); }
h1 { font-size: clamp(2.7rem, 8vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h3 { font-size: 1.18rem; margin: 0 0 8px; }
p { margin: 0 0 18px; color: var(--color-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-sage);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-lavender);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--color-lavender-dark);
  border-radius: 999px;
  background: var(--color-lavender-dark);
  color: var(--color-white);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { color: var(--color-white); transform: translateY(-2px); box-shadow: var(--shadow); background: #7860cf; }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 38px; padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255,255,255,.7); color: var(--color-white); backdrop-filter: blur(8px); }
.text-link { font-weight: 800; color: var(--color-lavender-dark); border-bottom: 1px solid currentColor; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  color: var(--color-white);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease, padding .25s ease;
}
.site-header.scrolled, .site-header.menu-active {
  color: var(--color-graphite);
  background: rgba(255, 248, 241, .94);
  box-shadow: 0 10px 30px rgba(38, 35, 43, .08);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { height: 43px; width: auto; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 22px; flex: 1; font-size: .95rem; font-weight: 800; }
.primary-nav a { opacity: .9; }
.primary-nav a[aria-current="page"] { color: var(--color-lavender-dark); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 800; white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: inherit;
  padding: 10px;
}
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero, .page-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}
.hero-bg, .hero-bg img, .hero-bg source { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,35,43,.76), rgba(38,35,43,.34) 52%, rgba(38,35,43,.08)); }
.hero-content, .page-hero-content { position: relative; z-index: 1; max-width: 760px; padding-top: 90px; }
.hero h1, .hero p, .page-hero h1, .page-hero p { color: var(--color-white); }
.hero p, .page-hero p { font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 650px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { min-height: 560px; background: linear-gradient(135deg, rgba(38,35,43,.78), rgba(138,114,217,.5)), url("../images/hero-bouquet-warsaw.jpg") center/cover; }
.bouquet-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.74), rgba(138,114,217,.46)), url("../images/popular-lavender-bouquet.jpg"); }
.delivery-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.74), rgba(125,146,117,.44)), url("../images/delivery-courier-warsaw.jpg"); }
.about-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.74), rgba(138,114,217,.42)), url("../images/about-florist-studio.jpg"); }
.contact-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.74), rgba(125,146,117,.42)), url("../images/contact-flower-shop.jpg"); }
.thanks-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.76), rgba(138,114,217,.44)), url("../images/thanks-bouquet-card.jpg"); }
.legal-hero, .faq-hero { background-image: linear-gradient(135deg, rgba(38,35,43,.78), rgba(138,114,217,.46)), url("../images/category-flower-box.jpg"); }

.product-grid, .feature-grid, .category-grid, .steps, .mini-grid {
  display: grid;
  gap: 22px;
}
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card, .feature, .step, .contact-card, .trust-panel, .order-form, .faq-list details, .mini-grid > div {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 26px rgba(38,35,43,.06);
}
.product-card { overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.product-content { padding: 20px; }
.price { display: inline-block; margin-bottom: 10px; color: var(--color-lavender-dark); font-weight: 900; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(28px, 6vw, 72px); align-items: center; }
.split-reverse { grid-template-columns: minmax(320px, 520px) minmax(0, 1fr); }
.rounded-media, .rounded-media img { border-radius: 8px; overflow: hidden; }
.rounded-media img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; box-shadow: var(--shadow); }
.check-list, .contact-list, .footer-list { list-style: none; padding: 0; margin: 22px 0; color: var(--color-muted); }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--color-lavender); box-shadow: 0 0 0 5px rgba(185,164,244,.16); }
.category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-card {
  min-height: 170px;
  display: flex;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--color-cream));
  font-weight: 900;
  position: relative;
  overflow: hidden;
}
.category-card span { position: relative; z-index: 2; }
.image-card { color: var(--color-white); }
.image-card picture, .image-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,35,43,.05), rgba(38,35,43,.6)); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature, .step, .contact-card { padding: 26px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step span { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 999px; background: rgba(185,164,244,.24); color: var(--color-lavender-dark); font-weight: 900; }
.trust-panel { padding: clamp(28px, 5vw, 54px); text-align: center; max-width: 900px; }
.trust-panel p { margin-inline: auto; max-width: 720px; }
.contact-section { background: linear-gradient(180deg, #fffaf5, var(--color-milk)); }
.order-form { padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 8px; color: var(--color-graphite); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-graphite);
  padding: 13px 14px;
}
textarea { resize: vertical; min-height: 132px; }
.checkbox { grid-template-columns: 22px 1fr; align-items: start; margin: 18px 0; font-weight: 600; color: var(--color-muted); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-lavender-dark); }
.large-price { font-size: 1.7rem; color: var(--color-lavender-dark); font-weight: 900; }
.mini-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.mini-grid > div { padding: 18px; }
.faq-list { display: grid; gap: 14px; }
.faq-wide { max-width: 900px; }
.faq-list details { padding: 18px 22px; }
.faq-list summary { cursor: pointer; font-weight: 900; color: var(--color-graphite); }
.faq-list p { margin-top: 12px; }
.legal-content .container { max-width: 820px; }
.legal-content section { margin-bottom: 34px; }

.site-footer { background: #26232b; color: var(--color-white); padding: 58px 0 28px; }
.site-footer p, .site-footer li, .footer-bottom { color: rgba(255,255,255,.74); }
.site-footer h2 { color: var(--color-white); font-size: 1rem; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-list { margin: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: .92rem; }
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255,248,241,.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .94rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-block; order: 0; }
  .brand { order: 1; margin-right: auto; }
  .header-actions { order: 2; }
  .phone-link { display: none; }
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 80;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-milk);
    color: var(--color-graphite);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav a { padding: 13px 8px; min-height: 44px; }
  .hero, .page-hero { min-height: 680px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .feature-grid, .steps, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split-reverse { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .site-header { padding: 10px 0; }
  .brand img { height: 38px; }
  .header-actions .btn { display: none; }
  .hero, .page-hero { min-height: 640px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.8rem); }
  .product-grid, .category-grid, .feature-grid, .steps, .footer-grid, .form-grid, .mini-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 132px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .order-form { padding: 20px; }
  .cookie-bar { align-items: stretch; flex-direction: column; }
  .footer-bottom { display: grid; }
}
