:root {
  --dark: oklch(28% 0.05 152);
  --green: oklch(38% 0.06 152);
  --cream: oklch(97% 0.014 85);
  --beige: oklch(91% 0.03 75);
  --terra: oklch(58% 0.12 40);
  --mustard: oklch(78% 0.13 85);
  --white: oklch(99% 0.004 85);
  --ink: oklch(26% 0.012 260);
  --wood: oklch(70% 0.05 55);
  --line: oklch(87% 0.02 80);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, .serif { font-family: 'Lora', Georgia, 'Times New Roman', serif; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Top bar */
.topbar {
  background: var(--dark); color: var(--white);
  font-size: 13px; padding: 6px 20px; text-align: center; letter-spacing: .02em;
}

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: baseline; gap: 6px; font-family: 'Lora', serif; }
.logo .kn { font-size: 26px; font-weight: 700; color: var(--dark); letter-spacing: .02em; }
.logo .dobroty { font-size: 22px; font-weight: 600; color: var(--terra); font-style: italic; }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; font-size: 15px; font-weight: 500; }
.main-nav a:hover, .header-actions a:hover { color: var(--terra); }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.cart-btn { background: var(--dark); color: var(--white); border: none; border-radius: 6px; padding: 9px 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cart-badge { background: var(--terra); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.cat-bar { background: var(--beige); padding: 8px 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.cat-bar a { color: var(--dark); opacity: .85; }
.cat-bar a:hover, .cat-bar a.active { opacity: 1; font-weight: 700; }

main { flex: 1; max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Buttons */
.btn { display: inline-block; border: none; border-radius: 6px; font-weight: 600; font-size: 15px; padding: 14px 26px; cursor: pointer; }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--green); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-terra { background: var(--terra); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 13px; border-radius: 6px; font-weight: 600; border: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; align-items: center; padding: 56px 0; }
.hero h1 { font-size: 48px; line-height: 1.1; color: var(--dark); margin: 0 0 16px; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--ink); opacity: .85; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-img { width: 100%; height: 420px; border-radius: 18px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

section.block { padding: 20px 0 48px; }
section.block h2 { font-size: 28px; color: var(--dark); margin-bottom: 20px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.cat-card { cursor: pointer; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card .thumb { width: 100%; height: 110px; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .name { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--dark); }

/* Product grid / card */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card .thumb { width: 100%; height: 180px; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .brand { font-size: 11px; color: var(--terra); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.product-card .name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.product-card .weight { font-size: 12px; opacity: .6; }
.product-card .spacer { flex: 1; }
.product-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.product-card .price { font-size: 17px; font-weight: 700; color: var(--dark); }
.product-card .unit { font-size: 11px; opacity: .55; }
.product-card .add-btn { margin-top: 8px; background: var(--dark); color: var(--white); border: none; padding: 10px; border-radius: 6px; font-weight: 600; font-size: 13px; width: 100%; }

/* Split promo blocks */
.split { padding: 20px 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split .panel { border-radius: 16px; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.split .panel h3 { font-size: 24px; margin: 0 0 10px; }
.split .panel p { opacity: .85; margin: 0 0 18px; font-size: 15px; }
.split .panel a { text-decoration: underline; font-weight: 600; }
.split .panel.dark { background: var(--dark); color: var(--white); }
.split .panel.mustard { background: var(--mustard); color: var(--dark); }

/* Recipe / article tiles */
.tile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tile { cursor: pointer; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tile .thumb { width: 100%; height: 150px; overflow: hidden; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .content { padding: 14px; }
.tile .eyebrow { font-size: 12px; color: var(--terra); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tile .title { font-size: 16px; font-weight: 600; margin-top: 4px; }
.tile .meta { font-size: 13px; opacity: .6; margin-top: 6px; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.shop-aside .aside-title { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.shop-aside .cat-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.shop-aside .cat-list a { padding: 6px 0; font-size: 14px; }
.shop-aside .cat-list a.active { font-weight: 700; }
.shop-aside select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.shop-aside .hint { margin-top: 24px; font-size: 12px; opacity: .6; line-height: 1.5; }
.shop-results-label { color: var(--ink); opacity: .75; margin: 0 0 24px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 36px 0 60px; }
.product-detail .photo { width: 100%; height: 440px; border-radius: 16px; overflow: hidden; }
.product-detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .brand { font-size: 13px; color: var(--terra); font-weight: 700; text-transform: uppercase; }
.product-detail h1 { font-size: 30px; color: var(--dark); margin: 6px 0 12px; }
.product-detail .desc { opacity: .8; line-height: 1.6; margin-bottom: 18px; }
.product-detail .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.product-detail .price { font-size: 28px; font-weight: 700; color: var(--dark); }
.product-detail .unit { font-size: 13px; opacity: .6; }
.product-detail .meta-line { font-size: 13px; opacity: .7; margin-bottom: 20px; }
.product-detail .actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.product-detail .specs { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.breadcrumb { font-size: 13px; margin-bottom: 18px; opacity: .7; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.cart-item .thumb { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.summary-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; align-self: start; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-total { border-top: 1px solid var(--line); margin: 12px 0; padding-top: 12px; display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; }
.summary-hint { font-size: 12px; opacity: .6; margin-bottom: 16px; }
.empty-cart { padding: 60px 0; text-align: center; opacity: .7; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field, form input:not([type=checkbox]):not([type=radio]), form textarea, form select {
  padding: 11px; border: 1px solid var(--line); border-radius: 6px; width: 100%; font-size: 14px;
}
.col-span-2 { grid-column: 1 / 3; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; opacity: .8; }
.checkbox-line input { margin-top: 2px; }
.checkout-summary { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-q { cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; background: none; border: none; width: 100%; text-align: left; color: inherit; padding: 0; }
.faq-a { margin: 10px 0 0; opacity: .75; line-height: 1.6; font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 36px 0 60px; }
.legal-nav { display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.legal-nav a.active { background: var(--beige); font-weight: 700; }
.legal-section { margin-bottom: 20px; }
.legal-section h3 { font-size: 16px; margin: 0 0 8px; }
.legal-section p { line-height: 1.75; opacity: .85; font-size: 14.5px; white-space: pre-line; }

/* Account */
.account-box { padding: 36px 0 60px; max-width: 420px; margin: 0 auto; }
.tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab-btn { flex: 1; padding: 12px; background: none; border: none; border-bottom: 2px solid transparent; font-weight: 700; color: inherit; }
.tab-btn.active { border-bottom-color: var(--dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.note-box { margin-top: 16px; font-size: 13px; opacity: .7; text-align: center; }

/* Contact */
.contact-layout { padding: 36px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-photo { width: 100%; height: 100%; min-height: 320px; border-radius: 16px; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 24px; }
.confirm-box { background: var(--beige); padding: 20px; border-radius: 8px; }

/* Recipe / article detail */
.narrow { max-width: 760px; }
.narrow-md { max-width: 700px; }
.back-link { font-size: 13px; opacity: .7; }
.recipe-photo, .article-photo { width: 100%; border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.recipe-photo img, .article-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-photo { height: 320px; }
.article-photo { height: 280px; }
.article-body { line-height: 1.8; opacity: .85; white-space: pre-line; }

/* Promo */
.promo-box { padding: 60px 0; max-width: 640px; margin: 0 auto; text-align: center; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: var(--white); padding: 20px 24px; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,.2); display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { max-width: 1100px; margin: 0 auto; }
.cookie-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-row p { flex: 1; min-width: 260px; margin: 0; font-size: 14px; opacity: .9; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.cookie-btn.accept { background: var(--terra); border: none; padding: 10px 18px; font-weight: 700; }
.cookie-settings { display: none; }
.cookie-settings.show { display: block; }
.cookie-cats { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-bottom: 16px; }
.cookie-cats label { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--white); margin-top: 20px; }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid .flogo { font-family: 'Lora', serif; font-size: 22px; margin-bottom: 12px; }
.footer-grid p { font-size: 13px; opacity: .75; line-height: 1.6; max-width: 240px; }
.footer-col-title { font-weight: 700; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; opacity: .8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; opacity: .85; }
.footer-links a:hover { opacity: .7; }
.footer-op { font-size: 12.5px; opacity: .75; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 20px; text-align: center; font-size: 12px; opacity: .6; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { height: 300px; }
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .tile-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: 1; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-row { gap: 12px; }
  .main-nav { gap: 12px; font-size: 14px; }
  .cookie-cats { grid-template-columns: repeat(2,1fr); }
}
