/* Medical Device KZ — основные стили */
:root {
  --brand: #2c6bae;
  --brand-600: #245a94;
  --brand-50: #eef4fb;
  --brand-100: #dbe8f6;
  --ink: #142235;
  --ink-2: #4a5a6f;
  --ink-3: #7a8799;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 34, 53, .05), 0 6px 24px rgba(20, 34, 53, .06);
  --shadow-lg: 0 12px 40px rgba(20, 34, 53, .14);
  --wrap: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(44, 107, 174, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(44, 107, 174, .28); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb457; color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.topbar { background: var(--ink); color: #c8d2df; font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #fff; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .7; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 34, 53, .05); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.is-active { background: var(--brand-50); color: var(--brand); }
.header__phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%); }
.hero__slides { position: relative; }
.hero__slide { display: none; }
.hero__slide.is-active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: 540px; padding: 56px 0 72px; }
.hero__text .lead { max-width: 560px; margin-bottom: 28px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__img img { width: 100%; max-height: 460px; object-fit: contain; }
.hero__dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: #c5d3e4; cursor: pointer; transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 28px; background: var(--brand); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 2; }
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.stat__label { color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; }

.services { grid-template-columns: repeat(6, 1fr); }
.services .card { grid-column: span 2; }
.services .card:nth-child(4) { grid-column: 2 / span 2; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checklist li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c6bae' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist b { display: block; margin-bottom: 2px; }
.checklist span { color: var(--ink-2); font-size: 15px; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .25s, transform .25s, border-color .25s; }
.cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.cat__img { aspect-ratio: 1 / 1; padding: 16px; background: #fff; display: grid; place-items: center; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.cat:hover .cat__img img { transform: scale(1.04); }
.cat__body { padding: 12px 16px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); }
.cat__name { font-weight: 700; font-size: 15px; }
.cat__count { font-size: 13px; color: var(--ink-3); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .25s, transform .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.pcard__img { aspect-ratio: 1 / 1; background: #fff; padding: 18px; display: grid; place-items: center; position: relative; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__brand { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--bg-soft); padding: 4px 8px; border-radius: 6px; }
.pcard__body { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__cat { font-size: 13px; color: var(--ink-3); }
.pcard__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.pcard__sub { font-size: 13px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.pcard__more svg { width: 16px; height: 16px; transition: transform .2s; }
.pcard:hover .pcard__more svg { transform: translateX(3px); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; }
.partner img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.client p { padding: 16px 20px 20px; margin: 0; font-weight: 600; font-size: 15px; line-height: 1.45; }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.contact-item .card__icon { margin: 0; width: 48px; height: 48px; }
.contact-item small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.contact-item a, .contact-item span { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-item a:hover { color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* Forms */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(44, 107, 174, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; }
.form__msg { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form__msg.is-ok { display: block; background: #e7f6ee; color: #12623a; }
.form__msg.is-err { display: block; background: #fdecec; color: #9b1c1c; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(15, 25, 40, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-2); }
.modal__close:hover { background: var(--line); }
.modal__product { background: var(--brand-50); color: var(--brand-600); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Footer */
.footer { background: var(--ink); color: #b7c2d1; padding: 64px 0 28px; font-size: 15px; }
.footer a { color: #e3e9f1; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.footer__logo img { height: 38px; width: auto; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(180deg, #f4f8fd, #fff); padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span::before { content: "/"; margin-right: 6px; color: #c0c9d4; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; padding-bottom: 88px; }
.sidebar { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.sidebar__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding: 10px 12px 6px; }
.catlist { list-style: none; padding: 0; margin: 0; }
.catlist a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.catlist a:hover { background: var(--bg-soft); }
.catlist a.is-active { background: var(--brand); color: #fff; }
.catlist a small { color: var(--ink-3); font-size: 13px; }
.catlist a.is-active small { color: rgba(255, 255, 255, .8); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; }
.toolbar select.input { width: auto; min-width: 170px; }
.result-info { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.empty { text-align: center; padding: 64px 20px; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--radius); }
.more-wrap { text-align: center; margin-top: 32px; }
.cat-select { display: none; }

/* Product page */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 8px 0 56px; }
.gallery { position: sticky; top: 96px; }
.gallery__main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 28px; position: relative; overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.gallery__nav:hover { border-color: var(--brand); color: var(--brand); }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__nav svg { width: 20px; height: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; cursor: pointer; transition: border-color .2s; }
.thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tag--brand { background: var(--brand-50); color: var(--brand); }
.pinfo h1 { font-size: clamp(28px, 3.2vw, 40px); }
.pinfo__sub { font-size: 17px; color: var(--ink-2); margin-bottom: 20px; }
.pinfo__short { color: var(--ink-2); margin-bottom: 24px; }
.pinfo__price { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.pinfo__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.perks div { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.perks b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.desc { max-width: 860px; }
.desc h2 { font-size: 26px; margin-bottom: 20px; }
.prose { color: var(--ink-2); font-size: 16px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose h3, .prose h4 { color: var(--ink); margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.prose td, .prose th { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.prose td:first-child { color: var(--ink-3); width: 45%; }
.prose td:last-child { color: var(--ink); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10, 16, 26, .92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 12px; }
.lightbox .modal__close { position: fixed; top: 20px; right: 20px; }
.lightbox .gallery__nav { position: fixed; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 50%, #eef1f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Responsive */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .header__phone { display: none; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .topbar__info span:nth-child(3) { display: none; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav-open .nav { transform: none; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .burger { display: inline-flex; }
  .header .wrap { gap: 16px; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding: 40px 0 64px; }
  .hero__img { order: -1; } .hero__img img { max-height: 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid--3, .clients { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .services .card, .services .card:nth-child(4) { grid-column: auto; }
  .split, .contacts, .product { grid-template-columns: 1fr; gap: 32px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cat-select { display: block; }
  .gallery { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .header .wrap { height: 64px; }
  .nav { top: 64px; }
  .logo img { height: 36px; }
  .header__actions .btn { display: none; }
  .grid--3, .grid--4, .clients, .services { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .pcard__body { padding: 12px 14px 14px; }
  .pcard__name { font-size: 15px; }
  .pcard__img { padding: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .form-card, .modal__box { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .stat { padding: 20px; } .stat__num { font-size: 28px; }
  .perks { grid-template-columns: 1fr; }
  .hero__btns .btn { flex: 1; }
  .toolbar select.input { flex: 1; }
  .prose td { padding: 9px 12px; }
}
