:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #62716b;
  --line: #d8e1dc;
  --paper: #fbfcfa;
  --green: #0d725f;
  --blue: #244d7a;
  --amber: #c58324;
  --rose: #a9405d;
  --violet: #615189;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }

.topline { background: #17382f; color: white; text-align: center; font-size: 13px; padding: 7px 12px; }
.site-header { min-height: 88px; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100vw - 1140px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 250px; }
.brand small { display: block; color: var(--muted); margin-top: 3px; }
.mark { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 800; }
nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
nav a { color: #46534d; text-decoration: none; }
nav a:hover { color: var(--green); }

.cart-button, .primary, .checkout { background: var(--green); color: white; border: 0; border-radius: 8px; padding: 13px 18px; font: inherit; cursor: pointer; }
.cart-button span { display: inline-grid; place-items: center; margin-left: 8px; width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.18); }
.secondary { display: inline-flex; align-items: center; color: var(--green); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; text-decoration: none; background: white; }

main { max-width: 1140px; margin: 0 auto; padding: 0 24px 56px; }
.hero { min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; border-bottom: 1px solid var(--line); padding: 38px 0; }
.eyebrow { color: var(--green); font-weight: 800; margin: 0 0 10px; }
.hero h1 { font-size: 54px; line-height: 1.02; margin: 0 0 18px; max-width: 760px; letter-spacing: 0; }
.hero p { color: var(--muted); font-size: 18px; max-width: 680px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 0; max-width: 620px; }
.stats div { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 14px; }
.stats dt { font-size: 22px; font-weight: 900; color: var(--blue); }
.stats dd { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.hero-media { margin: 0; position: relative; min-height: 410px; overflow: hidden; border-radius: 8px; box-shadow: 0 24px 70px rgba(27,48,43,.18); background: #e7efeb; }
.hero-media img { width: 100%; height: 410px; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 22px; right: 22px; bottom: 22px; border-radius: 8px; background: rgba(255,255,255,.9); padding: 18px; box-shadow: 0 12px 38px rgba(20,37,31,.16); }
.hero-media span { color: var(--amber); font-weight: 900; }
.hero-media strong { display: block; font-size: 28px; margin: 5px 0; }
.hero-media em { color: var(--muted); font-style: normal; }

.brand-rail { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin: 22px 0 8px; }
.brand-rail span { border: 1px solid var(--line); background: white; border-radius: 8px; min-height: 54px; display: grid; place-items: center; color: #405049; font-weight: 800; text-align: center; padding: 8px; }

.toolbar { display: grid; grid-template-columns: 1fr minmax(220px,320px) 190px; gap: 16px; align-items: end; margin: 28px 0 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab, .detail, .sort select, .search input { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 12px 14px; font: inherit; }
.tab.active, .detail.active { border-color: var(--green); color: var(--green); background: #f0faf6; }
.search span, .sort span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search input, .sort select { width: 100%; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product { border: 1px solid var(--line); background: white; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-height: 430px; box-shadow: 0 10px 30px rgba(34,54,47,.06); }
.visual { height: 178px; position: relative; overflow: hidden; background: #e8efeb; }
.visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.42)); }
.visual span { position: absolute; left: 16px; bottom: 14px; z-index: 1; min-width: 58px; height: 42px; display: grid; place-items: center; color: white; border-radius: 8px; font-size: 22px; font-weight: 900; background: rgba(13,114,95,.82); padding: 0 12px; }
.visual.team span { background: rgba(36,77,122,.86); }
.visual.credits span { background: rgba(169,64,93,.86); }
.visual.creative span { background: rgba(197,131,36,.88); }
.body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { font-size: 12px; color: var(--amber); font-weight: 900; }
.stock { font-size: 12px; color: var(--green); background: #eef8f4; border-radius: 999px; padding: 5px 9px; }
.body h3 { font-size: 21px; margin: 0; }
.body p { color: var(--muted); margin: 0; line-height: 1.45; }
.meta { display: flex; justify-content: space-between; align-items: end; color: var(--muted); font-size: 14px; margin-top: auto; }
.price { font-size: 22px; font-weight: 900; color: #53615b; }
.body button { border: 0; border-radius: 8px; background: var(--green); color: white; padding: 12px; font: inherit; cursor: pointer; }

.promo { margin-top: 38px; display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.promo > div { padding: 34px; align-self: center; }
.promo h2 { font-size: 34px; line-height: 1.1; margin: 0 0 12px; }
.promo p { color: var(--muted); line-height: 1.55; }
.promo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.info { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 18px; }
.info div, .details, .reviews { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 20px; }
.info h2, .workflow h2 { font-size: 20px; margin: 0 0 8px; }
.info p, .workflow p { color: var(--muted); margin: 0; line-height: 1.5; }
.workflow { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.workflow article { border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.workflow img { width: 100%; height: 210px; object-fit: cover; }
.workflow h2, .workflow p { padding: 0 20px; }
.workflow h2 { padding-top: 18px; }
.workflow p { padding-bottom: 20px; }
.reviews { margin-top: 18px; }
.reviews h2 { margin: 0 0 16px; font-size: 24px; }
.reviews > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
blockquote { margin: 0; border-left: 4px solid var(--green); background: #f7faf8; border-radius: 8px; padding: 16px; color: #34423c; line-height: 1.45; }
cite { display: block; color: var(--muted); font-style: normal; margin-top: 12px; font-size: 13px; }
.details { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.details div { flex-basis: 100%; color: var(--muted); padding-top: 4px; line-height: 1.5; }

.cart { position: fixed; right: 18px; top: 110px; width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 130px); background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px rgba(19,32,27,.2); padding: 18px; z-index: 20; display: none; }
.cart.open { display: block; }
.cart-head, .cart-total, .cart-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cart-head button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 10px; }
.cart-items { display: grid; gap: 12px; margin: 18px 0; max-height: 310px; overflow: auto; }
.cart-line { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cart-line small { display: block; color: var(--muted); }
.cart-line button { border: 1px solid var(--line); background: white; border-radius: 8px; width: 28px; height: 28px; }
.cart-total { font-size: 18px; margin-bottom: 14px; }
.checkout { width: 100%; }

.cookie { position: fixed; left: 18px; bottom: 18px; max-width: 560px; display: none; gap: 14px; align-items: center; background: #14261f; color: white; border-radius: 8px; padding: 14px 16px; z-index: 30; }
.cookie.show { display: flex; }
.cookie button { border: 0; border-radius: 8px; background: #fff; color: #17382f; padding: 10px 14px; font: inherit; }
footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
footer strong { color: var(--ink); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 16px 20px; }
  .brand { min-width: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { font-size: 36px; }
  .stats, .toolbar, .grid, .info, .workflow, .reviews > div, .promo, .brand-rail { grid-template-columns: 1fr; }
  .promo img { min-height: 220px; }
  .cookie { right: 18px; max-width: none; }
}

@media (max-width: 560px) {
  main { padding-inline: 16px; }
  .hero h1 { font-size: 31px; }
  .hero-media, .hero-media img { height: 320px; min-height: 320px; }
  .product { min-height: 0; }
}
