/* ============================================================
   Martlet UZ — design system
   ============================================================ */
:root {
  --navy-900: #0a0f1c;
  --navy-800: #0d1424;
  --navy-700: #121a2e;
  --navy-600: #1b2540;
  --ink: #0f1729;
  --text: #1f2937;
  --muted: #647088;
  --muted-light: #9aa6bd;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --brand: #0ea5b7;
  --brand-2: #34d399;
  --cyan: #22d3ee;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #34d399 100%);
  --accent-grad-soft: linear-gradient(120deg, rgba(34,211,238,.14), rgba(52,211,153,.14));
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, .35);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 800; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.icon { vertical-align: middle; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 32px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer; border: 0;
  padding: 12px 22px; border-radius: 999px; transition: .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent-grad); color: #04212a; box-shadow: 0 8px 22px -8px rgba(34,211,238,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(34,211,238,.7); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
/* Ghost buttons on dark backgrounds (hero) must be light, not dark-on-dark. */
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(255, 255, 255, .06); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; background: transparent;
  border: 0; cursor: pointer; color: inherit; transition: .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: #fff; }
.topbar { background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
.topbar__row { display: flex; gap: 26px; align-items: center; height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cdd6e8; transition: .2s; }
.topbar__item:hover { color: #fff; }
.topbar__muted { color: var(--muted-light); margin-right: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.lang-switch__btn { background: transparent; border: 0; padding: 2px 7px; border-radius: 6px; cursor: pointer; color: #9aa6bd; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .03em; line-height: 1.4; transition: .2s; }
.lang-switch__btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.lang-switch__btn.is-active { color: #fff; background: rgba(255,255,255,.13); cursor: default; }
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: #fff; flex: none; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  color: var(--cyan);
}
.brand__logo { height: 42px; width: 42px; object-fit: cover; border-radius: 11px; display: block; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__links > a, .nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; white-space: nowrap;
  color: #d6deee; font-weight: 600; border-radius: 10px; transition: .2s;
}
.nav__links > a:hover, .nav__dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__dropdown { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s; z-index: 60;
}
.nav__dropdown:hover .nav__menu, .nav__dropdown:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: .94rem; }
.nav__menu a:hover { background: var(--bg-alt); color: var(--brand); }
.nav__menu .icon { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1100px 500px at 80% -10%, #16314a 0%, var(--navy-900) 55%); color: #fff; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 110%, rgba(52,211,153,.16), transparent 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 76px 22px 88px; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); color: #9ff0fb;
  font-size: .84rem; font-weight: 600; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: #fff; letter-spacing: -.02em; margin-bottom: 18px; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.12rem; color: #c2cce0; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 40px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.9rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { color: var(--muted-light); font-size: .9rem; }

/* Orbit visual */
.hero__visual { display: grid; place-items: center; }
.orbit { position: relative; width: 340px; height: 340px; }
.orbit__core {
  position: absolute; inset: 0; margin: auto; width: 110px; height: 110px; border-radius: 28px;
  background: var(--accent-grad); color: #04212a; display: grid; place-items: center;
  box-shadow: 0 0 60px rgba(34,211,238,.5);
}
.orbit::before, .orbit::after {
  content: ""; position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.14); border-radius: 50%;
}
.orbit::after { inset: 48px; }
.orbit__node {
  position: absolute; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #9ff0fb;
  backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite;
}
.orbit__node--1 { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit__node--2 { top: 22%; right: -10px; animation-delay: .4s; }
.orbit__node--3 { bottom: 22%; right: -6px; animation-delay: .8s; }
.orbit__node--4 { bottom: -6px; left: 50%; transform: translateX(-50%); animation-delay: 1.2s; }
.orbit__node--5 { bottom: 22%; left: -6px; animation-delay: 1.6s; }
.orbit__node--6 { top: 22%; left: -10px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section__sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s ease; position: relative;
}
.card--cat, .card--solution, .card--vendor { display: flex; flex-direction: column; }
.card--cat:hover, .card--solution:hover, .card--vendor:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent;
}
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: var(--accent-grad); color: #04212a; margin-bottom: 18px;
}
.card__icon--soft { background: var(--accent-grad-soft); color: var(--brand); }
.card__title { font-size: 1.2rem; margin-bottom: 8px; }
.card__text { color: var(--muted); margin: 0; flex: 1; }
.card__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--brand); }
.card--cat:hover .card__meta .icon, .card--solution:hover .card__meta .icon { transform: translateX(4px); }
.card__meta .icon { transition: .2s; }
.card__vendors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card__vendors span { font-size: .76rem; padding: 3px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.tag { align-self: flex-start; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--accent-grad-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.card--service { display: flex; flex-direction: column; }
.card--service-lg { flex-direction: row; gap: 18px; align-items: flex-start; }
.card--service-lg .card__icon { margin-bottom: 0; }

/* ---------- Vendor chips ---------- */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.vendor-chip {
  position: relative; display: flex; align-items: center; gap: 15px; min-height: 90px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink); overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s;
}
.vendor-chip:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 20px 44px -22px hsl(var(--h, 200) 75% 45% / .6), var(--shadow);
}
/* shine sweep on hover */
.vendor-chip::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .65s ease; pointer-events: none;
}
.vendor-chip:hover::after { left: 140%; }
.vendor-chip__badge {
  flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 200) 78% 52%), hsl(calc(var(--h, 200) + 35) 72% 42%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: transform .28s ease;
}
.vendor-chip:hover .vendor-chip__badge { transform: scale(1.07) rotate(-4deg); }
/* when a real logo is uploaded — show it on a clean white tile */
.vendor-chip__badge--logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.vendor-chip__badge--logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.vendor-chip__name { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.vendor-chip__name small { font-weight: 500; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.vendor-chip__go { margin-left: auto; color: var(--muted-light); transition: transform .28s, color .28s; }
.vendor-chip:hover .vendor-chip__go { color: hsl(var(--h, 200) 70% 45%); transform: translateX(4px); }
.vendor-chip__initials {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, hsl(var(--h, 185) 75% 52%), hsl(calc(var(--h, 185) + 38) 70% 42%));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.vendor-chip__initials--lg { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 16px; }

/* ---------- Page head ---------- */
.page-head { background: var(--navy-900); color: #fff; padding: 46px 0 50px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-head p { color: #c2cce0; max-width: 640px; margin: 0; }
.page-head .tag { background: rgba(34,211,238,.14); }
.page-head__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-grad-soft); color: var(--cyan); margin-bottom: 14px; }
.crumbs { font-size: .9rem; color: var(--muted-light); margin-bottom: 16px; }
.crumbs a:hover { color: #fff; }

/* ---------- Search ---------- */
.search-box { position: relative; max-width: 640px; margin-top: 24px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.search .icon { color: var(--muted); }
.search input { flex: 1; border: 0; font: inherit; padding: 8px; background: transparent; outline: none; color: var(--ink); }

/* Живые подсказки поиска */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 6px; border: 1px solid var(--line);
}
.search-suggest[hidden] { display: none; }
.search-suggest__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); transition: background .12s, padding-left .12s;
}
.search-suggest__item:hover, .search-suggest__item.is-active { background: var(--bg-alt); padding-left: 16px; }
.search-suggest__body { display: flex; flex-direction: column; min-width: 0; }
.search-suggest__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest__sub { font-size: .82rem; color: var(--muted); }
.search-suggest__kind { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--accent-grad-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.search-suggest__empty { padding: 16px; color: var(--muted); text-align: center; }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.catalog__filters { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.catalog__filters h3 { font-size: 1rem; margin-bottom: 14px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: .15s; }
.filter-list a span { font-size: .8rem; background: var(--bg-alt); padding: 1px 8px; border-radius: 999px; }
.filter-list a:hover { background: var(--bg-alt); color: var(--ink); }
.filter-list a.is-active { background: var(--ink); color: #fff; }
.filter-list a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.filter-list a.filter-sale { color: #e0245e; }
.filter-list a.filter-sale span { background: #ffe3ec; color: #e0245e; }
.filter-list a.filter-sale.is-active { background: #e0245e; color: #fff; }
.filter-list a.filter-sale.is-active span { background: rgba(255,255,255,.22); color: #fff; }
.catalog__count { color: var(--muted); margin-bottom: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; font-weight: 600; }
.pagination a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail__image { border-radius: var(--radius); margin-bottom: 24px; border: 1px solid var(--line); }
.detail h2 { margin-top: 34px; font-size: 1.5rem; }
.prose { color: #344256; font-size: 1.05rem; }
.prose--wide { max-width: 760px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; }
.feature-list .icon { color: var(--brand-2); margin-top: 3px; }
.detail__aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.card--cta-side { background: var(--navy-800); color: #fff; border: 0; }
.card--cta-side h3 { color: #fff; }
.card--cta-side p { color: #c2cce0; }
.card--cta-side .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); margin-top: 10px; }
.aside-vendors { display: grid; gap: 8px; }
.aside-vendor { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 8px; border-radius: 10px; }
.aside-vendor:hover { background: var(--bg-alt); }

/* ---------- Vendor detail head ---------- */
.vendor-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.vendor-head__logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: #fff; padding: 12px; }
.vendor-head__logo img { max-height: 60px; object-fit: contain; }
.vendor-head h1 { margin: 0; }
.vendor-head a { color: var(--cyan); }
.card--vendor { align-items: flex-start; }
.card--vendor__logo { display: grid; place-items: center; height: 70px; margin-bottom: 14px; }
.card--vendor__logo img { max-height: 56px; object-fit: contain; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contacts__info { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: .2s; }
.contact-card:hover { border-color: var(--brand); }
.contact-card .card__icon { margin: 0; width: 48px; height: 48px; }
.contact-card strong { display: block; font-size: 1.05rem; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.fact { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.fact strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.fact span { color: var(--muted); }

/* ---------- Forms ---------- */
.lead-form .field, .lead-form .field-row { margin-bottom: 12px; }
.lead-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input, .lead-form textarea {
  width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); transition: .15s; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted-light); }
.lead-form h3 { margin-bottom: 16px; }
.form-note { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-note.is-ok { color: #0f9d6b; }
.form-note.is-err { color: #e0413e; }
.form-fineprint { font-size: .78rem; color: var(--muted-light); margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(900px 400px at 100% 0%, #14324a, var(--navy-900)); color: #fff; padding: 70px 0; }
.cta__inner { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: center; }
.cta__text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta__text p { color: #c2cce0; font-size: 1.08rem; }
.cta__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cta__list li { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.cta__list .icon { color: var(--brand-2); }
.cta__form { background: #fff; color: var(--text); }
.cta__form h3 { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aab4c8; padding: 60px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: flex; align-items: center; gap: 8px; color: #aab4c8; padding: 5px 0; transition: .15s; }
.footer__col a:hover { color: #fff; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: #8e9ab2; max-width: 320px; }
.brand--light { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #76829a; }

/* ---------- Alerts ---------- */
.alert { margin: 18px 0; padding: 13px 18px; border-radius: 12px; font-weight: 600; }
.alert--success { background: #e6f8f0; color: #0f7d57; }
.alert--error { background: #fdeaea; color: #c23533; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,12,22,.6); backdrop-filter: blur(4px); animation: fade .2s; }
.modal__dialog { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); animation: pop .25s; }
.modal__close { position: absolute; top: 14px; right: 14px; color: var(--muted); }
.modal__close:hover { background: var(--bg-alt); }
.modal__title { margin-bottom: 6px; }
.modal__lead { color: var(--muted); margin-bottom: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Misc pages ---------- */
.center-page { text-align: center; }
.big-code { font-size: clamp(4rem, 14vw, 8rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .cards, .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .vendor-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .catalog__filters { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .filter-list { display: flex; flex-wrap: wrap; }
  .detail, .contacts, .cta__inner { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav__links {
    position: fixed; inset: 112px 0 auto; background: var(--navy-800); flex-direction: column;
    align-items: stretch; padding: 12px; gap: 2px; transform: translateY(-140%); transition: .3s;
    box-shadow: var(--shadow-lg); margin: 0;
  }
  .nav__links.is-open { transform: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); margin-top: 4px; }
  .nav__menu a { color: #d6deee; }
  .nav__menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .nav__actions .btn--primary { display: none; }
  .cards, .cards--2, .cards--3, .facts { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__row { gap: 14px; overflow-x: auto; }
  .topbar__muted { display: none; }
  .hero__stats { gap: 26px; }
  .card--service-lg { flex-direction: column; }
}
/* Large desktops / up to 27" (≈2560px) — widen layout so it doesn't look empty */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  .section { padding: 92px 0; }
  .cards, .cards--3 { gap: 26px; }
}
@media (min-width: 1920px) {
  :root { --container: 1460px; }
  .section { padding: 108px 0; }
  .section__head { margin-bottom: 54px; }
  .section__title { font-size: 2.5rem; }
  .section__sub { font-size: 1.15rem; }
  .hero__inner { padding: 104px 22px 120px; }
  .hero__title { font-size: 3.7rem; }
  .hero__sub { font-size: 1.22rem; max-width: 640px; }
  .hero__stats strong { font-size: 2.2rem; }
  .cards, .cards--3, .products { gap: 30px; }
  .orbit { width: 400px; height: 400px; }
}
/* ---------- Hardware catalog ---------- */
.btn--demo { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--demo:hover { background: var(--brand); color: #fff; }
.card--cta-side .btn--demo { background: rgba(255,255,255,.1); color: #9ff0fb; border-color: rgba(159,240,251,.4); margin-top: 10px; }

.hw-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.hw-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: .2s;
}
.hw-cat:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.hw-cat .icon { color: var(--brand); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__ph { color: #c2ccdc; }
.product-card__ph--lg { color: #c2ccdc; }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-light); font-weight: 700; }
.product-card__title { font-size: 1.02rem; margin: 4px 0 10px; line-height: 1.3; max-height: 3.9em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__sum { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 14px; max-height: 4.5em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-top: auto; }
.price { display: flex; flex-direction: column; flex: 0 1 auto; }
.price__old { font-size: .82rem; color: var(--muted-light); text-decoration: line-through; }
.price__now { font-size: 1.12rem; font-weight: 800; color: var(--ink); white-space: normal; }
.price__val { white-space: nowrap; }
.price__now--lg { font-size: 1.9rem; }
.stock { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; margin-left: auto; }
.stock--in { background: #e6f8f0; color: #0f9d6b; }
.stock--low { background: #fff3e0; color: #c47f1a; }
.stock--out { background: #eef1f6; color: #647088; }

.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-controls { display: flex; align-items: center; gap: 14px; }
.toolbar-controls select { font: inherit; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.stock-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }

/* Product detail */
.page-head--slim { padding: 26px 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.product-detail__media { position: relative; background: #fff; border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-detail__info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.product-detail__summary { color: var(--muted); font-size: 1.05rem; }
.product-detail__buy { display: grid; gap: 12px; margin: 22px 0; align-items: center; }
.product-detail__buy .price { flex-direction: row; align-items: baseline; gap: 12px; }
.specs { width: 100%; border-collapse: collapse; margin: 10px 0 24px; }
.specs th, .specs td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }

/* ---------- Scroll-reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero__content > * { animation: rise .7s cubic-bezier(.2,.7,.3,1) backwards; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .28s; }
.hero__content > *:nth-child(5) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 130%; }

@media (max-width: 980px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .catalog__toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-controls { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Страница «О компании»
   ============================================================ */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.about-stat strong {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }

.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.value-card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent-grad); color: #04212a; margin-bottom: 18px;
}
.value-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); margin: 0; line-height: 1.65; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 33px; left: 9%; right: 9%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); z-index: 1;
}
.process__step { text-align: center; position: relative; z-index: 2; }
.process__circle {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--accent-grad); color: #04212a; box-shadow: 0 12px 26px -12px rgba(34, 211, 238, .55);
}
.process__badge { display: block; font-size: .74rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; margin-bottom: 4px; text-transform: uppercase; }
.process__step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.process__step p { color: var(--muted); font-size: .88rem; margin: 0; }

.facts .fact { display: flex; gap: 14px; align-items: flex-start; }
.fact__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-grad-soft); color: var(--brand); }
.facts .fact strong { display: block; margin-bottom: 2px; }
.facts .fact span { color: var(--muted); }

@media (max-width: 980px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .value-cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process::before { display: none; }
}
@media (max-width: 760px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* --- Legal / Privacy page --- */
.legal { max-width: 820px; line-height: 1.7; }
.legal__meta { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.18rem; margin: 28px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--brand); text-decoration: underline; }

/* --- Consent checkbox in lead forms --- */
.field-consent { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; font-size: .85rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.field-consent input { margin-top: 2px; flex: 0 0 auto; width: 16px; height: 16px; cursor: pointer; }
.field-consent a { color: var(--brand); text-decoration: underline; }
