/* ===== Медикор — общие стили. Все цвета задаются здесь, в :root ===== */
:root{
  /* Строгая палитра: графит + белый + бежевый из логотипа; оранжевый — только главные кнопки */
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --sand: #D6D6D2;        /* пунктир, рамки */
  --sand-tint: #F4F4F2;   /* светло-серые полосы-секции */
  --ink: #2B2F33;         /* весь текст */
  --ink-soft: #5F6368;    /* второстепенный текст */
  --head: #2B2F33;        /* заголовки, подвал */
  --accent: #2B2F33;      /* главные кнопки — графит (оранжевый остаётся только в логотипе) */
  --accent-hover: #000000;
  --on-accent: #FFFFFF;
  --accent-dark: #2B2F33; /* ссылки и подписи — графит, без цветных надписей */
  --accent-tint: #F4F4F2;
  --leaf: #2B2F33;
  --leaf-tint: #F4F4F2;
  --gold: #2B2F33;
  --gold-tint: #F4F4F2;
  --line: #E4E4E0;
  --radius: 14px;
  --maxw: 1160px;
  --serif: 'Golos Text', Arial, sans-serif;  /* один шрифт на весь сайт */
  --sans: 'Golos Text', Arial, sans-serif;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--head);
}
p{ margin: 0; }
a{ color: inherit; }
img,svg{ display:block; max-width:100%; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; color:inherit; }
:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px){ .wrap{ padding: 0 16px; } }

/* ---------- верхняя строка с адресом ---------- */
.topline{ background: var(--sand-tint); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.topline-inner{ max-width: var(--maxw); margin:0 auto; padding: 8px 32px; display:flex; gap: 24px; justify-content:space-between; flex-wrap:wrap; }
.topline b{ color: var(--head); font-weight:600; }
.topline a{ color: var(--accent-dark); font-weight:700; text-decoration:underline; }
@media (max-width: 1100px){ .topline span{ display:none; } .topline-inner{ justify-content:center; } }

/* старая полоса больше не используется */
.promo-bar{ display:none; }

/* ---------- шапка ---------- */
header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 32px;
  max-width: 1280px; margin:0 auto;
  gap: 16px;
}
.logo{ display:flex; align-items:center; gap:12px; text-decoration:none; flex-shrink:0; color: var(--head); }
.logo-word{ font-family: var(--serif); font-size: 25px; font-weight:800; letter-spacing: 0.5px; line-height:1; white-space:nowrap; }
.logo-word small{ display:block; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.2px; font-weight:400; color: var(--ink-soft); margin-top:5px; }
nav.main-nav{ display:flex; gap: 16px; align-items:center; }
@media (min-width: 1261px){ .header-inner .logo-word small{ display:none; } }
nav.main-nav a{ text-decoration:none; font-size: 16px; color: var(--ink); white-space:nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--accent-dark); border-bottom-color: var(--accent); }
.sfr-nav-btn{ font-weight:600 !important; color: var(--accent-dark) !important; }
.sfr-nav-btn-mobile{ font-weight:600 !important; color: var(--accent-dark) !important; }
.header-right{ display:flex; align-items:center; gap: 16px; }
.phone{ font-size: 17px; font-weight:700; text-decoration:none; white-space:nowrap; color: var(--head); }
.phone small{ display:block; font-weight:400; font-size:13px; color: var(--ink-soft); }
.cart-btn{
  display:flex; align-items:center; gap:8px;
  background: var(--accent); color: var(--on-accent);
  padding: 0 18px; min-height: 48px; border-radius: 12px;
  font-size: 16px; font-weight:700;
  position: relative; flex-shrink:0;
}
.cart-btn:hover{ background: var(--accent-hover); }
.cart-count{
  background:#fff; color: var(--accent-dark);
  border-radius:999px; min-width:22px; height:22px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; padding: 0 6px;
}
.burger{ display:none; width:48px; height:48px; align-items:center; justify-content:center; border:1.5px solid var(--line); border-radius:12px; position:relative; }
.burger::before, .burger::after{ content:''; position:absolute; left:13px; right:13px; height:2px; background: var(--head); }
.burger::before{ top:17px; box-shadow: 0 6px 0 var(--head); }
.burger::after{ top:29px; }
.phone-wrap{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.callback-btn{ font-size:14px; color: var(--accent-dark); text-decoration:underline; font-weight:600; white-space:nowrap; }
.callback-btn-mobile{ display:block; width:100%; font-size:19px; text-align:center; color: var(--accent-dark); min-height:56px; padding:14px 20px; font-weight:700; border:2px solid var(--accent); border-radius:12px; margin-top:12px; text-decoration:none; }
@media (max-width: 1260px){
  nav.main-nav{ display:none; }
  .burger{ display:flex; }
}
@media (max-width: 760px){ .phone-wrap{ display:none; } }
@media (max-width: 480px){
  .header-inner{ padding: 10px 16px; gap:10px; }
  .logo-word{ font-size:21px; }
  .logo-word small{ display:none; }
  .header-right .cart-btn{ display:none; }
}
.mobile-nav{
  display:none; position:fixed; inset:0; z-index:80; background: var(--bg);
  padding: 20px 20px 32px; overflow-y:auto;
}
.mobile-nav.open{ display:block; }
.mobile-nav-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.mobile-nav > a{ display:flex; align-items:center; min-height:56px; font-size:20px; font-weight:600; padding: 10px 4px; border-bottom:1px solid var(--line); text-decoration:none; color: var(--head); }
.mobile-nav .phone{ display:flex; justify-content:center; margin-top:24px; font-size:21px; background: var(--accent); color: var(--on-accent); border-radius:12px; padding:16px 20px; border-bottom:none; }
.mobile-nav-addr{ margin-top:20px; font-size:16px; color: var(--ink-soft); }
.mobile-nav-addr b{ color: var(--head); }
.close-btn{ width:48px; height:48px; display:flex; align-items:center; justify-content:center; font-size:22px; border-radius:12px; border:1.5px solid var(--line); color: var(--head); background: var(--paper); }

/* ---------- кнопки ---------- */
.btn-primary, .btn-secondary, .btn-call, .btn-max{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:56px; padding: 0 28px; border-radius: 12px;
  font-size: 18px; font-weight:700; text-decoration:none; text-align:center; line-height:1.25;
}
.btn-primary{ background: var(--accent); color: var(--on-accent); border:2px solid var(--accent); }
.btn-primary:hover{ background: var(--accent-dark); border-color: var(--accent-hover); }
.btn-secondary{ background: var(--paper); color: var(--accent-dark); border: 2px solid var(--accent); }
.btn-secondary:hover{ background: var(--accent-tint); }
.btn-call{ background: var(--head); color:#fff; border:2px solid var(--head); }
.btn-call:hover{ background:#1C1F22; }
.btn-call svg, .btn-primary svg{ width:22px; height:22px; flex:none; }

/* ---------- главная: первый экран ---------- */
.m-hero{ padding: 56px 0 48px; background: radial-gradient(ellipse at 85% 0%, var(--accent-tint) 0%, rgba(255,233,221,0) 55%), var(--bg); border-bottom:1px solid var(--line); }
.m-hero-grid{ display:grid; grid-template-columns: 300px 1fr; gap: 56px; align-items:center; }
.m-hero-logo{ width:300px; height:300px; background: var(--paper); border-radius:50%; box-shadow: 0 18px 50px rgba(43,47,51,0.14); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }


.m-hero-note .callback-btn{ font-size:inherit; padding:0; }
.m-hero h1{ font-size: 44px; margin-bottom: 18px; }
.m-hero-sub{ font-size: 20px; color: var(--ink-soft); max-width: 600px; margin-bottom: 30px; }
.m-hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 14px; }
.m-hero-note{ font-size:16px; color: var(--ink-soft); }
.m-hero-note a{ color: var(--accent-dark); font-weight:600; }
@media (max-width: 900px){
  .m-hero{ padding: 32px 0 36px; }
  .m-hero-grid{ grid-template-columns:1fr; gap:24px; text-align:center; }
  .m-hero-logo{ width:200px; height:200px; margin:0 auto; gap:8px; }

  .m-hero h1{ font-size: 32px; }
  .m-hero-sub{ font-size:18px; margin-left:auto; margin-right:auto; }
  .m-hero-ctas{ flex-direction:column; }
  .m-hero-ctas a{ width:100%; }
}

/* ---------- главная: адреса ---------- */
.m-addr{ padding: 56px 0; }
.m-addr-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m-addr-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; display:flex; flex-direction:column; gap:10px; }
.m-addr-card.soon{ background: transparent; border: 2px dashed var(--sand); }
.m-addr-city{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.m-addr-city h3{ font-size:24px; }
.m-addr-street{ font-size:21px; font-weight:700; color: var(--ink); }
.m-addr-row{ font-size:17px; color: var(--ink-soft); }
.m-addr-row b{ color: var(--ink); }
.m-addr-card .btn-secondary{ align-self:flex-start; margin-top:8px; }
.badge{ display:inline-flex; align-items:center; font-size:14px; font-weight:700; padding:4px 12px; border-radius:999px; background: var(--accent-tint); color: var(--accent-dark); }
.badge.leaf{ background: var(--leaf-tint); color: var(--ink); }
@media (max-width: 760px){ .m-addr-grid{ grid-template-columns:1fr; } .m-addr-card .btn-secondary{ align-self:stretch; } }

/* ---------- секции ---------- */
section{ padding: 80px 0; }
.section-head{ max-width: 680px; margin-bottom: 36px; }
.section-head h2{ font-size: 34px; margin-bottom: 12px; }
.section-head p{ font-size: 18px; color: var(--ink-soft); }
.section-kicker{ display:flex; align-items:center; gap:10px; font-size:15px; font-weight:700; color: var(--accent-dark); text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; }
.section-kicker::before{ content:''; width:28px; height:2px; background: var(--accent); }
.band-sand{ background: var(--sand-tint); }
.band-white{ background: var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
@media (max-width: 640px){ section{ padding: 52px 0; } .section-head h2{ font-size:27px; } }

/* ---------- хлебные крошки ---------- */
.breadcrumbs{ font-size:15px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumbs a{ text-decoration:none; color: var(--accent-dark); }
.breadcrumbs a:hover{ text-decoration:underline; }
.breadcrumbs span{ margin: 0 6px; }

/* ---------- главная: ситуации ---------- */
.sit-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sit-card{ display:flex; gap:18px; align-items:flex-start; min-height:120px; padding: 24px; background: var(--paper); border:1.5px solid var(--line); border-radius: var(--radius); text-decoration:none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.sit-card:hover, .sit-card:focus{ border-color: var(--accent); box-shadow: 0 8px 24px rgba(43,47,51,0.12); }
.sit-ico{ flex:none; width:56px; height:56px; border-radius:50%; background: var(--accent-tint); display:flex; align-items:center; justify-content:center; }
.sit-ico svg{ width:28px; height:28px; stroke: var(--accent-dark); }
.sit-card b{ display:block; font-family: var(--serif); font-size:22px; line-height:1.25; color: var(--head); margin-bottom:6px; }
.sit-card span{ font-size:17px; color: var(--ink-soft); }
.sit-card.main{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sit-card.main b, .sit-card.main span{ color: var(--on-accent); }
.sit-card.main .sit-ico{ background: rgba(255,255,255,0.45); }
.sit-card.main .sit-ico svg{ stroke: var(--on-accent); }
.sit-card.main:hover{ background: var(--accent-hover); }
@media (max-width: 760px){ .sit-grid{ grid-template-columns:1fr; } .sit-card b{ font-size:20px; } }

/* ---------- главная: разделы каталога ---------- */
.cat-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding: 22px 20px; min-height: 170px; background: var(--paper); border:1.5px solid var(--line); border-radius: var(--radius); text-decoration:none; color: var(--ink); }
.cat-card:hover{ border-color: var(--accent); }
.cat-card svg{ width:40px; height:40px; stroke: var(--leaf); }
.cat-card b{ font-family: var(--serif); font-size:20px; color: var(--head); line-height:1.25; }
.cat-card span{ font-size:15.5px; color: var(--ink-soft); }
.cat-more{ margin-top: 22px; }
@media (max-width: 1020px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px){ .cat-grid{ grid-template-columns: 1fr; } .cat-card{ min-height:0; flex-direction:row; align-items:center; } .cat-card span{ display:none; } }

/* ---------- главная: сертификат (светлый блок) ---------- */
.cert-band{ background: var(--sand-tint); }
.cert-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items:start; }
.cert-grid h2{ font-size:34px; margin-bottom:16px; }
.cert-grid .lead{ font-size:18px; color: var(--ink-soft); margin-bottom:24px; }
.cert-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; counter-reset: cs; }
.cert-steps li{ counter-increment: cs; display:grid; grid-template-columns: 48px 1fr; gap:16px; background: var(--paper); border-radius: var(--radius); padding: 20px; border:1px solid var(--line); }
.cert-steps li::before{ content: counter(cs); width:48px; height:48px; border-radius:50%; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-size:22px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.cert-steps b{ display:block; font-size:19px; color: var(--head); margin-bottom:4px; }
.cert-steps span{ font-size:16.5px; color: var(--ink-soft); }
.cert-warn{ margin-top:18px; font-size:16px; color: var(--ink-soft); border-left:3px solid var(--accent); padding-left:14px; }
@media (max-width: 900px){ .cert-grid{ grid-template-columns:1fr; gap:24px; } .cert-grid h2{ font-size:27px; } }

/* ---------- главная: MEDISYNC (светлый) ---------- */
.ms-band-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.ms-band-photos{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
.ms-band-photos img{ width:100%; aspect-ratio: 3/4; object-fit:cover; border-radius: var(--radius); background: var(--paper); border:1px solid var(--line); }
.ms-band-grid h2{ font-size:32px; margin-bottom:14px; letter-spacing:1px; }
.ms-band-grid p{ color: var(--ink-soft); margin-bottom:22px; }
@media (max-width: 900px){ .ms-band-grid{ grid-template-columns:1fr; gap:24px; } }

/* ---------- о нас ---------- */
.about-block{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center; padding: 64px 0; }
.about-text h2{ font-size:30px; margin-bottom:16px; }
.about-text p{ font-size:18px; color: var(--ink-soft); margin-bottom:28px; }
.about-points{ display:flex; flex-direction:column; gap:14px; }
.about-point{ display:flex; flex-direction:column; gap:4px; background: var(--paper); border:1px solid var(--line); border-left: 4px solid var(--accent); border-radius:12px; padding:16px 20px; }
.about-point b{ font-size:18px; color: var(--head); }
.about-point span{ font-size:16px; color: var(--ink-soft); }
.about-photo{ border-radius: var(--radius); overflow:hidden; aspect-ratio: 1/1; }
.about-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 900px){
  .about-block{ grid-template-columns:1fr; padding: 40px 0; }
  .about-photo{ order:-1; max-width:420px; margin:0 auto; }
}

.guide{ background: var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.guide-photo{ border-radius: var(--radius); overflow:hidden; margin-top:24px; aspect-ratio: 16/9; }
.guide-photo img{ display:block; width:100%; height:100%; object-fit:cover; object-position: center 40%; }

/* ---------- плитки разделов (старые страницы) ---------- */
.tiles{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile{ position:relative; border-radius: var(--radius); overflow:hidden; aspect-ratio: 3/4; display:flex; flex-direction:column; justify-content:flex-end; padding: 22px; color:#fff; text-decoration:none; }
.tile-bg{ position:absolute; inset:0; }
.tile-overlay{ position:absolute; inset:0; background: linear-gradient(0deg, rgba(43,47,51,0.78) 0%, rgba(43,47,51,0.05) 55%); }
.tile-icon{ position:relative; z-index:2; width:40px; height:40px; margin-bottom: 14px; }
.tile-name{ position:relative; z-index:2; font-family: var(--serif); font-size:21px; font-weight:600; margin-bottom:6px; }
.tile-desc{ position:relative; z-index:2; font-size: 15px; }
.tile.t1 .tile-bg{ background: #fff url('../img/products/kaloprievnik-tile.jpg') center/cover no-repeat; }
.tile.t2 .tile-bg{ background: #fff url('../img/products/uhod-tile.jpg') center/cover no-repeat; }
.tile.t3 .tile-bg{ background: #fff url('../img/products/belyo-tile.jpg') center/cover no-repeat; }
.tile.t4 .tile-bg{ background: #fff url('../img/products/katetery-tile.jpg') center/cover no-repeat; }
.tiles-more{ grid-column: 1 / -1; text-align:center; margin-top: 8px; }
.link-more{ font-size:17px; font-weight:700; color: var(--accent-dark); text-decoration:none; border-bottom: 2px solid var(--accent); padding-bottom:2px; }
@media (max-width: 900px){ .tiles{ grid-template-columns: repeat(2,1fr); } }

/* ---------- сообщество ---------- */
.community-layout{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap:40px; align-items:center; }
.community-photo{ border-radius: var(--radius); overflow:hidden; aspect-ratio: 4/3; }
.community-photo img{ width:100%; height:100%; object-fit:cover; }
.community-block{ display:grid; grid-template-columns: 72px 1fr auto; gap: 32px; align-items:center; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; }
.community-logo{ width:72px; height:72px; border-radius:16px; object-fit:cover; }
.community-text h2{ font-size:22px; margin-bottom:8px; }
.community-text p{ color: var(--ink-soft); font-size:16px; }
.community-qr{ display:flex; flex-direction:column; align-items:center; gap:12px; }
@media (max-width: 900px){
  .community-layout{ grid-template-columns:1fr; }
  .community-block{ grid-template-columns:1fr; text-align:center; padding:28px; }
  .community-logo{ margin:0 auto; }
}

/* ---------- страница MEDISYNC ---------- */
.ms-hero{ position:relative; color:#fff; overflow:hidden; min-height:70vh; display:flex; align-items:flex-start; background: var(--head); }
.ms-hero-video{ position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; }
.ms-hero-scrim{ position:absolute; inset:0; z-index:1; background: linear-gradient(0deg, rgba(43,47,51,0.45) 0%, rgba(43,47,51,0.05) 60%); }
.ms-hero-inner{ position:relative; z-index:2; text-align:center; display:flex; flex-direction:column; align-items:center; width:100%; padding-top:48px; }
.ms-eyebrow{ display:inline-flex; background: rgba(255,255,255,0.92); color: var(--head); border-radius:999px; padding:8px 20px; font-size:16px; font-weight:700; }
.ms-about{ padding: 80px 0; }
.ms-about-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center; }
.ms-about-inner h2{ font-size:32px; margin:10px 0 18px; }
.ms-about-inner p{ color: var(--ink-soft); font-size:18px; margin-bottom:16px; }
.ms-about-inner p b{ color: var(--ink); }
.ms-about-photo{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; aspect-ratio:1/1; }
.ms-about-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.ms-products{ background: var(--paper); border-top:1px solid var(--line); padding: 80px 0; }
@media (max-width: 900px){
  .ms-hero{ min-height:52vh; }
  .ms-about-inner{ grid-template-columns:1fr; }
  .ms-about-photo{ max-width:320px; margin:0 auto; }
}

/* ---------- страница сертификата ---------- */
.sfr-hero{ position:relative; padding: 64px 0 56px; text-align:center; background: radial-gradient(ellipse at 50% 0%, var(--accent-tint) 0%, rgba(255,233,221,0) 70%), var(--bg); border-bottom:1px solid var(--line); }
.sfr-hero-badge{ display:inline-flex; background: var(--accent-tint); color: var(--accent-dark); border-radius:999px; padding:8px 20px; font-size:16px; font-weight:700; margin-bottom:22px; }
.sfr-hero h1{ font-size:40px; max-width:760px; margin:0 auto 18px; }
.sfr-hero-sub{ color: var(--ink-soft); font-size:19px; max-width:620px; margin:0 auto 30px; }
.sfr-hero .btn-secondary[style]{ border-color: var(--accent) !important; color: var(--accent-dark) !important; }
.sfr-steps-section{ padding: 72px 0; }
.sfr-steps-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.sfr-step-card{ background: var(--paper); border:1px solid var(--line); border-top:4px solid var(--accent); border-radius: var(--radius); padding:26px; }
.sfr-step-num{ font-family: var(--serif); font-size:26px; font-weight:600; color: var(--accent-dark); margin-bottom:10px; }
.sfr-step-card h4{ font-size:20px; margin-bottom:8px; }
.sfr-step-card p{ font-size:17px; color: var(--ink-soft); }
.sfr-video-section{ background: var(--sand-tint); padding: 64px 0; }
.sfr-video-frame{ aspect-ratio: 16/9; max-width:760px; margin:0 auto; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); background:#000; }
.sfr-video-frame video{ width:100%; height:100%; display:block; object-fit:contain; background:#000; }
.sfr-info{ padding: 72px 0; }
.sfr-info-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:32px; }
.sfr-info-grid h3{ font-size:20px; margin-bottom:10px; }
.sfr-info-grid p{ font-size:17px; color: var(--ink-soft); }
.sfr-cta{ background: var(--accent-tint); padding: 56px 0; text-align:center; }
.sfr-cta-inner h2{ font-size:28px; margin-bottom:12px; }
.sfr-cta-inner p{ color: var(--ink-soft); margin-bottom:24px; }
@media (max-width: 900px){
  .sfr-hero{ padding: 40px 0; }
  .sfr-hero h1{ font-size:29px; }
  .sfr-steps-grid{ grid-template-columns:1fr; }
  .sfr-info-grid{ grid-template-columns:1fr; gap:24px; }
}

/* ---------- старые блоки главной (на случай использования) ---------- */
.medisync-badge{ display:inline-flex; align-items:center; gap:8px; background: var(--accent-tint); color: var(--accent-dark); border-radius:999px; padding: 6px 16px; font-size: 15px; font-weight:700; margin-bottom: 14px; }
.ms-showcase{ position:relative; overflow:hidden; height: 560px; background: var(--head); }
.ms-showcase-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.ms-showcase-scrim{ position:absolute; inset:0; z-index:1; background: linear-gradient(0deg, rgba(43,47,51,0.85) 0%, rgba(43,47,51,0.2) 55%); }
.ms-showcase-inner{ position:absolute; left:0; right:0; bottom:0; margin:0 auto; z-index:2; color:#fff; padding-bottom: 56px; max-width: 560px; }
.ms-showcase-inner h2{ color:#fff; font-size:44px; margin-bottom:14px; }
.ms-showcase-inner p{ color: rgba(255,255,255,0.9); font-size:17px; margin-bottom:24px; }
.sfr{ background: var(--sand-tint); border-radius: 20px; padding: 56px; max-width: calc(var(--maxw) - 64px); margin:0 auto; }
.sfr-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.sfr-badge{ display:inline-flex; background: var(--paper); color: var(--accent-dark); border-radius:999px; padding: 6px 16px; font-size: 15px; font-weight:700; margin-bottom: 18px; }
.sfr h2{ font-size: 30px; margin-bottom: 16px; }
.sfr p.lead{ color: var(--ink-soft); font-size:18px; }
.sfr-steps{ display:flex; flex-direction:column; gap:18px; }
.sfr-step{ display:flex; gap:16px; }
.sfr-step h4{ font-family: var(--sans); font-weight:700; font-size:18px; margin-bottom:3px; }
.sfr-step p{ color: var(--ink-soft); font-size:16.5px; }
@media (max-width: 900px){ .sfr-grid{ grid-template-columns:1fr; } .sfr{ padding: 36px 22px; margin: 0 16px; } }

/* ---------- почему мы ---------- */
.why-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why-item{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.why-item h3{ font-size:21px; margin-bottom:10px; }
.why-item p{ color: var(--ink-soft); font-size:17px; }
.why-item .dot{ width:44px; height:44px; border-radius:50%; background: var(--leaf-tint); margin-bottom:16px; display:flex; align-items:center; justify-content:center; }
.why-item .dot svg{ width:24px; height:24px; stroke: var(--leaf); }
@media (max-width: 900px){ .why-grid{ grid-template-columns:1fr; } }

/* ---------- адреса (внутренние страницы) ---------- */
.locations{ background: var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.loc-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.loc-card{ border:1px solid var(--line); border-radius: var(--radius); padding: 28px; background:#fff; }
.loc-card.soon{ background: transparent; border: 2px dashed var(--sand); }
.loc-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; gap:10px; }
.loc-card h3{ font-size:22px; }
.loc-tag{ font-size: 14px; font-weight:700; color: var(--accent-dark); background: var(--accent-tint); padding: 4px 12px; border-radius:999px; white-space:nowrap; }
.loc-row{ display:flex; gap:10px; font-size:17px; color: var(--ink-soft); margin-bottom:8px; }
.loc-row b{ color: var(--ink); font-weight:600; }
.delivery-note{ margin-top:24px; padding:22px 26px; background: var(--paper); border:1px solid var(--line); border-left:4px solid var(--leaf); border-radius: 12px; font-size:17px; color: var(--ink); }
.delivery-list{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.delivery-list > div{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.delivery-list h3{ font-size:20px; margin-bottom:8px; }
.delivery-list p{ font-size:17px; color: var(--ink-soft); }
@media (max-width: 900px){ .loc-grid, .delivery-list{ grid-template-columns:1fr; } }

/* ---------- карточки статей ---------- */
.articles{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.article-card{ border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:#fff; text-decoration:none; color: var(--ink); }
.article-card:hover{ border-color: var(--accent); }
.article-thumb{ height: 160px; overflow:hidden; background: var(--sand-tint); }
.article-thumb img{ width:100%; height:100%; object-fit:cover; object-position: center; }
.article-card.a4 .article-thumb{ background:#fff; }
.article-body{ padding: 20px 22px 24px; }
.article-tag{ font-size:14px; color: var(--accent-dark); font-weight:700; margin-bottom:8px; }
.article-card h4{ font-size:20px; margin-bottom:8px; }
.article-card p{ font-size:16px; color: var(--ink-soft); }
@media (max-width: 900px){ .articles{ grid-template-columns:1fr; } }

/* ---------- появление при прокрутке ---------- */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal-delay-1.in{ transition-delay: .1s; }
.reveal-delay-2.in{ transition-delay: .2s; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- блоки фото+текст в статьях ---------- */
.feature-row{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:center; margin: 64px 0; }
.feature-row.reverse .feature-photo{ order:2; }
.feature-photo{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); aspect-ratio:4/5; display:flex; align-items:center; justify-content:center; overflow:hidden; padding:24px; }
.feature-photo img{ max-width:100%; max-height:100%; object-fit:contain; }
.feature-photo.feature-photo-split{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:24px; }
.feature-photo.feature-photo-split img{ width:100%; height:100%; }
.feature-text .eyebrow-line{ margin-bottom:14px; }
.feature-text h2{ font-size:30px; margin-bottom:18px; }
.feature-text p{ font-size:18px; color: var(--ink-soft); margin-bottom:16px; }
.feature-text ul{ padding-left:22px; }
.feature-text li{ font-size:18px; margin-bottom:10px; }
.feature-text li b{ color: var(--ink); }
@media (max-width: 900px){
  .feature-row{ grid-template-columns:1fr; gap:24px; margin: 44px 0; }
  .feature-row.reverse .feature-photo{ order:0; }
  .feature-photo{ aspect-ratio:4/3; }
}

/* ---------- статья ---------- */
.eyebrow-line{ font-size:15px; color: var(--accent-dark); font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom: 14px; }
.article-page{ max-width: 780px; }
.article-page h1{ font-size:38px; margin-bottom:20px; }
.article-page .lead{ font-size:20px; color: var(--ink-soft); margin-bottom:34px; }
.article-page h2{ font-size:28px; margin: 40px 0 14px; }
.article-page h3{ font-size:23px; margin: 34px 0 12px; }
.article-page p{ margin-bottom:16px; color: var(--ink); }
.article-page ul, .article-page ol{ margin: 0 0 18px; padding-left: 24px; }
.article-page li{ margin-bottom:8px; }
.article-page a{ color: var(--accent-dark); }
.callout{ background: var(--accent-tint); border-left:4px solid var(--accent); border-radius: 12px; padding:22px 24px; margin: 28px 0; font-size:17px; }
.callout a{ color: var(--accent-dark); font-weight:700; }
@media (max-width: 640px){ .article-page h1{ font-size:30px; } .article-page h2{ font-size:24px; } }

.type-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; margin: 28px 0; }
.type-card{ display:flex; gap:16px; align-items:flex-start; background: var(--paper); border:1px solid var(--line); border-radius: 12px; padding:18px; }
.type-card img{ width:64px; height:64px; object-fit:contain; background:#fff; border-radius:10px; border:1px solid var(--line); padding:6px; flex-shrink:0; }
.type-card h4{ font-family: var(--sans); font-size:18px; font-weight:700; margin-bottom:6px; }
.type-card p{ font-size:16px; color: var(--ink-soft); margin-bottom:0; }
@media (max-width: 640px){ .type-grid{ grid-template-columns:1fr; } }

/* ---------- каталог ---------- */
.catalog-head{ padding: 28px 0 0; }
.catalog-head h1{ font-size: 36px; margin-bottom:10px; }
.catalog-head p{ color: var(--ink-soft); font-size:18px; }
.brand-banner{ display:flex; gap:24px; align-items:center; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding:22px 26px; margin-top:22px; }
.brand-banner img{ width:88px; height:88px; object-fit:contain; background:#fff; border-radius:12px; border:1px solid var(--line); padding:8px; flex-shrink:0; }
.brand-banner h2{ font-size:21px; margin-bottom:6px; }
.brand-banner p{ font-size:16px; color: var(--ink-soft); }
@media (max-width: 640px){ .brand-banner{ flex-direction:column; text-align:center; } }
.catalog-layout{ display:grid; grid-template-columns: 270px 1fr; gap: 36px; padding: 28px 0 88px; align-items:start; }
.filters{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 22px; position:sticky; top:96px; }
.filter-group{ margin-bottom:22px; }
.filter-group:last-child{ margin-bottom:0; }
.filter-group h4{ font-family: var(--sans); font-size:15px; font-weight:700; margin-bottom:12px; text-transform:uppercase; letter-spacing:0.5px; color: var(--ink-soft); }
.filter-opt{ display:flex; align-items:center; gap:10px; margin-bottom:10px; font-size:17px; cursor:pointer; min-height:32px; }
.filter-opt input{ width:20px; height:20px; accent-color: var(--accent); flex-shrink:0; }
.filter-reset{ margin-top: 16px; font-size:16px; color: var(--accent-dark); text-decoration:underline; font-weight:700; }
.results-bar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:12px; }
.results-count{ font-size:16px; color: var(--ink-soft); }
.sort-select{ border:1.5px solid var(--line); border-radius:10px; padding:10px 14px; font-size:16px; background:#fff; font-family:inherit; min-height:48px; }
.product-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:18px; display:flex; flex-direction:column; position:relative; }
.product-card:hover{ border-color: var(--sand); }
.product-thumb{ aspect-ratio: 1/1; border-radius: 10px; background: var(--sand-tint); margin-bottom:14px; display:flex; align-items:center; justify-content:center; color: var(--ink-soft); font-size:14px; overflow:hidden; }
.product-thumb-photo{ background:#fff; }
.product-thumb-photo img{ width:100%; height:100%; object-fit:contain; padding:8px; }
.product-tag{ position:absolute; top:14px; left:14px; background: var(--leaf); color:#fff; font-size:13px; font-weight:700; padding:4px 10px; border-radius:8px; z-index:2; }
.product-price-note{ font-size:16px; font-weight:700; color: var(--accent-dark); }
.stock-note{ display:inline-block; align-self:flex-start; background: var(--leaf-tint); color: var(--ink); font-size:13px; font-weight:600; padding:3px 8px; border-radius:6px; margin-bottom:10px; }
.product-brand{ font-size:14px; color: var(--ink-soft); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.5px; }
.product-name{ font-family: var(--serif); font-size:18px; font-weight:600; color: var(--head); margin-bottom:8px; flex-grow:1; line-height:1.3; }
.product-meta{ font-size:15px; color: var(--ink-soft); margin-bottom:12px; }
.product-bottom{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.product-price{ font-size:21px; font-weight:700; color: var(--ink); }
.product-price small{ display:block; font-weight:400; font-size:13px; color: var(--ink-soft); }
.add-btn{ background: var(--accent); color: var(--on-accent); min-height:48px; padding:0 18px; border-radius:12px; font-size:16px; font-weight:700; white-space:nowrap; }
.add-btn:hover{ background: var(--accent-hover); }
.add-btn.added{ background: var(--head); color:#fff; }
.empty-state{ text-align:center; padding: 60px 20px; color: var(--ink-soft); }
.mobile-filter-btn{ display:none; margin-bottom:18px; background:#fff; border:2px solid var(--accent); color: var(--accent-dark); border-radius:12px; min-height:52px; padding:0 20px; font-size:17px; font-weight:700; align-items:center; gap:8px; }
@media (max-width: 900px){
  .catalog-layout{ grid-template-columns: 1fr; }
  .filters{ display:none; position:fixed; inset:0; z-index:85; top:0; border-radius:0; overflow-y:auto; padding:24px; }
  .filters.open{ display:block; }
  .mobile-filter-btn{ display:inline-flex; }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px){
  .product-grid{ grid-template-columns: 1fr; gap:14px; }
  .product-card{ padding:16px; }
  .add-btn{ width:100%; min-height:52px; font-size:17px; }
}

/* ---------- карточка товара ---------- */
.product-detail{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; padding: 28px 0 64px; align-items:start; }
.product-gallery-main{ aspect-ratio:1/1; background:#fff; border:1px solid var(--line); border-radius: var(--radius); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-gallery-main img{ width:100%; height:100%; object-fit:contain; padding:24px; }
.product-gallery-thumbs{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.gallery-thumb{ width:68px; height:68px; border-radius:10px; border:2px solid var(--line); background:#fff; overflow:hidden; padding:4px; }
.gallery-thumb img{ width:100%; height:100%; object-fit:contain; }
.gallery-thumb.active{ border-color: var(--accent); }
.product-info h1{ font-size:30px; margin: 8px 0 16px; }
.product-detail-meta{ font-size:17px; color: var(--ink-soft); margin-bottom:18px; }
.product-detail-price{ font-size:32px; font-weight:700; margin-bottom:18px; }
.product-detail-price small{ display:block; font-weight:400; font-size:15px; color: var(--ink-soft); }
.product-info .add-btn{ min-height:56px; padding:0 28px; font-size:18px; }
.product-note{ font-size:16px; color: var(--ink-soft); margin-top:12px; }
.product-tag-inline{ display:inline-block; background: var(--leaf); color:#fff; font-size:13px; font-weight:700; padding:4px 10px; border-radius:8px; margin-bottom:10px; }
.product-description{ margin-top:30px; padding-top:26px; border-top:1px solid var(--line); font-size:18px; line-height:1.7; color: var(--ink); }
.product-description-empty{ color: var(--ink-soft); font-style:italic; }
@media (max-width: 900px){ .product-detail{ grid-template-columns:1fr; gap:24px; } }

/* ---------- подвал ---------- */
footer{ background: var(--head); color: rgba(255,255,255,0.86); padding: 56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-logo{ display:flex; align-items:center; gap:12px; font-family: var(--serif); color:#fff; font-size:22px; letter-spacing:2.5px; margin-bottom:14px; }
.footer-logo img{ width:44px; height:44px; background:#F5F6F2; border-radius:50%; padding:2px; }
.footer-about{ font-size:16px; color: rgba(255,255,255,0.8); max-width:300px; }
.footer-col h5{ color: var(--accent); font-size:15px; margin:0 0 14px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.footer-col a, .footer-col p{ display:block; color: rgba(255,255,255,0.86); text-decoration:none; font-size:16.5px; margin:0 0 10px; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }
.footer-col .footer-phone{ font-size:20px; font-weight:700; color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.18); padding-top: 22px; font-size:14.5px; color: rgba(255,255,255,0.72); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; }
.footer-bottom a{ color: rgba(255,255,255,0.72); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- всплывающее уведомление ---------- */
.float-note{
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  background: var(--head); color:#fff; padding: 14px 18px; border-radius: 12px;
  font-size: 16px; max-width: 300px; box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  opacity:0; transform: translateY(8px); transition: all .25s ease; pointer-events:none;
}
.float-note.show{ opacity:1; transform: translateY(0); pointer-events:auto; }

/* ---------- плавающие кнопки ---------- */
.contact-fab{ position: fixed; bottom: 24px; left: 24px; z-index: 60; display:flex; flex-direction:column; gap:10px; }
.contact-fab:empty{ display:none; }
.fab-btn{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:700; text-decoration:none; box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.fab-max{ background:#fff; padding:10px; }
.fab-max img{ width:100%; height:100%; object-fit:contain; }

/* ---------- корзина-заявка ---------- */
.overlay{ position:fixed; inset:0; background: rgba(30,32,35,0.45); z-index:90; opacity:0; pointer-events:none; transition: opacity .25s ease; }
.overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width: 440px; max-width:100vw;
  background: var(--bg); z-index:95; transform: translateX(100%); transition: transform .3s ease;
  display:flex; flex-direction:column; visibility:hidden;
}
.cart-drawer.open{ transform: translateX(0); visibility:visible; box-shadow: -20px 0 40px rgba(0,0,0,0.12); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding: 18px 22px; border-bottom:1px solid var(--line); background: var(--paper); }
.cart-head h3{ font-size:23px; }
.cart-items{ flex:1; overflow-y:auto; padding: 12px 22px; }
.cart-item{ display:flex; gap:12px; padding: 16px 0; border-bottom:1px solid var(--line); }
.cart-item-thumb{ display:none; }
.cart-item-info{ flex:1; }
.cart-item-name{ font-size:17px; font-weight:700; margin-bottom:4px; }
.cart-item-meta{ font-size:15px; color: var(--ink-soft); margin-bottom:10px; }
.cart-item-controls{ display:flex; align-items:center; gap:12px; font-size:18px; }
.qty-btn{ width:44px; height:44px; border:1.5px solid var(--line); background: var(--paper); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.cart-item-remove{ font-size:15px; color: var(--ink-soft); text-decoration:underline; margin-left:auto; min-height:44px; }
.cart-empty{ text-align:center; padding: 60px 20px; color: var(--ink-soft); }
.cart-foot{ padding: 16px 22px 22px; border-top:1px solid var(--line); background: var(--paper); overflow-y:auto; max-height:60vh; }
.cart-form{ display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.cart-form input, .cart-form textarea{ border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; font-size:18px; font-family:inherit; background:#fff; min-height:52px; }
.cart-form input:focus, .cart-form textarea:focus{ border-color: var(--accent); outline:none; }
.cart-form label{ font-size:16px; color: var(--ink-soft); }
.cart-form .hint{ font-size:14px; color: var(--ink-soft); }
.consent-row{ display:flex !important; align-items:flex-start; gap:10px; cursor:pointer; }
.consent-row input[type="checkbox"]{ margin-top:3px; width:22px; height:22px; min-height:0; flex-shrink:0; accent-color: var(--accent); }
.consent-row span{ font-size:14.5px; color: var(--ink-soft); line-height:1.45; }
.consent-row a{ color: var(--accent-dark); text-decoration:underline; }
.cart-submit{ background: var(--accent); color: var(--on-accent); min-height:56px; border-radius:12px; font-size:18px; font-weight:700; margin-top:6px; }
.cart-submit:hover{ background: var(--accent-hover); }
.cart-success{ text-align:center; padding: 40px 10px; }
.cart-success h4{ font-size:24px; margin-bottom:10px; }
.cart-success p{ color: var(--ink-soft); font-size:17px; }

/* ---------- окно «перезвоните мне» ---------- */
.callback-modal{
  position:fixed; top:50%; left:50%; transform:translate(-50%,-46%);
  background: var(--bg); border-radius: var(--radius); padding: 30px;
  width: 420px; max-width:92vw; z-index:96;
  opacity:0; pointer-events:none; transition: all .25s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}
.callback-modal.open{ opacity:1; pointer-events:auto; transform:translate(-50%,-50%); }
.callback-modal h3{ font-size:24px; margin-bottom:8px; padding-right:48px; }
.callback-modal > .close-btn{ position:absolute; top:14px; right:14px; }
.callback-modal p{ color: var(--ink-soft); font-size:17px; margin-bottom:16px; }

/* ---------- оплата и реквизиты ---------- */
.payment-methods-row{ width:100%; max-width:420px; height:auto; margin: 4px 0 24px; }
.requisites-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding:24px; margin: 20px 0 32px; }
.requisites-card h4{ font-size:20px; margin-bottom:14px; }
.requisites-card dl{ display:grid; grid-template-columns: 210px 1fr; gap:8px 16px; margin:0; }
.requisites-card dt{ color: var(--ink-soft); font-size:16px; }
.requisites-card dd{ margin:0; font-size:16.5px; word-break: break-word; }
@media (max-width:600px){
  .requisites-card dl{ grid-template-columns: 1fr; gap:2px 0; }
  .requisites-card dt{ margin-top:10px; }
}

/* ---------- вопросы-ответы ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{ cursor:pointer; list-style:none; position:relative; font-family:inherit; font-size:20px; font-weight:700; color: var(--head); line-height:1.35; padding:18px 52px 18px 0; min-height:56px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; position:absolute; right:4px; top:14px; width:34px; height:34px; border-radius:50%; background: var(--accent-tint); color: var(--accent-dark); font-size:26px; line-height:34px; text-align:center; }
.faq-item[open] summary::after{ content:'−'; }
.faq-a{ padding:0 0 18px; }
.faq-a p{ margin-bottom:12px; }
.faq-a ul, .faq-a ol{ margin:0 0 12px; padding-left:22px; }

/* ---------- страница сертификата: содержание ---------- */
.sfr-toc{ padding: 40px 0 8px; }
.toc-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.toc-btn{ display:flex; align-items:center; gap:14px; min-height:60px; padding:12px 18px; border:1.5px solid var(--line); border-radius: 12px; background:#fff; color: var(--ink); text-decoration:none; font-size:19px; font-weight:600; }
.toc-btn:hover, .toc-btn:focus{ border-color: var(--accent); background: var(--accent-tint); }
.toc-n{ flex:none; width:36px; height:36px; border-radius:50%; background: var(--accent-tint); color: var(--accent-dark); display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:700; }
.sfr-sec{ padding: 40px 0; border-top:1px solid var(--line); scroll-margin-top: 80px; }
.sfr-sec h2, .sfr-steps-section h2, .sfr-video-section h2{ scroll-margin-top:80px; }
.sfr-sec .article-page{ max-width: 780px; }
.sfr-sec h3{ margin-top: 28px; }
.sfr-steps-section, .sfr-video-section, .sfr-toc{ scroll-margin-top:80px; }
.to-top-wrap{ margin-top: 28px; }
.to-top{ display:inline-flex; align-items:center; min-height:48px; padding:0 18px; border:1.5px solid var(--line); border-radius:12px; color: var(--accent-dark); text-decoration:none; font-weight:700; font-size:16px; background: var(--paper); }
.to-top:hover{ border-color: var(--accent); }
.guide-btns{ display:flex; flex-direction:column; gap:12px; margin: 28px 0 36px; max-width: 820px; }
.guide-btn{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:72px; padding:18px 22px; border:1.5px solid var(--line); border-radius: var(--radius); background:#fff; color: var(--ink); text-decoration:none; }
.guide-btn:hover, .guide-btn:focus{ border-color: var(--accent); background: var(--accent-tint); }
.guide-btn b{ display:block; font-size:21px; line-height:1.3; color: var(--head); }
.guide-btn small{ display:block; margin-top:4px; font-size:17px; color: var(--ink-soft); line-height:1.4; }
.guide-btn .arr{ flex:none; font-size:30px; color: var(--accent); }
.guide-btn.primary{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.guide-btn.primary b, .guide-btn.primary small, .guide-btn.primary .arr{ color: var(--on-accent); }
.guide-btn.primary:hover{ background: var(--accent-hover); }
.step-nav{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin: 40px 0 8px; }
.step-nav a{ display:block; padding:16px 20px; border:1.5px solid var(--line); border-radius: 12px; text-decoration:none; color: var(--ink); min-height:64px; background: var(--paper); }
.step-nav a:hover{ border-color: var(--accent); background: var(--accent-tint); }
.step-nav small{ display:block; color: var(--ink-soft); font-size:15px; margin-bottom:2px; }
.step-nav b{ font-size:18px; color: var(--head); }
.step-nav .next{ text-align:right; grid-column:2; }
.step-nav .prev{ grid-column:1; }

/* ---------- нижняя панель на телефоне ---------- */
.mobile-bar{ display:none; }
@media (max-width: 700px){
  .toc-grid{ grid-template-columns:1fr; }
  .step-nav{ grid-template-columns:1fr; }
  .step-nav .next, .step-nav .prev{ grid-column:1; text-align:left; }
  .guide-btn b{ font-size:19px; }
  body{ padding-bottom: 76px; }
  .mobile-bar{ display:grid; grid-template-columns:1fr 1fr; gap:8px; position:fixed; left:0; right:0; bottom:0; z-index:70; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); box-shadow:0 -4px 16px rgba(0,0,0,.08); }
  .mobile-bar a, .mobile-bar button{ display:flex; align-items:center; justify-content:center; gap:8px; min-height:56px; border-radius:12px; font-size:18px; font-weight:700; text-decoration:none; border:0; cursor:pointer; font-family:inherit; }
  .mobile-bar .mb-call{ background: var(--head); color:#fff; }
  .mobile-bar .mb-req{ background: var(--accent); color: var(--on-accent); }
  .contact-fab{ bottom: 90px; left:auto; right:12px; }
  .fab-btn{ width:48px; height:48px; }
  .float-note{ bottom: 90px; right:12px; left:12px; max-width:none; }
}
.mobile-bar .mb-req.cart-btn{ padding:0; border-radius:12px; font-size:18px; width:100%; }
.mobile-bar .mb-req .cart-count{ margin-left:4px; }
/* внизу: Позвонить + Написать в MAX; «Заявка» — только когда в ней что-то есть */
@media (max-width: 700px){
  .mobile-bar .mb-max{ background: var(--accent); color: var(--on-accent); }
  .mobile-bar .mb-max img{ width:24px; height:24px; border-radius:6px; background:#fff; flex:none; }
  .mobile-bar .mb-req{ display:none; }
  body.cart-has .mobile-bar{ grid-template-columns:1fr 1fr 1fr; gap:6px; }
  body.cart-has .mobile-bar .mb-req{ display:flex; background:#FF7A3D; color: var(--ink); }
  body.cart-has .mobile-bar a, body.cart-has .mobile-bar button{ font-size:16px; gap:6px; }
  .mobile-bar .mb-max{ white-space:nowrap; }
  .mobile-bar .mb-s, body.cart-has .mobile-bar .mb-l{ display:none; }
  body.cart-has .mobile-bar .mb-s{ display:inline; }
  .fab-max{ display:none; }
}

@media print{
  header, footer, .topline, .mobile-bar, .contact-fab, .float-note, .toc-grid, .to-top-wrap, .btn-primary{ display:none !important; }
  .faq-item:not([open]) .faq-a{ display:block; }
}
.mobile-bar svg{ width:22px; height:22px; flex:none; }
@media (max-width: 480px){
  .m-hero-ctas a{ padding: 0 14px; font-size:17px; white-space:nowrap; }
}
.footer-pay{ margin: 0 0 24px; }
.footer-pay a{ display:inline-block; background:#fff; border-radius:10px; padding:10px 14px; }
.footer-pay img{ width:100%; max-width:380px; height:auto; }

/* ---------- логотип: МЕДИК(+)Р — «О» заменена оранжевым кругом с крестом ---------- */
.wm-o{ display:inline-block; position:relative; width:0.86em; height:0.86em; margin:0 0.04em; border-radius:50%; background: var(--accent); vertical-align:-0.06em; }
.wm-o::before, .wm-o::after{ content:''; position:absolute; left:50%; top:50%; background:#fff; border-radius:1px; transform:translate(-50%,-50%); }
.wm-o::before{ width:52%; height:17%; }
.wm-o::after{ width:17%; height:52%; }
.footer-logo{ display:block; font-weight:800; letter-spacing:0.5px; font-size:26px; line-height:1; }
/* крупный знак М+ на главной */
.m-hero-logo{ background: var(--paper); }
.m-hero-mark{ position:relative; font-family: var(--serif); font-weight:800; font-size:150px; line-height:1; color: var(--head); padding-right:0.32em; }
.m-hero-mark .wm-o{ position:absolute; right:0; top:-0.08em; width:0.34em; height:0.34em; }
.m-hero-logo .logo-word{ font-size:27px; }
@media (max-width: 900px){ .m-hero-mark{ font-size:84px; } .m-hero-logo .logo-word{ font-size:18px; } }

/* логотип из файлов дизайнера (assets/img/brand) */
.logo-img{ display:block; height:28px; width:auto; }
.logo-word small{ margin-top:7px; }
.footer-logo img{ display:block; height:30px; width:auto; margin-bottom:16px; background:none; border-radius:0; padding:0; }
.m-hero-mark-img{ width:170px; height:auto; }
.m-hero-logo-img{ width:190px; height:auto; }
@media (max-width: 900px){ .m-hero-mark-img{ width:100px; } .m-hero-logo-img{ width:130px; } }
@media (max-width: 480px){ .logo-img{ height:24px; } }

/* ================= Главная: живой первый экран ================= */
.hx{ position:relative; padding: 56px 0 64px; overflow:hidden;
  background: radial-gradient(ellipse 60% 70% at 85% 30%, var(--accent-tint) 0%, rgba(255,233,221,0) 70%), var(--bg); }
.hx::before{ content:''; position:absolute; width:520px; height:520px; border-radius:50%; left:-180px; bottom:-260px;
  background: radial-gradient(circle, rgba(43,47,51,0.12) 0%, rgba(43,47,51,0) 70%); animation: hxGlow 14s ease-in-out infinite alternate; pointer-events:none; }
.hx-grid{ display:grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items:center; position:relative; }
.hx-kicker{ display:inline-flex; align-items:center; gap:8px; background: var(--paper); border:1px solid var(--line); border-radius:999px; padding:7px 16px; font-size:15px; font-weight:700; color: var(--accent-dark); margin-bottom:20px; }
.hx-kicker::before{ content:''; width:9px; height:9px; border-radius:50%; background: var(--accent); animation: hxPulse 2.4s ease-in-out infinite; }
.hx h1{ font-size: 50px; line-height:1.08; margin-bottom: 20px; }
.hx-accent{ color: var(--accent); background: linear-gradient(90deg, var(--accent) 0%, #2B2F33 50%, var(--accent) 100%); background-size:200% 100%;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; animation: hxShine 6s linear infinite; }
.hx-sub{ font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }
.hx-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.hx-note{ font-size:16px; color: var(--ink-soft); }
.hx-note .callback-btn{ font-size:inherit; padding:0; }

.hx-visual{ position:relative; }
.hx-photo{ border-radius: 28px; overflow:hidden; aspect-ratio: 4/3.2; box-shadow: 0 30px 60px rgba(43,47,51,0.16); transform: translateY(var(--py, 0px)); will-change: transform; }
.hx-photo img{ width:100%; height:100%; object-fit:cover; object-position: 22% 50%; animation: hxKen 22s ease-in-out infinite alternate; transform-origin: 25% 60%; }
.hx-badge{ position:absolute; display:flex; align-items:center; gap:10px; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-radius:16px; padding:12px 16px; box-shadow: 0 14px 30px rgba(43,47,51,0.14); font-size:16px; font-weight:700; color: var(--ink); white-space:nowrap; }
.hx-badge svg{ width:26px; height:26px; flex:none; padding:5px; border-radius:50%; background: var(--accent); color: var(--on-accent); }
.hx-b1{ left:-28px; top:12%; animation: hxFloat 6s ease-in-out infinite; }
.hx-b2{ right:-18px; top:46%; animation: hxFloat 7s ease-in-out -2s infinite; }
.hx-b3{ left:8%; bottom:-22px; flex-direction:column; align-items:flex-start; gap:0; animation: hxFloat 8s ease-in-out -4s infinite; }
.hx-b3 b{ font-size:14px; color: var(--accent-dark); text-transform:uppercase; letter-spacing:0.5px; }
.hx-b3 span{ font-size:17px; }

/* появление при загрузке: по очереди снизу вверх */
.hx-in{ opacity:0; transform: translateY(24px); animation: hxIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * 0.12s + 0.1s); }

/* бегущая строка */
.hx-marquee{ background: var(--head); color:#fff; overflow:hidden; padding: 16px 0; }
.hx-track{ display:flex; width:max-content; animation: hxMarquee 38s linear infinite; }
.hx-marquee:hover .hx-track{ animation-play-state: paused; }
.hx-track ul{ display:flex; list-style:none; margin:0; padding:0; }
.hx-track li{ display:flex; align-items:center; font-size:18px; font-weight:600; white-space:nowrap; padding: 0 28px; }
.hx-track li::after{ content:''; width:10px; height:10px; border-radius:50%; background: var(--accent); margin-left:56px; }

@keyframes hxIn{ to{ opacity:1; transform:none; } }
@keyframes hxKen{ from{ transform: scale(1.02); } to{ transform: scale(1.14) translate(1.5%, -1%); } }
@keyframes hxFloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes hxPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(43,47,51,0.5); } 50%{ box-shadow: 0 0 0 7px rgba(43,47,51,0); } }
@keyframes hxShine{ to{ background-position: -200% 0; } }
@keyframes hxGlow{ to{ transform: translate(120px, -60px) scale(1.15); } }
@keyframes hxMarquee{ to{ transform: translateX(-50%); } }

@media (max-width: 960px){
  .hx{ padding: 28px 0 48px; }
  .hx-grid{ grid-template-columns:1fr; gap: 36px; }
  .hx-visual{ order:-1; margin: 0 8px; }
  .hx h1{ font-size: 34px; }
  .hx-sub{ font-size:18px; }
  .hx-ctas{ flex-direction:column; }
  .hx-ctas a{ width:100%; }
  .hx-b1{ left:-8px; top:8%; } .hx-b2{ right:-8px; top:auto; bottom:22%; } .hx-b3{ display:none; }
  .hx-badge{ font-size:14px; padding:9px 12px; }
  .hx-badge svg{ width:22px; height:22px; }
  .hx-track li{ font-size:16px; padding: 0 20px; }
  .hx-track li::after{ margin-left:40px; }
}

/* ================= Главная: шаги покупки по сертификату ================= */
.cx{ background: var(--paper); border-bottom:1px solid var(--line); }
.cx-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items:start; }
.cx-sticky{ position:sticky; top:110px; }
.cx-sticky h2{ font-size:38px; margin-bottom:16px; }
.cx-sticky .lead{ font-size:18px; color: var(--ink-soft); margin-bottom:26px; }
.cx-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.cx-step{ display:grid; grid-template-columns: 64px 1fr; gap:20px; align-items:start; padding: 26px; border-radius: 20px; background: var(--bg); border:1.5px solid var(--line);
  opacity:.45; transform: translateX(24px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease; }
.cx-step.on{ opacity:1; transform:none; border-color: var(--accent); box-shadow: 0 18px 40px rgba(43,47,51,0.14); }
.cx-num{ width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-weight:800; font-size:28px; }
.cx-step b{ display:block; font-family: var(--serif); font-size:22px; font-weight:800; color: var(--head); margin-bottom:6px; line-height:1.25; }
.cx-step span{ font-size:17px; color: var(--ink-soft); }
.cx-tip{ background: var(--accent-tint); }
.cx-tip .cx-num{ background: var(--head); color:#fff; }
@media (max-width: 900px){
  .cx-grid{ grid-template-columns:1fr; gap:28px; }
  .cx-sticky{ position:static; }
  .cx-sticky h2{ font-size:28px; }
  .cx-step{ grid-template-columns: 48px 1fr; gap:14px; padding:20px; transform: translateY(16px); }
  .cx-num{ width:48px; height:48px; font-size:22px; }
  .cx-step b{ font-size:19px; }
}

/* кому мешает движение — всё статично */
@media (prefers-reduced-motion: reduce){
  .hx-in, .hx-photo img, .hx-badge, .hx-kicker::before, .hx-accent, .hx::before, .hx-track{ animation:none !important; opacity:1; transform:none; }
  .hx-accent{ -webkit-text-fill-color: var(--accent); }
  .hx-track{ flex-wrap:wrap; width:auto; } .hx-track ul[aria-hidden]{ display:none; }
  .cx-step{ opacity:1; transform:none; transition:none; }
}


/* ================= Строгий режим: без лишних цветов и украшений ================= */
h1,h2,h3,h4{ font-weight:700; letter-spacing:-0.015em; }
.hx, .m-hero, .sfr-hero{ background: var(--bg) !important; }
.hx::before{ display:none; }
.hx-kicker{ background:none; border:none; padding:0; font-size:15px; font-weight:600; color: var(--ink-soft); text-transform:uppercase; letter-spacing:1px; }
.hx-kicker::before{ display:none; }
.hx h1{ font-size:52px; letter-spacing:-0.02em; }
.hx-photo{ border-radius: 20px; box-shadow:none; }
.section-kicker, .eyebrow-line{ color: var(--ink-soft); font-weight:600; }
.section-kicker::before{ background: var(--ink-soft); width:20px; height:1px; }
.badge, .loc-tag, .sfr-hero-badge, .medisync-badge{ background: transparent; border:1px solid var(--sand); color: var(--ink); }
.badge.leaf{ background: transparent; color: var(--ink); }
.footer-col h5{ color: rgba(255,255,255,0.6); }
.topline{ background: var(--sand-tint); }
.topline a{ color: var(--ink); }
.sit-card.main{ background: var(--head); border-color: var(--head); }
.sit-card.main b, .sit-card.main span{ color:#fff; }
.sit-card.main .sit-ico{ background: rgba(255,255,255,0.12); }
.sit-card.main .sit-ico svg{ stroke:#fff; }
.sit-card.main:hover{ background:#1C1F22; }
.sit-card:hover, .sit-card:focus{ box-shadow:none; border-color: var(--ink); }
.sit-ico, .why-item .dot{ background: var(--sand-tint); }
.sit-ico svg{ stroke: var(--ink); }
.guide-btn.primary{ background: var(--head); border-color: var(--head); }
.guide-btn.primary b, .guide-btn.primary small, .guide-btn.primary .arr{ color:#fff; }
.guide-btn .arr{ color: var(--ink); }
.callout{ border-left-color: var(--ink); }
.cert-warn{ border-left-color: var(--ink); }
.faq-item summary::after{ background: var(--sand-tint); color: var(--ink); }
.toc-n{ background: var(--sand-tint); color: var(--ink); }
.btn-secondary{ color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-secondary:hover{ background: var(--sand-tint); }
.mobile-filter-btn, .callback-btn-mobile{ color: var(--ink); border-color: var(--ink); }
.link-more{ color: var(--ink); border-bottom-color: var(--ink); }
.product-tag, .product-tag-inline{ background: var(--head); }
.sfr-step-card{ border-top: 1px solid var(--line); }
.sfr-step-num{ color: var(--ink); }

/* бегущая строка — спокойная, светлая */
.hx-marquee{ background: var(--sand-tint); color: var(--ink); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hx-track li{ font-weight:500; }
.hx-track li::after{ width:5px; height:5px; background: var(--ink-soft); }

/* шаги сертификата — нейтрально, без оранжевых рамок */
.cx{ background: var(--sand-tint); border-bottom:none; }
.cx-step{ background: var(--paper); border:1px solid var(--line); }
.cx-step.on{ border-color: var(--line); box-shadow:none; }
.cx-num{ background: var(--head); color:#fff; font-weight:700; }
.cx-tip{ background: var(--paper); border-style: dashed; border-color: var(--sand); }
.cx-tip .cx-num{ background: var(--accent); color: var(--on-accent); }
.cx-step b{ font-weight:700; }

/* ================= Первый экран с видео на фоне ================= */
.hx-video{ position:relative; padding:0; min-height: 640px; display:flex; align-items:center; overflow:hidden; background: var(--sand-tint) !important; }
.hx-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: 60% 50%; z-index:0; background: var(--sand-tint); }
.hx-scrim{ position:absolute; inset:0; z-index:1;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 40%, rgba(255,255,255,0.45) 52%, rgba(255,255,255,0) 64%); }
.hx-content{ position:relative; z-index:2; width:100%; padding-top:64px; padding-bottom:64px; }
.hx-video .hx-text{ max-width: 520px; }
@media (max-width: 900px){
  .hx-video{ display:block; min-height:0; background: var(--bg) !important; }
  .hx-bg{ position:relative; inset:auto; display:block; height:auto; aspect-ratio: 16/9; }
  .hx-scrim{ display:none; }
  .hx-content{ padding-top:28px; padding-bottom:44px; }
}
@media (min-width: 901px){ .hx-bg{ transform: scaleX(-1); } }
@media (max-width: 900px){ .hx h1{ font-size:34px; } }
@media (max-width: 380px){ .hx h1{ font-size:30px; } }

/* ================= Чёрно-белый вариант ================= */
/* вторая кнопка рядом с главной — контурная, чтобы не было двух одинаковых чёрных */
.hx-ctas .btn-call{ background: transparent; color: var(--ink); border-color: var(--ink); }
.hx-ctas .btn-call:hover{ background: var(--sand-tint); }
.mobile-bar .mb-call{ background:#fff; color: var(--ink); border:2px solid var(--ink); }
.cart-count{ color: var(--ink); }
.cx-tip .cx-num{ background: var(--paper); color: var(--ink); border:2px solid var(--ink); }
.sit-card.main{ background: var(--head); }
.fab-ozon{ background:#005BFF; font-size:13px; letter-spacing:0.2px; text-transform:none; }

/* ================= Страница сертификата: первый экран с фото ================= */
.sfr-hero{ text-align:left; padding: 48px 0 56px; }
.sfr-hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items:center; }
.sfr-hero h1{ margin: 0 0 18px; max-width:none; font-size:42px; }
.sfr-hero-sub{ margin: 0 0 28px; max-width:none; }
.sfr-hero .hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-start; }
.sfr-hero-photo{ border-radius: 20px; overflow:hidden; aspect-ratio: 627/489; background: var(--sand-tint); }
.sfr-hero-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 900px){
  .sfr-hero{ padding: 0 0 40px; }
  .sfr-hero-grid{ grid-template-columns:1fr; gap:24px; }
  .sfr-hero-photo{ order:-1; border-radius:0; margin: 0 -16px; aspect-ratio: 16/11; }
  .sfr-hero h1{ font-size:29px; }
  .sfr-hero .hero-ctas a, .sfr-hero .hero-ctas button{ width:100%; }
}

/* формы «Перезвоните мне» и «Заявка»: подпись над полем, поля во всю ширину */
.cart-form > div{ display:flex; flex-direction:column; gap:6px; }
.cart-form label{ font-size:16px; font-weight:600; color: var(--ink); }
.cart-form input:not([type="checkbox"]), .cart-form textarea{ width:100%; }
.cart-form .consent-row{ font-weight:400; }
.cart-form .consent-row span{ font-weight:400; }

/* блок «Не знаете, что нужно?» */
.help-box{ display:grid; grid-template-columns: 1fr auto; gap: 24px; align-items:center; margin-top: 28px; padding: 26px 28px; border:1px solid var(--line); border-radius: var(--radius); background: var(--sand-tint); }
.help-text b{ display:block; font-size:22px; color: var(--head); margin-bottom:6px; }
.help-text p{ font-size:17px; color: var(--ink-soft); margin:0; }
.help-actions{ display:flex; flex-direction:column; gap:10px; }
.link-btn{ font:inherit; color: var(--ink); text-decoration:underline; padding:0; font-weight:600; }
@media (max-width: 760px){ .help-box{ grid-template-columns:1fr; padding:22px 18px; } .help-actions a, .help-actions button{ width:100%; } }
.cx-help{ background: var(--paper); }
.cx-help .help-text b{ font-size:20px; }
.feature-photo.feature-photo-split{ grid-template-columns:1fr; grid-template-rows:1fr 1fr; background:#fff; }
.feature-photo.feature-photo-split img{ object-fit:contain; min-height:0; }

/* разделы продукции на главной — с фото */
.cat-card{ padding: 14px 14px 20px; gap:8px; }
.cat-img{ display:block; width:100%; aspect-ratio: 1/1; border-radius: 10px; overflow:hidden; background:#fff; margin-bottom:6px; }
.cat-img img{ width:100%; height:100%; object-fit:contain; transition: transform .4s ease; }
.cat-card:hover .cat-img img{ transform: scale(1.04); }
.cat-card b, .cat-card span{ padding: 0 4px; }
@media (max-width: 420px){
  .cat-grid{ grid-template-columns: 1fr 1fr; }
  .cat-card{ flex-direction:column; align-items:flex-start; }
  .cat-card span{ display:none; }
  .cat-card b{ font-size:17px; }
}
.cat-grid{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
.cat-grid{ grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1020px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
.cat-img-ico{ display:flex; align-items:center; justify-content:center; background: var(--sand-tint); }
.cat-img-ico svg{ width:38%; height:38%; stroke: var(--ink-soft); }

/* широкое фото в блоке «С чего начать» */
.sit-banner{ border-radius: var(--radius); overflow:hidden; aspect-ratio: 21/8; margin: -8px 0 24px; background: var(--sand-tint); }
.sit-banner img{ width:100%; height:100%; object-fit:cover; object-position: 50% 62%; }
@media (max-width: 760px){ .sit-banner{ aspect-ratio: 4/3; margin-top:0; } }

/* Баннер вверху посадочных страниц (он же картинка для поиска) */
.lp-banner{display:block;width:100%;height:auto;margin:8px 0 28px;border:1px solid var(--line);border-radius:16px;background:#fff}
/* на телефоне баннер повторяет заголовок и отодвигает товары — прячем */
@media (max-width: 700px){ .lp-banner{display:none} }

/* Блок «позвоните / напишите» вверху посадочных */
.article-page .lp-trust{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:-4px 0 18px;padding:0}
.article-page .lp-trust li{margin:0;padding:7px 12px 7px 30px;position:relative;border-radius:999px;background:var(--sand-tint);color:var(--head);font-size:15px;font-weight:600;line-height:1.2}
.article-page .lp-trust li::before{content:'';position:absolute;left:12px;top:50%;width:10px;height:6px;margin-top:-5px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
.lp-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin:4px 0 24px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:var(--sand-tint)}
.lp-cta-text{flex:1 1 320px;display:flex;flex-direction:column;gap:6px}
.lp-cta-text b{font-size:19px;line-height:1.3;color:var(--head)}
.lp-cta-text span{font-size:15px;color:var(--ink-soft)}
.lp-cta-btns{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:640px){.lp-cta-btns{width:100%}.lp-cta-btns a{flex:1 1 100%;text-align:center}}
.article-page .lp-cta a.btn-primary{color:var(--on-accent);text-decoration:none}
.article-page .lp-cta a.btn-secondary{text-decoration:none}

/* подсказка «Не нашли, что искали?» */
.help-pop{ position:fixed; right:24px; bottom:24px; z-index:90; width:340px; max-width:calc(100% - 32px); background: var(--paper); color: var(--ink); border:1px solid var(--line); border-radius: var(--radius); box-shadow:0 12px 40px rgba(0,0,0,.18); padding:20px 20px 18px; opacity:0; transform:translateY(16px); pointer-events:none; transition:opacity .25s ease, transform .25s ease; }
.help-pop.show{ opacity:1; transform:none; pointer-events:auto; }
.help-pop b{ display:block; font-family: var(--serif); font-size:21px; line-height:1.25; margin:0 28px 8px 0; }
.help-pop p{ margin:0 0 14px; font-size:16px; line-height:1.45; }
.help-x{ position:absolute; top:8px; right:10px; width:36px; height:36px; font-size:26px; line-height:1; color: var(--ink-soft); }
.help-btns{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.help-btns a{ display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:12px; font-weight:600; font-size:16px; text-decoration:none; text-align:center; padding:0 8px; }
.help-call{ background: var(--accent); color: var(--on-accent); }
.help-max{ background:#FF7A3D; color: var(--ink); }
@media (max-width: 700px){
  .help-pop{ left:16px; right:16px; width:auto; max-width:none; bottom:88px; }
}

/* страницы результата оплаты (PayKeeper возвращает сюда) */
.pay-result{ text-align:center; padding:28px 20px 24px; border-radius: var(--radius); margin:8px 0 28px; }
.pay-result h1{ margin:12px 0 8px; }
.pay-result .lead{ margin:0 auto; max-width:560px; }
.pay-ok{ background:#EAF6EC; }
.pay-fail{ background:#FDF0E6; }
.pay-ico{ width:72px; height:72px; margin:0 auto; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:40px; font-weight:700; color:#fff; }
.pay-ok .pay-ico{ background:#2E8B3E; }
.pay-fail .pay-ico{ background:#D9632B; }
.pay-btns{ display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.pay-btns .btn{ flex:1 1 260px; justify-content:center; min-height:56px; }
.btn-max{ background:#FF7A3D; color: var(--ink); border:2px solid #FF7A3D; }

/* ===== Каталог на телефоне: кнопки разделов + компактный список (v60) ===== */
.cat-chips{ display:none; flex-wrap:wrap; gap:6px; margin:14px 0 12px; }
.cat-chip{ background:#fff; border:2px solid var(--line); color: var(--head); border-radius:999px; min-height:42px; padding:0 14px; font-size:15px; font-weight:700; font-family:inherit; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.cat-chip small{ font-weight:400; font-size:14px; color: var(--ink-soft); }
.cat-chip.active{ background: var(--head); border-color: var(--head); color:#fff; }
.cat-chip.active small{ color:rgba(255,255,255,.75); }
@media (max-width: 900px){
  .cat-chips{ display:flex; }
  .mobile-filter-btn{ min-height:44px; font-size:16px; border-width:1.5px; margin-bottom:12px; }
}
@media (max-width: 560px){
  .product-grid{ gap:10px; }
  .product-card{ display:grid; grid-template-columns:92px minmax(0,1fr); column-gap:14px; align-items:start; padding:12px; }
  .product-card > a{ display:contents; }
  .product-card .product-thumb{ grid-column:1; grid-row:1 / span 3; width:92px; height:92px; margin:0; border-radius:8px; }
  .product-card .product-thumb-photo img{ padding:4px; }
  .product-card .product-brand{ grid-column:2; font-size:12px; margin-bottom:2px; }
  .product-card .product-name{ grid-column:2; font-size:17px; margin-bottom:4px; }
  .product-card .product-meta{ grid-column:2; font-size:14px; margin-bottom:0; line-height:1.35; }
  .product-card .stock-note{ display:none; }
  .product-card .product-tag{ top:8px; left:8px; font-size:11px; padding:2px 6px; }
  .product-card .product-bottom{ grid-column:1 / -1; flex-wrap:nowrap; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
  .product-card .product-price{ font-size:20px; white-space:nowrap; }
  .product-card .product-price small{ display:inline; margin-left:6px; }
  .product-card .add-btn{ width:auto; min-height:48px; padding:0 22px; font-size:16px; }
  .results-bar{ margin-bottom:12px; flex-wrap:nowrap; }
  .results-count{ font-size:15px; }
  .sort-select{ font-size:15px; padding:8px 10px; min-height:44px; }
  .catalog-head{ padding-top:16px; }
  .catalog-head h1{ font-size:30px; margin-bottom:4px; }
  .catalog-head p{ font-size:16px; line-height:1.4; }
  .catalog-layout{ padding-top:12px; }
}

/* ===== Посадочные страницы: переходы к товарам, короче на телефоне (v60) ===== */
.lp-group-h{ font-size:26px; margin:40px 0 20px; scroll-margin-top:90px; }
.lp-jump{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 20px; }
.lp-jump b{ width:100%; font-size:16px; color: var(--head); }
.lp-jump a{ display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 16px; border-radius:999px; background: var(--head); color:#fff; font-size:15px; font-weight:700; text-decoration:none; }
.lp-jump a small{ font-weight:400; color:rgba(255,255,255,.75); font-size:14px; }
.lp-jump a::after{ content:'↓'; margin-left:2px; }
@media (max-width: 700px){
  .lp-group-h{ font-size:22px; margin:28px 0 14px; }
  .article-page .lp-trust{ gap:6px; margin-bottom:14px; }
  .article-page .lp-trust li{ font-size:13px; padding:5px 10px 5px 26px; }
  .article-page .lp-trust li::before{ left:10px; }
  .article-page p.lead{ font-size:16px; line-height:1.5; }
  .article-page .lp-cta{ display:none; }
}
