:root {
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --red: #991b2b;
  --red-dark: #76101e;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .11);
  --green: #128c5a;
  --shadow: 0 16px 42px rgba(55, 32, 20, .08);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 104px;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 232, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.nav-row { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { padding: 25px 0 21px; border-bottom: 3px solid transparent; }
.main-nav a.active { color: var(--red); border-color: var(--red); font-weight: 700; }
.nav-actions { min-width: 190px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.icon-btn, .lang-btn {
  height: 40px; min-width: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(153, 27, 43, .28);
  color: var(--red); background: rgba(255,255,255,.58); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.icon-btn { position: relative; }
.icon-btn svg { width: 18px; height: 18px; }
.badge-count {
  position: absolute; right: -3px; top: -5px; min-width: 19px; height: 19px;
  border-radius: 10px; padding: 0 5px; background: var(--red); color: white;
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.mobile-toggle { display: none; }
.mobile-nav { padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.mobile-nav a, .mobile-nav button { width: 100%; display: block; padding: 12px 4px; text-align: left; border: 0; background: none; font-size: 15px; }

.notice { background: var(--red-dark); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; }
.page-hero { padding: 76px 0 62px; text-align: center; }
.page-hero.compact { padding: 58px 0 42px; }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 12px auto 14px; max-width: 900px; font-size: 68px; line-height: 1.04; letter-spacing: 0; }
.page-hero.compact h1 { font-size: 56px; }
.lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { margin-top: 42px; height: min(54vw, 520px); border-radius: 32px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.group-hero-media { width: min(880px, 100%); height: auto; aspect-ratio: 4 / 3; margin-left: auto; margin-right: auto; }
.group-hero-media img { object-position: center center; }

.section { padding: 64px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-title h2 { margin: 0; font-size: 44px; line-height: 1.12; }
.section-title p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.text-link { color: var(--red); font-weight: 700; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.75); }
.product-photo { aspect-ratio: 1; background: white; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 19px; }
.product-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.product-info h3 { margin: 10px 0 5px; font-size: 21px; }
.product-info p { min-height: 40px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.price { font-size: 18px; font-weight: 800; }
.button { min-height: 44px; border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; font-weight: 720; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button.primary { background: var(--red); color: white; }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: white; color: var(--red); border: 1px solid rgba(153, 27, 43, .3); }
.button.whatsapp { background: var(--green); color: white; }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 13px; }

.feature-band { background: var(--red); color: white; border-radius: 32px; padding: 50px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 36px; }
.feature-band h2 { margin: 6px 0 12px; font-size: 52px; line-height: 1.08; }
.feature-band p { margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.65; }
.feature-band .hero-media { margin: 0; height: 340px; border-radius: 24px; box-shadow: none; }
.lifestyle-band { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
.lifestyle-band .hero-media { margin: 0; height: 430px; }
.lifestyle-band h2 { margin: 8px 0 14px; font-size: 46px; line-height: 1.12; }
.lifestyle-band p { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 17px; cursor: pointer; }
.filter-btn.active { background: var(--ink); color: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

.soft-panel { background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.8); border-radius: 30px; box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { height: 22px; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; border: 1px solid rgba(29,29,31,.16); border-radius: 15px;
  background: white; padding: 0 15px; outline: none; color: var(--ink);
}
.field textarea { height: 110px; padding-top: 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(153,27,43,.09); }
.phone-input { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 8px; }
.phone-input select, .phone-input input { min-width: 0; }
.form-message { min-height: 22px; margin: 12px 0; color: var(--red); font-size: 14px; }
.two-column { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; align-items: start; }
.photo-slot { min-height: 410px; border-radius: 28px; background: white; display: grid; place-items: center; overflow: hidden; color: #bbb; text-align: center; }
.photo-slot img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }

.group-builder { margin-top: 22px; }
.group-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 28px; }
.group-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.group-orders { display: grid; gap: 16px; }
.order-card { background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.order-card h3 { margin: 0; font-size: 20px; }
.order-row { display: grid; grid-template-columns: 1fr 130px 42px; gap: 10px; margin-top: 10px; }
.order-row select, .order-row input { height: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: white; }
.remove-btn { border: 0; background: #f2e6e7; color: var(--red); border-radius: 14px; cursor: pointer; }
.group-summary { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.group-summary strong { font-size: 25px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.58); backdrop-filter: blur(10px); }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 28px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 28px; }
.close-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eee; cursor: pointer; }

.bag-popover { position: fixed; z-index: 90; right: max(20px, calc((100vw - 1180px)/2)); top: 76px; width: min(400px, calc(100vw - 40px)); max-height: calc(100vh - 160px); overflow: auto; background: var(--paper); border-radius: 24px; padding: 22px; box-shadow: 0 28px 70px rgba(0,0,0,.23); }
.bag-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; }
.bag-total { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; font-size: 20px; font-weight: 800; }
.bag-method { width: 100%; height: 46px; margin-top: 15px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.floating-cart { position: fixed; z-index: 70; bottom: 24px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; background: #111; color: white; padding: 12px 18px; min-width: 280px; box-shadow: 0 15px 40px rgba(0,0,0,.28); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 65; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 13px; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.toast { position: fixed; z-index: 120; top: 82px; left: 50%; transform: translateX(-50%); background: #111; color: white; border-radius: 999px; padding: 11px 18px; font-size: 14px; box-shadow: var(--shadow); }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.contact-card { background: var(--paper); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 12px 0 8px; font-size: 22px; }
.contact-card p { color: var(--muted); line-height: 1.55; }
.site-footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 36px 0; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .brand { min-width: auto; }
  .nav-actions { min-width: auto; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-band, .two-column, .lifestyle-band { grid-template-columns: 1fr; }
  .feature-band { padding: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 56px; }
  .page-hero.compact h1 { font-size: 48px; }
  .section-title h2 { font-size: 38px; }
  .feature-band h2 { font-size: 44px; }
}

@media (max-width: 620px) {
  body { padding-bottom: 92px; }
  .container { width: min(100% - 28px, 1180px); }
  .nav-row { height: 60px; gap: 8px; }
  .brand img { width: 35px; height: 35px; }
  .brand small, .brand strong { display: none; }
  .nav-actions { gap: 6px; }
  .icon-btn, .lang-btn { height: 38px; min-width: 38px; padding: 0 10px; }
  .page-hero { padding: 52px 0 42px; }
  .page-hero.compact { padding: 42px 0 28px; }
  h1, .page-hero.compact h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .hero-media { height: 62vw; margin-top: 30px; border-radius: 24px; }
  .section { padding: 46px 0; }
  .section-title { align-items: start; flex-direction: column; }
  .section-title h2 { font-size: 33px; }
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .product-card { border-radius: 22px; }
  .feature-band { margin-left: -2px; margin-right: -2px; padding: 28px 22px; border-radius: 26px; }
  .feature-band .hero-media { height: 250px; }
  .lifestyle-band { gap: 26px; }
  .lifestyle-band .hero-media { height: 68vw; }
  .lifestyle-band h2 { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .group-contact { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .soft-panel { padding: 20px; border-radius: 24px; }
  .order-row { grid-template-columns: 1fr 85px 42px; }
  .group-toolbar, .group-summary { align-items: stretch; flex-direction: column; }
  .group-summary .button { width: 100%; }
  .modal-card { padding: 21px; border-radius: 24px; }
  .floating-cart { bottom: 18px; width: calc(100% - 110px); min-width: 0; left: 14px; transform: none; }
  .whatsapp-float { right: 14px; bottom: 18px; }
  .footer-row { flex-direction: column; }
}
