/* Store pages. */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .wrap { padding-left: 28px; padding-right: 28px; } }
main { min-height: 70vh; padding-bottom: 72px; outline: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 28, 20, .4); }
.hdr-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . act" "search search search"; align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 860px) { .hdr-in { grid-template-areas: "logo search act"; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding-top: 14px; padding-bottom: 14px; } }
.logo { grid-area: logo; display: flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; }
.logo-t { display: grid; line-height: 1; }
.logo-t b { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.logo-t i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .34em; color: var(--green); margin-top: 4px; }
.hsearch { grid-area: search; position: relative; display: flex; align-items: center; max-width: 640px; width: 100%; }
@media (min-width: 860px) { .hsearch { justify-self: center; } }
.hsearch .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.hsearch input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
.hsearch input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(19, 138, 66, .12); }
.hsearch input::placeholder { color: #8b998f; }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hdr-act { grid-area: act; display: flex; align-items: center; gap: 6px; }
.cart-btn { color: var(--ink); }
.cart-n[hidden] { display: none; }
.cart-n { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- home ---------- */
.hero { position: relative; margin-top: 8px; border-radius: 24px; overflow: hidden; background: var(--green-tint); border: 1px solid #dcefe3;
  display: grid; gap: 28px; padding: 30px 22px 26px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 85% 10%, rgba(19, 138, 66, .14), transparent 60%),
  radial-gradient(50% 70% at 0% 100%, rgba(159, 224, 184, .35), transparent 60%),
  linear-gradient(to right, rgba(19, 138, 66, .07) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(to bottom, rgba(19, 138, 66, .07) 1px, transparent 1px) 0 0 / 28px 28px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding: 56px 56px; gap: 48px; margin-top: 16px; } }
.hero h1 { margin: 0; max-width: 18ch; font-size: clamp(2.05rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { margin: 14px 0 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(15.5px, 1.6vw, 17.5px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-cta .btn { flex: 1 1 170px; }
@media (min-width: 900px) { .hero-cta .btn { flex: 0 0 auto; min-height: 54px; padding: 0 26px; font-size: 16px; } }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .hero-art a { aspect-ratio: 1; border-radius: 18px; background: #fff; border: 1px solid #d6eadd; display: grid; place-items: center; color: var(--green); overflow: hidden; position: relative;
    transition: transform .5s var(--ease), box-shadow .4s, border-color .3s; box-shadow: 0 10px 30px -22px rgba(15, 28, 20, .5); }
  .hero-art a:nth-child(even) { transform: translateY(18px); }
  .hero-art a:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-lg); }
  .hero-art a:nth-child(even):hover { transform: translateY(12px); }
  .hero-art .art { width: 52%; stroke-width: 1.4; }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; }
}
.sec { margin-top: 44px; }
@media (min-width: 760px) { .sec { margin-top: 72px; } }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-h h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 750; }
.sec-h .meta { color: var(--muted); font-size: 14px; }
.steps { display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: grid; gap: 6px; align-content: start; }
.step-n { width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green-dd); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.step b { font-size: 16.5px; letter-spacing: -.01em; }
.step span { color: var(--muted); font-size: 14.5px; }
.band { border-radius: 24px; background: var(--green-dd); color: #fff; padding: 30px 22px; display: grid; gap: 18px; position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 90% at 100% 0%, rgba(110, 220, 150, .35), transparent 60%),
  linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; align-items: center; padding: 48px 52px; } }
.band h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 750; }
.band p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); max-width: 48ch; }
.band .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.band .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn-line:hover { border-color: #fff; color: #fff; }
.contacts { display: grid; gap: 12px; }
@media (min-width: 760px) { .contacts { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.contact { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); align-items: flex-start; }
.contact .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.contact small { display: block; color: var(--muted); font-size: 13px; }
.contact b { font-weight: 600; font-size: 15.5px; }
.contact a.link { color: var(--green-d); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 4px; }

/* ---------- category / product / cart ---------- */
.page-h { margin: 18px 0 18px; display: grid; gap: 8px; }
@media (min-width: 760px) { .page-h { margin: 28px 0 24px; } }
.page-h h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; }
.page-h .meta { color: var(--muted); font-size: 14.5px; }
.block { margin-top: 28px; }
.block > h2 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 14px; }
.cart { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.cart > * { min-width: 0; }
@media (min-width: 960px) { .cart { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 36px; } }
.lines { display: grid; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line-img .art { width: 46%; color: #b9cbbf; }
.line-main { display: grid; gap: 8px; }
.line-name { font-weight: 500; line-height: 1.3; }
.line-name small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.line-sum { font-weight: 700; }
.line-rm { color: var(--muted); font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.line-rm:hover { color: var(--red); }
.line-rm .i { width: 16px; height: 16px; }
.summary { border-radius: 20px; border: 1px solid var(--line); background: var(--bg-soft); padding: 20px; display: grid; gap: 14px; }
@media (min-width: 960px) { .summary { position: sticky; top: 100px; padding: 24px; } }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.summary-total b { font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.summary .note { font-size: 13px; color: var(--muted); margin: 0; }
.done { max-width: 560px; margin: 40px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.done-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.done-ic .i { width: 36px; height: 36px; stroke-width: 2.2; }
.done h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.03em; }
.done p { margin: 0; color: var(--ink-2); }

/* ---------- companies (КП) ---------- */
.b2b-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .3s; }
.b2b-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.b2b-card .ci { width: 48px; height: 48px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.b2b-card > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 4px; }
.b2b-card b { font-size: 17px; letter-spacing: -.01em; }
.b2b-card small { color: var(--muted); font-size: 14px; }
.b2b-card > .i { color: var(--muted); }
.b2b-form { max-width: 680px; }
.b2b-two { display: grid; gap: 14px; }
@media (min-width: 640px) { .b2b-two { grid-template-columns: 1fr 1fr; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; background: #fff; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(20px); }
.ftr-link { color: var(--green-d); font-weight: 600; }

/* ---------- cart bar (phones) ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 18px; border-radius: 16px; background: var(--green); color: #fff; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(12, 107, 50, .7);
  transform: translateY(0); transition: transform .35s var(--ease); }
.cartbar[hidden] { display: flex; transform: translateY(140%); pointer-events: none; }
.cartbar .n { background: rgba(255, 255, 255, .2); border-radius: 8px; padding: 2px 9px; font-size: 14px; }
.cartbar .sum { margin-left: auto; }
@media (min-width: 960px) { .cartbar { display: none !important; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 110px; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) { .ftr { padding-bottom: 36px; } }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.ftr .logo-t b { color: var(--ink); }

@media (max-width: 959px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
