:root {
  --ink: #14251a;
  --muted: #667067;
  --green: #17492d;
  --green-2: #287438;
  --lime: #9abb43;
  --paper: #fff;
  --wash: #f3f5ef;
  --line: #e2e6de;
  --radius: 20px;
  --shadow: 0 18px 55px rgba(27, 59, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, Arial, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; background: #fff; padding: 12px 18px; border-radius: 9px; box-shadow: var(--shadow); }
.skip-link:focus { top: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.topline { background: linear-gradient(90deg, #0c3520, #17492d, #0c3520); color: #fff; font-size: 12px; }
.topline__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header__main { height: 90px; display: flex; align-items: center; gap: 24px; }
.brand { min-width: 220px; display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -.05em; color: var(--green); }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.brand__mark { position: relative; display: block; width: 43px; height: 38px; }
.brand__mark i, .brand__mark b { position: absolute; background: var(--lime); border-radius: 100% 0 100% 0; transform: rotate(-15deg); }
.brand__mark i { width: 24px; height: 34px; left: 18px; top: 0; }
.brand__mark b { width: 20px; height: 27px; left: 1px; top: 11px; transform: rotate(65deg); }
.brand__mark::after { content: ""; position: absolute; width: 41px; height: 2px; left: 2px; top: 26px; background: #fff; transform: rotate(-33deg); transform-origin: right; }
.catalog-button, .button { border: 0; cursor: pointer; border-radius: 11px; transition: transform .2s, background .2s, box-shadow .2s; }
.catalog-button { height: 52px; padding: 0 23px; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--green-2); font-weight: 700; }
.catalog-button:hover, .button:hover { transform: translateY(-2px); }
.search { height: 52px; flex: 1; max-width: 450px; position: relative; display: flex; background: #f3f4f2; border-radius: 12px; }
.search:focus-within { outline: 2px solid rgba(40,116,56,.24); }
.search input { width: 100%; padding: 0 52px 0 18px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.user-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.user-actions button { position: relative; padding: 5px 0; display: flex; align-items: center; gap: 7px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.user-actions span { font-size: 20px; }
.user-actions em { font-style: normal; font-size: 12px; }
.cart-trigger b { position: absolute; top: -6px; right: -11px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-2); font-size: 10px; }
.mobile-menu { display: none; border: 0; background: none; color: var(--green); font-size: 28px; }
.category-nav { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.category-nav a { position: relative; padding-block: 19px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.category-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--green-2); transition: right .2s; }
.category-nav a:hover::after { right: 0; }
.catalog-popover { position: absolute; z-index: 19; left: 0; right: 0; padding: 22px 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 44px rgba(10,33,19,.12); }
.catalog-popover__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.catalog-popover a { min-height: 130px; padding: 20px; display: flex; flex-direction: column; border-radius: 16px; background: var(--wash); transition: transform .2s, background .2s; }
.catalog-popover a:hover { transform: translateY(-3px); background: #e9efe2; }
.catalog-popover span { color: var(--lime); font-weight: 800; }
.catalog-popover b { margin-top: auto; font-size: 16px; }
.catalog-popover small { margin-top: 5px; color: var(--muted); }

.hero { position: relative; height: 520px; margin-top: 22px; overflow: hidden; border-radius: 22px; background: #e7ebdf; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,248,243,.96) 0%, rgba(247,248,243,.85) 34%, rgba(247,248,243,0) 60%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; width: 48%; padding: 66px 0 0 48px; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(38px,4vw,59px); line-height: 1.08; letter-spacing: -.05em; }
.hero__content > p:not(.eyebrow) { max-width: 530px; margin: 22px 0 28px; color: #425047; font-size: 18px; line-height: 1.55; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-weight: 700; }
.button--primary { color: #fff; background: linear-gradient(135deg, var(--green-2), #4d8d2f); box-shadow: 0 10px 24px rgba(40,116,56,.18); }
.button--ghost { color: var(--green); border: 1px solid var(--line); background: #fff; }
.button--light { color: var(--green); background: #fff; }
.hero__facts { margin-top: 28px; display: flex; gap: 28px; font-size: 12px; }
.hero__facts span { padding-left: 14px; border-left: 2px solid var(--lime); }
.hero__facts b { display: block; font-size: 14px; }
.promo-badge { position: absolute; z-index: 2; right: 26px; top: 24px; width: 164px; padding: 16px 18px; color: #fff; background: rgba(13,56,32,.94); border: 1px solid rgba(255,255,255,.16); border-radius: 15px; box-shadow: var(--shadow); }
.promo-badge small, .promo-badge span { display: block; }
.promo-badge strong { display: block; margin: 3px 0; color: #d5e991; font-size: 30px; }

.category-cards { padding-block: 18px 58px; display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.category-card { position: relative; min-height: 178px; padding: 23px; overflow: hidden; border-radius: 17px; background: #f4f5f2; transition: transform .25s, box-shadow .25s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card h2 { max-width: 150px; margin: 0 0 12px; font-size: 18px; line-height: 1.2; }
.category-card p { max-width: 160px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.category-card b { font-size: 12px; }
.category-card__icon { position: absolute; right: 13px; bottom: -10px; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.85); background: rgba(34,89,40,.78); font-size: 45px; transform: rotate(-8deg); }
.category-card--yellow { background: #faf2d8; }
.category-card--dark { color: #fff; background: #203229; }
.category-card--dark p { color: #d4dad5; }
.category-card--sage { background: #e9efe4; }
.category-card--rose { background: #f7e9e7; }
.category-card--lime { background: #edf3dc; }

.products { padding-bottom: 70px; }
.section-head { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 0; font-size: clamp(27px,3vw,38px); letter-spacing: -.045em; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; cursor: pointer; }
.filters button.active { color: #fff; border-color: var(--green); background: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.product-card { position: relative; min-width: 0; padding: 12px 12px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .25s, transform .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__badge { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 5px 8px; border-radius: 7px; color: #fff; background: var(--green-2); font-size: 10px; font-weight: 800; }
.product-card__heart { position: absolute; z-index: 2; top: 12px; right: 12px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 20px; cursor: pointer; }
.product-card__heart.active { color: #b64c42; background: #fbe9e6; }
.product-card__image { height: 260px; border-radius: 11px; background-image: url('/assets/images/product-lineup.webp'); background-repeat: no-repeat; background-size: 500% 100%; background-color: #faf9f5; }
.product-card__image[data-image="0"] { background-position: 0 center; }
.product-card__image[data-image="1"] { background-position: 25% center; }
.product-card__image[data-image="2"] { background-position: 50% center; }
.product-card__image[data-image="3"] { background-position: 75% center; }
.product-card__image[data-image="4"] { background-position: 100% center; }
.product-card__brand { margin: 14px 0 4px; color: #7b837d; font-size: 10px; }
.product-card h3 { min-height: 44px; margin: 0; font-size: 13px; line-height: 1.45; }
.product-card__rating { margin: 10px 0; color: #d99500; font-size: 11px; }
.product-card__rating span { color: var(--ink); }
.product-card__price { min-height: 28px; display: flex; align-items: baseline; gap: 9px; }
.product-card__price strong { font-size: 19px; }
.product-card__price del { color: #9ba09c; font-size: 11px; }
.product-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.add-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #fff; border: 0; border-radius: 10px; background: var(--green-2); font-size: 17px; cursor: pointer; }
.add-button.added { background: #739330; }
.empty-state { padding: 45px; text-align: center; color: var(--muted); background: var(--wash); border-radius: 18px; }

.benefits { padding: 30px 0; background: linear-gradient(110deg,#f3f6f0,#edf2e9); }
.benefits__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.benefits article { display: flex; align-items: center; gap: 16px; }
.benefits article > span { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid rgba(23,73,45,.25); border-radius: 50%; color: var(--green); font-size: 21px; }
.benefits h3 { margin: 0 0 5px; font-size: 13px; }
.benefits p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.brands { padding-block: 65px 35px; }
.brand-strip { padding: 28px 35px; display: grid; grid-template-columns: repeat(6,1fr); align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 16px; }
.brand-strip span { text-align: center; color: #617066; font-size: 19px; font-weight: 800; letter-spacing: .03em; }
.brand-strip span:nth-child(even) { font-family: Georgia,serif; font-style: italic; }
.editorial { padding-block: 20px 70px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.editorial article { position: relative; min-height: 275px; padding: 30px; overflow: hidden; border-radius: 18px; }
.editorial h2 { max-width: 360px; margin: 0 0 14px; font-size: 27px; line-height: 1.15; letter-spacing: -.04em; }
.editorial p:not(.eyebrow) { max-width: 370px; color: inherit; opacity: .75; line-height: 1.55; }
.editorial a { position: absolute; left: 30px; bottom: 28px; font-weight: 800; font-size: 13px; }
.editorial__large { color: #fff; background: linear-gradient(135deg,#123c25,#205e36); }
.editorial__large .eyebrow { color: #c6dd77; }
.editorial__sale { background: #eef1e6; }
.editorial__support { color: #fff; background: #b76855; }
.editorial__support .eyebrow { color: #ffd8ca; }
.editorial__support .button { position: absolute; bottom: 24px; }
.leaf-art { position: absolute; right: -20px; bottom: -20px; width: 190px; height: 190px; opacity: .6; }
.leaf-art i { position: absolute; width: 78px; height: 128px; border-radius: 100% 0 100% 0; background: #8fb83f; transform-origin: bottom; }
.leaf-art i:nth-child(1) { left: 60px; transform: rotate(-28deg); }
.leaf-art i:nth-child(2) { left: 92px; top: 20px; transform: rotate(18deg); }
.leaf-art i:nth-child(3) { left: 32px; top: 60px; transform: rotate(-65deg); }

.footer { padding: 55px 0 22px; color: #e9f1eb; background: #0e3420; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 55px; }
.brand--footer strong { color: #fff; }
.brand--footer small, .footer p { color: #aebdaf; }
.footer__grid > div:first-child p { max-width: 370px; line-height: 1.6; }
.footer h2 { margin: 5px 0 16px; color: #fff; font-size: 13px; }
.footer__grid > div:not(:first-child) a { margin: 8px 0; display: block; color: #cad5cc; font-size: 12px; }
.footer__grid > div:not(:first-child) a:hover { color: #fff; }
.footer__bottom { margin-top: 45px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #8da090; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }

.overlay { position: fixed; z-index: 39; inset: 0; background: rgba(8,25,15,.48); backdrop-filter: blur(3px); }
.cart { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(440px,100%); padding: 26px; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(8,25,15,.2); transform: translateX(110%); transition: transform .3s ease; }
.cart.open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0 0 20px; font-size: 30px; }
.cart__head button, .checkout__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--wash); font-size: 24px; cursor: pointer; }
.cart__body { padding-top: 12px; overflow: auto; }
.cart-item { padding: 12px 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 62px; height: 68px; border-radius: 9px; background-image: url('/assets/images/product-lineup.webp'); background-repeat: no-repeat; background-size: 500% 100%; }
.cart-item h3 { margin: 0 0 5px; font-size: 12px; }
.cart-item p { margin: 0; font-size: 12px; font-weight: 800; }
.cart-item__controls { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.cart-item__controls button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.cart-item__remove { align-self: start; color: #9a6760; border: 0; background: none; cursor: pointer; }
.cart__empty { margin: auto; text-align: center; color: var(--muted); }
.cart__empty > span { font-size: 44px; }
.cart__empty h3 { margin-bottom: 7px; color: var(--ink); }
.cart__empty p { max-width: 260px; margin: 0 auto; }
.cart__footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.cart__footer > div { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.cart__footer strong { font-size: 24px; }
.cart__footer .button { width: 100%; }
.checkout { width: min(470px,calc(100% - 24px)); padding: 38px; color: var(--ink); border: 0; border-radius: 20px; box-shadow: var(--shadow); }
.checkout::backdrop { background: rgba(8,25,15,.58); backdrop-filter: blur(4px); }
.checkout__close { position: absolute; top: 16px; right: 16px; }
.checkout h2 { margin: 0 0 10px; font-size: 30px; }
.checkout > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.checkout form { display: grid; gap: 15px; margin-top: 22px; }
.checkout label:not(.check) { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.checkout input:not([type="checkbox"]) { height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.checkout input:focus { border-color: var(--green-2); }
.check { display: flex; gap: 8px; align-items: start; color: var(--muted); font-size: 11px; line-height: 1.5; }
.check a { text-decoration: underline; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 13px 19px; color: #fff; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%,20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

.legal-page { background: var(--wash); }
.legal-page .header__main { justify-content: space-between; }
.legal { max-width: 900px; margin-block: 70px; padding: 60px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.legal h1 { margin-top: 0; font-size: 42px; }
.legal h2 { margin-top: 32px; font-size: 19px; }
.legal p { color: var(--muted); line-height: 1.75; }
.legal a { color: var(--green-2); text-decoration: underline; }
.not-found { min-height: 100vh; display: grid; place-items: center; background: var(--wash); }
.not-found main { text-align: center; }
.not-found span { color: var(--lime); font-size: 90px; font-weight: 800; }
.not-found h1 { margin: 0; font-size: 38px; }
.not-found p { margin: 12px 0 28px; color: var(--muted); }

@media (max-width: 1120px) {
  .shell { width: min(100% - 32px, 1000px); }
  .brand { min-width: 190px; }
  .brand strong { font-size: 26px; }
  .catalog-button { padding-inline: 15px; }
  .user-actions em { display: none; }
  .category-nav { overflow-x: auto; justify-content: start; }
  .hero { height: 480px; }
  .hero__content { width: 55%; padding-left: 36px; }
  .category-cards { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .benefits__grid { grid-template-columns: repeat(2,1fr); }
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial__large { grid-column: span 2; }
}

@media (max-width: 740px) {
  body { font-size: 14px; }
  .shell { width: calc(100% - 24px); }
  .topline__inner span:not(:first-child) { display: none; }
  .topline__inner { justify-content: center; }
  .header__main { height: 72px; gap: 12px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand__mark { width: 34px; height: 31px; transform: scale(.8); transform-origin: left center; }
  .brand strong { font-size: 24px; }
  .brand small { display: none; }
  .catalog-button, .search, .user-actions button:not(.cart-trigger), .category-nav { display: none; }
  .user-actions { margin: 0; }
  .user-actions em { display: none; }
  .mobile-menu { display: block; }
  .category-nav.mobile-open { position: absolute; top: 72px; left: 0; right: 0; width: 100%; height: auto; padding: 10px 20px 20px; display: grid; background: #fff; box-shadow: 0 25px 35px rgba(10,33,19,.12); }
  .category-nav.mobile-open a { padding: 10px 0; }
  .catalog-popover { display: none; }
  .hero { height: 620px; margin-top: 12px; }
  .hero > img { object-position: 70% bottom; }
  .hero::after { background: linear-gradient(180deg,rgba(247,248,243,.98) 0%,rgba(247,248,243,.92) 46%,rgba(247,248,243,.06) 75%); }
  .hero__content { width: 100%; padding: 35px 24px 0; }
  .hero h1 { font-size: 36px; }
  .hero__content > p:not(.eyebrow) { margin: 16px 0 22px; font-size: 15px; }
  .hero__facts { display: none; }
  .promo-badge { right: 12px; top: auto; bottom: 12px; width: 145px; }
  .category-cards { padding-bottom: 42px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .category-card { min-width: 230px; scroll-snap-align: start; }
  .section-head { align-items: start; flex-direction: column; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .product-card { padding: 8px 8px 13px; }
  .product-card__image { height: 190px; }
  .product-card h3 { min-height: 60px; font-size: 12px; }
  .product-card__price strong { font-size: 16px; }
  .benefits__grid { grid-template-columns: 1fr; gap: 22px; }
  .brand-strip { padding: 22px; grid-template-columns: repeat(2,1fr); }
  .editorial { grid-template-columns: 1fr; }
  .editorial__large { grid-column: auto; }
  .editorial article { min-height: 280px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 35px 18px; }
  .footer__grid > div:first-child { grid-column: span 2; }
  .footer__bottom { flex-direction: column; }
  .legal-page .header__main .button { display: none; }
  .legal { margin-block: 20px; padding: 30px 22px; }
  .legal h1 { font-size: 31px; }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__image { height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
