/* ============================================================
   PEPTIDS.PRO — собственная дизайн-система (светлая тема).
   Написана с нуля, без наследия архивного прототипа.
   Принципы устойчивости: box-sizing:border-box везде,
   сетки на auto-fit/minmax (не ломаются), без хрупких абсолютов,
   переносы вместо переполнения, clamp() для типографики.
   ============================================================ */

:root{
  --blue:#1763ff; --blue-d:#0b4fe0; --blue-soft:#eef4ff; --blue-tint:#f5f8ff;
  --ink:#111827; --ink-2:#26324a; --muted:#6b7688; --muted-2:#8a94a6;
  --line:#e7ecf5; --line-2:#dde4f0; --bg:#ffffff; --bg-soft:#f6f9fe;
  --green:#1a9d54; --green-soft:#e9f7ef; --orange:#ff8a3d; --star:#ffb020;
  --navy:#0d1b30; --navy-2:#16263f; --navy-line:#28374f; --navy-muted:#9fb0c7;
  --r-sm:8px; --r:12px; --r-lg:16px; --r-xl:22px;
  --sh-sm:0 1px 2px rgba(16,24,43,.05); --sh:0 6px 20px rgba(16,24,43,.07);
  --sh-lg:0 14px 40px rgba(16,24,43,.10);
  --wrap:1280px; --gap:24px;
  --font:'Inter','SF Pro Text',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;color:inherit;background:none;border:0}
input,select,textarea{font:inherit}
h1,h2,h3,h4{margin:0;line-height:1.2;font-weight:750;letter-spacing:-.01em}
h1{font-size:30px;font-size:clamp(26px,3.4vw,40px)}   /* px-фолбэк для старых WebView без clamp() */
h2{font-size:23px;font-size:clamp(20px,2.2vw,26px)}
h3{font-size:18px}
p{margin:0 0 .6em}
mark{background:var(--blue-soft);color:var(--blue-d);border-radius:6px;
  padding:3px 8px;font-size:12px;font-weight:650}
svg.ic{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.ic-sm{width:18px;height:18px}.ic-lg{width:26px;height:26px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(16px,3vw,32px)}
main{min-height:50vh;display:block}

/* ---------- кнопки ---------- */
.primary,.soft{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:var(--r-sm);padding:13px 22px;font-weight:650;font-size:15px;
  transition:.15s;white-space:nowrap}
.primary{background:var(--blue);color:#fff;box-shadow:0 6px 16px rgba(23,99,255,.25)}
.primary:hover{background:var(--blue-d)}
.soft{background:#fff;color:var(--ink);border:1px solid var(--line-2)}
.soft:hover{border-color:var(--blue);color:var(--blue)}
.wide{width:100%}

/* ---------- шапка ---------- */
/* сплошной белый фон вместо backdrop-filter blur — быстрее на слабых GPU (старый Android) */
header{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--line)}
.top{display:flex;align-items:center;gap:clamp(12px,1.6vw,22px);
  min-height:74px;padding:12px clamp(16px,3vw,32px);max-width:calc(var(--wrap) + 64px);margin:0 auto;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.logo .mark{display:inline-flex;color:#3d8bff}
.logo .mark svg{width:36px;height:36px}
.logo b{font-size:21px;font-weight:800;letter-spacing:.2px;display:block;line-height:1}
.logo small{font-size:10px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.catalog-btn{display:inline-flex;align-items:center;gap:9px;background:var(--blue);
  color:#fff;font-weight:650;border-radius:var(--r-sm);padding:12px 20px;flex:0 0 auto}
.catalog-btn:hover{background:var(--blue-d)}
.search{flex:1 1 240px;display:flex;align-items:center;background:#eef2f8;
  border:1px solid transparent;border-radius:var(--r-sm);height:48px;min-width:180px}
.search:focus-within{background:#fff;border-color:var(--blue)}
.search input{flex:1;border:0;background:transparent;outline:0;padding:0 16px;color:var(--ink)}
.search button{display:inline-flex;padding:0 14px;color:var(--muted)}
.phone{display:flex;flex-direction:column;justify-content:center;gap:2px;flex:0 0 auto;
  padding-left:6px;position:relative}
.phone{flex-direction:row;align-items:center;gap:9px}
.phone .ic{color:var(--blue)}
.phone b{font-size:15px;white-space:nowrap}
.phone small{display:block;font-size:11px;color:var(--muted)}
.head-link{display:inline-flex;align-items:center;gap:7px;font-weight:650;font-size:14px;flex:0 0 auto}
.head-link:hover{color:var(--blue)}
.head-link .ic{color:var(--blue)}
.cart-head{position:relative}
.cart-head i{position:absolute;top:-8px;right:-10px;background:var(--orange);color:#fff;
  font-size:10px;font-weight:700;min-width:17px;height:17px;border-radius:9px;
  display:grid;place-items:center;padding:0 4px;font-style:normal}
header nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 26px;
  padding:11px clamp(16px,3vw,32px);border-top:1px solid var(--line);max-width:calc(var(--wrap) + 64px);margin:0 auto}
header nav a{font-size:13.5px;color:var(--ink-2);padding:3px 0;font-weight:550;
  border-bottom:2px solid transparent}
header nav a:hover{color:var(--blue);border-color:var(--blue)}

/* ---------- хлебные крошки ---------- */
.crumb{font-size:13px;color:var(--muted);margin:20px 0 6px}
.crumb a:hover{color:var(--blue)}

/* ---------- hero ---------- */
.hero{background:linear-gradient(115deg,#eaf2ff 0%,#f3f8ff 55%,#eef5ff 100%);
  border-bottom:1px solid var(--line)}
.hero>*{max-width:var(--wrap)}
.hero{display:grid;grid-template-columns:1.05fr 1.3fr .55fr;gap:clamp(16px,2.5vw,40px);
  align-items:center;max-width:calc(var(--wrap) + 64px);margin:0 auto;
  padding:clamp(24px,3vw,44px) clamp(16px,3vw,32px)}
.hero-copy h1{margin-bottom:18px}
.hero-copy ul{list-style:none;padding:0;margin:0 0 22px;display:grid;gap:11px}
.hero-copy li{display:flex;gap:10px;align-items:flex-start;color:var(--ink-2);font-size:15px}
.hero-copy li::before{content:"";flex:0 0 20px;height:20px;margin-top:1px;border-radius:50%;
  background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat}
.hero-copy>div{display:flex;gap:12px;flex-wrap:wrap}
.hero-image img{width:100%;height:clamp(220px,26vw,340px);object-fit:contain;
  mix-blend-mode:multiply}
.hero-cards{display:grid;gap:12px}
.hero-cards div{display:flex;align-items:center;gap:13px;background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.9);border-radius:var(--r);padding:16px 18px;
  box-shadow:var(--sh-sm)}
.hero-cards .ic{color:var(--blue)}
.hero-cards b{font-size:14px;line-height:1.35}

/* ---------- полоса преимуществ ---------- */
.benefit-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;padding:22px 0;border-bottom:1px solid var(--line);margin-bottom:8px}
.benefit-strip div{display:flex;align-items:center;gap:12px;padding:6px 18px;
  border-right:1px solid var(--line)}
.benefit-strip div:last-child{border-right:0}
.benefit-strip i{color:var(--blue);display:inline-flex}
.benefit-strip span{font-size:13px;color:var(--ink-2);line-height:1.3}

/* ---------- заголовок секции ---------- */
.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:34px 0 16px}
.section-title h2{margin:0}
.section-title a{color:var(--blue);font-size:14px;font-weight:600;white-space:nowrap}
.section-title a:hover{text-decoration:underline}

/* ---------- плитки категорий ---------- */
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.category-grid a{border:1px solid var(--line);border-radius:var(--r);background:#fff;
  overflow:hidden;transition:.15s;box-shadow:var(--sh-sm)}
.category-grid a:hover{border-color:var(--blue);box-shadow:var(--sh);transform:translateY(-2px)}
.category-grid .molecule{height:120px;background:linear-gradient(135deg,#eef5ff,#f6f0ff);
  display:grid;place-items:center}
.category-grid .molecule svg{width:56px;height:56px;color:#7a5cc4;stroke-width:1.5}
.category-grid b{display:block;padding:14px 16px 2px;font-size:15px}
.category-grid small{display:block;padding:0 16px 14px;color:var(--muted);font-size:13px}

/* ---------- карточка товара + сетка ---------- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.product-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);
  border-radius:var(--r);background:#fff;overflow:hidden;transition:.15s;box-shadow:var(--sh-sm);min-width:0}
.product-card:hover{border-color:var(--line-2);box-shadow:var(--sh);transform:translateY(-2px)}
.product-open{display:flex;flex-direction:column;flex:1;padding:16px 16px 12px;text-align:left}
.product-open em{position:absolute;top:12px;left:12px;background:var(--orange);color:#fff;
  font-style:normal;font-size:11px;font-weight:650;padding:3px 9px;border-radius:6px;z-index:1}
.product-open h3{font-size:15px;margin:2px 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.product-open h3 span{background:var(--blue-soft);color:var(--blue-d);border-radius:5px;
  padding:2px 7px;font-size:11px;font-weight:600}
.product-open>small{color:var(--muted);font-size:12.5px}
.product-open>b{font-size:17px;margin-top:auto;padding-top:10px}
.rating{display:flex;align-items:center;gap:6px;color:var(--star);font-size:13px;margin-top:8px}
.rating span{color:var(--muted)}
.mini-cart-form{position:absolute;right:12px;bottom:12px}
.mini-cart{display:inline-flex;padding:10px;background:var(--blue);color:#fff;border-radius:var(--r-sm);
  box-shadow:0 4px 12px rgba(23,99,255,.3)}
.mini-cart:hover{background:var(--blue-d)}

/* флакон (CSS-плейсхолдер до фото) */
.vial{width:76px;height:112px;margin:6px auto 12px;position:relative;border-radius:8px 8px 12px 12px;
  background:linear-gradient(90deg,#f7f9fc,#e9edf3 45%,#f7f9fc);border:1px solid #d3dae6;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  box-shadow:0 8px 18px rgba(70,90,120,.14)}
.vial i{position:absolute;top:-8px;width:60px;height:15px;border-radius:5px;
  background:var(--cap,#3978d0);border:3px solid #dfe4ec}
.vial b{font-size:10px;font-weight:700;text-align:center;padding:0 4px}
.vial small{font-size:8px;color:var(--muted)}
.vial.big{width:150px;height:220px}.vial.big i{width:120px;height:26px;top:-13px}
.vial.big b{font-size:15px}.vial.big small{font-size:11px}
.vial-photo{height:120px;display:grid;place-items:center;margin-bottom:8px}
.vial-photo img{max-height:120px;object-fit:contain}

/* ---------- «почему выбирают» ---------- */
.why{border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 26px;margin:34px 0;
  background:var(--bg-soft)}
.why h2{margin:0 0 14px}
.why>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.why p{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0}
.why i{grid-row:span 2;display:inline-flex;color:var(--blue);align-self:start}
.why b{font-size:15px}.why small{color:var(--muted);font-size:13px}

/* ---------- редакционные карточки ---------- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,34px);margin-bottom:20px}
.editor-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.editor-cards a{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;
  box-shadow:var(--sh-sm);transition:.15s}
.editor-cards a:hover{box-shadow:var(--sh);transform:translateY(-2px)}
.editor-cards img{width:100%;height:120px;object-fit:cover}
.editor-cards b{display:block;padding:10px 12px 3px;font-size:13.5px;line-height:1.35}
.editor-cards small{display:block;padding:0 12px 12px;color:var(--muted);font-size:12px}

/* ---------- категория/каталог: hero ---------- */
.category-hero{background:linear-gradient(115deg,#fff 45%,#eef5ff);border-bottom:1px solid var(--line)}
.category-hero>*{max-width:var(--wrap)}
.category-hero{padding:6px clamp(16px,3vw,32px) 26px;max-width:calc(var(--wrap) + 64px);margin:0 auto}
.category-hero h1{margin:10px 0}
.category-hero>p{max-width:720px;color:var(--ink-2);line-height:1.6}
.category-benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:22px}
.category-benefits span{display:flex;align-items:center;gap:12px;color:var(--blue)}
.category-benefits b{color:var(--ink);font-size:13px;font-weight:600;line-height:1.35}

/* ---------- каталог: раскладка + фильтры ---------- */
.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:clamp(18px,2.4vw,30px);
  align-items:start;padding:22px 0 40px}
.filters{border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;position:sticky;top:150px;
  background:#fff;box-shadow:var(--sh-sm)}
.filters>form>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.filters h3{font-size:16px}
.filters a[href]{color:var(--blue);font-size:12.5px}
.filters section{border-top:1px solid var(--line);padding:14px 0}
.filters section>b{display:block;margin-bottom:10px;font-size:14px}
.filters label{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:13.5px;
  color:var(--ink-2);cursor:pointer}
.filters label:hover{color:var(--blue)}
.filters label small{margin-left:auto;color:var(--muted-2);font-size:12px}
.filters .primary{margin-top:14px;font-size:14px;padding:12px}
input[type=checkbox],input[type=radio]{width:17px;height:17px;accent-color:var(--blue);
  flex:0 0 auto;margin:0;cursor:pointer}

.result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.result-head>b{font-size:16px}
.result-head .soft{padding:10px 16px;font-weight:600;font-size:13.5px}
.pager{display:flex;justify-content:center;gap:8px;margin:28px 0 4px}
.pager>*{min-width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:var(--r-sm);font-size:14px}
.pager b{background:var(--blue);color:#fff;border-color:var(--blue)}

/* чипы */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 30px}
.chips a,.chips button{border:1px solid var(--line);background:#fff;border-radius:20px;
  padding:8px 16px;font-size:13.5px;color:var(--ink-2)}
.chips a:hover,.chips button:hover{border-color:var(--blue);color:var(--blue)}

/* ---------- карточка товара (детально) ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr 240px;gap:clamp(18px,2.4vw,30px);
  align-items:start;margin-bottom:10px}
.product-photo{background:linear-gradient(135deg,#eef5ff,#f7f9ff);border:1px solid var(--line);
  border-radius:var(--r-lg);overflow:hidden}
.product-photo>img{width:100%;height:420px;object-fit:contain;padding:20px}
.photo-vial{display:grid;place-items:center;min-height:420px}
.product-photo>div{display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:center;
  background:#fff;border-top:1px solid var(--line);padding:14px;font-size:12px;color:var(--ink-2)}
.product-photo>div span{display:inline-flex;align-items:center;gap:6px}
.product-photo>div .ic{color:var(--blue)}
.product-info>p{color:var(--ink-2);line-height:1.6}
.product-info>p:first-of-type{margin-top:8px}
.options{border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:18px 0}
.options small{display:block;color:var(--muted);margin-bottom:8px;font-size:12px}
.options button{border:1px solid var(--line);background:#fff;border-radius:var(--r-sm);
  padding:9px 16px;margin:0 6px 6px 0;font-weight:600}
.options button.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-d)}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}
.price-row h2{font-size:30px}
.price-row span{color:var(--green);font-weight:600;font-size:14px;text-align:right}
.buy{width:100%;font-size:16px;padding:15px}
.trust-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:8px 18px;
  box-shadow:var(--sh);background:#fff;position:sticky;top:150px}
.trust-card p{display:flex;align-items:center;gap:10px;padding:14px 0;margin:0;
  border-bottom:1px solid var(--line);font-size:13.5px}
.trust-card p:last-child{border-bottom:0}
.trust-card .ic{color:var(--blue)}
.tabs{border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;margin:32px 0}
.tabs nav{display:flex;flex-wrap:wrap;gap:14px 28px;border-bottom:1px solid var(--line);
  padding-bottom:16px;margin-bottom:6px}
.tabs nav a{color:var(--muted);font-size:14px}
.tabs nav a b{color:var(--blue)}
.tabs h3{margin:22px 0 10px;scroll-margin-top:130px}
.tabs p,.tabs li{line-height:1.7;color:var(--ink-2)}
.tabs details{border-bottom:1px solid var(--line);padding:12px 0}
.tabs summary{cursor:pointer;font-weight:600;list-style:none}
.tabs summary::-webkit-details-marker{display:none}
table.spec{border-collapse:collapse;width:100%;max-width:560px;margin:4px 0 8px}
table.spec td{border-bottom:1px solid var(--line);padding:11px 6px;font-size:14px}
table.spec td:first-child{color:var(--muted);width:44%}

/* ---------- контент ---------- */
.content-layout{display:grid;grid-template-columns:230px minmax(0,1fr) 240px;
  gap:clamp(18px,2.4vw,30px);align-items:start;padding:6px 0 40px}
.topic-aside,.side-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;
  background:var(--bg-soft);position:sticky;top:150px}
.topic-aside h3,.side-card h3{margin-bottom:8px;font-size:15px}
.topic-aside a{display:block;padding:8px;border-radius:var(--r-sm);color:var(--ink-2);font-size:14px}
.topic-aside a:hover{background:#fff;color:var(--blue)}
.content-article h1{margin:8px 0;max-width:800px}
.content-article>mark{display:inline-block;margin-bottom:12px}
.meta{color:var(--muted);font-size:13px;margin:10px 0 16px}
.article-hero{width:100%;height:clamp(200px,28vw,340px);object-fit:cover;border-radius:var(--r);margin-bottom:18px}
.content-article p{line-height:1.7;color:var(--ink-2)}
.content-article>p:first-of-type>b{display:block;font-size:19px;color:var(--ink);margin-bottom:12px}
.side-card p{display:flex;gap:8px;font-size:13px;color:var(--ink-2);margin:0 0 10px}
.content-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px;margin:18px 0 30px}
.content-list article{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;
  box-shadow:var(--sh-sm);transition:.15s}
.content-list article:hover{box-shadow:var(--sh);transform:translateY(-2px)}
.content-list img{width:100%;height:160px;object-fit:cover}
.content-list h3{margin:10px 12px 6px;font-size:15px}
.content-list small{display:block;margin:0 12px;color:var(--muted);font-size:12.5px}
.content-list .more{display:block;margin:8px 12px 14px;color:var(--blue);font-weight:600;font-size:13.5px}

/* ---------- корзина ---------- */
.cart-page h1{margin:6px 0 16px}
.reserve{background:var(--green-soft);color:#0f6b34;padding:14px 16px;border-radius:var(--r);
  margin:0 0 16px;display:flex;justify-content:space-between}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.cart-list{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.cart-list article{display:grid;grid-template-columns:70px 1fr auto auto auto;gap:16px;align-items:center;
  padding:16px;border-bottom:1px solid var(--line)}
.cart-list article:last-child{border-bottom:0}
.cart-list .vial{width:56px;height:78px;margin:0}.cart-list .vial i{width:44px;height:11px;top:-6px}
.cart-list h3{font-size:15px;margin:0 0 4px;display:flex;gap:8px;align-items:center}
.cart-list small{color:var(--muted);font-size:12.5px}
.cart-list article>div:nth-child(2) b{display:block;color:var(--green);font-size:12.5px;margin-top:4px}
.qty{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:var(--r-sm);padding:2px}
.qty button,.qty form button{color:var(--blue);padding:8px 12px;font-size:16px;line-height:1}
.summary{border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--sh);
  position:sticky;top:150px;background:#fff}
.summary h2{font-size:18px;display:flex;justify-content:space-between}
.summary p{display:flex;justify-content:space-between;color:var(--ink-2);margin:10px 0}
.summary hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.summary .primary{margin-top:14px}
.safe{background:var(--blue-tint);border-radius:var(--r);padding:14px 16px;margin-top:16px;
  font-size:13px;line-height:1.5;color:var(--ink-2)}

/* ---------- документы / статические ---------- */
.doc{max-width:820px;margin:0 auto;padding:6px 0 40px}
.doc .updated{color:var(--muted);font-size:12px;margin-bottom:18px}
.doc h2{font-size:20px;margin:26px 0 10px}
.doc p,.doc li{line-height:1.7;color:var(--ink-2)}
.doc ul{padding-left:20px}
.doc details,.faq-doc details{border-bottom:1px solid var(--line);padding:14px 0}
.doc summary,.faq-doc summary{cursor:pointer;font-weight:600;list-style:none}
.doc summary::-webkit-details-marker,.faq-doc summary::-webkit-details-marker{display:none}
.sitemap-cols{columns:3;column-gap:30px}
.sitemap-cols a{display:block;padding:7px 0;color:var(--ink-2)}
.sitemap-cols a:hover{color:var(--blue)}

/* ---------- футер (тёмно-синий, как в макете) ---------- */
.site-footer{background:var(--navy);color:#fff;margin-top:50px}
.footer-inner{display:grid;grid-template-columns:1.4fr repeat(3,1fr) 1.3fr;
  gap:clamp(20px,2.5vw,40px);padding:44px clamp(16px,3vw,32px) 26px}
.footer-brand .logo b{color:#fff}.footer-brand .logo small{color:var(--navy-muted)}
.footer-brand>p{color:var(--navy-muted);font-size:13px;line-height:1.6;margin:14px 0}
.socials{display:flex;gap:9px;margin:0 0 20px}
.socials a{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:var(--navy-2);color:#fff;font-size:12px;font-weight:700}
.socials a:hover{background:var(--blue)}
.footer-contact{display:flex;align-items:center;gap:9px;color:#fff;margin:12px 0}
.footer-contact .ic{color:var(--blue)}
.footer-contact small{display:block;color:var(--navy-muted);margin-left:6px;font-size:11px}
.footer-groups{display:contents}
.footer-groups details{min-width:0}
.footer-groups summary{list-style:none;font-weight:700;margin:0 0 14px;font-size:15px}
.footer-groups summary::-webkit-details-marker{display:none}
.footer-groups details>div{display:flex;flex-direction:column;gap:9px}
.footer-groups a{color:var(--navy-muted);font-size:13px}
.footer-groups a:hover{color:#fff}
.newsletter h3{margin-bottom:12px}
.newsletter p{color:var(--navy-muted);font-size:13px;line-height:1.55}
.newsletter form{display:flex;margin:12px 0}
.newsletter input{flex:1;min-width:0;background:var(--navy-2);border:1px solid var(--navy-line);
  border-radius:var(--r-sm) 0 0 var(--r-sm);color:#fff;padding:12px 14px;outline:0}
.newsletter form button{width:48px;background:var(--blue);color:#fff;border-radius:0 var(--r-sm) var(--r-sm) 0;
  display:inline-flex;align-items:center;justify-content:center}
.payments{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.payments b{border:1px solid var(--navy-line);border-radius:6px;padding:7px 9px;background:var(--navy-2);
  font-size:11px;font-weight:700;letter-spacing:.02em}
.security{display:flex;gap:8px;margin-top:12px}
.security span{flex:1;border:1px solid var(--navy-line);border-radius:6px;padding:8px 6px;
  font-size:10px;text-align:center;color:var(--navy-muted);display:flex;align-items:center;justify-content:center;gap:4px}
.footer-bottom{grid-column:1/-1;border-top:1px solid var(--navy-line);margin-top:14px;padding-top:20px;
  display:grid;grid-template-columns:auto 1fr auto;gap:8px 20px;align-items:center;
  color:var(--navy-muted);font-size:12px}
.footer-bottom nav{display:flex;flex-wrap:wrap;gap:6px 22px;justify-content:center}
.footer-bottom nav a:hover{color:#fff}
.footer-bottom>p{grid-column:1/3;margin:6px 0 0;line-height:1.5}
.footer-bottom i{grid-column:3;grid-row:1/3;border:1px solid var(--navy-line);border-radius:50%;
  width:38px;height:38px;display:grid;place-items:center;font-style:normal;font-weight:700}

/* ---------- поля форм (общие, scoped через .field) ---------- */
.field{display:block;margin:0 0 14px}
.field>span{display:block;font-size:13px;color:var(--ink-2);margin-bottom:6px;font-weight:600}
.field>span .req{color:#e0492f}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line-2);
  border-radius:var(--r-sm);padding:12px 14px;background:#fff;color:var(--ink);outline:0;transition:.15s}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(23,99,255,.12)}
.field textarea{min-height:88px;resize:vertical}
.form-note{font-size:13px;color:var(--muted);margin-top:4px}
.form-error{background:#fdecea;color:#b02a1a;border:1px solid #f5c6be;border-radius:var(--r-sm);
  padding:11px 14px;font-size:13.5px;margin-bottom:16px}
.checkbox-row{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:var(--ink-2);margin:6px 0 14px}

/* ---------- авторизация / регистрация ---------- */
.auth-wrap{max-width:440px;margin:40px auto;padding:0 16px}
.auth-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;box-shadow:var(--sh);background:#fff}
.auth-card h1{font-size:24px;margin-bottom:6px}
.auth-card>p{color:var(--muted);font-size:14px;margin-bottom:20px}
.auth-switch{text-align:center;margin-top:18px;font-size:14px;color:var(--muted)}
.auth-switch a{color:var(--blue);font-weight:600}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* ---------- оформление заказа ---------- */
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start;margin-top:8px}
.checkout-form{border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;background:#fff}
.checkout-form h3{margin:22px 0 12px}.checkout-form h3:first-child{margin-top:0}
.checkout-form hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.delivery-opt{display:flex;align-items:center;gap:12px;border:1px solid var(--blue);background:var(--blue-soft);
  border-radius:var(--r);padding:14px 16px}
.delivery-opt b{font-size:14px}.delivery-opt small{color:var(--muted);display:block;margin-top:2px}
.delivery-opt strong{margin-left:auto;white-space:nowrap}
.order-side{border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--sh);
  position:sticky;top:150px;background:#fff}
.order-side h3{font-size:17px;margin-bottom:12px}
.order-side .oi{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--line)}
.order-side .oi .vial{width:40px;height:56px;margin:0}.order-side .oi .vial i{width:30px;height:8px;top:-4px}
.order-side .oi b{font-size:13px;display:block}.order-side .oi small{color:var(--muted);font-size:11px}
.order-side .totals p{display:flex;justify-content:space-between;margin:10px 0;color:var(--ink-2)}
.order-side .totals .grand{font-size:18px;font-weight:750;color:var(--ink);border-top:1px solid var(--line);padding-top:12px}

/* ---------- успех заказа ---------- */
.order-ok{max-width:640px;margin:36px auto;text-align:center;border:1px solid var(--line);
  border-radius:var(--r-xl);padding:40px 28px;box-shadow:var(--sh)}
.order-ok .badge{width:76px;height:76px;border-radius:50%;background:var(--green-soft);color:var(--green);
  display:grid;place-items:center;margin:0 auto 18px}
.order-ok .badge svg{width:40px;height:40px;stroke-width:2.2}
.order-ok h1{margin-bottom:10px}
.order-ok .num{display:inline-block;background:var(--blue-soft);color:var(--blue-d);border-radius:var(--r-sm);
  padding:6px 14px;font-weight:700;margin:6px 0 16px}
.order-ok .manager{background:var(--blue-tint);border-radius:var(--r);padding:16px;color:var(--ink-2);
  line-height:1.55;margin:16px 0}

/* ---------- личный кабинет ---------- */
.lk-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start;margin-top:8px}
.lk-nav{border:1px solid var(--line);border-radius:var(--r-lg);padding:10px;background:#fff}
.lk-nav a,.lk-nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:11px 12px;border-radius:var(--r-sm);color:var(--ink-2);font-size:14px}
.lk-nav a.active{background:var(--blue-soft);color:var(--blue-d);font-weight:600}
.lk-nav a:hover,.lk-nav button:hover{background:var(--bg-soft)}
.lk-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;background:#fff;margin-bottom:18px}
.lk-user{display:flex;align-items:center;gap:16px}
.lk-user .ava{width:60px;height:60px;border-radius:50%;background:var(--blue);color:#fff;
  display:grid;place-items:center;font-size:22px;font-weight:700}
.orders-table{width:100%;border-collapse:collapse}
.orders-table th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:0 10px 10px;text-transform:uppercase;letter-spacing:.03em}
.orders-table td{border-top:1px solid var(--line);padding:14px 10px;font-size:14px}
.status{display:inline-block;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:600}
.status.new{background:#fff4e5;color:#b26a00}
.status.paid,.status.done{background:var(--green-soft);color:var(--green)}
.empty{color:var(--muted);padding:30px 0;text-align:center}

/* ---------- rich-контент (WYSIWYG-вывод: описания, статьи, FAQ) ---------- */
.rich{line-height:1.7;color:var(--ink-2)}
.rich h2{font-size:20px;margin:18px 0 8px;color:var(--ink)}
.rich h3{font-size:17px;margin:14px 0 6px;color:var(--ink)}
.rich p{margin:0 0 10px}
.rich ul,.rich ol{padding-left:22px;margin:10px 0}
.rich li{margin:5px 0}
.rich a{color:var(--blue)}
.rich img{border-radius:var(--r-sm);margin:10px 0}

/* ---------- мобильная нижняя навигация ---------- */
.mobile-nav{display:none}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media(max-width:1080px){
  .hero{grid-template-columns:1fr 1fr}
  .hero-cards{display:none}
  .product-detail{grid-template-columns:1fr 1fr}
  .trust-card{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
  .trust-card p{border-bottom:0}
  .content-layout{grid-template-columns:minmax(0,1fr) 240px}
  .topic-aside{display:none}
  .footer-inner{grid-template-columns:1fr 1fr 1fr}
  .footer-brand,.newsletter{grid-column:span 3}
}
@media(max-width:860px){
  .catalog-layout{grid-template-columns:1fr}
  .filters{position:static;top:auto}
  .cart-layout{grid-template-columns:1fr}
  .summary{position:static}
  .content-layout{grid-template-columns:1fr}
  .side-card{display:none}
  .two-col{grid-template-columns:1fr}
  .checkout-layout{grid-template-columns:1fr}
  .order-side{position:static}
  .lk-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  body{padding-bottom:66px}
  .top{gap:10px;min-height:64px;padding:10px 16px}
  .logo b{font-size:18px}.logo small{display:none}
  .catalog-btn span,.head-link span,.phone{display:none}
  .catalog-btn{padding:11px 13px}
  .search{order:5;flex-basis:100%;height:42px}
  header nav{display:none}
  .hero{grid-template-columns:1fr;text-align:left}
  .product-detail{grid-template-columns:1fr}
  .product-photo>img,.photo-vial{height:320px;min-height:320px}
  .sitemap-cols{columns:1}
  .cart-list article{grid-template-columns:56px 1fr auto;gap:12px}
  .cart-list article>strong:nth-of-type(2){display:none}
  .footer-inner{grid-template-columns:1fr 1fr}
  .footer-groups{display:contents}
  .newsletter,.footer-brand{grid-column:span 2}
  .footer-bottom{grid-template-columns:1fr}
  .footer-bottom>p,.footer-bottom i{grid-column:1}
  .footer-bottom i{grid-row:auto;justify-self:start}
  /* нижняя таб-навигация */
  .mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;
    z-index:50;background:#fff;border-top:1px solid var(--line);height:64px}
  .mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    color:var(--muted);font-size:10px;position:relative}
  .mobile-nav a.active{color:var(--blue)}
  .mobile-nav i{display:inline-flex;position:relative}
  .mobile-nav em{position:absolute;top:-6px;right:-9px;background:var(--orange);color:#fff;
    font-style:normal;font-size:9px;min-width:15px;height:15px;border-radius:8px;
    display:grid;place-items:center;padding:0 3px}
}
@media(max-width:520px){
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .benefit-strip div{border-right:0}
  .footer-inner{grid-template-columns:1fr}
  .footer-brand,.newsletter{grid-column:1}
  .hero-copy>div{flex-direction:column}
  .hero-copy>div .primary,.hero-copy>div .soft{width:100%}
}
