:root {
  --ink: #1d2a23;
  --muted: #6f7b72;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --line: #e4ddcf;
  --brand: #315c45;
  --brand-dark: #234333;
  --accent: #d8794b;
  --shadow: 0 18px 50px rgba(35, 48, 39, .09);
  --radius: 22px;
  --header-height: 75px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(20px, 6vw, 84px); background: rgba(246, 241, 231, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(228, 221, 207, .75); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; }
.brand strong { display: block; font-size: 17px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.header-nav { display: flex; gap: 28px; font-size: 14px; }
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--brand); }
.header-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header-phone { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-hours { color: var(--muted); font-size: 10px; white-space: nowrap; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); align-items: center; gap: 40px; min-height: 460px; padding: 64px clamp(20px, 6vw, 84px) 72px; overflow: hidden; background: radial-gradient(circle at 80% 30%, #e9ddc9 0, transparent 36%), var(--cream); }
.hero-content { max-width: 650px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 68px); line-height: .97; letter-spacing: -.055em; font-weight: 800; }
.hero-text { max-width: 480px; margin: 25px 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #74a56d; box-shadow: 0 0 0 4px #dce8d8; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-ring { position: absolute; width: min(34vw, 340px); aspect-ratio: 1; border-radius: 50%; background: #e6d2ae; }
.hero-ring::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgba(49, 92, 69, .25); border-radius: inherit; }
.hero-cup { position: relative; z-index: 1; font-size: clamp(120px, 17vw, 190px); filter: drop-shadow(0 25px 20px rgba(49, 92, 69, .16)); transform: rotate(-9deg); }
.hero-sticker { position: absolute; right: 7%; bottom: 16%; z-index: 2; display: grid; width: 94px; height: 94px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; transform: rotate(8deg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 21px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .18s, background .18s; }
.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-wide { width: 100%; }
.button-primary { box-shadow: 0 8px 18px rgba(49, 92, 69, .18); }
.menu-section { padding: 54px clamp(20px, 6vw, 84px) 72px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto 27px; }
.section-heading h2, .checkout-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.search { display: flex; align-items: center; gap: 8px; width: min(270px, 100%); padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.search input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.categories { position: sticky; top: var(--header-height); z-index: 15; display: flex; gap: 9px; max-width: 1240px; margin: 0 auto 24px; overflow-x: auto; padding: 10px 0 8px; background: var(--paper); scrollbar-width: thin; }
.category { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; }
.category:hover, .category.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.menu-state { max-width: 1240px; margin: 38px auto; padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { display: block; width: 100%; aspect-ratio: 1.22; object-fit: contain; object-position: center; background: #fff; padding: 6px; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 15px; }
.product-category { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-title { min-height: 42px; margin: 0; font-size: 15px; line-height: 1.3; }
.product-meta { min-height: 17px; margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.product-price { font-size: 16px; font-weight: 800; }
.add-button { height: 34px; padding: 0 12px; border: 1px solid var(--brand); border-radius: 10px; background: transparent; color: var(--brand); font-size: 12px; font-weight: 800; }
.add-button:hover { background: var(--brand); color: #fff; }
.add-button:disabled { border-color: var(--line); color: #a6aca7; background: transparent; cursor: not-allowed; }
.quantity { display: inline-flex; align-items: center; gap: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.quantity button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; background: #eee8dc; color: var(--ink); font-size: 16px; line-height: 1; }
.quantity span { min-width: 15px; text-align: center; font-size: 13px; font-weight: 800; }
.checkout-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(28px, 7vw, 100px); max-width: 1240px; margin: 0 auto; padding: 74px clamp(20px, 6vw, 84px) 86px; }
.checkout-copy > p:not(.eyebrow) { max-width: 420px; color: var(--muted); }
.pickup-card { display: flex; align-items: center; gap: 13px; max-width: 330px; margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.pickup-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: #e4eee5; color: var(--brand); font-size: 20px; }
.pickup-card strong { display: block; font-size: 14px; }
.pickup-card p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.order-panel { padding: clamp(19px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font-size: 20px; }
.panel-heading span { color: var(--muted); font-size: 12px; }
.cart { min-height: 76px; }
.cart-empty { margin: 0; padding: 26px 0; color: var(--muted); font-size: 14px; text-align: center; }
.cart-line { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #eee8dc; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 47px; height: 47px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: #eee8dc; }
.cart-line-info { min-width: 0; flex: 1; }
.cart-line-info strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-info span { color: var(--muted); font-size: 12px; }
.cart-line-total { min-width: 65px; text-align: right; font-size: 13px; font-weight: 700; }
.cart-line .quantity { flex: 0 0 auto; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 5px; border-top: 1px solid var(--line); font-size: 15px; }
.total-row strong { font-size: 24px; letter-spacing: -.03em; }
.order-form { display: grid; gap: 13px; margin-top: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 5px; }
.field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.field em { font-style: normal; font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #fff; color: var(--ink); font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49, 92, 69, .1); }
.field textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.consent input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.form-error { margin: 0; padding: 9px 11px; border-radius: 8px; background: #fbe9e5; color: #a23d2c; font-size: 12px; }
.form-note { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(20px, 6vw, 84px); border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); font-size: 15px; }
.site-footer p { margin: 5px 0 0; }
.site-footer a { color: var(--brand); text-decoration: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(29, 42, 35, .5); }
.modal-card { width: min(430px, 100%); padding: 34px; border-radius: 24px; background: var(--paper); text-align: center; box-shadow: 0 25px 80px rgba(0, 0, 0, .2); }
.success-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #dcead9; color: var(--brand); font-size: 29px; font-weight: 800; }
.modal-card h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.modal-card p { color: var(--muted); font-size: 14px; }
.modal-card p strong { color: var(--ink); font-size: 20px; }
.modal-card .button { margin-top: 12px; }
.mobile-cart { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border: 0; border-radius: 15px; background: var(--brand); color: #fff; box-shadow: 0 10px 30px rgba(35, 48, 39, .25); font-size: 13px; }
.mobile-cart strong { font-size: 15px; }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 400px; }
  .hero-art { min-height: 260px; }
  .checkout-section { grid-template-columns: 1fr; }
  .checkout-copy > p:not(.eyebrow) { max-width: 590px; }
}
@media (max-width: 700px) {
  :root { --header-height: 63px; }
  .site-header { padding: 12px 17px; }
  .header-nav { display: none; }
  .header-contacts { align-items: flex-end; }
  .header-phone { font-size: 10px; }
  .header-hours { font-size: 8px; }
  .hero { display: block; min-height: auto; padding: 48px 20px 55px; }
  .hero-art { position: absolute; right: -25px; top: 48px; width: 180px; min-height: 180px; opacity: .75; }
  .hero-ring { width: 180px; }
  .hero-cup { font-size: 100px; }
  .hero-sticker { right: 0; bottom: -5px; width: 69px; height: 69px; font-size: 9px; }
  .hero h1 { position: relative; z-index: 2; font-size: 46px; }
  .hero-text { position: relative; z-index: 2; max-width: 310px; font-size: 15px; }
  .menu-section { padding: 42px 17px 55px; }
  .section-heading { display: block; }
  .search { width: 100%; margin-top: 17px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-body { padding: 10px; }
  .product-title { min-height: 36px; font-size: 13px; }
  .product-price { font-size: 14px; }
  .add-button { padding: 0 9px; font-size: 11px; }
  .checkout-section { padding: 45px 17px 90px; }
  .order-panel { padding: 17px; }
  .site-footer { display: block; padding: 25px 20px 80px; }
  .site-footer > p { margin-top: 20px; }
}
@media (min-width: 701px) { .mobile-cart { display: none !important; } }

.mobile-menu-nav { display: none; }
.category-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.category-sheet-backdrop { position: absolute; inset: 0; background: rgba(29, 42, 35, .48); backdrop-filter: blur(2px); }
.category-sheet-panel { position: relative; z-index: 1; width: 100%; max-height: 78vh; overflow: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--paper); box-shadow: 0 -18px 50px rgba(35, 48, 39, .16); animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(25px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.category-sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.category-sheet-heading h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.category-sheet-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 22px; line-height: 1; }
.category-sheet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.category-sheet-item { min-height: 45px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; }
.category-sheet-item.active { border-color: var(--brand); background: var(--brand); color: #fff; }
body.sheet-open { overflow: hidden; }
@media (max-width: 700px) {
  .categories { display: none !important; }
  .mobile-menu-nav { display: flex; position: sticky; top: var(--header-height); z-index: 15; max-width: 1240px; margin: 0 auto 16px; padding: 9px 0 8px; background: var(--paper); }
  .mobile-category-toggle { display: flex; width: 100%; align-items: center; gap: 9px; min-height: 43px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; }
  .mobile-category-label { color: var(--muted); font-size: 11px; font-weight: 600; }
  .mobile-active-category, .mobile-category-toggle strong { min-width: 0; flex: 1; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-category-chevron { color: var(--muted); font-size: 18px; line-height: 1; transform: translateY(-2px); }
  .category-sheet-list { gap: 7px; }
}
