/* Layout idea: the drawing is the hero. Dark ink fields carry plans that glow like blueprints;
   four service colours (water, reuse, light, space) code everything else; wide heavy display type. */
:root {
  color-scheme: light;
  --ink: #0a1620;
  --ink-2: #11222f;
  --paper: #ffffff;
  --tint: #eef2f3;
  --text: #0e1a22;
  --muted: #53636e;
  --line: #d3dade;
  --on-dark: #eef4f7;
  --on-dark-muted: #9fb4c0;
  --water: #1f6fd6;
  --rain: #0a7f78;
  --light: #f2a516;
  --space: #c9502c;
  --flag-bg: #fff4d6; --flag-line: #b47a00; --flag-ink: #553800;
  --ok: #1c6b3c; --err: #a32222;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
  --tone: var(--water); --tone-ink: #fff;
}
.tone-water { --tone: var(--water); --tone-ink: #fff; }
.tone-rain { --tone: var(--rain); --tone-ink: #fff; }
.tone-light { --tone: var(--light); --tone-ink: #1a1300; }
.tone-space { --tone: var(--space); --tone-ink: #fff; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; font-stretch: 112%; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; } ul, ol { margin: 0; padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--light); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.mono { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.label { color: var(--tone); margin-bottom: 14px; font-weight: 500; }
.dark .label, .title-block .label { color: var(--light); }

/* Reveal on scroll: only hidden when the script has marked the page as animated */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .rv-on .rv { opacity: 1; transform: none; } }

/* Header */
.site-head { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid #1d3242; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand b { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 1.6rem; letter-spacing: 0.02em; }
.brand span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.nav ul { list-style: none; display: flex; gap: 2px; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--on-dark); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--light); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .cta a { background: var(--water); color: #fff; margin-left: 10px; font-weight: 600; }
.nav .cta a::after { display: none; } .nav .cta a:hover { background: #2b82f0; }
.nav-btn { display: none; background: none; border: 1px solid #36506440; border-color: #3a566b; padding: 9px 13px; font: 500 0.9rem var(--body); color: #fff; cursor: pointer; }
@media (max-width: 900px) {
  .nav-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid #1d3242; padding: 8px var(--gut) 18px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #1d3242; font-size: 1.05rem; } .nav a::after { display: none; }
  .nav .cta a { margin: 14px 0 0; text-align: center; border: 0; }
}

/* Buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 26px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid var(--water); background: var(--water); color: #fff; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.btn:hover { background: #2b82f0; border-color: #2b82f0; transform: translateY(-2px); }
.btn.outline { background: transparent; border-color: #fff; color: #fff; } .btn.outline:hover { background: #fff; color: var(--ink); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); } .btn.light:hover { background: var(--light); border-color: var(--light); }
.btn.ghost { background: transparent; color: var(--water); } .btn.ghost:hover { background: var(--tint); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.more { font-weight: 600; text-decoration: none; } .more:hover { text-decoration: underline; }
.dark .more { color: var(--light); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.16) translateX(-3%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10, 22, 32, 0.97) 0%, rgba(10, 22, 32, 0.9) 38%, rgba(10, 22, 32, 0.45) 68%, rgba(10, 22, 32, 0.15) 100%); }
.hero-in { position: relative; display: grid; gap: 24px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 130px); max-width: var(--wrap); }
.hero .mono { color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(3.2rem, 11.5vw, 9.2rem); line-height: 0.86; letter-spacing: -0.035em; font-stretch: 118%; display: grid; }
.hero h1 small { font-size: clamp(1.3rem, 3vw, 2.3rem); letter-spacing: 0; font-weight: 600; font-stretch: 100%; text-transform: none; color: #fff; margin-top: 0.7em; }
.w-water { color: #6fb1ff; } .w-light { color: var(--light); } .w-space { color: #ff8a63; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d6e2e9; max-width: 46ch; }
.hero-cap { position: absolute; right: var(--gut); bottom: 14px; color: #fff; background: rgba(10, 22, 32, 0.78); padding: 6px 10px; font-size: 0.68rem; }
@media (max-width: 700px) { .hero-shade { background: linear-gradient(180deg, rgba(10, 22, 32, 0.88), rgba(10, 22, 32, 0.62)); } .hero-cap { position: relative; right: auto; bottom: auto; display: block; margin: 0 var(--gut) 16px; width: fit-content; } }

/* Stats */
.stats { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid #1d3242; }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 38px 24px 40px 0; display: grid; gap: 8px; align-content: start; border-left: 1px solid #25404f; padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.stat b i { font-style: normal; } .stat b small { font-size: 0.4em; margin-left: 4px; color: var(--light); letter-spacing: 0; }
.stat span { color: var(--on-dark-muted); font-size: 0.95rem; max-width: 24ch; }
.stat:nth-child(1) b { color: #6fb1ff; } .stat:nth-child(2) b { color: #4fd0c6; } .stat:nth-child(3) b { color: #ff8a63; } .stat:nth-child(4) b { color: var(--light); } .stat:nth-child(4) b small { color: #fff; }
@media (max-width: 820px) { .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat { padding-top: 26px; padding-bottom: 26px; } }

/* Sections */
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec.tint { background: var(--tint); }
.sec.dark { background: var(--ink); color: var(--on-dark); }
.sec.dark a:not(.btn):not(.pcard) { color: var(--light); }
.sec-head { display: grid; gap: 0; margin-bottom: 40px; max-width: 900px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.dark .lede { color: #c9d7df; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.wide { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose.big p { font-size: 1.22rem; line-height: 1.55; }
.prose.big p:first-child { font-size: 1.5rem; line-height: 1.4; font-weight: 500; color: var(--text); }
.prose h2 { margin-top: 22px; font-size: 1.45rem; text-transform: none; letter-spacing: -0.005em; line-height: 1.15; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.note { margin-top: 26px; font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; max-width: 70ch; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid, .svc-grid.two { grid-template-columns: minmax(0, 1fr); } }
.svc { position: relative; display: grid; gap: 10px; align-content: end; min-height: 360px; padding: 26px 24px 28px; background: var(--tone); color: var(--tone-ink); text-decoration: none; overflow: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s; }
.svc:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(10, 22, 32, 0.28); }
.svc .mono { position: absolute; top: 22px; left: 24px; opacity: 0.85; }
.svc-word { position: absolute; top: 44px; left: 20px; right: 8px; font-family: var(--display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(3rem, 5.2vw, 4.4rem); line-height: 0.9; letter-spacing: -0.04em; opacity: 0.22; transition: opacity 0.3s, transform 0.3s; }
.svc:hover .svc-word { opacity: 0.5; transform: translateX(6px); }
.svc b { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.32rem; line-height: 1.12; }
.svc-short { font-size: 0.97rem; line-height: 1.45; opacity: 0.94; }
.svc-go { font-size: 1.6rem; line-height: 1; margin-top: 6px; transition: transform 0.3s; } .svc:hover .svc-go { transform: translateX(10px); }
.svc-grid.two .svc { min-height: 300px; }

/* Project cards, carousel, grid */
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--ink-2); color: var(--on-dark); text-decoration: none; overflow: hidden; border-top: 4px solid var(--tone); transition: transform 0.3s; }
.pcard:hover { transform: translateY(-6px); }
.pcard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #091a2a; }
.pcard-img img, .pcard-img .gen { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pcard:hover .pcard-img img, .pcard:hover .pcard-img .gen { transform: scale(1.07); }
.pcard-body { display: grid; gap: 8px; padding: 20px 22px 24px; align-content: start; }
.pcard-body .mono { color: var(--on-dark-muted); font-size: 0.7rem; }
.pcard-body b { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.pcard-big { color: var(--on-dark-muted); font-size: 0.95rem; }
.pcard-big i { font-style: normal; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 2.3rem; line-height: 1; color: var(--tone); margin-right: 4px; letter-spacing: -0.03em; }
.pcard.tone-water .pcard-big i { color: #6fb1ff; } .pcard.tone-rain .pcard-big i { color: #4fd0c6; } .pcard.tone-space .pcard-big i { color: #ff8a63; }
.car { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 18px; scrollbar-width: thin; scrollbar-color: #36506b transparent; }
.car .pcard { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; min-width: 0; }
.car-btns { display: flex; gap: 8px; }
.car-btns button { width: 52px; height: 52px; background: transparent; border: 2px solid #3a566b; color: #fff; font-size: 1.3rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.car-btns button:hover { background: var(--light); border-color: var(--light); color: #000; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 600px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.gen { background-color: var(--ink-2); min-height: 200px;
  background-image: radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--tone) 85%, transparent) 0 2px, transparent 3px), radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--tone) 28%, transparent) 0 70px, transparent 71px), radial-gradient(circle at 58% 62%, color-mix(in srgb, var(--tone) 22%, transparent) 0 110px, transparent 111px), radial-gradient(circle at 84% 24%, color-mix(in srgb, var(--tone) 30%, transparent) 0 56px, transparent 57px), linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 28px 28px, 28px 28px; }

/* Frames and figures */
.frame { margin: 0; background: var(--ink); border: 1px solid var(--ink); overflow: hidden; }
.frame img { width: 100%; }
.frame.wide img, .frame.wide .gen { width: 100%; max-height: 620px; object-fit: cover; aspect-ratio: 16 / 8; }
.frame figcaption { color: var(--on-dark-muted); padding: 10px 14px; font-size: 0.68rem; background: var(--ink); }

/* Title block for inner pages */
.title-block { position: relative; background: var(--ink); color: #fff; overflow: hidden; border-bottom: 6px solid var(--tone); }
.title-block .tb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.title-block .tb-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 32, 0.96), rgba(10, 22, 32, 0.72) 60%, rgba(10, 22, 32, 0.35)); }
.title-in { position: relative; display: grid; gap: 18px; padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(44px, 7vw, 96px); }
.title-block h1 { max-width: 18ch; } .title-block.article h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 24ch; text-transform: none; line-height: 1.05; }
.title-block .lede { color: #d6e2e9; }
.title-block .kick { color: var(--light); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--on-dark-muted); } .crumbs a { color: var(--on-dark-muted); }

/* Tiles, ticks, steps, big fact */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles.onDark { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles.onDark { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 520px) { .tiles, .tiles.onDark { grid-template-columns: minmax(0, 1fr); } }
.tile { display: grid; gap: 6px; align-content: start; padding: 20px 20px 22px; background: var(--tint); border-top: 4px solid var(--tone); }
.tile .mono { color: var(--muted); } .tile b { font-family: var(--display); font-size: 1.12rem; font-stretch: 108%; } .tile span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.tiles.onDark .tile { background: var(--ink-2); border-top-color: var(--light); } .tiles.onDark .tile b { color: #fff; } .tiles.onDark .tile span { color: var(--on-dark-muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: 0; }
.ticks li { padding: 18px 0 18px 44px; border-bottom: 1px solid #25404f; position: relative; font-size: 1.12rem; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.55em; width: 22px; height: 2px; background: var(--light); }
.ticks.dark-text li { border-bottom-color: var(--line); } .ticks.dark-text li::before { background: var(--water); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 28px 24px 8px 0; border-top: 3px solid var(--text); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--water); }
.steps li:nth-child(2)::before { color: var(--rain); } .steps li:nth-child(3)::before { color: var(--light); } .steps li:nth-child(4)::before { color: var(--space); }
.steps b { font-family: var(--display); font-size: 1.3rem; font-stretch: 108%; text-transform: uppercase; } .steps span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } } @media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.bigfact { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.bigfact i { font-style: normal; font-family: var(--display); font-weight: 800; font-stretch: 122%; font-size: clamp(4.5rem, 12vw, 8.5rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--tone); }
.bigfact span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.deflist { display: grid; margin: 0; border-top: 1px solid var(--line); }
.deflist div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; } .deflist dd { margin: 0; }
@media (max-width: 520px) { .deflist div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.nextp { display: grid; gap: 8px; padding: 30px 28px; background: var(--tone); color: var(--tone-ink); text-decoration: none; transition: transform 0.25s; } .nextp:hover { transform: translateX(8px); }
.nextp b { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1.05; }

/* Article cards and lists */
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .acards { grid-template-columns: minmax(0, 1fr); } }
.acard { display: grid; gap: 12px; align-content: start; padding: 26px 24px 28px; background: var(--tint); border-top: 5px solid var(--tone); text-decoration: none; color: var(--text); transition: transform 0.25s, background 0.25s; }
.acard:hover { transform: translateY(-6px); background: #e3e9eb; }
.acard .mono { color: var(--muted); } .acard b { font-family: var(--display); font-size: 1.28rem; line-height: 1.15; font-stretch: 106%; } .acard span { color: var(--muted); font-size: 0.97rem; } .acard .more { color: var(--water); }
.posts { display: grid; border-top: 2px solid var(--text); }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post .mono { color: var(--muted); } .post h3 { font-size: 1.5rem; } .post h3 a { color: var(--text); text-decoration: none; } .post h3 a:hover { color: var(--water); } .post p { color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .post { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* CTA band */
.cta-band { background: var(--water); color: #fff; background-image: linear-gradient(#ffffff14 1px, transparent 1px), linear-gradient(90deg, #ffffff14 1px, transparent 1px); background-size: 36px 36px; }
.cta-in { display: grid; gap: 20px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.cta-band h2 { font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 0.92; letter-spacing: -0.03em; font-stretch: 118%; }
.cta-band p { font-size: 1.2rem; max-width: 46ch; }
.cta-band .btn.outline:hover { color: var(--water); }

/* Filters, placeholders, forms */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 2px solid var(--text); background: transparent; padding: 10px 16px; font: 600 0.92rem var(--body); color: var(--text); cursor: pointer; transition: background 0.2s, color 0.2s; }
.filters button:hover { background: var(--tint); } .filters button[aria-pressed="true"] { background: var(--text); color: #fff; }
[hidden] { display: none !important; }
.ph { background: var(--flag-bg); border: 1px dashed var(--flag-line); color: var(--flag-ink); padding: 2px 8px; font-size: 0.92em; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } @media (max-width: 620px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; } .field label { font-weight: 600; font-size: 0.95rem; } .hint { font-size: 0.86rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea { font: 400 1rem var(--body); color: var(--text); background: #fff; border: 2px solid #8a98a3; padding: 12px 13px; width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--water); outline: 0; box-shadow: 0 0 0 3px #1f6fd633; }
textarea { min-height: 150px; resize: vertical; } input[type="file"] { font: 400 0.95rem var(--body); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.95rem; } .check input { width: 18px; height: 18px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border: 2px solid var(--line); background: var(--tint); } .status.ok { border-color: var(--ok); color: var(--ok); background: #f0f8f3; } .status.err { border-color: var(--err); color: var(--err); background: #fbf1f1; }

/* Footer */
.site-foot { background: var(--ink); color: #c9d7df; font-size: 0.95rem; }
.site-foot a { color: #fff; text-decoration: none; } .site-foot a:hover { color: var(--light); }
.foot-word { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(4rem, 17vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; color: #14283700; -webkit-text-stroke: 1px #2c4a5e; padding-top: 48px; user-select: none; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 36px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } } @media (max-width: 520px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
.site-foot h2 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); font-weight: 500; margin-bottom: 12px; font-stretch: 100%; line-height: 1.4; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; } .site-foot address { font-style: normal; display: grid; gap: 6px; }
.foot-base { border-top: 1px solid #1d3242; padding: 16px 0 22px; color: #8fa5b2; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Chat */
.chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--light); color: #1a1300; border: 0; padding: 14px 20px; font: 700 0.95rem var(--body); cursor: pointer; box-shadow: 0 8px 24px rgba(10, 22, 32, 0.35); transition: transform 0.2s; }
.chat-btn:hover { transform: translateY(-3px); }
.chat { position: fixed; right: 18px; bottom: 78px; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 100px)); background: #fff; color: var(--text); border: 2px solid var(--ink); box-shadow: 0 16px 48px rgba(10, 22, 32, 0.4); display: flex; flex-direction: column; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ink); color: #fff; }
.chat-top b { font-family: var(--display); font-stretch: 110%; } .chat-top button { background: none; border: 1px solid #3a566b; padding: 4px 10px; cursor: pointer; font: 500 0.85rem var(--body); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 180px; }
.msg { padding: 9px 12px; font-size: 0.94rem; line-height: 1.45; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--tint); justify-self: start; } .msg.me { background: var(--water); color: #fff; justify-self: end; } .msg.person { background: #f0f8f3; border: 1px solid var(--ok); justify-self: start; }
.msg.note { font-size: 0.84rem; color: var(--muted); max-width: 100%; padding: 0; }
.msg small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 3px; }
.chat-lead { border-top: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; background: var(--tint); } .chat-lead .mono { color: var(--muted); } .chat-lead input { padding: 8px 10px; font-size: 0.92rem; }
.chat-lead button, .chat-form button { background: var(--water); color: #fff; border: 0; padding: 10px 14px; font: 600 0.9rem var(--body); cursor: pointer; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); } .chat-form input { padding: 9px 10px; font-size: 0.95rem; }
.chat-fine { padding: 0 14px 10px; font-size: 0.76rem; color: var(--muted); }
@media (max-width: 480px) { .chat { right: 12px; bottom: 72px; } .chat-btn { right: 12px; bottom: 12px; } }

.bigfact.tone-light i { color: #b87400; } .steps li:nth-child(3)::before { color: #c07c00; }

/* Logo */
.brand { align-items: center; padding: 8px 0; }
.logo { height: 52px; width: auto; display: block; color: #fff; }
.logo-sub { fill: var(--on-dark-muted); }
.foot-logo { padding-top: 56px; } .foot-logo .logo { height: clamp(120px, 22vw, 260px); color: #2c4a5e; } .foot-logo .logo-sub { fill: #223a4b; }
@media (max-width: 480px) { .logo { height: 40px; } }

.chat-check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; } .chat-check input { width: 17px; height: 17px; }

.chat { max-height: min(660px, calc(100vh - 96px)); overflow: hidden; } .chat-log { min-height: 96px; } .chat-lead { gap: 6px; padding: 10px 14px; } .chat-fine { padding-bottom: 12px; }
