/* Магазин: страницы товаров, формы покупки, диалог, cookie-баннер. Использует переменные из style.css */
.pagehead { padding: 36px 0 28px; }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 10px 0 14px; }
.pagehead .lead { font-size: 19px; color: var(--ink-2); max-width: 720px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--teal-d); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prod-grid { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 52px; align-items: start; }
.prod-vis img { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(15, 36, 48, .28)); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 6px; }
.facts-inline li { background: var(--mist); color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 99px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); max-width: 520px; display: grid; gap: 12px; }
.buybox .price { font: 700 36px/1 var(--serif); }
.hint { font-size: 14px; color: var(--muted); }
.legal-inline { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.note-center { text-align: center; margin-top: 22px; }

.shop-list { display: grid; gap: 22px; }
.shop-card { display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); align-items: center; }
.shop-img img { width: 100%; height: auto; display: block; }
.shop-body h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 8px 0 10px; }
.shop-body h2 a { text-decoration: none; }
.shop-body p { color: var(--ink-2); }
.shop-body .price-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.chan { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; box-shadow: var(--shadow); }
.chan b { font: 700 19px var(--serif); }
.chan span { color: var(--muted); font-size: 15px; }
.chan:hover { border-color: var(--teal); }
.thanks { max-width: 640px; }
.top .nav a[aria-current="page"] { color: var(--teal-d); font-weight: 600; }

/* формы */
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.fld input[type="email"] { font: 400 17px var(--sans); padding: 13px 14px; border: 1.5px solid #b7ccd2; border-radius: 10px; background: #fff; min-width: 0; }
.fld input:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: start; }
.chk input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.chk a { color: var(--teal-d); }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.freeform { display: grid; gap: 12px; }
.msg { min-height: 1.4em; font-size: 15px; color: var(--teal-d); }
.msg.err { color: #a3262f; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* диалог покупки */
dialog.buy { border: 0; border-radius: 20px; padding: 0; width: min(480px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(15, 36, 48, .45); color: var(--ink); }
dialog.buy::backdrop { background: rgba(15, 36, 48, .55); }
dialog.buy form { padding: 26px 26px 22px; display: grid; gap: 12px; position: relative; }
dialog.buy h2 { font-size: 24px; padding-right: 36px; }
.buy-sum { font-weight: 700; font-size: 17px; color: var(--teal-d); }
.buy-x { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; background: var(--mist); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }

/* cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 760px; margin: 0 auto; background: var(--ink); color: #e6eff2; border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-size: 14.5px; }
.cookie[hidden] { display: none; }
.cookie a { color: #bfe3e8; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

@media (max-width: 820px) {
  .prod-grid { grid-template-columns: 1fr; gap: 24px; }
  .prod-vis { max-width: 300px; margin: 0 auto; }
  .shop-card { grid-template-columns: 1fr; text-align: left; }
  .shop-img { max-width: 220px; margin: 0 auto; }
}

.formdone { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: #e8f7ee; border: 1.5px solid #8fd1a6; color: #14532d; }
.formdone b { display: block; font-size: 18px; margin-bottom: 6px; }
.formdone p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: #1d5a37; }
.formdone .btn { min-height: 44px; }

form[hidden] { display: none !important; }

.shop-img img, .step-img, .prod-vis img { aspect-ratio: 800 / 1185; }

/* обложка на странице товара: место под неё резервируется заранее, чтобы вёрстка не «прыгала» при загрузке картинки */
.prod-vis { aspect-ratio: 800 / 1185; width: 100%; }
.prod-vis img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 940px) { .prod-vis { width: min(300px, 100%); max-width: 300px; } }
