/* Biotyper — основные стили. Цвета и шрифты как на new.biotyper.ru */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url(../fonts/literata-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url(../fonts/literata-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(../fonts/literata-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(../fonts/literata-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Literata"; font-weight: 700; font-display: swap; src: url(../fonts/literata-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-weight: 700; font-display: swap; src: url(../fonts/literata-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }

:root {
  --accent: #00aea0;
  --accent-hover: #009488;
  --accent-soft: #00aea01a;
  --more: #f68e54;
  --more-strong: #fd9c12;
  --text: #333;
  --muted: #666;
  --faint: #999;
  --line: #ececec;
  --bg: #f8f8f8;
  --surface: #fff;
  --ok: #38b249;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .06);
  --font: "Montserrat", Arial, sans-serif;
  --font-head: "Literata", Georgia, serif;
  --container: 1920px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 3.4vw, 44px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: 18px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { padding-bottom: 72px; }
.i { flex: none; }
.only-mobile { display: none !important; }

/* ---------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius); font: 700 13px/1 var(--font); letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; border-color: #a9e2dd; color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-outline-more { background: rgba(255,255,255,.7); border-color: var(--more); color: var(--more); }
.btn-outline-more:hover { background: var(--more); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0;
  background: none; color: inherit; border-radius: var(--radius); }
.icon-btn:hover { color: var(--accent); }
.more-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); font-size: 14px; }
.more-link:hover { color: var(--accent); }

/* ---------- верхняя строка */
.topbar { display: flex; align-items: center; gap: 24px; height: 40px; font-size: 12px; color: var(--muted); }
.topbar-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex: 1; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: var(--accent); }
.topbar-phone { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.topbar-phone a { color: var(--text); font-weight: 600; font-size: 13px; }
.topbar-phone { position: relative; }
.topbar-hours { color: var(--faint); }
.topbar-more { display: inline-flex; align-items: center; padding: 4px; border: 0; background: none; color: var(--text); }
.topbar-more:hover, .topbar-more[aria-expanded=true] { color: var(--accent); }
.topbar-drop { position: absolute; top: calc(100% - 4px); left: 50%; z-index: 70; width: 280px; margin-left: -140px;
  padding: 22px 26px 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.12);
  font-size: 14px; color: var(--text); }
.topbar-drop[hidden] { display: none; }
.topbar-drop .topbar-drop-phone { display: block; color: var(--accent); font-weight: 600; font-size: 15px; }
.topbar-drop-note { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.topbar-drop dl { margin: 18px 0 16px; display: grid; gap: 4px; }
.topbar-drop dt { color: var(--faint); font-size: 12px; margin-top: 10px; }
.topbar-drop dt:first-child { margin-top: 0; }
.topbar-drop dd { margin: 0; line-height: 1.45; }
.topbar-drop dd a { color: var(--accent); }
.topbar-lang { flex: 1; text-align: right; font-weight: 600; color: var(--muted); }

/* ---------- шапка */
.site-header { position: sticky; top: 0; z-index: 40; padding-bottom: 24px; pointer-events: none; }
.site-header > .container { pointer-events: auto; }
.header-box { display: flex; align-items: center; gap: 24px; min-height: 78px; padding: 0 24px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); }
.header-box, .nav > li > a, .logo img { transition: min-height .2s, padding .2s, width .2s; }
body.is-scrolled .header-box { min-height: 60px; }
body.is-scrolled .nav > li > a { padding-top: 22px; padding-bottom: 22px; }
body.is-scrolled .logo img { width: 46px; }
.site-main :target, .page-head, #description, #docs { scroll-margin-top: 110px; }
.logo { display: block; flex: none; }
.logo img { width: 56px; height: auto; }
.logo-white { display: none; }
.burger { display: none; }
.main-nav { flex: 1; }
.nav { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 28px 18px; color: var(--text); font: 700 12px/1 var(--font); letter-spacing: .06em;
  text-transform: uppercase; }
.nav > li > a:hover, .nav > li.current-menu-item > a, .nav > li.current-menu-ancestor > a,
.nav > li.current-menu-parent > a, .nav > li.current_page_ancestor > a { color: var(--accent); }
.nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0; padding: 10px 0; list-style: none;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .15s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 9px 20px; color: var(--text); font-size: 14px; }
.nav .sub-menu a:hover { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-panel { display: flex; gap: 10px; margin-top: 10px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.search-panel[hidden] { display: none; }
.search-panel input, .search-inline input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; }

/* ---------- мобильное меню */
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(360px, 88vw); padding: 20px; background: #fff;
  overflow-y: auto; box-shadow: 0 0 60px rgba(0,0,0,.2); }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-nav, .drawer-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a { display: block; padding: 12px 0; color: var(--text); font-weight: 600; }
.drawer-nav .sub-menu { padding: 0 0 10px 12px; }
.drawer-nav .sub-menu a { padding: 6px 0; font-weight: 400; font-size: 14px; }
.drawer-contacts { display: grid; gap: 10px; margin: 20px 0; font-size: 14px; }
.drawer-contacts a, .drawer-contacts span { display: flex; align-items: center; gap: 8px; color: var(--text); }
body.drawer-on::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); }

/* ---------- главная: слайдер */
.hero { position: relative; min-height: clamp(470px, 37.5vw, 720px); border-radius: var(--radius); overflow: hidden; background: #eef6f6; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 48px clamp(32px, 8vw, 170px);
  background: #eef6f6 center right / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-text { max-width: min(820px, 55%); }
.hero-title { margin: 0 0 12px; font: 700 clamp(34px, 4.4vw, 84px)/1.05 var(--font-head); color: var(--text); }
.hero-sub { margin: 0 0 32px; font: 600 clamp(16px, 1.7vw, 22px)/1.35 var(--font); color: var(--more); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctrl { position: absolute; right: 26px; bottom: 26px; display: flex; align-items: center; gap: 10px; }
.hero-dots { display: flex; gap: 6px; margin-right: 14px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #93a8aa; border-radius: 50%; background: none; }
.hero-dots button.is-active { background: var(--accent); border-color: var(--accent); }
.hero-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0;
  border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hero-arrow:hover { color: var(--accent); }

/* плитки разделов */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.tile { position: relative; display: block; height: clamp(218px, 15vw, 300px); border-radius: var(--radius); overflow: hidden; background: #dfe7e7; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.tile:hover img { transform: scale(1.04); }
.tile-title { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 1; color: #fff; text-align: center;
  font: 700 17px/1.3 var(--font-head); text-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* блоки главной */
.block { margin-top: 72px; }
.block-sm { margin-top: 48px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.block-head h2 { margin: 0; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--faint); font-size: 12px; }
.news-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); }
.news-strip-item { display: flex; flex-direction: column; gap: 22px; min-height: 290px; padding: 36px 36px 40px;
  border-right: 1px solid var(--line); color: var(--text); }
.news-strip-item:last-child { border-right: 0; }
.news-strip-date { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.news-strip-title { margin-top: auto; font: 700 17px/1.35 var(--font-head); }
.news-strip-item:hover .news-strip-title, .news-strip-item:hover .i { color: var(--accent); }
.about-strip { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.about-lead { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 70ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0 0 32px; padding: 0; }
.facts li { padding-top: 16px; border-top: 2px solid var(--accent); }
.facts strong { display: block; margin-bottom: 6px; font: 700 34px/1 var(--font-head); color: var(--text); }
.facts span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.about-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--line); margin-top: 26px; }
.about-cta-title { margin: 0 0 6px; font: 700 20px/1.3 var(--font-head); }
.about-cta-phone { font: 700 24px/1 var(--font); color: var(--text); }
.about-cta-note { margin: 0 0 10px; color: var(--faint); font-size: 13px; }

/* ---------- внутренние страницы */
.page-head { padding-top: 16px; padding-bottom: 24px; }
.page-head h1 { margin-bottom: 14px; }
.page-sub { color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--faint); }
.crumbs li + li::before { content: ""; display: inline-block; width: 16px; height: 1px; margin: 0 10px; vertical-align: middle; background: #ccc; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--accent); }
.lead, .lead-text { color: var(--muted); max-width: 110ch; margin: 0 0 32px; }
.content-wrap { max-width: 920px; }
.section-title { margin-top: 40px; font-size: 24px; }
.back { margin-top: 40px; }
.back a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }

/* текст из редактора и старого сайта */
.prose { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 24px; }
.prose h3, .prose h4 { margin: 1.4em 0 .5em; font-family: var(--font); font-weight: 700; font-size: 17px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose ul li::marker { color: var(--accent); }
.prose img { height: auto; margin: 8px 0; border-radius: var(--radius); }
/* белый фон картинок сливается с серым фоном страницы (белый × серый = серый, остальное почти не меняется) */
.prose img, .news-card img, .card-img img { mix-blend-mode: multiply; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; background: #fff; }
.prose table td:has(img) { background: none; border: 0; }
.prose iframe { width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a9e2dd; }

/* ---------- прибор / товар */
.product-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 300px; gap: 36px; align-items: start;
  margin-bottom: 40px; }
.product-top.no-img { grid-template-columns: minmax(0, 1fr) 300px; }
.product-img { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 20px; background: #fff;
  border-radius: var(--radius); }
.product-img img { max-height: 380px; width: auto; object-fit: contain; }
.product-intro { font-size: 14px; color: var(--muted); }
.product-excerpt { margin-bottom: 16px; color: var(--muted); }
.product-excerpt ul { padding-left: 1.2em; margin: 6px 0; }
.product-excerpt b, .product-excerpt strong { color: var(--text); }
.spec { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--text); font-weight: 500; }
.prose table thead th { background: var(--bg-soft, #f3f6f6); text-align: left; font-weight: 600; }
.prose td:first-child, .prose th:first-child { white-space: nowrap; }
.prose table.catalog { display: table; }
.prose table.catalog td:last-child { white-space: nowrap; }
@media (max-width: 700px) {
  .prose table.catalog, .prose table.catalog tbody { display: block; }
  .prose table.catalog thead { display: none; }
  .prose table.catalog tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
  .prose table.catalog td { padding: 0; border: 0; background: none; }
  .prose table.catalog td:first-child { grid-row: span 2; color: var(--accent); font-weight: 600; }
  .prose table.catalog td:last-child { color: var(--muted); white-space: normal; }
}
.product-full { margin: 0 0 18px; color: var(--text); font-weight: 600; font-size: 15px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.subnav a { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text);
  font-size: 13px; font-weight: 600; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }
.subnav a.is-active { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--more); color: var(--accent); }
.buy-box { position: sticky; top: 130px; display: grid; gap: 12px; padding: 24px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); }
.buy-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.buy-note a { color: var(--text); font-weight: 600; }
.stock { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: 12px; font-weight: 500; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* документы */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.docs a { display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; align-items: start; height: 100%; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.docs a:hover { border-color: var(--accent); }
.docs .i { grid-row: span 2; color: var(--accent); }
.docs-t { font-weight: 600; font-size: 14px; line-height: 1.4; }
.docs-m { color: var(--faint); font-size: 12px; }

/* карточки разделов */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); color: var(--text); }
.card-img { display: flex; align-items: center; justify-content: center; height: 240px; padding: 16px; background: #fff; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.card-title { font: 700 19px/1.3 var(--font-head); }
.card-text { color: var(--muted); font-size: 14px; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.ph-logo { width: 90px !important; opacity: .35; }

/* каталог «Резистом» */
.rz-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-bottom: 32px; }
.rz-intro .lead-text { margin-top: 0; }
.rz-genes-title { margin: 18px 0 10px; font: 700 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rz-genes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rz-genes li { padding: 5px 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-style: italic; }
.rz-cta { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.rz-cta p { margin: 0 0 16px; line-height: 1.55; }
.rz-cta b { color: var(--text); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.prod-card:hover { box-shadow: var(--shadow); }
.prod-card-img { display: flex; align-items: center; justify-content: center; height: 210px; padding: 18px; }
.prod-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.prod-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 0 20px 22px; }
.prod-card-cat { color: var(--faint); font-size: 11px; }
.prod-card h3 { margin: 0; font-size: 16px; }
.prod-card h3 a { color: var(--text); }
.prod-card h3 a:hover { color: var(--accent); }
.prod-card .btn { margin-top: auto; }

/* новости */
.year-filter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 32px; padding: 10px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); }
.year-filter a { padding: 8px 14px; color: var(--text); font-weight: 600; font-size: 13px; border-radius: var(--radius); }
.year-filter a:hover { color: var(--accent); }
.year-filter a.is-active { color: var(--accent); background: var(--accent-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }
.news-card-img { display: block; aspect-ratio: 3 / 2; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.03); }
.news-card-img .ph { display: flex; height: 100%; align-items: center; justify-content: center; color: #cfe9e6; }
.news-card time { color: var(--faint); font-size: 12px; }
.news-card h3 { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--accent); }
.news-date { color: var(--faint); font-size: 13px; }
.news-cover img { border-radius: var(--radius); }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 8px; border-radius: var(--radius); color: var(--text); font-weight: 600; background: #fff; border: 1px solid var(--line); }
.nav-links .page-numbers.current { border-color: var(--accent); color: var(--accent); }

/* контакты */
.contacts-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contacts-media.no-photo { grid-template-columns: 1fr; }
.contacts-photo img, .contacts-map { width: 100%; height: clamp(300px, 28vw, 480px); border-radius: var(--radius); }
.contacts-photo img { object-fit: cover; display: block; }
.contacts-map { overflow: hidden; background: #eef1f1; }
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacts-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px;
  margin-top: 24px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contacts-dl { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 48px; margin: 0; }
.contacts-dl dt { color: var(--faint); font-size: 12px; }
.contacts-dl dd { margin: 4px 0 0; font-size: 15px; }
.contacts-dl dd a { color: var(--text); }
.contacts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contacts-actions .btn .i { color: var(--more); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.staff-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.order-term { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order-term .svc-card-icon { margin: 0; flex: none; }
.order-term h3 { margin: 0 0 6px; font-size: 17px; }
.order-term p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 700px) { .order-terms { grid-template-columns: 1fr; } }
.staff-card h3 { margin: 0 0 2px; font-size: 17px; }
.staff-pos { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.staff-office { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--more); font-size: 13px; }
.staff-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.staff-card a:hover { color: var(--accent); }
.staff-card .staff-btn { align-self: flex-start; margin-top: auto; }
.staff-card .staff-btn:first-of-type { margin-top: auto; }
.staff-card a + .staff-btn, .staff-card p + .staff-btn { margin-top: auto; }
.staff-card:has(.staff-btn) { padding-bottom: 22px; }
.staff-card:has(.staff-btn) > a:last-of-type { margin-bottom: 14px; }
.contact-form-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 36px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form-block p { color: var(--muted); }

/* документы: сетка сканов */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); }
.doc-card:hover { border-color: var(--accent); color: var(--text); }
.doc-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; overflow: hidden; background: #fafafa; }
.doc-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.doc-card-title { font-weight: 600; font-size: 14px; line-height: 1.4; }

/* ---------- сервис */
.svc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.svc-hero.no-img { grid-template-columns: 1fr; }
.svc-lead { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 60ch; }
.svc-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.svc-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 18px; }
.svc-hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.svc-card:hover { border-color: #a9e2dd; box-shadow: var(--shadow); }
.svc-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.svc-card h3 { margin: 0 0 8px; font-size: 18px; }
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.svc-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-list { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.svc-list h2 { font-size: 22px; margin-bottom: 18px; }
.svc-list ul, .svc-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-list li, .svc-why-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.svc-list .i, .svc-why-list .i { flex: none; margin-top: 2px; color: var(--accent); }
.svc-why { padding: 40px; background: var(--accent); border-radius: var(--radius); color: #fff; }
.svc-why h2 { color: #fff; }
.svc-why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.svc-why-list li { color: #fff; font-weight: 400; overflow-wrap: anywhere; }
.svc-why-list li b, .svc-why-list li strong { font-weight: 700; }
.svc-why-list .i { color: #fff; }
.svc-why-list li.is-fact { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.3); }
.svc-why-list li.is-fact strong { font: 700 44px/1 var(--font-head); flex: none; }
.svc-why-list li.is-fact span { font-size: 17px; }
.svc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.svc-plan-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.svc-plan p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; flex: 1; }
.svc-plan .btn { align-self: flex-start; }

/* ---------- формы и окна */
.bt-form { display: grid; gap: 14px; }
.bt-form .field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.bt-form input[type=text], .bt-form input[type=tel], .bt-form input[type=email], .bt-form textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #ddd; border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.bt-form input:focus, .bt-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bt-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.bt-form .consent input { margin-top: 3px; accent-color: var(--accent); }
.bt-form .btn { justify-self: start; min-width: 180px; }
.bt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bt-form-msg:empty { display: none; }
.bt-form-msg { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; background: var(--accent-soft); color: var(--text); }
.bt-form-msg.is-error { background: #fdecea; color: #a4281e; }
.bt-form.is-sent .field, .bt-form.is-sent .consent, .bt-form.is-sent .btn { display: none; }
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 36px; border: 0; border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25); color: var(--text); }
.modal::backdrop, .lightbox::backdrop { background: rgba(20, 30, 30, .55); }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
.modal-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.modal-sub a { color: var(--text); font-weight: 600; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; }
.lightbox .modal-close { background: #fff; }

/* поиск, 404 */
.search-inline { display: flex; gap: 10px; margin-bottom: 32px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results a { font: 700 18px/1.3 var(--font-head); color: var(--text); }
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.notfound { text-align: center; padding: 60px var(--gutter) 20px; }
.notfound-code { margin: 0; font: 400 clamp(90px, 16vw, 180px)/1 var(--font); color: var(--accent); letter-spacing: .08em; }
.notfound p { color: var(--muted); }
.notfound-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- подвал */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(160px, 1fr)) minmax(260px, 1.3fr);
  gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-logo img { width: 64px; height: auto; }
.footer-brand p { margin: 16px 0 20px; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer-title { margin: 0 0 16px; font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius);
  background: #efefef; color: #777; transition: opacity .15s; }
.socials a:hover { opacity: .85; }
.socials-color a[aria-label=Telegram] { background: #2aa3df; color: #fff; }
.socials-color a[aria-label=YouTube] { background: #e52d27; color: #fff; }
.footer-contacts { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contacts .i { color: var(--faint); margin-top: 3px; }
.footer-contacts a { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 28px; color: var(--faint); font-size: 12px; }
.footer-bottom a { color: var(--faint); }
.tabbar { display: none; }

/* ---------- планшет */
@media (max-width: 1180px) {
  .nav > li > a { padding: 28px 11px; font-size: 11px; }
  .product-top, .product-top.no-img { grid-template-columns: 1fr 1fr; }
  .product-top.no-img .product-intro { grid-column: 1 / -1; }
  .buy-box { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: center; }
  .news-strip, .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-cards, .svc-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-dl { grid-template-columns: repeat(2, auto); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-strip-item:nth-child(2) { border-right: 0; }
  .news-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- телефон */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: 72px; }
  .only-mobile { display: inline-flex !important; }
  .only-desktop { display: none !important; }
  .topbar { display: none; }
  .site-header { padding-bottom: 0; }
  .site-header > .container { padding: 0; }
  .header-box { min-height: 64px; padding: 0 12px; gap: 8px; border-radius: 0; background: var(--accent); color: #fff; box-shadow: none; }
  .burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: #fff; }
  .logo { margin-right: auto; }
  .logo img { width: 52px; }
  .logo-color { display: none; }
  .logo-white { display: block; }
  .main-nav { display: none; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn { color: #fff; width: 44px; height: 44px; }
  .search-panel { margin: 0; border-radius: 0; }
  .site-main { padding-bottom: 48px; }
  .hero { min-height: 520px; border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
  .hero-slide { align-items: flex-start; justify-content: center; padding: 64px 20px 90px; text-align: center; background-position: 70% center; }
  .hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0)); }
  .hero-text { position: relative; max-width: none; }
  .hero-btns { justify-content: center; }
  .hero-sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-ctrl { left: 0; right: 0; bottom: 22px; justify-content: center; }
  .hero-arrow { display: none; }
  .hero-dots { margin: 0; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); gap: 12px; margin-top: 16px; padding-bottom: 4px; }
  .tile { flex: 0 0 82%; height: 200px; scroll-snap-align: start; }
  .block { margin-top: 48px; }
  .block-head { margin-bottom: 20px; }
  .news-strip { grid-template-columns: 1fr; }
  .news-strip-item { min-height: 0; padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-strip-item:last-child { border-bottom: 0; }
  .about-strip, .contact-form-block, .contacts-media { grid-template-columns: 1fr; }
  .contacts-photo img, .contacts-map { height: 260px; }
  .contacts-info { padding: 22px; }
  .contacts-actions .btn { width: 100%; }
  .about-cta { margin-top: 0; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .facts li { display: flex; align-items: baseline; gap: 14px; padding-top: 12px; }
  .facts strong { margin: 0; font-size: 26px; min-width: 76px; }
  .contact-form-block { padding: 22px; gap: 10px; }
  .svc-hero { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .svc-hero-img { order: -1; }
  .svc-lead { font-size: 16px; }
  .svc-cards, .svc-lists, .svc-plans, .svc-why-list { grid-template-columns: 1fr; }
  .svc-why, .svc-list { padding: 24px; }
  .svc-cards { gap: 12px; }
  .svc-card { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px; }
  .svc-card-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .svc-card-icon .i { width: 22px; height: 22px; }
  .svc-card h3 { margin: 0; font-size: 16px; }
  .svc-why-list li.is-fact strong { font-size: 32px; }
  .page-head { padding-top: 22px; }
  .product-top, .product-top.no-img { grid-template-columns: 1fr; gap: 20px; }
  .product-img { min-height: 220px; }
  .buy-box { grid-template-columns: 1fr; }
  .rz-intro { grid-template-columns: 1fr; gap: 20px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-card-img { height: 150px; padding: 12px; }
  .prod-card-body { padding: 0 14px 16px; }
  .prod-card h3 { font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-2 { grid-template-columns: 1fr; }
  .contacts-dl { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border: 0;
    background: none; color: #777; font-size: 10.5px; min-width: 0; }
  .tabbar .is-active { color: var(--accent); }
  .modal { padding: 28px 20px; }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
