/* Asia Water Service — редизайн.
   Тёмный «глубокий» синий для первых экранов, бирюзовый акцент чистой воды,
   фирменный синий AWS (#0060ae) для действий на светлом фоне.
   Шрифты: Unbounded — заголовки, Onest — текст. */

:root {
  --night: #061629;
  --night-2: #0b2440;
  --night-3: #12355c;
  --aqua: #35d0ea;
  --aqua-soft: rgba(53, 208, 234, 0.16);
  --brand: #0060ae;
  --brand-hover: #004f91;
  --ink: #0b1d30;
  --muted: #5a6a7b;
  --soft: #f1f5f9;
  --line: #e1e8ef;
  --white: #ffffff;
  --water: #22b07d;
  --steam: #ef5a4c;
  --reagent: #f29a2e;

  --font-display: "Unbounded", "Segoe UI", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 16px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --header-h: 76px;
  --shadow: 0 18px 40px -22px rgba(6, 22, 41, 0.35);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); }
h3 { font: 700 1.3rem/1.25 var(--font-body); }
h4 { font: 700 1.1rem/1.3 var(--font-body); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--aqua); color: var(--night); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 16px; top: 16px; }

.arrow { width: 22px; height: 22px; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 0.08em; background: var(--water); }
.dot--water { background: var(--water); }
.dot--steam { background: var(--steam); }
.dot--reagent { background: var(--reagent); }
.dot--service { background: var(--aqua); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-accent { background: var(--aqua); color: var(--night); }
.btn-accent:hover { background: #6fe0f2; color: var(--night); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 22, 41, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; color: #fff; flex: none; }
.brand svg { display: block; width: 116px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 500; font-size: 0.97rem; white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a[aria-current] { color: #fff; background: rgba(53, 208, 234, 0.16); }
.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--aqua); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; transition: transform 0.2s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.is-open .menu-toggle-bars { background: transparent; }
.is-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Телефон в шапке — только на широких экранах; он же есть в блоке заявки и в подвале. */
@media (max-width: 1480px) { .header-phone { display: none; } }

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-header.is-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter) 24px; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .header-phone, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .brand svg { width: 100px; }
}

/* ---------- Главная: первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(64px, 9vw, 120px) 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(0, 96, 174, 0.45), transparent 70%),
    radial-gradient(40% 50% at 85% 90%, rgba(53, 208, 234, 0.18), transparent 70%);
}
.hero-media { position: absolute; inset: 0 0 0 38%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.55; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(6, 22, 41, 0.6) 35%, rgba(6, 22, 41, 0.15) 100%), linear-gradient(0deg, var(--night) 0%, transparent 35%); }
.hero-inner { position: relative; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.hero-stats li { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.stat-num { display: block; font: 600 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 720px) {
  .hero-media { inset: 0; }
  .hero-media img { opacity: 0.35; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}

/* Схема очистки: стеклянная панель, по трубе течёт вода. */
.flow {
  margin: clamp(48px, 7vw, 72px) 0 0;
  padding: 24px 24px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.flow figcaption { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; margin-bottom: 18px; }
.flow-steps { position: relative; list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.flow-steps::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: calc(26px + 31px); height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--aqua) 0 14px, rgba(53, 208, 234, 0.25) 14px 26px);
  background-size: 26px 3px;
  animation: flow-water 1.2s linear infinite;
  box-shadow: 0 0 12px rgba(53, 208, 234, 0.6);
}
@keyframes flow-water { to { background-position: 26px 0; } }
.flow-step { position: relative; text-align: center; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; padding: 0 4px; border-radius: var(--r-sm); }
.flow-icon-wrap {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--night-2); border: 1.5px solid rgba(53, 208, 234, 0.45); color: var(--aqua);
  box-shadow: 0 0 0 6px var(--night), 0 0 24px rgba(53, 208, 234, 0.18);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.flow-icon { width: 34px; height: 38px; }
a.flow-node:hover .flow-icon-wrap, a.flow-node:focus-visible .flow-icon-wrap { background: var(--aqua); color: var(--night); transform: scale(1.06); }
.flow-label { margin-top: 10px; font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
a.flow-node:hover .flow-label { color: var(--aqua); }
.flow-note { font-size: 0.84rem; color: rgba(255, 255, 255, 0.55); line-height: 1.3; }
.flow-node--end .flow-icon-wrap { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.flow-dosing {
  position: absolute; top: -26px; left: -14px; z-index: 1;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(242, 154, 46, 0.16); border: 1px solid rgba(242, 154, 46, 0.6);
  color: #ffd3a1; font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
.flow-dosing:hover { background: rgba(242, 154, 46, 0.3); color: #fff; }

@media (max-width: 980px) {
  .flow { padding: 20px 0 20px 20px; }
  .flow figcaption { padding-right: 20px; }
  .flow-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; padding: 30px 20px 6px 0; scrollbar-width: none; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps::before { left: 40px; right: auto; width: calc(7 * 132px); top: calc(30px + 31px); }
  .flow-step { flex: 0 0 132px; scroll-snap-align: start; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding-bottom: clamp(56px, 7vw, 88px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.section-head--row h2, .section-head--row h3 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--brand); }
.link-more:hover .arrow { transform: translateX(3px); }
.link-more .arrow { transition: transform 0.2s; width: 20px; height: 20px; }

/* Услуги — бенто-сетка */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card, .bento-photo { position: relative; display: flex; flex-direction: column; min-height: 240px; border-radius: var(--r-lg); text-decoration: none; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.bento-card { padding: 28px; background: var(--soft); color: var(--ink); }
.bento-card:hover, .bento-photo:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.bento-card h3 { margin: 18px 0 10px; font-size: 1.25rem; }
.bento-card p { color: var(--muted); margin: 0; }
.bento-card .arrow { position: absolute; top: 28px; right: 28px; color: var(--brand); }
.step-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); font: 600 1.05rem var(--font-display); }
.bento-photo { grid-row: span 2; color: #fff; }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.bento-photo:hover img { transform: scale(1.04); }
.bento-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 22, 41, 0.9)); }
.bento-photo-text { position: relative; z-index: 1; margin-top: auto; padding: 28px; display: flex; flex-direction: column; gap: 6px; color: rgba(255, 255, 255, 0.82); }
.bento-photo-title { font: 600 1.5rem/1.2 var(--font-display); color: #fff; }
.bento-photo:hover { color: #fff; }
.bento-card--dark { grid-column: 1 / -1; min-height: 160px; background: var(--night); color: #fff; }
.bento-card--dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(53, 208, 234, 0.28), transparent 70%); }
.bento-card--dark > * { position: relative; }
.bento-card--dark h3 { margin-top: 0; font-family: var(--font-display); font-weight: 600; }
.bento-card--dark p { color: rgba(255, 255, 255, 0.7); max-width: 40em; }
.bento-card--dark .arrow { color: var(--aqua); position: absolute; }
.bento-card--dark:hover { color: #fff; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-photo { grid-row: auto; grid-column: 1 / -1; min-height: 280px; }
  .bento-card--dark { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-card { min-height: 0; } }

/* Витрина каталога на главной: тёмный блок с сеткой-подложкой, вкладки, карточки товаров */
.showcase { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 55% at 0% 0%, rgba(0, 96, 174, 0.55), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(53, 208, 234, 0.2), transparent 70%);
}
.showcase::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
}
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.sc-head > div:first-child { max-width: 720px; }
.sc-head h2 { color: #fff; }
.sc-head p { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; margin: 0; }
.sc-head-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: border-color 0.2s, background-color 0.2s; }
.pill-link .arrow { width: 18px; height: 18px; transition: transform 0.2s; }
.pill-link:hover { color: #fff; border-color: var(--aqua); background: rgba(53, 208, 234, 0.08); }
.pill-link:hover .arrow { transform: translateX(3px); }

.sc-tabs {
  display: flex; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 20px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 12px 14px 12px 20px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(255, 255, 255, 0.72); font: 600 0.97rem var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.sc-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sc-tab[aria-selected="true"] { background: var(--aqua); color: var(--night); }
.sc-count { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.sc-tab[aria-selected="true"] .sc-count { background: rgba(6, 22, 41, 0.14); }

.sc-panel { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 2fr); gap: 16px; }
.sc-panel + .sc-panel { margin-top: 40px; }
.sc.is-ready .sc-panel + .sc-panel { margin-top: 0; }
.sc-panel[hidden] { display: none; }

.sc-feature {
  position: relative; display: flex; flex-direction: column; gap: 24px; padding: 28px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sc-feature::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(53, 208, 234, 0.35), transparent 70%); pointer-events: none; }
.sc-feature h3 { font: 600 clamp(1.35rem, 2vw, 1.7rem)/1.2 var(--font-display); letter-spacing: -0.01em; color: #fff; margin-bottom: 14px; }
.sc-feature p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.sc-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sc-feature-actions .btn { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }
.sc-feature-media { position: relative; margin: auto 0 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #fff; }
.sc-feature-media img { width: 100%; height: 100%; object-fit: contain; }
.sc-feature-media.is-photo img { object-fit: cover; }

.sc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc-grid > li { min-width: 0; }
.sc-panel:not([hidden]) .sc-grid > li { animation: card-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d) * 55ms); }
.sc-panel:not([hidden]) .sc-feature { animation: card-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }

.sc-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 10px 10px 18px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
.sc-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 24px 48px -24px rgba(53, 208, 234, 0.7), 0 0 0 1px rgba(53, 208, 234, 0.7); }
.sc-card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e9f1f7 75%); }
.sc-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sc-card:hover .sc-card-media img { transform: scale(1.07); }
.sc-ph { width: 46px; height: 52px; color: var(--aqua); }
.sc-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 0; }
.sc-card-group { font-size: 0.78rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.sc-card-group .dot { width: 8px; height: 8px; margin-right: 6px; vertical-align: 0.05em; }
.sc-card-title { font-weight: 700; font-size: 1.04rem; line-height: 1.3; }
.sc-card-text { color: var(--muted); font-size: 0.88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card-go {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--brand); box-shadow: 0 6px 16px -8px rgba(6, 22, 41, 0.4);
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.sc-card-go .arrow { width: 18px; height: 18px; }
.sc-card:hover .sc-card-go { background: var(--aqua); color: var(--night); transform: rotate(-45deg); }

.sc-card--more { justify-content: flex-end; gap: 4px; padding: 24px; color: #fff; background: linear-gradient(150deg, rgba(53, 208, 234, 0.28), rgba(0, 96, 174, 0.32)); border: 1px solid rgba(53, 208, 234, 0.5); min-height: 220px; }
.sc-card--more:hover { color: #fff; }
.sc-more-num { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); color: var(--aqua); letter-spacing: -0.03em; }
.sc-more-text { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.sc-card--more .sc-card-go { background: var(--aqua); color: var(--night); }

.sc-card--list { padding: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.sc-card--list:hover { color: #fff; }
.sc-card--list .sc-card-title { font-size: 1.1rem; margin-bottom: 12px; }
.sc-card--list ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.sc-card--list li { position: relative; padding-left: 16px; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; line-height: 1.35; }
.sc-card--list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.sc-list-cta { margin-top: auto; color: var(--aqua); font-weight: 600; font-size: 0.95rem; }

.sc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.sc-brands { padding: 26px 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.sc-brands h3 { font: 600 0.95rem var(--font-body); color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.sc-brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-brands li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.brand-name { font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.brand-note { font-size: 0.8rem; color: var(--aqua); }
.sc-help {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #0a5fb4 0%, #0a8fc4 60%, #19b9d8 100%);
}
.sc-help::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, 0.1); pointer-events: none; }
.sc-help h3 { font: 600 1.35rem/1.25 var(--font-display); color: #fff; margin-bottom: 8px; }
.sc-help p { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 32em; }
.sc-help-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-white { background: #fff; color: var(--night); }
.btn-white:hover { background: #e6f7fb; color: var(--night); }

@media (max-width: 1100px) {
  .sc-panel { grid-template-columns: 1fr; }
  .sc-feature { flex-direction: row; align-items: stretch; }
  .sc-feature-text { flex: 1 1 55%; }
  .sc-feature-media { flex: 1 1 45%; margin: 0; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 860px) { .sc-bottom { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sc-feature { flex-direction: column; padding: 22px; }
  .sc-feature-media { display: none; }
  .sc-feature-actions { margin-top: 18px; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-card { border-radius: 20px; padding: 8px 8px 14px; }
  .sc-card-media { border-radius: 14px; }
  .sc-card-body { padding: 10px 6px 0; }
  .sc-card-go { width: 34px; height: 34px; top: 14px; right: 14px; }
  .sc-card--more, .sc-card--list { padding: 18px; min-height: 0; }
  .sc-tabs { border-radius: 20px; }
}
@media (max-width: 480px) {
  .sc-card-text { display: none; }
  .sc-card-title { font-size: 0.95rem; }
  .sc-card--list ul { display: none; }
}

/* Проекты: горизонтальная лента */
.cases {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 28vw, 360px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}
.case { scroll-snap-align: start; }
.case a { position: relative; display: flex; height: 420px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.case img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.case a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 41, 0) 25%, rgba(6, 22, 41, 0.92) 75%); }
.case a:hover img { transform: scale(1.05); }
.case-body { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.case-city { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.82rem; font-weight: 600; }
.case-client { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.case-work { color: rgba(255, 255, 255, 0.75); font-size: 0.93rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.news-head { margin-top: 56px; margin-bottom: 24px; }
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.news a { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.news img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: var(--soft); margin-bottom: 6px; transition: transform 0.4s; }
.news a:hover img { transform: translateY(-3px); }
.news-date { font-size: 0.87rem; color: var(--muted); }
.news-title { font-weight: 600; line-height: 1.35; }
.news a:hover .news-title { color: var(--brand); }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }

/* Клиенты: бегущая лента логотипов */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee-track a { display: grid; place-items: center; width: 190px; height: 104px; padding: 18px; border-radius: var(--r); background: #fff; }
.marquee-track img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.marquee-track a:hover img, .marquee-track a:focus-visible img { filter: none; opacity: 1; }

/* О компании */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.about-grid p { color: var(--muted); }
.about-grid .about-lead { color: var(--ink); }
.about-grid h3 { margin-top: 36px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 16px; border-radius: 999px; background: var(--soft); font-size: 0.95rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { position: relative; padding-left: 32px; line-height: 1.4; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 22px; height: 22px; border-radius: 50%; background: var(--aqua-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230060ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.about-caption { margin-top: 16px; }
.pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.pills a span { font-weight: 400; color: var(--muted); }
.pills a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* Видео: превью, плеер грузится по нажатию */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--night) center / cover no-repeat; border-radius: var(--r-lg); overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, transparent, rgba(6, 22, 41, 0.45)); cursor: pointer; display: grid; place-items: center; }
.video button::before { content: ""; width: 84px; height: 84px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23061629' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% center / 34px no-repeat; box-shadow: 0 0 0 10px rgba(53, 208, 234, 0.25); transition: transform 0.2s; }
.video button:hover::before { transform: scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Заявка ---------- */
.request { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(72px, 9vw, 112px) 0; isolation: isolate; }
.request::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 0% 100%, rgba(0, 96, 174, 0.5), transparent 70%), radial-gradient(40% 60% at 100% 0%, rgba(53, 208, 234, 0.16), transparent 70%); }
.request-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.request-intro p { color: rgba(255, 255, 255, 0.72); }
.request-intro a { color: var(--aqua); }
.request-contacts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.request-contacts li { display: grid; gap: 2px; }
.request-contacts span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.request-contacts a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.request-contacts a:hover { color: var(--aqua); }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.93rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--soft); color: var(--ink); font: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(0, 96, 174, 0.15); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #d64545; background: #fff6f5; }
.field-error { display: none; margin: 0; color: #c23434; font-size: 0.88rem; }
.field[data-invalid] .field-error { display: block; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.field-check label { font-weight: 400; font-size: 0.93rem; color: var(--muted); }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.request .btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form-status[data-state="ok"] { color: #13804f; font-weight: 600; }
.form-status[data-state="error"] { color: #c23434; }
@media (max-width: 900px) { .request-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .request-form { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer { background: #041020; color: rgba(255, 255, 255, 0.7); padding: 64px 0 28px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
.site-footer h2 { font: 600 1rem var(--font-body); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-about .brand svg { width: 110px; margin-bottom: 18px; }
.footer-about > p { max-width: 32em; }
.director-note { margin: 24px 0 0; padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.director-note p { margin-bottom: 8px; }
.director-note footer { color: #fff; font-weight: 600; }
.footer-nav ul, .footer-contacts ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-contacts li { padding: 5px 0; }
.footer-contacts li span { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }
.footer-contacts > p { margin-top: 14px; }
.social-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.87rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 40px 0 clamp(48px, 6vw, 72px); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 100% 0%, rgba(0, 96, 174, 0.55), transparent 70%), radial-gradient(30% 60% at 0% 100%, rgba(53, 208, 234, 0.12), transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero-grid.has-media { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); margin: 22px 0 14px; max-width: 22ch; }
.page-sub { color: rgba(255, 255, 255, 0.72); font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 44em; margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero-media { margin: 0; display: grid; place-items: center; padding: 20px; min-height: 240px; border-radius: var(--r-lg); background: #fff; }
.page-hero-media img { max-height: 300px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .page-hero-grid.has-media { grid-template-columns: 1fr; } .page-hero-media { min-height: 0; } .page-hero-media img { max-height: 220px; } }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: rgba(255, 255, 255, 0.3); }
.crumbs a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.crumbs a:hover { color: var(--aqua); }

.page { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 112px); }
.page-intro { font-size: 1.12rem; color: var(--muted); max-width: 48rem; margin-bottom: 40px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 980px) { .page-grid { grid-template-columns: 1fr; } }

.page-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 980px) { .page-aside { position: static; } }
.side-card { border-radius: var(--r); background: var(--soft); padding: 22px; }
.sub-nav h2 { font: 700 1rem var(--font-body); letter-spacing: 0; margin-bottom: 10px; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.sub-nav a:hover { background: #fff; color: var(--brand); }
.sub-nav a[aria-current] { background: #fff; color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.side-card--dark { background: var(--night); color: rgba(255, 255, 255, 0.75); }
.side-card--dark p { font-size: 0.95rem; }
.side-phone { display: block; margin-bottom: 16px; color: #fff; text-decoration: none; font: 600 1.35rem var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.side-phone:hover { color: var(--aqua); }

/* Текст страниц */
.prose { max-width: 48rem; min-width: 0; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose ul > li::marker { color: var(--aqua); font-size: 1.2em; }
.prose ol > li::marker { color: var(--brand); font-weight: 600; }
.prose img { display: block; margin: 1.4em 0; border-radius: var(--r); }
.prose li img { margin: 0.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-radius: var(--r-sm); background: var(--soft); color: var(--muted); }
.prose a[href$=".pdf"]::after, .prose a[href$=".PDF"]::after, .prose a[href$=".doc"]::after, .prose a[href$=".docx"]::after {
  content: "PDF"; display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--aqua-soft); color: var(--brand);
  font: 700 0.68em/1.2 var(--font-body); vertical-align: 0.15em; text-decoration: none;
}
.prose a[href$=".doc"]::after, .prose a[href$=".docx"]::after { content: "DOC"; }

.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: var(--r); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child > th, .prose tr:last-child > td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: #f8fafc; }
.prose thead th { background: var(--soft); font-weight: 600; }
.prose th[scope="row"] { font-weight: 400; color: var(--muted); width: 56%; }
.prose th[scope="rowgroup"] { background: var(--soft); font-weight: 700; color: var(--ink); }
.prose td p:last-child { margin: 0; }
.video-embed { margin: 1.6em 0; }

/* Модели мембран */
.prose .models { list-style: none; padding: 0; margin: 1em 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.models li { margin: 0; padding: 14px; border-radius: var(--r); background: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.prose .models img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 0 8px; background: #fff; border-radius: var(--r-sm); padding: 8px; }
.model-name { font-weight: 700; overflow-wrap: anywhere; }
.models a { font-size: 0.92rem; }

/* Каталоги */
.catalog-group { margin-bottom: clamp(48px, 6vw, 72px); }
.catalog-group > h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 24px; }
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.catalog a { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 22px; border-radius: var(--r-lg); background: var(--soft); color: var(--ink); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s; }
.catalog a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.catalog-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r); background: #fff; overflow: hidden; margin-bottom: 16px; }
.catalog-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.catalog-noimg { font: 600 3rem var(--font-display); color: var(--aqua); }
.catalog-title { display: block; padding: 0 8px; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.catalog a:hover .catalog-title { color: var(--brand); }
.catalog-text { display: block; padding: 0 8px; margin-top: 8px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.tag { align-self: flex-start; display: inline-block; margin: 12px 8px 0; padding: 4px 12px; border-radius: 999px; background: var(--aqua-soft); color: var(--brand); font-size: 0.82rem; font-weight: 600; }
.catalog-list { columns: 2; gap: 32px; }

.index-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.index-cards a { position: relative; display: block; height: 100%; padding: 28px 64px 28px 28px; border-radius: var(--r-lg); background: var(--soft); color: var(--ink); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s; }
.index-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.index-cards h2 { font: 700 1.2rem/1.3 var(--font-body); letter-spacing: 0; margin-bottom: 8px; }
.index-cards p { margin: 0; color: var(--muted); }
.index-cards .arrow { position: absolute; top: 28px; right: 24px; color: var(--brand); }

.doc-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
.doc-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--soft); color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.doc-list a:hover { background: #e6eef6; }
.doc-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 700; font-size: 0.75rem; }
.doc-name { font-weight: 600; line-height: 1.35; }
.doc-size { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.prose .doc-list a::after, .prose .passports a::after { content: none; }

.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 16px; }
.letters a { display: block; padding: 10px 10px 14px; border-radius: var(--r); background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; line-height: 1.3; transition: transform 0.25s, box-shadow 0.25s; }
.letters a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prose .letters img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--r-sm); margin: 0 0 10px; background: #fff; }

/* Лицензии и сертификаты */
.prose .certs, .certs { list-style: none; margin: 0 0 2em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.certs li { margin: 0; }
.certs a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px 10px 14px; border-radius: var(--r); background: var(--soft); color: var(--ink); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s; }
.certs a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.certs-img { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(6, 22, 41, 0.4); }
.prose .certs img, .certs img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; object-position: top; }
.certs-title { font-size: 0.86rem; font-weight: 600; line-height: 1.3; padding: 0 2px; }
.certs--mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; }
.certs--mini a { padding: 6px; gap: 0; }
.certs--mini .certs-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.about-certs { margin-top: 32px; }
.about-certs .section-head--row { margin-bottom: 14px; }
.about-certs h3 { margin: 0; font-size: 1.1rem; }
@media (max-width: 560px) { .certs--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 980px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 22, 41, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lightbox-close { position: fixed; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--aqua); color: var(--night); cursor: pointer; }
.lightbox-close svg { width: 22px; height: 22px; }

.passports h2 { margin-top: 1.8em; }
.passports h3 { font-size: 1rem; margin: 1.2em 0 0.5em; color: var(--muted); }
.passports ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.passports li { margin: 0; }
.passports li a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.passports li a:hover { background: var(--aqua-soft); }

.cases-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cases-grid .case a { height: 380px; }

/* ---------- Калькулятор обратного осмоса ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-app { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.table_wrapper { display: flex; flex-direction: column; gap: 16px; }
.calc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.calc-aside-title { font: 600 1.2rem/1.25 var(--font-display); color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }

.calc-card { border-radius: var(--r-lg); background: var(--soft); padding: clamp(20px, 3vw, 32px); }
.calc-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.calc-step-no { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--aqua); font: 600 1.05rem var(--font-display); }
.calc-step-head h2 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); margin: 8px 0 6px; }
.calc-step-head p { color: var(--muted); margin: 0; max-width: 46em; }

.calc-select select {
  -webkit-appearance: none; appearance: none;
  width: 100%; max-width: 360px; min-height: 64px; padding: 0 60px 0 22px;
  border: 2px solid var(--line); border-radius: 18px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230060ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 22px no-repeat;
  color: var(--ink); font: 600 1.45rem var(--font-display); letter-spacing: -0.01em; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-select select:hover { border-color: rgba(0, 96, 174, 0.4); }
.calc-select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 96, 174, 0.15); }

.calc-ions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc-ion-block { min-width: 0; padding: 18px; border-radius: var(--r); background: #fff; }
.calc-ion-block h3, .calc-stream h3 { font: 700 1.02rem var(--font-body); margin: 0 0 10px; }
.ion-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ion-table tfoot tr { border-top: 1px solid var(--line); }
.ion-table th, .ion-table td { padding: 5px 6px; text-align: left; vertical-align: middle; }
.ion-table thead th { padding-bottom: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.ion-table tbody td:first-child { width: 58px; font-weight: 700; }
.ion-table input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; -moz-appearance: textfield; appearance: textfield; transition: border-color 0.2s, background-color 0.2s; }
.ion-table input::-webkit-outer-spin-button, .ion-table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ion-table input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0, 96, 174, 0.15); }
.ion-table input[disabled] { border-color: transparent; background: transparent; color: var(--muted); padding-left: 4px; }
.ion-table tfoot th { padding-top: 12px; font-weight: 700; }

.calc-tds { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 20px; border-radius: 999px; background: #fff; }
.calc-tds p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.calc-tds span { font: 600 1.2rem var(--font-display); font-variant-numeric: tabular-nums; }

.calculated_container { display: flex; flex-direction: column; gap: 16px; }
.calc-card--result { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; }
.calc-card--result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(53, 208, 234, 0.25), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(0, 96, 174, 0.45), transparent 70%); }
.calc-card--result h2 { color: #fff; }
.calc-card--result .calc-step-no { background: var(--aqua); color: var(--night); }
.calc-key { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; margin-bottom: 12px; }
.calc-key-item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.calc-key-item span { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.calc-key-item strong { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.calc-key-item--accent { background: linear-gradient(135deg, rgba(53, 208, 234, 0.25), rgba(0, 96, 174, 0.4)); border-color: rgba(53, 208, 234, 0.5); }
.calc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.calc-tile { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.calc-tile dt { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.calc-tile dd { margin: 6px 0 0; font: 600 1.35rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.calc-tile--wide { grid-column: 1 / -1; }
.nw { white-space: nowrap; }
.calc-analogs { margin: 18px 0 0; color: rgba(255, 255, 255, 0.7); }
.calc-analogs a { color: var(--aqua); font-weight: 600; }

.calc-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc-stream { min-width: 0; padding: 18px; border-radius: var(--r); background: #fff; }
.calc-stream h3 { display: flex; align-items: center; gap: 8px; }
.calc-stream h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); }
.calc-stream--concentrate h3::before { background: var(--reagent); }
.calc-stream h3 span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.calc-stream-tables { display: grid; grid-template-columns: 1fr; gap: 14px; }
.calc-stream .ion-table { font-size: 0.85rem; }
.calc-stream .ion-table th, .calc-stream .ion-table td { padding: 4px 4px; }
.calc-stream .ion-table tbody td:first-child { width: auto; }
.calc-stream .ion-table tbody tr:nth-child(even) td { background: var(--soft); }
.calc-stream .calc-tds { background: var(--soft); border-radius: 14px; padding: 12px 16px; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline { border-color: rgba(11, 29, 48, 0.2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.calc-note { margin: 0; color: var(--muted); font-size: 0.93rem; max-width: 52em; }

/* То, что скрипт показывает только на время сохранения PDF */
.calc-page .header, .calc-page #contacts { display: none; }
.calc-page .header img { display: block; width: 100%; height: auto; border-radius: 16px; }
.calc-pdf-contacts { padding: 20px 24px; border-radius: var(--r); background: var(--soft); font-size: 0.9rem; }
.calc-pdf-contacts h3 { font: 700 1rem var(--font-body); margin-bottom: 6px; }
.calc-pdf-contacts p { margin: 0 0 4px; color: var(--muted); }
.pdfloader { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; background: rgba(6, 22, 41, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pdf-preloder-wrapper p { margin: 0; padding: 18px 28px; border-radius: 999px; background: var(--night); border: 1px solid rgba(53, 208, 234, 0.5); color: #fff; font-weight: 600; }
/* Скрипт кладёт снимок листа в PDF фиксированного размера 670 × 2000 (1 : 3).
   На время сохранения делаем лист шириной 920 px — тогда его высота как раз втрое больше и картинка не искажается. */
.calc-app:has(.pdfloader[style*="flex"]) .table_wrapper { width: 920px; }

@media (max-width: 1100px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .calc-ions, .calc-streams, .calc-key { grid-template-columns: 1fr; }
  .calc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-select select { max-width: none; }
  .calc-tds { border-radius: 16px; }
}
@media (max-width: 420px) {
  .calc-tile dd { font-size: 1.15rem; }
}

/* 404 */
.notfound { padding: clamp(72px, 12vw, 160px) 0; }
.notfound h1 { max-width: 16ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

@media print {
  .site-header, .request, .site-footer, .page-aside { display: none; }
  .page-hero, .hero { background: none; color: var(--ink); }
}
