/* ============================================================
   Аурум Медикал — витрина, этап 1
   Дизайн-система: мудборд v4 (иней-лазурь-глубина, Golos + PT Mono,
   шкала Шарьера). Плотность/сетка — по образцу dealmed.ru
   (контейнер ~1280px, база 16px, компактные карточки, ровный ритм).
   ============================================================ */

:root{
  --frost:#F3F6F8;      /* фон, «иней» */
  --azure:#0090D4;      /* фирменная лазурь */
  --deep:#0A5E8F;       /* «глубина»: кнопки, ссылки */
  --deep-dark:#084A72;
  --ice:#E3EDF3;        /* подложки, «лёд» */
  --graphite:#1D2529;   /* текст, заголовки */
  --steel:#54646E;      /* вторичный текст */
  --signal:#2E7D4F;     /* «в наличии» */
  --card:#FFFFFF;
  --line:rgba(29,37,41,.10);
  --line-azure:rgba(0,144,212,.30);

  --ch10:#2B2B2B; --ch12:#FFFFFF; --ch14:#3E9B47; --ch16:#F07E26;
  --ch18:#D22F2F; --ch20:#E8C13A; --ch22:#7B4FA6; --ch24:#2E6FB8;

  --radius:10px;
  --font-display:'Golos Text','Segoe UI',system-ui,sans-serif;
  --font-body:'Golos Text','Segoe UI',system-ui,sans-serif;
  --font-mono:'PT Mono',Consolas,monospace;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--frost);
  color:var(--graphite);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block; max-width:100%;}
a{color:var(--deep); text-decoration:none;}
p,li,dd{text-wrap:pretty;}
h1,h2,h3,h4{font-weight:600; letter-spacing:-.01em; text-wrap:balance;}
:focus-visible{outline:3px solid var(--azure); outline-offset:2px; border-radius:3px;}

.wrap{max-width:1280px; margin:0 auto; padding:0 24px;}
.grid{display:grid; gap:16px;}
.grid > *{min-width:0;}
.cols-3{grid-template-columns:repeat(3,1fr);}
@media (max-width:900px){ .cols-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .cols-3{grid-template-columns:1fr;} }
.cols-6{grid-template-columns:repeat(6,1fr);}
@media (max-width:1100px){ .cols-6{grid-template-columns:repeat(4,1fr);} }
@media (max-width:760px){ .cols-6{grid-template-columns:repeat(3,1fr);} }
@media (max-width:480px){ .cols-6{grid-template-columns:repeat(2,1fr);} }

.visually-hidden{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;}
.skip-link{position:absolute; left:12px; top:-60px; z-index:1000; background:var(--deep); color:#fff; padding:10px 16px; border-radius:8px; transition:top .15s ease;}
.skip-link:focus{top:12px;}

.kicker{font-family:var(--font-mono); font-size:12px; letter-spacing:.13em; text-transform:uppercase; color:var(--deep);}

/* ── Кнопки ─────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 22px; border-radius:var(--radius);
  font-family:var(--font-body); font-size:15px; font-weight:600;
  border:none; cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{background:var(--deep); color:#fff;}
.btn-primary:hover{background:var(--deep-dark);}
.btn-secondary{background:transparent; color:var(--deep); border:1.5px solid var(--deep);}
.btn-secondary:hover{background:rgba(10,94,143,.07);}
.btn-block{width:100%;}

/* ── Шапка: 3 строки (структура — dealmed) ──────────────── */
.site-header{position:sticky; top:0; z-index:100; background:var(--card);}

.logo{display:inline-flex; align-items:center; gap:10px; flex:none;}
.logo__dots{display:inline-flex; gap:4px; align-items:center;}
.logo__dots i{width:8px; height:8px; border-radius:50%; display:block;}
.logo__name{font-family:var(--font-display); font-weight:600; font-size:19px; letter-spacing:-.01em; line-height:1;}
.logo__name b{color:var(--graphite); font-weight:600;}
.logo__name span{color:var(--deep);}
.mainbar .logo__name{font-size:23px;}

/* 1. основная полоса */
.mainbar{border-bottom:1px solid var(--line);}
.mainbar__row{display:flex; align-items:center; gap:18px; padding-top:11px; padding-bottom:11px;}
.mainbar__search{display:flex; gap:8px; flex:1; min-width:0; max-width:660px;}
.catalog-btn{
  display:inline-flex; align-items:center; gap:9px; flex:none;
  min-height:46px; padding:0 20px; border-radius:var(--radius);
  background:var(--deep); color:#fff; font-weight:600; font-size:15px; cursor:pointer; text-decoration:none;
  transition:background-color .18s ease;
}
.catalog-btn:hover{background:var(--deep-dark);}
.catalog-btn svg{stroke:#fff;}
.search{flex:1; display:flex; min-width:0;}
.search input{
  flex:1; min-width:0; height:46px;
  border:1.5px solid var(--line-azure); border-right:none; border-radius:var(--radius) 0 0 var(--radius);
  padding:0 16px; font-family:var(--font-body); font-size:15px; background:var(--card); color:var(--graphite);
}
.search input::placeholder{color:var(--steel);}
.search input:focus{outline:none; border-color:var(--deep);}
.search__btn{
  height:46px; padding:0 20px; border:none; cursor:pointer;
  background:var(--azure); color:#fff; border-radius:0 var(--radius) var(--radius) 0;
  display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:14px;
  transition:background-color .18s ease;
}
.search__btn:hover{background:var(--deep);}
.search__btn svg{stroke:#fff;}
.mainbar__phone{margin-left:auto; text-align:right; flex:none; line-height:1.2;}
.mainbar__phone a{font-family:var(--font-mono); font-size:17px; color:var(--graphite); white-space:nowrap;}
.mainbar__phone a:hover{color:var(--deep);}
.mainbar__phone span{display:block; font-size:12.5px; color:var(--steel);}

.nav-toggle, .icon-btn{
  display:none;
  width:46px; height:46px; border:1.5px solid var(--line); border-radius:var(--radius);
  background:var(--card); cursor:pointer; align-items:center; justify-content:center; flex:none;
}
.nav-toggle svg, .icon-btn svg{stroke:var(--graphite);}

/* 2. навигация */
.navbar{border-bottom:1px solid var(--line-azure);}
.navbar__row{display:flex; align-items:center; gap:26px; min-height:42px; flex-wrap:wrap;}
.navbar__row a{color:var(--graphite); font-weight:500; font-size:14.5px; padding:10px 0; border-bottom:2px solid transparent;}
.navbar__row a:hover{color:var(--deep); border-bottom-color:var(--azure);}
.navbar__row a[aria-current]{color:var(--deep); border-bottom-color:var(--deep);}

@media (max-width:960px){ .mainbar__search{max-width:none;} }
@media (max-width:760px){
  .wrap{padding-left:20px; padding-right:20px;}
  .mainbar{padding-top:4px; padding-bottom:4px;}
  .mainbar__row{flex-wrap:wrap; gap:10px; align-items:center;}
  .logo{order:1; flex:1 1 auto; min-width:0;}
  .mainbar .logo__name{font-size:21px;}
  .mainbar__phone{display:none;}
  .nav-toggle, .icon-btn{display:inline-flex;}
  .icon-btn{order:2;}
  .nav-toggle{order:3;}
  .mainbar__search{
    order:4; flex:1 1 100%; max-width:none;
    max-height:0; overflow:hidden; opacity:0; transition:max-height .25s ease, opacity .2s ease;
  }
  .site-header.search-open .mainbar__search{max-height:80px; opacity:1; overflow:visible; margin-bottom:10px;}
  .navbar__row{flex-direction:column; align-items:stretch; gap:0; min-height:0; max-height:0; overflow:hidden; transition:max-height .25s ease;}
  .navbar__row a{padding:13px 2px; border-bottom:1px solid var(--line);}
  .navbar__row a:hover{border-bottom-color:var(--line);}
  .site-header.open .navbar__row{max-height:460px;}
}

/* ── Нижняя панель (моб., таб-бар dealmed) ──────────────── */
.bottombar{display:none;}
@media (max-width:760px){
  body{padding-bottom:64px;}
  .bottombar{
    display:grid; grid-template-columns:repeat(4,1fr);
    position:fixed; left:0; right:0; bottom:0; z-index:200;
    background:var(--card); border-top:1px solid var(--line-azure);
    box-shadow:0 -6px 20px -14px rgba(8,74,114,.4);
    padding-bottom:env(safe-area-inset-bottom,0);
  }
  .bottombar a{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:56px; padding:7px 4px; color:var(--steel); font-size:11px; text-decoration:none;}
  .bottombar a svg{stroke:var(--steel);}
  .bottombar a.is-call{color:var(--deep); font-weight:600;}
  .bottombar a.is-call svg{stroke:var(--deep);}
  .bottombar a:active{background:var(--ice);}
}

/* ── Герой: фиксированный текст + слайдер фото ──────────── */
.hero{background:var(--frost);}
.hero__grid{display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; padding-top:40px; padding-bottom:44px;}
.hero__grid > *{min-width:0;}
.hero__title{font-family:var(--font-display); font-weight:600; font-size:clamp(26px,2.9vw,42px); line-height:1.08; letter-spacing:-.02em; color:var(--graphite); overflow-wrap:break-word;}
.hero__lead{margin-top:14px; font-size:17px; color:var(--steel); max-width:46ch;}
.hero__lead b{color:var(--graphite); font-weight:600;}
.hero__cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:24px;}

.hero__gallery{display:flex; flex-direction:column; gap:12px;}
.hero__viewport{position:relative; overflow:hidden; width:100%; background:var(--ice); border:1px solid var(--line); border-radius:12px;}
.hero__track{display:flex; width:100%; transition:transform .5s cubic-bezier(.4,0,.2,1);}
.hero__pic{flex:0 0 100%; width:100%; min-width:0; height:300px; display:flex; align-items:center; justify-content:center; padding:28px;}
.hero__pic img{max-height:100%; object-fit:contain; mix-blend-mode:multiply;}
.hero__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:42px; height:42px; border-radius:50%; cursor:pointer;
  border:1.5px solid var(--line); background:rgba(255,255,255,.92);
  display:inline-flex; align-items:center; justify-content:center;
  transition:background-color .18s ease, border-color .18s ease;
}
.hero__arrow:hover{background:#fff; border-color:var(--deep);}
.hero__arrow svg{stroke:var(--deep);}
.hero__arrow--prev{left:10px;}
.hero__arrow--next{right:10px;}
.hero__dots{display:flex; gap:9px; justify-content:center;}
.hero__dot{width:9px; height:9px; border-radius:50%; padding:0; border:1.5px solid var(--deep); background:transparent; cursor:pointer; transition:background-color .2s ease;}
.hero__dot[aria-current="true"]{background:var(--deep);}

@media (max-width:860px){
  .hero__grid{grid-template-columns:1fr; gap:16px; padding-top:20px; padding-bottom:26px;}
  .hero__title{font-size:clamp(22px,6vw,30px);}
  .hero__lead{font-size:15px; margin-top:10px; max-width:none;}
  .hero__cta{margin-top:16px; gap:10px;}
  .hero__pic{height:180px; padding:20px;}
}

/* ── Сигнатура: шкала Шарьера ────────────────────────────── */
.charriere{background:var(--deep); color:#EAF3F9; padding:14px 0;}
.charriere__row{display:flex; align-items:center; gap:22px; flex-wrap:wrap;}
.charriere__scale{display:flex; align-items:flex-end; gap:14px; flex:1; min-width:240px;}
.charriere__scale i{border-radius:50%; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4); flex:none; display:block;}
.charriere__cap{font-family:var(--font-mono); font-size:12.5px; color:#BFE3F7; max-width:44ch;}

/* ── Преимущества ───────────────────────────────────────── */
.benefits{background:var(--card); border-top:1px solid var(--line);}
.benefits__row{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding-top:18px; padding-bottom:18px;}
.benefit{display:flex; align-items:center; gap:12px;}
.benefit__icon{width:40px; height:40px; border-radius:9px; background:var(--ice); display:flex; align-items:center; justify-content:center; flex:none;}
.benefit__icon svg{stroke:var(--deep);}
.benefit div b{display:block; font-size:14.5px; color:var(--graphite); font-weight:600;}
.benefit div span{display:block; font-size:12.5px; color:var(--steel); margin-top:1px;}
@media (max-width:860px){ .benefits__row{grid-template-columns:repeat(2,1fr); gap:16px;} }
@media (max-width:520px){ .benefits__row{grid-template-columns:1fr;} }

/* ── Секции ─────────────────────────────────────────────── */
.section{padding:40px 0; border-top:1px solid var(--line-azure);}
.section__head{margin-bottom:22px; display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap;}
.section__head h2{font-family:var(--font-display); font-size:clamp(21px,2.2vw,27px); line-height:1.2; color:var(--graphite); margin:0;}
.section__link{font-weight:600; color:var(--deep); border-bottom:1.5px solid var(--azure); padding-bottom:2px; white-space:nowrap; font-size:15px;}
.section__link:hover{color:var(--deep-dark);}

/* ── Плитки разделов ────────────────────────────────────── */
.cat{display:flex; flex-direction:column; overflow:hidden; color:inherit; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); transition:box-shadow .18s ease, transform .18s ease;}
.cat:hover{box-shadow:0 12px 28px -20px rgba(8,74,114,.5); transform:translateY(-2px);}
.cat__img{height:128px; background:var(--ice); display:flex; align-items:center; justify-content:center; padding:16px;}
.cat__img img{max-height:100%; object-fit:contain; mix-blend-mode:multiply;}
.cat__img svg{stroke:var(--deep);}
.cat__body{padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; flex:1;}
.cat__name{font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--deep); display:flex; align-items:center; justify-content:space-between; gap:8px; line-height:1.25;}
.cat__name svg{stroke:var(--deep); flex:none; transition:transform .18s ease;}
.cat:hover .cat__name svg{transform:translateX(3px);}
.cat__count{font-family:var(--font-mono); font-size:11.5px; color:var(--steel);}

/* ── Карточки товаров ───────────────────────────────────── */
.product{display:flex; flex-direction:column; overflow:hidden; color:inherit; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); transition:box-shadow .18s ease, transform .18s ease;}
.product:hover{box-shadow:0 14px 32px -20px rgba(8,74,114,.5); transform:translateY(-2px);}
.product__pic{height:158px; background:var(--ice); display:flex; align-items:center; justify-content:center; padding:20px;}
.product__pic img{max-height:100%; object-fit:contain; mix-blend-mode:multiply;}
.product__body{padding:14px 16px 16px; display:flex; flex-direction:column; flex:1;}
.product__brand{font-size:12.5px; color:var(--steel);}
.product__name{font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--graphite); line-height:1.3; margin:5px 0 5px;}
.product__meta{font-family:var(--font-mono); font-size:12px; color:var(--steel);}
.product__price-row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0 12px; margin-top:auto;}
.price{font-family:var(--font-display); font-weight:600; font-size:20px; color:var(--graphite); white-space:nowrap;}
.price small{font-family:var(--font-body); font-weight:500; font-size:12.5px; color:var(--steel); margin-right:3px;}
.badge{display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; white-space:nowrap;}
.badge i{width:8px; height:8px; border-radius:50%; flex:none;}
.badge.stock{color:var(--signal);} .badge.stock i{background:var(--signal);}
.badge.order{color:var(--steel);}  .badge.order i{background:var(--steel);}
.product__cta{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border-radius:var(--radius); background:var(--deep); color:#fff; font-weight:600; font-size:14.5px; transition:background-color .18s ease;}
.product:hover .product__cta{background:var(--deep-dark);}

/* ── Баннеры ────────────────────────────────────────────── */
.banner{position:relative; display:flex; flex-direction:column; gap:10px; background:var(--card); border:1px solid var(--line); border-top:3px solid var(--azure); border-radius:var(--radius); padding:18px 18px 16px; color:inherit; transition:box-shadow .18s ease, transform .18s ease;}
.banner:hover{box-shadow:0 12px 28px -20px rgba(8,74,114,.5); transform:translateY(-2px);}
.banner__icon{width:44px; height:44px; border-radius:10px; background:var(--ice); display:inline-flex; align-items:center; justify-content:center;}
.banner__icon svg{stroke:var(--deep);}
.banner__title{font-family:var(--font-display); font-weight:600; font-size:16.5px; color:var(--graphite);}
.banner__text{font-size:14px; color:var(--steel);}
.banner__more{margin-top:auto; padding-top:4px; font-weight:600; font-size:14.5px; color:var(--deep); display:inline-flex; align-items:center; gap:7px;}
.banner__more svg{stroke:var(--deep); transition:transform .18s ease;}
.banner:hover .banner__more svg{transform:translateX(3px);}

/* ── Полоса «нужна помощь» ──────────────────────────────── */
.help-note{background:var(--ice); border-radius:var(--radius); padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:20px;}
.help-note p{font-size:15px; color:var(--deep-dark); max-width:54ch;}
.help-note p b{color:var(--graphite);}
.help-note .phone{font-family:var(--font-mono); font-size:18px; color:var(--graphite); white-space:nowrap;}

/* ── Подвал (структура — dealmed; на мобайле центрируется) ── */
.site-footer{background:var(--card); border-top:1px solid var(--line-azure); margin-top:6px;}
.footer-main{display:grid; grid-template-columns:1.5fr 1.35fr 1.45fr 1fr 1fr; gap:32px; padding-top:40px; padding-bottom:32px; align-items:start;}
.footer-brand .logo{margin-bottom:12px;}
.footer-brand p{font-size:14px; color:var(--steel); max-width:34ch; margin-top:8px;}
.foot-legal-links{list-style:none; display:flex; flex-direction:column; gap:7px; margin-top:14px;}
.foot-legal-links a{color:var(--steel); font-size:13.5px;}
.foot-legal-links a:hover{color:var(--deep);}
.footer-col h3, .footer-contacts h3, .footer-addr h3{font-family:var(--font-display); font-size:15px; color:var(--graphite); margin-bottom:14px;}
.footer-col ul{list-style:none; display:flex; flex-direction:column; gap:9px;}
.footer-col a{color:var(--steel); font-size:14px;}
.footer-col a:hover{color:var(--deep);}
.foot-phone{font-family:var(--font-mono); font-size:19px; color:var(--graphite); display:inline-block; white-space:nowrap;}
.foot-phone:hover{color:var(--deep);}
.foot-hours{display:block; font-size:13px; color:var(--steel); margin:5px 0 14px;}
.foot-mail{font-family:var(--font-mono); font-size:14.5px; color:var(--deep); display:inline-block;}
.foot-socials{display:flex; gap:10px; margin-top:16px;}
.foot-socials a{width:40px; height:40px; border-radius:9px; background:var(--ice); display:inline-flex; align-items:center; justify-content:center;}
.foot-socials a:hover{background:#d3e3ee;}
.foot-socials svg{stroke:var(--deep);}
.footer-addr{display:flex; flex-direction:column; gap:14px;}
.footer-addr h3{margin-bottom:0;}
.footer-addr .addr{display:flex; gap:9px; font-size:13.5px; color:var(--steel); line-height:1.45;}
.footer-addr .addr svg{stroke:var(--deep); flex:none; margin-top:2px;}
.footer-addr b{display:block; color:var(--graphite); font-weight:600; font-size:13px; margin-bottom:2px;}
.footer-legal{border-top:1px solid var(--line); padding-top:18px; padding-bottom:40px; font-size:12.5px; color:var(--steel);}
.footer-legal .req{font-family:var(--font-mono); font-size:12px; line-height:1.9;}
.footer-legal .disclaimer{margin-top:8px; max-width:90ch;}

@media (max-width:960px){
  .footer-main{grid-template-columns:1fr 1fr 1fr; gap:28px 24px;}
  .footer-brand{grid-column:1 / -1;}
}
@media (max-width:600px){
  .footer-main{grid-template-columns:1fr 1fr; gap:26px 16px; text-align:center; justify-items:center; padding-top:34px; padding-bottom:28px;}
  .footer-brand, .footer-contacts, .footer-addr{grid-column:1 / -1; justify-items:center;}
  .footer-brand .logo{justify-content:center;}
  .footer-brand p{max-width:40ch;}
  .foot-socials{justify-content:center;}
  .footer-addr{align-items:center;}
  .footer-addr .addr{justify-content:center; text-align:left; max-width:34ch;}
  .footer-col ul{align-items:center;}
  .footer-legal{text-align:center; padding-bottom:30px;}
}

/* ── Контентные страницы ────────────────────────────────── */
.crumbs{padding:16px 0 0; font-family:var(--font-mono); font-size:12.5px; color:var(--steel);}
.crumbs a{color:var(--deep);}
.page{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:32px 40px 38px; margin:6px 0 10px;}
.page__head{max-width:66ch; margin:4px 0 26px;}
.page__head h1{font-family:var(--font-display); font-size:clamp(26px,3.4vw,36px); line-height:1.12; color:var(--graphite);}
.page__head .lead{margin-top:14px; font-size:17px; color:var(--steel);}
.prose{max-width:74ch;}
.prose h2{font-family:var(--font-display); font-size:22px; color:var(--graphite); margin:32px 0 12px;}
.prose h3{font-family:var(--font-display); font-size:18px; color:var(--graphite); margin:22px 0 8px;}
.prose p{margin:10px 0; font-size:16.5px; line-height:1.6;}
.prose ul{margin:10px 0 10px 4px; padding-left:20px; display:flex; flex-direction:column; gap:7px;}
.prose li{font-size:16.5px; line-height:1.55;}
.prose strong{font-weight:600; color:var(--graphite);}
.prose .callout{background:var(--ice); border-radius:var(--radius); padding:18px 20px; margin:20px 0; color:var(--deep-dark); font-size:15.5px;}
.prose .callout b{color:var(--deep-dark);}
.info-table{width:100%; border-collapse:collapse; margin:16px 0; font-size:15px;}
.info-table th, .info-table td{text-align:left; padding:11px 14px 11px 0; border-bottom:1px solid var(--line); vertical-align:top;}
.info-table th{font-family:var(--font-mono); font-weight:400; font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--steel); white-space:nowrap;}

.steps{list-style:none; counter-reset:s; padding:0; margin:20px 0; display:grid; gap:12px;}
.steps li{position:relative; padding:16px 20px 16px 60px; background:var(--frost); border:1px solid var(--line); border-radius:var(--radius);}
@media (max-width:700px){ .page{padding:26px 22px 30px;} }
@media (max-width:600px){ .page{padding:22px 16px 26px; border-radius:10px;} }
.steps li::before{counter-increment:s; content:counter(s); position:absolute; left:18px; top:16px; width:30px; height:30px; border-radius:50%; background:var(--deep); color:#fff; font-family:var(--font-mono); font-size:14px; display:flex; align-items:center; justify-content:center;}
.steps li b{display:block; font-family:var(--font-display); font-size:16.5px; color:var(--graphite); margin-bottom:3px;}
.steps li span{font-size:15px; color:var(--steel);}

/* ============================================================
   КАРТОЧКА ТОВАРА (PDP)
   Шаблон один на все товары. Каждый блок помечен в разметке
   атрибутом data-block="…" — это контракт для админки (этап 2):
   блок можно скрыть, не трогая вёрстку соседних.
   ============================================================ */

/* ── Шапка товара ───────────────────────────────────────── */
.pdp-head{padding:12px 0 16px;}
.pdp-head h1{font-family:var(--font-display); font-size:clamp(22px,2.5vw,31px); line-height:1.15; margin:0; color:var(--graphite);}

/* ── Раскладка: галерея | покупка / инфо ────────────────── */
.pdp-layout{display:grid; grid-template-columns:minmax(0,1fr) 396px; gap:22px 26px; align-items:start; padding-bottom:26px;}
.pdp-layout > *{min-width:0;}
.pdp-gallery-slot{grid-column:1; grid-row:1;}
.pdp-buy{grid-column:2; grid-row:1 / span 2; position:sticky; top:118px;}
.pdp-info{grid-column:1; grid-row:2; display:flex; flex-direction:column; gap:16px;}

@media (max-width:980px){
  .pdp-layout{grid-template-columns:1fr; gap:16px;}
  .pdp-gallery-slot, .pdp-buy, .pdp-info{grid-column:1; grid-row:auto;}
  .pdp-buy{position:static;}
}

/* ── Галерея ────────────────────────────────────────────── */
.gal__stage{
  position:relative; height:360px; background:var(--ice);
  border:1px solid var(--line); border-radius:12px;
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.gal__frame{display:none; max-width:100%; max-height:100%;}
.gal__frame.is-on{display:block;}
.gal__frame img{width:auto; max-width:100%; max-height:312px; object-fit:contain; mix-blend-mode:multiply;}
/* Фото со своим фоном (схемы, иллюстрации): без умножения — иначе фон «съедает» картинку.
   В админке это флаг «фото на белом фоне» у каждого изображения. */
.gal__frame[data-bg="own"] img{mix-blend-mode:normal; border-radius:8px;}
.gal__zoom{
  position:absolute; right:12px; bottom:12px;
  display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:0 12px;
  border-radius:999px; background:rgba(255,255,255,.92); border:1px solid var(--line);
  font-family:var(--font-mono); font-size:11.5px; color:var(--steel);
}
.gal__zoom svg{stroke:var(--steel);}
.gal__thumbs{display:flex; gap:10px; margin-top:10px; flex-wrap:wrap;}
.gal__thumb{
  width:74px; height:74px; flex:none; padding:6px; cursor:pointer;
  background:var(--ice); border:1.5px solid var(--line); border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.gal__thumb img{max-width:100%; max-height:100%; object-fit:contain; mix-blend-mode:multiply;}
.gal__thumb[data-bg="own"] img{mix-blend-mode:normal;}
.gal__thumb:hover{border-color:var(--deep);}
.gal__thumb[aria-current="true"]{border-color:var(--deep); box-shadow:0 0 0 3px rgba(0,144,212,.20);}
@media (max-width:600px){
  .gal__stage{height:250px; padding:16px;}
  .gal__frame img{max-height:218px;}
  .gal__thumb{width:60px; height:60px;}
}

/* ── Панель покупки ─────────────────────────────────────── */
.buy{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px 18px;}
.buy__axis + .buy__axis{margin-top:15px;}
.buy__axis-head{display:flex; align-items:baseline; justify-content:space-between; gap:10px;}
.buy__axis-head span{font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel);}
.buy__axis-head b{font-family:var(--font-mono); font-size:13.5px; font-weight:400; color:var(--graphite);}
/* Сетка, а не flex-перенос: при flex число чипов в ряду плавало от
   ширины полосы прокрутки (5 без неё, 4 с ней). Колонки общие для всех
   осей — ряды диаметра и длины стоят друг под другом. */
.chips{display:grid; grid-template-columns:repeat(auto-fill,minmax(56px,1fr)); gap:7px; margin-top:8px;}
.chip{
  min-height:44px; padding:0 8px;
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  background:var(--card); border:1.5px solid var(--line); border-radius:9px;
  font-family:var(--font-mono); font-size:14.5px; color:var(--graphite); cursor:pointer;
  transition:border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.chip:hover:not([disabled]){border-color:var(--deep);}
.chip[aria-pressed="true"]{border-color:var(--deep); box-shadow:inset 0 0 0 1px var(--deep); background:rgba(10,94,143,.06);}
.chip[disabled]{opacity:.35; cursor:not-allowed; text-decoration:line-through;}
/* Точка международной цветовой маркировки (шкала Шарьера).
   Показывается только там, где цвет есть в данных варианта. */
.chip i{width:10px; height:10px; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1px rgba(29,37,41,.3);}

.buy__hint{margin-top:9px; font-size:13px; color:var(--steel);}
.buy__hint a{border-bottom:1.5px solid var(--azure);}

.buy__sep{height:1px; background:var(--line); margin:16px 0 13px;}
.buy__price-row{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.buy__price{font-family:var(--font-display); font-weight:600; font-size:27px; color:var(--graphite); white-space:nowrap; letter-spacing:-.01em;}
.buy__price small{font-family:var(--font-body); font-weight:500; font-size:13px; color:var(--steel); margin-right:4px;}
.buy__sku{margin-top:5px; font-family:var(--font-mono); font-size:12.5px; color:var(--steel);}
.buy__sku b{color:var(--graphite); font-weight:400;}
.buy__cta{display:grid; gap:9px; margin-top:14px;}
.buy__trust{list-style:none; margin-top:14px; background:var(--ice); border-radius:10px; padding:12px 14px; display:grid; gap:10px;}
.buy__trust li{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--deep-dark); line-height:1.4;}
.buy__trust svg{stroke:var(--deep); flex:none; margin-top:1px;}
.buy__trust b{color:var(--graphite); font-weight:600;}

/* ── Контентные блоки карточки ──────────────────────────── */
.pdp-block{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px 22px;}
.pdp-block > h2{font-family:var(--font-display); font-size:19px; color:var(--graphite); margin-bottom:12px;}
@media (max-width:600px){ .pdp-block{padding:16px; } }

/* Описание. Шрифт/кегль/интерлиньяж вынесены в переменные —
   в админке это поля «шрифт описания», «размер», «интерлиньяж». */
.prose-block{--prose-font:var(--font-body); --prose-size:16px; --prose-lh:1.62;}
.prose-block .prose{max-width:76ch;}
.prose-block .prose p,
.prose-block .prose li{font-family:var(--prose-font); font-size:var(--prose-size); line-height:var(--prose-lh);}
.prose-block .prose p{margin:0 0 10px;}
.prose-block .prose p:last-child{margin-bottom:0;}

/* Характеристики */
.specs{display:grid; grid-template-columns:1fr 1fr; gap:0 34px;}
.specs > div{display:flex; align-items:baseline; gap:8px; padding:9px 0; border-bottom:1px dashed var(--line);}
.specs dt{font-size:14.5px; color:var(--steel); flex:none; max-width:52%;}
.specs dd{font-size:14.5px; color:var(--graphite); margin-left:auto; text-align:right;}
@media (max-width:760px){ .specs{grid-template-columns:1fr;} }

/* ── Таблица размеров ───────────────────────────────────── */
.vtable-note{display:flex; align-items:baseline; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:12px;}
.vtable-note p{font-size:14px; color:var(--steel);}
/* Список длинный (у стента 26 артикулов), поэтому он в своей рамке
   с прокруткой и залипшей шапкой — страница не растягивается на экран.
   Нижняя кромка подсвечена градиентом: видно, что список продолжается. */
.vtable-box{position:relative;}
.vtable-box::after{
  content:''; position:absolute; left:1px; right:1px; bottom:1px; height:44px;
  border-radius:0 0 9px 9px; pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96));
}
.vtable-box.is-end::after{opacity:0; transition:opacity .2s ease;}
.vtable-wrap{
  border:1px solid var(--line); border-radius:10px; background:var(--card);
  max-height:520px; overflow:auto; overscroll-behavior:contain;
}
.vtable{width:100%; border-collapse:collapse; min-width:640px; font-size:14px;}
.vtable th{
  position:sticky; top:0; z-index:1; background:var(--card); text-align:left; font-weight:400;
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--steel);
  padding:11px 14px; border-bottom:1px solid var(--line-azure); white-space:nowrap;
}
.vtable td{padding:9px 14px; border-bottom:1px solid var(--line); vertical-align:middle;}
.vtable tbody tr{cursor:pointer; transition:background-color .15s ease;}
.vtable tbody tr:hover{background:var(--frost);}
.vtable tbody tr.is-current{background:rgba(0,144,212,.09); box-shadow:inset 3px 0 0 var(--deep);}
.vtable tbody tr:last-child td{border-bottom:none;}
.vtable .c-mono{font-family:var(--font-mono); font-size:13px; color:var(--steel); white-space:nowrap;}
.vtable .c-val{font-family:var(--font-mono); font-size:13.5px; color:var(--graphite); white-space:nowrap;}
.vtable .c-price{font-family:var(--font-mono); font-size:14px; color:var(--graphite); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right;}
.vtable .c-dot{display:inline-flex; align-items:center; gap:7px;}
.vtable .c-dot i{width:10px; height:10px; border-radius:50%; flex:none; box-shadow:inset 0 0 0 1px rgba(29,37,41,.3);}
/* На мобильном таблица превращается в строки-карточки: горизонтальная
   прокрутка увозила бы цену и наличие за экран, а они должны быть видны
   всегда (правило витрины). Разметка та же — меняется только раскладка. */
@media (max-width:760px){
  .vtable-box::after{display:none;}
  .vtable-wrap{max-height:none; overflow:visible; border:none; background:transparent;}
  .vtable{min-width:0; display:block;}
  .vtable thead{display:none;}
  .vtable tbody{display:flex; flex-direction:column; gap:8px;}
  .vtable tbody tr{
    display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 10px;
    background:var(--card); border:1px solid var(--line); border-radius:10px; padding:11px 13px;
  }
  .vtable tbody tr:last-child td{border-bottom:none;}
  .vtable td{display:inline-block; padding:0; border:none;}
  /* Псевдоэлемент-распорка — принудительный перенос строки внутри
     карточки: сверху артикул и цена, снизу размеры и наличие. */
  .vtable tbody tr::after{content:''; order:3; flex:0 0 100%; height:0;}
  .vtable .c-mono{order:1; flex:1 1 auto; font-size:13.5px; color:var(--graphite);}
  .vtable .c-price{order:2; flex:0 0 auto; font-size:15px;}
  .vtable .c-val{order:4; flex:0 0 auto;}
  .vtable .c-val::after{content:' ' attr(data-unit); color:var(--steel);}
  .vtable .c-val + .c-val::before{content:'· '; color:var(--steel); opacity:.6;}
  .vtable .c-stock{order:5; margin-left:auto;}
  .vtable tbody tr.is-current{box-shadow:inset 3px 0 0 var(--deep); border-color:var(--line-azure);}
}

/* ── Документы ──────────────────────────────────────────── */
.docs{list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.docs li{display:flex; gap:11px; align-items:flex-start; background:var(--frost); border:1px solid var(--line); border-radius:10px; padding:13px 14px;}
.docs svg{stroke:var(--deep); flex:none; margin-top:1px;}
.docs b{display:block; font-size:14.5px; color:var(--graphite); font-weight:600;}
.docs span{display:block; font-size:13px; color:var(--steel); margin-top:2px;}
@media (max-width:860px){ .docs{grid-template-columns:1fr;} }

/* ── Доставка и оплата ──────────────────────────────────── */
.delivery{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.delivery > div{background:var(--frost); border:1px solid var(--line); border-radius:10px; padding:15px 16px;}
.delivery h3{font-family:var(--font-display); font-size:15px; color:var(--graphite); margin-bottom:6px;}
.delivery p{font-size:14px; color:var(--steel);}
.delivery .cost{font-family:var(--font-mono); font-size:14px; color:var(--graphite); display:block; margin-top:6px;}
@media (max-width:860px){ .delivery{grid-template-columns:1fr;} }

.cols-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:1000px){ .cols-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .cols-4{grid-template-columns:1fr;} }

/* ── Мобильная панель покупки ───────────────────────────── */
/* Появляется, когда основная панель ушла за экран, и на это время
   прячет таб-панель — два фиксированных бара одновременно не висят. */
.buybar{display:none;}
@media (max-width:760px){
  .buybar{
    display:flex; align-items:center; gap:12px;
    position:fixed; left:0; right:0; bottom:0; z-index:210;
    background:var(--card); border-top:1px solid var(--line-azure);
    box-shadow:0 -8px 24px -16px rgba(8,74,114,.55);
    padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
    transform:translateY(115%); transition:transform .25s ease;
  }
  .buybar.is-on{transform:none;}
  .buybar__info{min-width:0; line-height:1.25;}
  .buybar__price{font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--graphite); white-space:nowrap;}
  .buybar__size{display:block; font-family:var(--font-mono); font-size:11.5px; color:var(--steel); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .buybar .btn{flex:1; min-height:44px;}
  .bottombar{transition:transform .25s ease;}
  body.buybar-on .bottombar{transform:translateY(100%);}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .hero__track{transition:none;}
  *{transition:none !important;}
}
