:root {
  --paper: #f2efe8;
  --paper-2: #e8e3d9;
  --ink: #171a18;
  --muted: #686b66;
  --line: rgba(23, 26, 24, 0.15);
  --brass: #a57a3c;
  --green: #244c3b;
  --red: #b62b2e;
  --white: #fffef9;
  --radius: 2px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Manrope, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.eyebrow { color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.display { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 106px); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
.section-title { margin: 12px 0 20px; max-width: 860px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(242,239,232,.92); backdrop-filter: blur(16px); }
.header-row { display: flex; min-height: 76px; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { position: relative; width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid var(--brass); border-radius: 50%; }
.brand-mark::before { content: "A"; position: absolute; inset: 3px 0 0; color: var(--green); font-family: Georgia, serif; font-size: 24px; text-align: center; }
.site-footer .brand-mark::before { color: var(--white); }
.brand-name { font-family: Georgia, serif; font-size: 23px; letter-spacing: .08em; }
.brand-sub { display: block; color: var(--muted); font-family: Inter, sans-serif; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.nav a:hover { color: var(--green); }
.header-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0 20px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--green); background: var(--green); color: var(--white); }
.btn-brass { border-color: var(--brass); background: var(--brass); color: #111; }
.request-button { position: relative; }
.request-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 9px; border-radius: 50%; background: var(--brass); color: var(--ink); font-size: 11px; }
.mobile-menu { display: none; border: 0; background: none; font-size: 23px; }

.hero { position: relative; min-height: 760px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 72px 72px; }
.hero-grid { position: relative; z-index: 2; display: grid; min-height: 760px; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.hero .display { max-width: 800px; }
.hero-copy { position: relative; z-index: 2; padding: 90px 0; }
.hero-copy .lead { color: rgba(255,255,255,.68); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.proofs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.18); }
.proof { min-width: 180px; padding: 20px 30px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.product-sculpture { position: relative; min-height: 560px; }
.hero-product-valve { position: absolute; inset: 10px 0 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 40px rgba(0,0,0,.28)); }
.ring { display: none !important; position: absolute; border: 24px solid #8b642d; border-radius: 50%; box-shadow: inset 0 0 28px rgba(0,0,0,.8), 0 40px 80px rgba(0,0,0,.35); }
.ring.one { top: 80px; right: 32px; width: 360px; height: 360px; }
.ring.two { top: 202px; right: 153px; width: 118px; height: 118px; border-width: 15px; border-color: #d2a75d; }
.brand-product-drawing { display: grid; place-items: center; overflow: hidden; }
.brand-product-drawing img { display: block; width: min(92%, 590px); height: min(88%, 550px); object-fit: contain; filter: drop-shadow(0 28px 35px rgba(0,0,0,.28)); }
.pipe { display: none !important; position: absolute; top: 240px; right: -80px; width: 420px; height: 110px; border-radius: 60px; background: linear-gradient(180deg,#c79a50,#6b481d 52%,#b17f38); transform: rotate(-17deg); box-shadow: 0 30px 50px rgba(0,0,0,.45); }
.tech-label { position: absolute; z-index: 2; right: 8px; bottom: 65px; width: 250px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.72); font: 12px/1.5 "Courier New", monospace; }

section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.fact-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 66px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { min-height: 180px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact strong { display: block; margin-bottom: 34px; color: var(--brass); font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.fact span { color: var(--muted); font-size: 14px; }

.brands { background: var(--paper-2); }
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 54px; }
.brand-card { position: relative; min-height: 510px; overflow: hidden; padding: 48px; background: var(--ink); color: var(--white); }
.brand-card.icma { background: #741d22; }
.brand-card h3 { margin: 110px 0 15px; font-family: Georgia, serif; font-size: 72px; font-weight: 400; }
.brand-card p { max-width: 470px; color: rgba(255,255,255,.7); }
.brand-card .arrow { position: absolute; right: 45px; bottom: 38px; font-size: 30px; }
.brand-ghost { position: absolute; top: -55px; right: -30px; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: 230px; }

.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 44px 0 28px; }
.search-box { display: flex; width: min(100%, 660px); border-bottom: 1px solid var(--ink); }
.search-box input { width: 100%; border: 0; outline: 0; padding: 14px 2px; background: transparent; font-size: 18px; }
.search-box button { border: 0; background: transparent; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); padding: 10px 15px; background: transparent; color: var(--muted); font-size: 12px; }
.chip.active, .chip:hover { border-color: var(--green); background: var(--green); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.product-card { display: flex; min-height: 420px; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.25); }
.product-visual { position: relative; display: grid; height: 228px; place-items: center; overflow: hidden; background: #e6e1d7; }
.product-visual::before { content: ""; width: 122px; height: 122px; border: 19px solid var(--brass); border-radius: 50%; box-shadow: inset 0 0 0 8px #6f512b; }
.product-visual::after { content: ""; position: absolute; width: 195px; height: 50px; border-radius: 30px; background: linear-gradient(180deg,#c89b50,#755121); transform: rotate(-12deg); }
.product-visual img { position: absolute; z-index: 2; inset: 9%; display: block; width: 82%; height: 82%; margin: auto; object-fit: contain; object-position: 50% 50%; mix-blend-mode: multiply; }
.product-visual.has-image::before, .product-visual.has-image::after { display: none; }
.filter-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.catalog-result-count { margin: 22px 0 14px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.product-specs { margin: 34px 0 24px; border-top: 1px solid var(--line); }
.product-specs div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; font-weight: 600; }
.product-note { max-width: 620px; color: var(--muted); line-height: 1.65; }
.catalogue-source { margin: -10px 0 24px; color: var(--muted); font-size: 12px; }
.related-section { background: #e9e4da; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-meta { display: flex; justify-content: space-between; color: var(--muted); font: 11px "Courier New", monospace; letter-spacing: .04em; }
.product-info h3 { margin: 20px 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.product-info p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.product-info .btn { width: 100%; margin-top: auto; }

.workflow { background: var(--green); color: var(--white); }
.workflow .eyebrow { color: #c9a86f; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 60px; border-top: 1px solid rgba(255,255,255,.25); }
.step { min-height: 220px; padding: 25px 28px; border-right: 1px solid rgba(255,255,255,.2); }
.step b { color: #d1ad70; font: 13px "Courier New", monospace; }
.step h3 { margin: 55px 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.step p { color: rgba(255,255,255,.64); font-size: 13px; }

.request-section { background: var(--ink); color: var(--white); }
.request-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.request-section .lead { color: rgba(255,255,255,.62); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); outline: 0; padding: 13px 2px; background: transparent; color: white; }
.field textarea { min-height: 80px; resize: vertical; }
.file-drop { display: grid; min-height: 108px; place-items: center; border: 1px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.65); text-align: center; }
.file-drop input { display: none; }
.privacy { color: rgba(255,255,255,.43); font-size: 11px; }

.page-hero { padding: 95px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero .display { max-width: 1050px; }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 45px; padding: 60px 0 110px; }
.filters { position: sticky; top: 100px; align-self: start; }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-group h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.filter-group label { display: block; margin: 9px 0; color: var(--muted); font-size: 13px; }
.catalog-main .product-grid { grid-template-columns: repeat(2,1fr); }
.empty { display: none; padding: 50px 0; color: var(--muted); }

.site-footer { padding: 64px 0 30px; background: #111412; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 50px; }
.footer-col h4 { color: #c9a86f; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; margin: 10px 0; color: rgba(255,255,255,.6); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.35); font-size: 11px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 340px; padding: 16px 20px; background: var(--green); color: white; transform: translateY(120px); transition: .25s; }
.toast.show { transform: translateY(0); }

@media (max-width: 980px) {
  .nav, .header-actions .btn-primary { display: none; }
  .mobile-menu { display: block; }
  .hero-grid, .intro-grid, .request-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 50px; }
  .product-sculpture { min-height: 420px; }
  .fact-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .product-grid, .catalog-main .product-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-row { min-height: 66px; }
  .brand-sub { display: none; }
  .hero, .hero-grid { min-height: 720px; }
  .hero-copy { padding: 60px 0 0; }
  .product-sculpture { min-height: 340px; transform: scale(.78); transform-origin: top center; }
  section { padding: 75px 0; }
  .brand-cards, .product-grid, .catalog-main .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 410px; padding: 30px; }
  .brand-card h3 { margin-top: 90px; font-size: 58px; }
  .fact-grid, .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Главная в направлении Pipe Express: строгая B2B-подача, собственный бренд ALETHEYA. */
body[data-home="true"] {
  --home-accent: #147dac;
  --home-red: #d3112a;
  --icma-blue: #075a9c;
  --icma-blue-light: #2b82bd;
  background: #f7f9fb;
  color: #202020;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
body[data-home="true"] .site-header {
  position: sticky;
  border: 0;
  background: #111;
  color: #fff;
  backdrop-filter: none;
  box-shadow: inset 0 -3px 0 var(--home-red), inset 0 -5px 0 var(--icma-blue);
}
body[data-home="true"] .header-row { min-height: 82px; }
body[data-home="true"] .brand-name,
body[data-home="true"] .display,
body[data-home="true"] .section-title,
body[data-home="true"] .product-info h3,
body[data-home="true"] .step h3 { font-family: Arial, Helvetica, sans-serif; }
body[data-home="true"] .brand-name { font-size: 21px; font-weight: 800; letter-spacing: .1em; }
body[data-home="true"] .brand-sub { color: rgba(255,255,255,.52); }
body[data-home="true"] .brand-mark { border-color: var(--home-red); box-shadow: inset 0 0 0 3px rgba(20,125,172,.45); }
body[data-home="true"] .brand-mark::before { color: #fff; font-family: Arial, sans-serif; font-weight: 800; }
body[data-home="true"] .header-phone { margin-left: auto; color: rgba(255,255,255,.75); font-size: 14px; white-space: nowrap; }
body[data-home="true"] .brand { margin-right: 0; }
body[data-home="true"] .nav { margin-left: auto; }
body[data-home="true"] .nav a { padding: 28px 2px; color: rgba(255,255,255,.78); }
body[data-home="true"] .nav a:hover { color: #69b8dc; }
body[data-home="true"] .header-actions .request-button { display: none; }
body[data-home="true"] .btn-primary { border-color: var(--home-red); background: var(--home-red); color: #fff; }

body[data-home="true"] .hero {
  min-height: calc(100vh - 82px);
  border-bottom: 0;
  background: #f7f7f7;
  color: #202020;
}
body[data-home="true"] .hero::after {
  opacity: 1;
  background:
    linear-gradient(90deg, transparent 0 63%, rgba(7,90,156,.1) 63% 100%),
    linear-gradient(135deg, transparent 0 82%, rgba(211,17,42,.08) 82% 100%);
}
body[data-home="true"] .hero-grid {
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr);
  gap: 30px;
}
body[data-home="true"] .hero-grid > * { min-width: 0; }
body[data-home="true"] .hero-copy { padding: 90px 0; }
body[data-home="true"] .hero .eyebrow { color: var(--icma-blue); }
body[data-home="true"] .hero .display {
  max-width: 850px;
  margin-top: 22px;
  font-size: clamp(52px,6.2vw,92px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
  text-transform: uppercase;
}
body[data-home="true"] .hero-copy .lead { max-width: 680px; color: #6f6f6f; font-size: 18px; }
body[data-home="true"] .hero-actions .btn:last-child { border-color: #202020 !important; color: #202020 !important; }
body[data-home="true"] .btn-brass { border-color: var(--home-red); background: var(--home-red); color: #fff; }
body[data-home="true"] .proofs { border-color: #d8d8d8; }
body[data-home="true"] .proof { color: #646464; }
body[data-home="true"] .product-sculpture { min-height: 610px; }
body[data-home="true"] .hero-product-valve { width: 112%; max-width: none; filter: drop-shadow(0 25px 34px rgba(0,0,0,.18)); }

body[data-home="true"] section { border-color: #e7e7e7; }
body[data-home="true"] section:not(.hero):not(.workflow):not(.request-section):not(.brands) { background: #fff; }
body[data-home="true"] .eyebrow { color: var(--icma-blue); }
body[data-home="true"] .section-title {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  text-transform: uppercase;
}
body[data-home="true"] .section-title::after {
  content: "";
  display: block;
  width: 155px;
  height: 2px;
  margin-top: 27px;
  background: linear-gradient(90deg, var(--home-red) 0 42%, var(--icma-blue) 42% 100%);
}
body[data-home="true"] .lead { color: #777; font-size: 18px; }
body[data-home="true"] .intro-grid > * { min-width: 0; }
body[data-home="true"] .fact-grid { border-color: #e1e1e1; }
body[data-home="true"] .fact { border-color: #e1e1e1; background: #fafafa; }
body[data-home="true"] .fact strong { color: var(--icma-blue); font-family: Arial, sans-serif; font-weight: 800; }

body[data-home="true"] .brands { background: #f1f1f1; }
body[data-home="true"] .brand-cards { gap: 24px; }
body[data-home="true"] .brand-card {
  min-height: 390px;
  border-top: 5px solid var(--home-red);
  background: linear-gradient(145deg,#080808,#241013);
  color: #fff;
  box-shadow: 0 12px 38px rgba(0,0,0,.12);
}
body[data-home="true"] .brand-card.icma { border-top-color: #63b1dc; background: linear-gradient(145deg,#063c6c,#0870b8); color: #fff; }
body[data-home="true"] .brand-card h3 { margin-top: 70px; font-family: Arial, sans-serif; font-size: 76px; font-weight: 800; }
body[data-home="true"] .brand-card p { color: rgba(255,255,255,.68); }
body[data-home="true"] .brand-ghost { color: rgba(255,255,255,.055); font-family: Arial, sans-serif; font-weight: 800; }
body[data-home="true"] .brand-card .arrow { color: #fff; }
body[data-home="true"] .brand-card .eyebrow { color: #ef3650; }
body[data-home="true"] .brand-card.icma .eyebrow { color: #9fd8f2 !important; }

body[data-home="true"] .product-card { border-color: #e1e1e1; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.035); }
body[data-home="true"] .product-visual { background: #f7f7f7; }
body[data-home="true"] .product-info h3 { font-weight: 700; }
body[data-home="true"] .product-info .btn { border-color: var(--icma-blue); color: var(--icma-blue); }
body[data-home="true"] .workflow { background: linear-gradient(120deg,#073b69,#075a9c); }
body[data-home="true"] .workflow .eyebrow,
body[data-home="true"] .step b { color: #9fd8f2; }
body[data-home="true"] .steps { border-color: rgba(159,216,242,.42); }
body[data-home="true"] .request-section { border-top: 6px solid var(--home-red); background: #111; }
body[data-home="true"] .site-footer { background: #161616; }

@media (max-width: 1120px) {
  body[data-home="true"] .header-phone { display: none; }
}
@media (max-width: 980px) {
  body[data-home="true"] .hero-grid { grid-template-columns: 1fr; }
  body[data-home="true"] .hero-copy { padding-bottom: 15px; }
  body[data-home="true"] .product-sculpture { min-height: 390px; }
}
@media (max-width: 680px) {
  body[data-home="true"] .hero .display { width: 100%; font-size: 28px; letter-spacing: -.045em; }
  body[data-home="true"] .section-title { font-size: clamp(29px,8vw,36px); overflow-wrap: break-word; }
  body[data-home="true"] .hero-copy .lead { font-size: 16px; }
  body[data-home="true"] .product-sculpture { min-height: 300px; width: 100%; overflow: hidden; }
  body[data-home="true"] .hero-product-valve { width: 100%; }
  body[data-home="true"] .brand-card h3 { font-size: 58px; }
}
