/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-wght-normal.DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-ext-wght-normal.DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-wght-normal.CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-vietnamese-wght-normal.CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-ext-wght-normal.DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* jetbrains-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* jetbrains-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* jetbrains-mono-greek-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* jetbrains-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  --navy: #0b2a4a;
  --navy-deep: #061b31;
  --cyan: #00c2c7;
  --steel: #1e5f8c;
  --slate: #8a9ba8;
  --mist: #f4f6f8;
  --tint: #e6fafa;
  --white: #ffffff;
  --ink: #10243a;
  --muted: #607487;
  --line: rgba(11, 42, 74, 0.16);
  --line-strong: rgba(11, 42, 74, 0.45);
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-cyan: rgba(0, 194, 199, 0.22);
  --text-dark-soft: rgba(255, 255, 255, 0.72);
  --text-dark-dim: rgba(255, 255, 255, 0.55);
  --gutter: clamp(20px, 6.67vw, 96px);
  --ease: cubic-bezier(0.22, 0.75, 0.15, 1);
  --font-sans: "Inter Variable", Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Controls: inputs, selects, textareas */
  --control-h: 48px;
  --control-h-sm: 40px;
  --control-px: 14px;
  --control-radius: 0;
  --control-bg: var(--white);
  --control-text: var(--ink);
  --control-placeholder: var(--slate);
  --control-border: rgba(11, 42, 74, 0.35);
  --control-border-hover: rgba(11, 42, 74, 0.6);
  --control-border-focus: var(--cyan);
  --control-disabled-bg: var(--mist);
  --control-disabled-text: var(--slate);
  --focus-ring: 0 0 0 3px rgba(0, 194, 199, 0.35);

  /* Choice controls: checkbox, radio */
  --check-size: 18px;
  --check-mark: 10px;
  --check-border: rgba(11, 42, 74, 0.45);
  --check-border-on: var(--navy);
  --check-fill: var(--cyan);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");

  /* Dropdown menus (customizable select) */
  --menu-bg: var(--white);
  --menu-border: var(--navy);
  --menu-shadow: 0 16px 40px rgba(6, 27, 49, 0.18);
  --menu-item-py: 10px;
  --menu-item-hover: var(--tint);
  --menu-item-selected: var(--navy);
  --menu-item-selected-text: var(--white);

  /* Buttons */
  --btn-h: 56px;
  --btn-h-sm: 40px;
  --btn-px: 28px;
  --btn-px-sm: 18px;
  --btn-radius: 0;
  --btn-font: 600 17px/1 var(--font-sans);
  --btn-font-sm: 600 14px/1 var(--font-sans);
  --btn-primary-bg: var(--cyan);
  --btn-primary-bg-hover: #2fd0d4;
  --btn-primary-text: var(--navy-deep);
  --btn-outline-border: rgba(255, 255, 255, 0.5);
  --btn-outline-border-hover: var(--white);
  --btn-outline-text: var(--white);
  --btn-outline-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-navy-bg: var(--navy);
  --btn-navy-bg-hover: var(--steel);
  --btn-navy-text: var(--white);
  --btn-disabled-opacity: 0.45;

  --brand-logo-primary: url("/brand/datakeel-logo.svg");
  --brand-logo-primary-aspect-ratio: 2816 / 1504;
  --brand-emblem-primary: url("/brand/datakeel-emblem.svg");
  --brand-emblem-primary-aspect-ratio: 494 / 627.75;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--navy-deep); }
[id] { scroll-margin-top: 100px; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.shell { width: min(1248px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type ---------- */
h1 { font-size: clamp(44px, 5.3vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.05vw, 44px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.22; letter-spacing: -0.012em; }
.lead { max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); }
.sheet--dark .lead, .sheet--deep .lead, .sheet--glow .lead { color: var(--text-dark-soft); }
.caption { font-size: 14px; color: var(--slate); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.kicker::before { content: ""; flex: none; width: 38px; height: 4px; background: var(--cyan); }
.kicker--dark { color: rgba(255, 255, 255, 0.68); }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font: var(--btn-font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: var(--btn-disabled-opacity); cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--btn-primary-bg-hover); }
.btn--outline { border-color: var(--btn-outline-border); background: transparent; color: var(--btn-outline-text); }
.btn--outline:hover { border-color: var(--btn-outline-border-hover); background: var(--btn-outline-bg-hover); }
.btn--navy { background: var(--btn-navy-bg); color: var(--btn-navy-text); }
.btn--navy:hover { background: var(--btn-navy-bg-hover); }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.btn--small { height: var(--btn-h-sm); padding: 0 var(--btn-px-sm); font: var(--btn-font-sm); }
.btn--block { width: 100%; }

.link-underline {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(11, 42, 74, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-underline:hover { color: var(--steel); border-color: var(--steel); }
.link-underline--cyan { color: var(--cyan); border-color: rgba(0, 194, 199, 0.5); }
.link-underline--cyan:hover { color: var(--white); border-color: var(--white); }
.sheet--glow .link-underline, .sheet--deep .link-underline { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.sheet--glow .link-underline:hover, .sheet--deep .link-underline:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Sheets (sections) ---------- */
.sheet { position: relative; padding-block: clamp(64px, 7.2vw, 104px); }
.sheet--glow {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 10%, rgba(0, 194, 199, 0.18), transparent 25%),
    linear-gradient(145deg, #0b2a4a 0%, #071f38 68%, #061b31 100%);
}
.sheet--deep { color: var(--white); background: var(--navy-deep); }
.sheet--mist { color: var(--ink); background: var(--mist); }
.sheet--white { color: var(--ink); background: var(--white); }
.sheet--joined { padding-top: 0; }
.sheet--mist h2, .sheet--white h2, .sheet--mist h3, .sheet--white h3 { color: var(--navy); }

.section-head { margin-bottom: 36px; padding-top: 40px; border-top: 1px solid var(--navy); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); gap: 24px; align-items: end; margin-bottom: 40px; }
.section-head--split .lead { grid-column: 3; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.split__lead { grid-column: span 4; display: flex; flex-direction: column; }
.split__lead .lead { margin-top: 20px; max-width: 360px; font-size: 17px; }
.split__body { grid-column: 6 / span 7; }

/* ---------- Header ---------- */
.site-header, .menu__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 84px;
  color: var(--white);
  background: rgba(6, 27, 49, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-cyan);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 56px; width: auto; }
.site-header__aside { display: flex; align-items: center; gap: 24px; margin-left: auto; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--btn-radius);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.menu-toggle svg { flex: none; color: var(--cyan); }
.menu-toggle:hover { border-color: rgba(255, 255, 255, 0.6); }
.menu-toggle--close { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.menu-toggle--close svg { color: var(--navy-deep); }


/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 30; overflow-y: auto; color: var(--white); background: var(--navy-deep); }
.menu__bar { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; padding-block: 64px; }
.menu__nav { grid-column: span 7; display: flex; flex-direction: column; }
.menu__group { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, 0.16); opacity: 0; transform: translateY(14px); animation: rise 0.6s var(--ease) forwards; animation-delay: calc(0.05s + var(--i, 0) * 0.05s); }
.menu__sub { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0 0 18px; list-style: none; }
.menu__sub a { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.72); border-bottom: 1px solid transparent; }
.menu__sub a:hover { color: var(--cyan); border-bottom-color: rgba(0, 194, 199, 0.5); }
.menu__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.menu__item:hover { color: var(--cyan); }
.menu__label { white-space: nowrap; }
.menu__item small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.45); }
.menu__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 28px; padding-top: 22px; opacity: 0; animation: fade 0.6s ease-out 0.35s forwards; }
.menu__aside div { display: flex; flex-direction: column; gap: 6px; }
.menu__aside span { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.menu__aside a { font-size: 20px; font-weight: 500; }
.menu__aside a:hover { color: var(--cyan); }
.menu__aside p { margin-top: 8px; font-size: 15px; color: var(--text-dark-soft); }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 96px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hero__copy { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; padding-top: 24px; }
.hero__copy .kicker { margin-bottom: 0; }
.hero__copy h1 { color: var(--white); }
.hero__brand { display: block; margin-bottom: 12px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-dark-soft); }
.hero__copy .lead { max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__actions .link-underline { font-size: 17px; }
.hero__drawing { position: relative; grid-column: span 5; display: flex; justify-content: flex-end; }
.plan { width: 100%; max-width: 560px; height: auto; }
.plan__labels text { font-family: var(--font-mono); font-size: 11px; }

.title-block {
  display: grid;
  grid-template-columns: auto auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.title-block span { padding: 6px 12px; border-right: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.title-block span:nth-child(2n) { border-right: 0; }
.title-block span:nth-last-child(-n + 2) { border-bottom: 0; }
.title-block--sheet { position: absolute; right: 0; bottom: -64px; }
.title-block--note { grid-template-columns: auto auto minmax(180px, 240px); }
.title-block--note span:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.35); }
.title-block--note span:nth-last-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.title-block--note .title-block__note { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; padding: 8px 12px; border: 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.title-block--note span:nth-child(3) { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.title-block--note span:nth-child(4) { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.title-block--note span:nth-child(5), .title-block--note span:nth-child(6) { border-bottom: 0; }

/* ---------- Directions ---------- */
.directions { padding-top: 72px; }
.directions h2 { max-width: 720px; margin-bottom: 40px; color: var(--white); }
.sheer { width: 100%; height: auto; aspect-ratio: 1248 / 120; }
.directions__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.direction { display: flex; flex-direction: column; gap: 14px; padding-right: 24px; }
.direction h3 { font-size: 24px; color: var(--white); }
.direction p { font-size: 16px; color: rgba(255, 255, 255, 0.68); }
.direction .link-underline { margin-top: 8px; align-self: flex-start; }
.directions__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-cyan); }
.directions__path { max-width: 640px; font-size: 18px; color: var(--white); }
.directions__support { font-size: 15px; color: var(--text-dark-dim); }

/* ---------- Who ---------- */
.who__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.who__item { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px 0; }
.who__item:nth-child(2n) { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.who__item:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
.who__item::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--cyan); }
.who__item:nth-child(2n)::before { left: 24px; }
.who__item p { font-size: 15px; color: var(--muted); }
.who__item .link-underline { margin-top: 6px; align-self: flex-start; font-size: 14px; }

/* ---------- Cases as a specification table ---------- */
.spec { display: flex; flex-direction: column; }
.spec__head, .spec__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.spec__head { padding-bottom: 10px; border-bottom: 2px solid var(--navy); font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--steel); }
.spec__row { padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.spec__row[hidden] { display: none; }
.spec__client { display: flex; flex-direction: column; gap: 8px; }
.spec__client h3 { font-size: 24px; }
.spec__client h3 a:hover { color: var(--steel); }
.spec__client span { font-size: 13px; color: var(--muted); }
.spec__row p { font-size: 16px; color: var(--ink); }
.spec__result { font-size: 17px; font-weight: 600; color: var(--navy); }
.cases .caption { margin-top: 36px; }

/* ---------- Products ---------- */
.products { overflow: clip; min-height: 720px; }
.products__emblem { position: absolute; left: -110px; bottom: -220px; height: 900px; width: auto; max-width: none; opacity: 0.96; }
.products__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.products__copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.products__copy h2 { color: var(--white); }
.products__copy .rule-list__item { grid-template-columns: 20px minmax(0, 1fr); }
.products__copy .rule-list__item p { grid-column: 2; }
.products__note { font-size: 15px; color: rgba(255, 255, 255, 0.62); }
.products__note strong { color: var(--white); font-weight: 600; }
.products .btn--outline { align-self: flex-start; }

/* ---------- Rule lists (B) ---------- */
.rule-list { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.rule-list--dark { border-top-color: rgba(255, 255, 255, 0.6); }
.rule-list__item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.rule-list--dark .rule-list__item { border-bottom-color: rgba(255, 255, 255, 0.25); }
.rule-list__item::before { content: ""; width: 12px; height: 12px; margin-top: 9px; background: var(--cyan); }
.rule-list__item h3 { font-size: 22px; }
.rule-list--dark h3 { color: var(--white); }
.rule-list__item p { font-size: 16px; color: var(--muted); }
.rule-list--dark p { color: var(--text-dark-soft); }

/* ---------- Process ---------- */
.process__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--navy); }
.process__steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 44px 16px 0 0; }
.process__steps li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--cyan); }
.process__steps li::after { content: ""; position: absolute; left: 5px; top: -17px; width: 1.5px; height: 32px; background: rgba(11, 42, 74, 0.5); }
.process__index { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.process__steps h3 { font-size: 19px; line-height: 1.25; }
.process__steps p { font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.contact__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.contact__copy h2 { color: var(--white); text-wrap: balance; }
.contact__copy .lead { max-width: 440px; font-size: 17px; }
.contact__rows { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.contact__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact__row span { padding-top: 3px; font-size: 14px; color: var(--text-dark-dim); }
.contact__row a { font-size: 18px; font-weight: 500; }
.contact__row a:hover { color: var(--cyan); }
.contact__row--requisites p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-dark-soft); }

.contact-form { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--white); color: var(--ink); }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--navy); }
.field small { font-size: 14px; font-weight: 400; color: var(--slate); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  padding: 0 var(--control-px);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: var(--control-bg);
  color: var(--control-text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:not([type="checkbox"]):not([type="radio"]), .field select { height: var(--control-h); }
.field textarea { padding: 12px var(--control-px); line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--control-placeholder); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--control-border-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--control-border-focus); box-shadow: var(--focus-ring); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--control-disabled-bg); color: var(--control-disabled-text); cursor: not-allowed; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }

/* Select: styled closed state everywhere, styled open menu where the browser supports customizable select */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230b2a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--control-px) center;
  background-size: 16px 16px;
  cursor: pointer;
}
.field select:has(option[value=""]:checked) { color: var(--control-placeholder); }
@supports (appearance: base-select) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select { display: flex; align-items: center; line-height: 1.2; }
  .field select::picker(select) { line-height: 1.3; }
  .field select::picker-icon { display: none; }
  .field select::picker(select) {
    margin-top: 4px;
    padding: 6px 0;
    border: 1px solid var(--menu-border);
    border-radius: var(--control-radius);
    background: var(--menu-bg);
    box-shadow: var(--menu-shadow);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
  }
  .field select option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--menu-item-py) var(--control-px);
    color: var(--ink);
    cursor: pointer;
  }
  .field select option::checkmark { content: ""; order: -1; width: 14px; height: 14px; background: transparent; }
  .field select option:hover, .field select option:focus-visible { background: var(--menu-item-hover); outline: none; }
  .field select option:checked { background: var(--menu-item-selected); color: var(--menu-item-selected-text); }
  .field select option:checked::checkmark { background: var(--check-fill); -webkit-mask: var(--check-icon) center / contain no-repeat; mask: var(--check-icon) center / contain no-repeat; }
  .field select option[value=""] { color: var(--control-placeholder); }
  .field select option[value=""]:checked { color: var(--menu-item-selected-text); }
}

/* Checkbox and radio: the brand data node */
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: inline-grid;
  place-content: center;
  width: var(--check-size);
  height: var(--check-size);
  margin: 0;
  border: 1px solid var(--check-border);
  background: var(--control-bg);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before, input[type="radio"]::before { content: ""; width: var(--check-mark); height: var(--check-mark); background: var(--check-fill); transform: scale(0); transition: transform 0.15s var(--ease); }
input[type="checkbox"]::before {
  width: 14px;
  height: 14px;
  -webkit-mask: var(--check-icon) center / contain no-repeat;
  mask: var(--check-icon) center / contain no-repeat;
}
input[type="radio"]::before { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--control-border-hover); }
input[type="checkbox"]:checked, input[type="radio"]:checked { border-color: var(--check-border-on); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; border-color: var(--control-border-focus); box-shadow: var(--focus-ring); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { background: var(--control-disabled-bg); cursor: not-allowed; }

.field--check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.field--check input { margin-top: 2px; }
.field--check a { color: var(--navy); text-decoration: underline; }
.choice-group { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.choice-group .field--check { font-size: 15px; color: var(--ink); }

.contact-form .btn { height: 56px; border: 0; cursor: pointer; }

/* Contact page: drawing on the right, form behind a cut */
.contact__aside { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 40px; }
.contact__aside .page-hero__drawing { gap: 20px; }
.contact__aside .plan { max-width: 480px; }
.cut { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.cut--center { max-width: 760px; margin: 0 auto; border-top: 0; }
.contact__cutrow { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.contact--page .contact__row:last-child { border-bottom: 0; }
.cut__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; color: var(--white); }
.cut__bar::-webkit-details-marker { display: none; }
.cut__label { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; }
.cut__hint { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.cut__icon { position: relative; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.35); }
.cut__icon::before, .cut__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--cyan); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease); }
.cut__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cut[open] .cut__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.cut__bar:hover .cut__icon { border-color: var(--cyan); }
.cut__bar:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cut__body { padding-bottom: 8px; }
.cut__body .contact-form { grid-column: auto; }
@supports (interpolate-size: allow-keywords) {
  .cut { interpolate-size: allow-keywords; }
  .cut::details-content { height: 0; overflow: clip; transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .cut[open]::details-content { height: auto; }
}



/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; color: rgba(255, 255, 255, 0.62); background: var(--navy-deep); border-top: 1px solid var(--line-cyan); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.site-footer__brand p { font-size: 15px; color: var(--white); }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.site-footer__nav a { color: var(--text-dark-soft); }
.site-footer__nav a:hover { color: var(--cyan); }
.title-block--footer { grid-template-columns: auto auto auto auto; justify-content: start; }
.title-block--footer span { padding: 8px 14px; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.35); }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: 72px 88px; }
.page-hero--compact { padding-block: 56px 64px; }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.page-hero__copy { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; }
.page-hero__copy .kicker { margin-bottom: 0; }
.page-hero__copy h1 { color: var(--white); font-size: clamp(38px, 4.4vw, 64px); text-wrap: balance; }
.page-hero__copy .lead { max-width: 640px; }
.page-hero__sheet { grid-column: 10 / span 3; justify-self: end; }
.page-hero--drawing .page-hero__grid { align-items: start; }
.page-hero--drawing .page-hero__copy { grid-column: span 7; padding-top: 16px; }
.page-hero__drawing { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.page-hero__drawing .plan { width: 100%; max-width: 520px; }
.page-hero__drawing .title-block--sheet { position: static; }
.page-hero--left .page-hero__drawing { order: -1; grid-column: 1 / span 5; align-items: flex-start; }
.page-hero--left .page-hero__copy { grid-column: 7 / span 6; }
.page-hero--compact .page-hero__drawing .plan { max-width: 400px; }
.caption--dark { color: var(--text-dark-dim); }
.dark-title { color: var(--white); }
.section-head--first { border-top: 0; padding-top: 0; }
.sheet--deep .lead { color: var(--text-dark-soft); }

.cta-band__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 720px; color: var(--white); text-wrap: balance; }
.cta-band .lead { margin-top: 16px; }
.cta-band .btn { flex: none; }

.node-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.node-list li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line-strong); font-size: 17px; line-height: 1.5; }
.node-list li::before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 12px; background: var(--cyan); }

.rule-list--stack .rule-list__item { grid-template-columns: 20px minmax(0, 1fr); }
.rule-list--stack .rule-list__item p { grid-column: 2; }
.rule-list__item--result p { font-size: 17px; font-weight: 600; color: var(--navy); }
.rule-list .caption { padding-top: 20px; }

.dir-list__item { grid-template-columns: 20px 64px minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; color: inherit; }
.dir-list__item h3 { font-size: 26px; }
.dir-list__item:hover h3 { color: var(--steel); }
.dir-list__consulting { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; padding-top: 28px; font-size: 16px; color: var(--muted); }
.dir-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.dir-link { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--muted); }
.dir-link strong { font-size: 19px; font-weight: 700; letter-spacing: -0.012em; color: var(--navy); }
.dir-link:hover strong { color: var(--steel); }

.platforms { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.platforms__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.platforms__row h3 { font-size: 20px; }
.platforms__row p { font-size: 16px; color: var(--muted); }

.price-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-tile { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 8px; border-top: 2px solid var(--navy); }
.price-tile span { font-size: 15px; color: var(--muted); }
.price-tile strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.price-tile small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.price-teaser__offer { margin-top: 20px; max-width: 640px; }
.price-disclaimer, .process__disclaimer { margin-top: 24px; max-width: 760px; }
.price-teaser__link { display: inline-block; margin-top: 28px; }
.price-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.price-terms .price-tile strong { font-size: 22px; }
.spec--rates .spec__head, .spec--rates .spec__row { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr); }
.spec--rates .spec__row h3 { font-size: 20px; }
.spec--projects .spec__row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr); }
.spec--projects .spec__row:first-child { border-top: 2px solid var(--navy); }
.spec--projects .spec__client h3 { font-size: 22px; }
.spec--projects .spec__client .process__index { font-size: 12px; }

.filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { margin-right: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--navy); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filters__empty { margin-bottom: 24px; }

.facts { margin: 0; display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.facts__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--navy); }

.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.about-col h2 { margin-bottom: 24px; }
.process__steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact__title { font-size: clamp(34px, 3.05vw, 44px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; color: var(--white); text-wrap: balance; }

/* ---------- Icons ---------- */
.icon { flex: none; }
.icon__node { fill: var(--cyan); }
.menu__item { align-items: center; }
.menu__icon { width: 28px; height: 28px; color: rgba(255, 255, 255, 0.55); transition: color 0.2s var(--ease); }
.menu__icon { flex-shrink: 0; }
.menu__item:hover .menu__icon { color: var(--cyan); }
.menu__item small { align-self: baseline; margin-top: 0.6em; }
.title-block--footer span:last-child { border-right: 0; }
.title-block--footer span:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, 0.35); }

/* ---------- Drawing annotations ---------- */
/* Leader: a callout line from a data node, the way a drawing points at a part. Replaces arrow glyphs on links. */
.leader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.leader::before {
  content: "";
  flex: none;
  width: 22px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12' fill='none'%3E%3Crect width='4' height='4' fill='%2300c2c7'/%3E%3Cpath d='M3 3l6 7h13' stroke='%2300c2c7' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.leader:hover { color: var(--steel); border-bottom-color: currentColor; }
.sheet--deep .leader:hover, .sheet--glow .leader:hover { color: var(--cyan); }

.meta-cells { display: flex; flex-direction: column; width: 100%; max-width: 280px; margin: 4px 0 0; border: 1px solid var(--line-strong); }
.meta-cells__cell { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-bottom: 1px solid var(--line-strong); }
.meta-cells__cell:last-child { border-bottom: 0; }
.meta-cells dt, .meta-cells dd { padding: 5px 8px; }
.meta-cells dt { border-right: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; font-weight: 600; line-height: 1.7; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.meta-cells dd { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.meta-cells--dark { border-color: rgba(255, 255, 255, 0.35); }
.meta-cells--dark .meta-cells__cell { border-color: rgba(255, 255, 255, 0.35); }
.meta-cells--dark dd { color: var(--white); }

/* ---------- Hero: directions on the first screen ---------- */
.hero__dirs { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; max-width: 560px; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero__dir { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-dark-soft); transition: color 0.2s var(--ease); }
.hero__dir .icon { color: rgba(255, 255, 255, 0.55); transition: color 0.2s var(--ease); }
.hero__dir:hover, .hero__dir:hover .icon { color: var(--cyan); }
.direction__icon { color: rgba(255, 255, 255, 0.6); }
.direction__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.direction__links .link-underline { margin-top: 0; }
.direction .leader { color: var(--text-dark-soft); }

/* ---------- Architecture figure ---------- */
.scheme-wrap { margin-top: clamp(48px, 5vw, 72px); }
.scheme { position: relative; margin: 0; padding: 40px 32px 0; border: 1px solid var(--line-strong); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px; background-color: var(--white); }
.scheme::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)); pointer-events: none; }
.scheme__cols { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 56px; margin: 0; padding: 0 0 40px; list-style: none; }
.scheme__col { position: relative; display: flex; flex-direction: column; gap: 14px; }
.scheme__col + .scheme__col::before { content: ""; position: absolute; left: -56px; top: calc(50% + 12px); width: 56px; height: 1.5px; background: var(--navy); }
.scheme__col + .scheme__col::after { content: ""; position: absolute; left: -6px; top: calc(50% + 7px); width: 12px; height: 12px; background: var(--cyan); }
.scheme__label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.scheme__blocks { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.scheme__block { padding: 14px 16px; border: 1px solid var(--navy); background: var(--white); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.scheme__block--core { border-width: 2px; }
.scheme__caption { position: relative; margin: 0 -32px; padding: 12px 32px; border-top: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--white); }

/* ---------- Case page extras ---------- */
.next-link { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; margin-top: clamp(48px, 5vw, 72px); padding: 28px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line-strong); color: inherit; }
.next-link__label { grid-row: span 2; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--steel); padding-top: 8px; }
.next-link__title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); transition: color 0.2s var(--ease); }
.next-link__text { font-size: 16px; color: var(--muted); }
.next-link:hover .next-link__title { color: var(--steel); }

.float-cta {
  position: fixed;
  right: max(16px, calc((100vw - 1248px) / 2 - 120px));
  bottom: 24px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 16px;
  background: var(--navy);
  border: 1px solid var(--cyan);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(6, 27, 49, 0.28);
  transition: background-color 0.2s var(--ease);
}
.float-cta:hover { background: var(--steel); }
.float-cta__node { width: 10px; height: 10px; background: var(--cyan); }
@supports (animation-timeline: scroll()) {
  .float-cta { animation: float-in linear both; animation-timeline: scroll(root); animation-range: 280px 420px; }
}
@keyframes float-in { from { opacity: 0; transform: translateY(12px); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }

/* ---------- Cases: also worked, lab teaser ---------- */
.also { margin-top: clamp(56px, 6vw, 88px); }
.also .section-head { margin-bottom: 24px; }
.also__lead { max-width: 360px; }
.also__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.also__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 7fr); gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); font-size: 15px; color: var(--muted); }
.also__row strong { font-size: 17px; color: var(--navy); }
.also__type { font-family: var(--font-mono); font-size: 13px; padding-top: 3px; color: var(--steel); }
.lab-teaser { padding-block: 48px; }
.lab-teaser__grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lab-teaser .kicker { margin-bottom: 10px; }
.lab-teaser__text { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; color: var(--white); }

/* ---------- Lab ---------- */
.lab-item__lead { gap: 20px; }
.lab-item__lead .facts { margin-top: 8px; }
.lab-item__lead .btn { align-self: flex-start; }

/* ---------- About: team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.team__aside { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; border-top: 2px solid var(--navy); }
.team__aside .link-underline { align-self: flex-start; }
.team__specs { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.team__spec { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.team__spec dt { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.team__spec dd { margin: 0; color: var(--navy); }

/* ---------- Services map ---------- */
.smap-lead { font-size: 16px; }
.smap { display: flex; flex-direction: column; gap: 32px; margin-bottom: 56px; }
.smap__stage { position: relative; width: 100%; }
.smap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.smap__hull { stroke: var(--navy); stroke-width: 1.5; }
.smap__base { stroke: var(--line-strong); stroke-width: 1.5; }
.smap__wl path { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 6 6; opacity: 0.5; transition: opacity 0.2s var(--ease), stroke 0.2s var(--ease); }
.smap__wl text, .smap__tag, .smap__keel-label { font-family: var(--font-mono); font-size: 13px; fill: var(--muted); }
.smap__frame { stroke: rgba(11, 42, 74, 0.35); stroke-width: 1.5; transition: stroke 0.2s var(--ease), stroke-width 0.2s var(--ease); }
.smap__keel { stroke: var(--cyan); stroke-width: 6; transition: stroke-width 0.2s var(--ease); }
.smap__keel-label { fill: var(--steel); font-size: 14px; }
.smap[data-dir="0"] [data-frame="0"], .smap[data-dir="1"] [data-frame="1"], .smap[data-dir="2"] [data-frame="2"], .smap[data-dir="3"] [data-frame="3"] { stroke: var(--navy); stroke-width: 3; }
.smap[data-seg="0"] [data-seg-line="0"] path, .smap[data-seg="1"] [data-seg-line="1"] path, .smap[data-seg="2"] [data-seg-line="2"] path { stroke: var(--cyan); stroke-dasharray: none; opacity: 1; }
.smap[data-seg="0"] [data-seg-line="0"] text, .smap[data-seg="1"] [data-seg-line="1"] text, .smap[data-seg="2"] [data-seg-line="2"] text { fill: var(--navy); }
.smap[data-dir="keel"] .smap__keel { stroke-width: 10; }
.smap__tab {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  padding: 8px 12px;
  transform: translateX(-50%);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.smap__tab .icon { width: 22px; height: 22px; }
.smap__tab:hover { border-color: var(--navy); }
.smap__tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.smap__node {
  position: absolute;
  width: 16px;
  height: 16px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.smap__node::before { content: ""; position: absolute; inset: -10px; }
.smap__node:hover { background: var(--tint); transform: translate(-50%, -50%) scale(1.2); }
.smap__node[aria-pressed="true"] { background: var(--cyan); border-color: var(--navy); transform: translate(-50%, -50%) scale(1.25); }
.smap__keel-hit { position: absolute; left: 14.2%; width: 69.2%; height: 22px; padding: 0; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; }
.smap__keel-hit:hover ~ .smap__svg .smap__keel { stroke-width: 10; }
.smap__panels { position: relative; padding-top: 16px; border-top: 2px solid var(--navy); }
.smap__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.smap__panel .smap__list { border-top: 0; }
.smap__panel .smap__links { grid-column: 3; flex-direction: column; align-items: flex-start; }
.smap__panel[hidden] { display: none; }
.smap__panel-head { display: flex; flex-direction: column; gap: 10px; }
.smap__panel-kicker { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.smap__panel h3 { font-size: 24px; }
.smap__panel p { font-size: 16px; color: var(--muted); }
.smap__list li { padding: 12px 0 12px 26px; font-size: 15px; }
.smap__list li::before { top: 19px; width: 10px; height: 10px; }
.smap__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.dir-list__item { grid-template-columns: 20px 48px minmax(0, 1fr) minmax(0, 1.4fr); }
.dir-list__icon { color: var(--navy); }
.dir-list__item h3 a:hover { color: var(--steel); }
.dir-list__item .leader { margin-left: 12px; }

/* ---------- Contact form: numbered fields, topic chips, drop zone, dark variant ---------- */
.field__label { display: inline-flex; align-items: baseline; gap: 10px; }
.field__num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--steel); }

.contact-form--dark { position: relative; background: rgba(6, 27, 49, 0.55); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.35); }
.contact-form--dark::before, .contact-form--dark::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--cyan); }
.contact-form--dark::before { left: -6px; top: -6px; }
.contact-form--dark::after { right: -6px; bottom: -6px; }
.contact-form--dark .field, .contact-form--dark .field__label { color: var(--white); }
.contact-form--dark .field small { color: var(--text-dark-dim); }
.contact-form--dark .field__num { color: var(--cyan); }
.contact-form--dark .field input:not([type="checkbox"]):not([type="radio"]),
.contact-form--dark .field select,
.contact-form--dark .field textarea { padding-inline: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.4); background-color: transparent; color: var(--white); }
.contact-form--dark .field textarea { padding-top: 8px; border: 1px solid rgba(255, 255, 255, 0.4); padding-inline: 12px; }
.contact-form--dark .field input::placeholder, .contact-form--dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.contact-form--dark .field input:hover, .contact-form--dark .field select:hover, .contact-form--dark .field textarea:hover { border-color: rgba(255, 255, 255, 0.7); }
.contact-form--dark .field input:focus-visible, .contact-form--dark .field select:focus-visible, .contact-form--dark .field textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 1px 0 0 var(--cyan); }
.contact-form--dark .field select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-position: right 4px center; }
.contact-form--dark .field select:has(option[value=""]:checked) { color: rgba(255, 255, 255, 0.4); }
.contact-form--dark .field--check { color: var(--text-dark-soft); }
.contact-form--dark .field--check a { color: var(--white); }
.contact-form--dark input[type="checkbox"] { background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.contact-form--dark input[type="checkbox"]:checked { border-color: var(--cyan); }

/* ---------- Ask panel ---------- */
.ask-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.ask-toggle:hover { border-color: var(--cyan); }
.menu__aside .ask-toggle { align-self: flex-start; }
.ask {
  width: min(640px, 100% - 32px);
  max-height: min(720px, 100% - 64px);
  padding: 28px;
  border: 1px solid var(--cyan);
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.ask::backdrop { background: rgba(6, 27, 49, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ask__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ask__head h2 { font-size: 24px; color: var(--white); }
.ask__close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); cursor: pointer; }
.ask__close:hover { border-color: var(--cyan); }
.ask__lead { margin-top: 8px; font-size: 15px; color: var(--text-dark-soft); }
.ask__form { display: flex; gap: 8px; margin-top: 20px; }
.ask__input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--white); font: inherit; font-size: 15px; }
.ask__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.ask__input:focus-visible { outline: none; border-color: var(--cyan); }
.ask__suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask__chip { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--text-dark-soft); font-size: 13px; cursor: pointer; }
.ask__chip:hover { border-color: var(--cyan); color: var(--white); }
.ask__result { margin-top: 24px; }
.ask__label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); }
.ask__hits { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.ask__hit { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.ask__hit strong { font-size: 16px; color: var(--white); }
.ask__hit span { font-size: 14px; color: var(--text-dark-soft); }
.ask__hit:hover strong { color: var(--cyan); }
.ask__empty { margin-top: 12px; font-size: 14px; color: var(--text-dark-soft); }
.ask__notice { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dark-dim); }

/* ---------- Pricing model ---------- */
.price-model__offer { margin-top: 20px; }

/* ---------- Motion ---------- */
.hero__copy > * { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero__copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.3s; }
.plan__hull, .plan__keel, .plan__base { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.plan__hull:nth-of-type(3) { animation-delay: 0.2s; }
.plan__hull:nth-of-type(4) { animation-delay: 0.35s; }
.plan__hull:nth-of-type(5) { animation-delay: 0.5s; }
.plan__hull:nth-of-type(6) { animation-delay: 0.65s; }
.plan__hull:nth-of-type(7) { animation-delay: 0.8s; }
.plan__base { animation-delay: 0.1s; }
.plan__keel { animation-delay: 1.1s; animation-duration: 0.9s; }
.plan__nodes rect, .plan__labels text, .title-block--sheet { opacity: 0; animation: fade 0.6s ease-out forwards; animation-delay: 1.9s; }
.plan__labels text { animation-delay: 2.1s; }
.title-block--sheet { animation-delay: 2.3s; }
/* A head without a drawing has nothing to wait for: its stamp shows right away. */
.page-hero__grid > .title-block--sheet { animation-delay: 0.2s; }
.plan__apex { transform-box: fill-box; transform-origin: center; animation: fade 0.6s ease-out 1.9s forwards, pulse 3.2s ease-in-out 2.6s infinite; }

@supports (animation-timeline: view()) {
  .reveal { opacity: 0; transform: translateY(20px); animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  .drawline__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .plan__nodes rect, .plan__labels text, .title-block--sheet, .reveal, .menu__group, .menu__aside, .float-cta { opacity: 1; transform: none; animation: none; visibility: visible; }
  .plan__hull, .plan__keel, .plan__base, .drawline__line { stroke-dashoffset: 0; animation: none; }
}

/* ---------- Responsive ---------- */
/* Tablets and foldables, 701–1100 px (phase 04): a compact desktop. Two columns stay — text and drawing side by
   side, «heading | text» sections at 5/7. Only phones (≤ 700 px, next block) collapse to one column; a Fold 7 held
   upright reports about 750 px. */
@media (max-width: 1100px) {
  .hero { padding-block: 64px 72px; }
  .hero__copy { gap: 24px; padding-top: 8px; }
  .hero__copy h1 { font-size: clamp(36px, 5vw, 52px); }
  .hero__brand { font-size: clamp(22px, 2.6vw, 30px); }
  .hero__drawing { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero .title-block--sheet { position: static; }
  .hero__dirs { grid-template-columns: 1fr; gap: 10px; }
  .page-hero { padding-block: 56px 64px; }
  .page-hero__copy h1 { font-size: clamp(34px, 4.6vw, 48px); }
  .page-hero__drawing { align-items: stretch; }
  .page-hero__drawing .plan, .hero__drawing .plan { max-width: 100%; }
  .page-hero__sheet { grid-column: 9 / span 4; }
  .title-block--note { grid-template-columns: auto minmax(0, 1fr); }
  .title-block--note span:nth-child(2n) { border-right: 0; }
  .title-block--note .title-block__note { grid-column: 1 / -1; grid-row: auto; }
  .dir-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-list__item { grid-template-columns: 20px 48px minmax(0, 1fr); }
  .dir-list__item p { grid-column: 3; }
  .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .split__lead { grid-column: span 5; }
  .split__body { grid-column: 6 / span 7; }
  .products__copy { grid-column: 5 / span 8; }
  .products__emblem { left: -200px; opacity: 0.5; }
  .contact-form { grid-column: 6 / span 7; padding: 28px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .smap__tab { max-width: calc(18.3% - 8px); padding: 6px 8px; font-size: 13px; }
  .smap__tab .icon { display: none; }
  .smap__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .smap__panel .smap__links { grid-column: 1 / -1; flex-direction: row; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .contact__row a { overflow-wrap: anywhere; }
  .process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .lead { grid-column: auto; }
}

/* Cases table on tablets: client and its stamp in one line, then task / done / result in three labelled columns. */
@media (min-width: 701px) and (max-width: 1100px) {
  .menu__body { padding-block: 32px; }
  .menu__nav { grid-column: 1 / -1; }
  .menu__item { display: grid; grid-template-columns: 28px max-content minmax(0, 1fr); }
  .menu__item small { margin-top: 0; align-self: center; line-height: 1.4; }
  .menu__sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding-left: 44px; }
  .menu__sub a { display: inline-flex; align-items: center; min-height: 36px; }
  .menu__aside { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 24px 40px; padding-top: 8px; }
  .menu__aside p { flex-basis: 100%; }
  .spec:not(.spec--rates, .spec--projects) .spec__head { display: none; }
  .spec:not(.spec--rates, .spec--projects) .spec__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
  .spec:not(.spec--rates, .spec--projects) .spec__client { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
  .spec:not(.spec--rates, .spec--projects) .spec__client .meta-cells { flex-direction: row; flex-wrap: wrap; width: auto; max-width: none; margin: 0; }
  .spec:not(.spec--rates, .spec--projects) .spec__client .meta-cells__cell { grid-template-columns: auto auto; border-bottom: 0; border-right: 1px solid var(--line-strong); }
  .spec:not(.spec--rates, .spec--projects) .spec__client .meta-cells__cell:last-child { border-right: 0; }
  .spec:not(.spec--rates, .spec--projects) .spec__row p::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--steel); }
}

@media (max-width: 700px) {
  /* One column on phones only (moved from the 1100 px block in phase 04). */
  .page-hero__copy, .page-hero--drawing .page-hero__copy, .page-hero--left .page-hero__copy { grid-column: span 12; }
  .page-hero__sheet { grid-column: span 12; justify-self: start; }
  .page-hero__drawing, .page-hero--left .page-hero__drawing { order: 1; grid-column: span 12; align-items: flex-start; }
  .page-hero__drawing .plan { max-width: 440px; }
  .split__lead, .split__body { grid-column: span 12; }
  .split__lead .lead { max-width: 560px; }
  .contact__copy, .contact-form, .contact__aside { grid-column: span 12; }
  .sheer { display: none; }
  .cta-band__grid { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .price-tiles, .price-terms, .dir-links, .about-cols, .process__steps--three { grid-template-columns: 1fr; }
  .platforms__row { grid-template-columns: 1fr; gap: 8px; }
  .spec--rates .spec__row, .spec--projects .spec__row { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .site-header, .menu__bar { height: 68px; }
  .site-header__inner { gap: 16px; }
  .site-header__logo img { height: 42px; }
  .hero { padding-block: 56px 64px; }
  .hero__copy, .hero__drawing { grid-column: span 12; }
  .hero__drawing { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 16px; }
  .hero__drawing .plan { align-self: center; }
  .plan { max-width: 420px; }
  /* On phones the title block always sits in the flow under its drawing, full width, never on top of it. */
  .title-block--sheet, .page-hero__drawing .title-block--sheet { position: static; width: 100%; transform: none; }
  .page-hero__drawing { align-items: stretch; }
  .page-hero__drawing .plan { align-self: center; }
  .hero__actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 56px; padding-block: 12px; }
  .btn--small { min-height: 40px; padding-block: 6px; }
  .products .btn--outline { width: 100%; }
  .directions__grid, .who__grid, .contact-form__row { grid-template-columns: 1fr; }
  .who__item + .who__item, .who__item:nth-child(2n) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .who__item + .who__item::before, .who__item:nth-child(2n)::before { left: 0; }
  .who__item { padding: 24px 0 16px; }
  .directions__foot { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .spec__head { display: none; }
  .spec__row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .spec__row p::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--steel); }
  .products { min-height: 0; }
  .products__copy { grid-column: span 12; }
  .products__emblem { height: 560px; left: -160px; bottom: auto; top: -120px; opacity: 0.25; }
  .rule-list__item { grid-template-columns: 20px minmax(0, 1fr); }
  .rule-list__item p { grid-column: 2; }
  .process__steps { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .process__steps li { padding: 20px 0 24px; border-top: 1.5px solid var(--navy); }
  .process__steps li::after { display: none; }
  .contact-form { padding: 24px; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .title-block--footer { grid-template-columns: 1fr 1fr; }
  .title-block--note { grid-template-columns: auto minmax(0, 1fr); }
  .title-block--note .title-block__note { grid-column: 1 / span 2; grid-row: auto; border-top: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 0; }
  .title-block--footer span { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
  .menu__nav, .menu__aside { grid-column: span 12; }
  .menu__body { padding-block: 40px; }
}



/* ---------- Responsive: new blocks ---------- */
.smap ~ .dir-list { display: none; }
/* Services map on phones (phase 04, wave 3): the hull drawing gives way to a ribbon of direction switches (the keel
   becomes the last one), and the chosen direction's card sits below. */
@media (max-width: 700px) {
  .smap { gap: 16px; margin-bottom: 40px; }
  .smap__stage { display: flex; gap: 8px; width: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; aspect-ratio: auto !important; }
  .smap__stage::-webkit-scrollbar { display: none; }
  .smap__svg, .smap__node { display: none; }
  .smap__tab, .smap__keel-hit { position: static; flex: none; display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: none; height: 44px; padding: 0 14px; transform: none; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; scroll-snap-align: start; }
  .smap__tab .icon { display: block; width: 20px; height: 20px; }
  .smap__keel-hit::after { content: attr(aria-label); }
  .smap__keel-hit:hover { border-color: var(--navy); }
  .smap[data-dir="keel"] .smap__keel-hit { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .smap__panels { padding: 20px; border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); background: var(--white); }
  .smap__panel { grid-template-columns: 1fr; gap: 16px; }
  .smap__panel h3 { font-size: 22px; }
  .smap__panel .smap__links { grid-column: auto; flex-direction: row; }
}
@media (max-width: 1100px) {
  .team { grid-template-columns: 1fr; }
  .scheme__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .scheme__col:nth-child(odd)::before, .scheme__col:nth-child(odd)::after { display: none; }
}
@media (max-width: 700px) {
  .scheme { padding: 28px 20px 0; }
  .scheme__caption { margin: 0 -20px; padding: 12px 20px; }
  .scheme__cols { grid-template-columns: 1fr; gap: 36px; }
  .scheme__col + .scheme__col::before, .scheme__col:nth-child(odd)::before { display: block; left: 24px; top: -36px; width: 1.5px; height: 36px; }
  .scheme__col + .scheme__col::after, .scheme__col:nth-child(odd)::after { display: block; left: 19px; top: -24px; }
  .scheme__col:first-child::before, .scheme__col:first-child::after { display: none; }
  .next-link { grid-template-columns: 1fr; }
  .next-link__label { grid-row: auto; padding-top: 0; }
  .also__row { grid-template-columns: 1fr; gap: 4px; }
  .lab-teaser__grid { flex-direction: column; align-items: flex-start; }
  .lab-teaser .btn { width: 100%; }
  .dir-list__item { grid-template-columns: 20px 40px minmax(0, 1fr); }
  .dir-list__item p { grid-column: 3; }
  .dir-list__item .leader { display: flex; margin: 10px 0 0; }
  .hero__dirs { grid-template-columns: 1fr; }
  .float-cta { right: 16px; bottom: 16px; }
  .site-header .ask-toggle { display: none; }
  .ask { padding: 20px; }
  .ask__form { flex-direction: column; }
  .menu__icon { width: 24px; height: 24px; }
  .menu__item small { display: none; }
}

@media (max-width: 420px) {
  .site-header__inner, .menu__bar .site-header__inner { gap: 10px; }
  .site-header__logo img { height: 36px; }
  .site-header .btn--small, .menu__bar .btn--small { padding-inline: 12px; font-size: 13px; }
  .menu-toggle { padding: 0 12px 0 10px; }
}

/* Phones: «Закрыть» is a square button with a large cross (the word stays for screen readers), which leaves the
   menu bar room to keep «Обсудить проект» on one line. */
@media (max-width: 700px) {
  .menu-toggle--close { flex: none; justify-content: center; width: 40px; padding: 0; }
  .menu-toggle--close svg { width: 22px; height: 22px; }
  .menu-toggle--close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu__bar .btn--small { white-space: nowrap; }
}

@media (max-width: 360px) {
  .menu__bar .btn--small { white-space: normal; }
}

/* ---------- Pricing: draft-mark calculator ---------- */
.calc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.calc__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.calc__tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.calc__tab:hover { border-color: var(--navy); }
.calc__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.calc__set { min-width: 0; margin: 0; padding: 0; border: 0; border-top: 2px solid var(--navy); }
.calc__set[hidden] { display: none; }
.calc__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.calc__presets { display: none; }
.calc__item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "box title price" ". desc ."; column-gap: 16px; row-gap: 4px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.calc__check { display: contents; cursor: pointer; }
.calc__check input { grid-area: box; margin-top: 3px; }
.calc__title { grid-area: title; font-size: 17px; font-weight: 700; color: var(--navy); cursor: pointer; }
.calc__desc { grid-area: desc; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.calc__item:hover .calc__title { color: var(--steel); }
.calc__price { grid-area: price; font-size: 15px; font-weight: 700; color: var(--navy); white-space: nowrap; cursor: pointer; }
.calc__more, .calc__toggle, .calc__list, .calc__cta-short { display: none; }
.calc__gauge { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line-strong); background: var(--mist); }
.calc__svg { display: block; width: 100%; height: auto; overflow: hidden; }
.calc__water { transition: transform 0.6s var(--ease); }
.calc__water-fill { fill: rgba(0, 194, 199, 0.14); }
.calc__hull-fill { fill: var(--white); }
.calc__hull { stroke: var(--navy); stroke-width: 1.5; }
.calc__keel { stroke: var(--cyan); stroke-width: 5; }
.calc__cargo { fill: rgba(11, 42, 74, 0.07); stroke: var(--navy); stroke-width: 1; }
.calc__cargo--alt { fill: rgba(30, 95, 140, 0.16); }
.calc__cargo-label { font: 500 12px var(--font-sans); fill: var(--navy); }
.calc__gauge-line { stroke: var(--navy); stroke-width: 1.5; }
.calc__tick { stroke: var(--navy); stroke-width: 1.25; }
.calc__mark { font: 600 13px var(--font-mono); fill: var(--steel); }
.calc__scale { font: 600 12px var(--font-mono); fill: var(--muted); text-anchor: end; }
.calc__wl { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 8 6; }
.calc__wl-label { font: 600 13px var(--font-mono); fill: var(--steel); }
.calc__readout { display: flex; flex-direction: column; gap: 4px; }
.calc__label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.calc__total { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.calc__monthly { font-size: 15px; color: var(--muted); }
.calc__note { margin: 0; }
.calc__cta { align-self: flex-start; }

/* ---------- Process: launch drawing ---------- */
.launch { margin-top: 8px; }
.launch__stage { position: relative; width: 100%; }
.launch__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.launch__water { fill: rgba(0, 194, 199, 0.1); }
.launch__ground { stroke: var(--line-strong); stroke-width: 1.5; }
.launch__hatch { stroke: rgba(11, 42, 74, 0.3); stroke-width: 1; }
.launch__way { stroke: var(--navy); stroke-width: 2; }
.launch__way--thin { stroke-width: 1; opacity: 0.6; }
.launch__wl { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 8 6; }
.launch__tag { font: 13px var(--font-mono); fill: var(--muted); }
.launch__num { font: 600 13px var(--font-mono); fill: var(--steel); }
.launch__hull { transition: transform 0.9s var(--ease); }
.launch__hull-body { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.launch__hull-line { stroke: var(--navy); stroke-width: 1.25; }
.launch__hull-keel { stroke: var(--cyan); stroke-width: 4; }
.launch__node, .chart__point {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.2s var(--ease);
}
.launch__node::before, .chart__point::before { content: ""; position: absolute; inset: -10px; }
.launch__node:hover, .chart__point:hover { background: var(--tint); transform: translate(-50%, -50%) scale(1.2); }
.launch__node[aria-pressed="true"], .chart__point[aria-pressed="true"] { background: var(--cyan); transform: translate(-50%, -50%) scale(1.25); }
.launch__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; border-top: 2px solid var(--navy); }
.launch__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 14px 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.25; text-align: left; cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.launch__tab:hover { color: var(--steel); }
.launch__tab[aria-selected="true"] { border-bottom-color: var(--cyan); }
.launch__panels { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.launch__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.launch__panel[hidden] { display: none; }
.launch__panel h3 { font-size: 22px; margin-bottom: 8px; }
.launch__panel p { font-size: 16px; color: var(--muted); }
.launch__label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.launch__panel .launch__cost { font-weight: 700; color: var(--navy); }
.launch__panel .leader { margin-top: 12px; }

/* ---------- Cases: nautical chart ---------- */
.chart { margin-bottom: 48px; }
.chart__stage { position: relative; width: 100%; border: 1px solid var(--line-strong); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px; background-color: var(--white); }
.chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__sounding { font: 11px var(--font-mono); fill: rgba(96, 116, 135, 0.6); }
.chart__area { transition: opacity 0.3s var(--ease); }
.chart__area.is-dim { opacity: 0.25; }
.chart__contour { fill: rgba(230, 250, 250, 0.7); stroke: var(--steel); stroke-width: 1.25; stroke-dasharray: 2 5; }
.chart__contour--deep { fill: rgba(0, 194, 199, 0.08); stroke-dasharray: 1 4; opacity: 0.8; }
.chart__area-label { font: 600 14px var(--font-mono); fill: var(--steel); }
.chart__course { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 10 6; }
.chart__rose circle { stroke: var(--steel); stroke-width: 1; }
.chart__rose path { stroke: var(--steel); stroke-width: 1; }
.chart__rose .chart__rose-dot { fill: var(--cyan); stroke: none; }
.chart__rose text { font: 600 12px var(--font-mono); fill: var(--steel); }
.chart__point.is-dim { opacity: 0.25; }
.chart__point-label { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 2px 6px; background: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--navy); pointer-events: none; }
.chart__panels { margin-top: 20px; }
.chart__panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; gap: 32px; align-items: start; padding-top: 20px; border-top: 2px solid var(--navy); }
.chart__panel[hidden] { display: none; }
.chart__panel h3 { font-size: 24px; margin: 6px 0 8px; }
.chart__panel p { font-size: 16px; color: var(--muted); }
.chart__panel-kicker { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.chart__panel .chart__result { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--navy); }

/* ---------- Lab: the rig runs down the tank on scroll ---------- */
@supports (animation-timeline: scroll()) {
  .tank-rig { animation: tank-run linear both; animation-timeline: scroll(root); animation-range: 0 45vh; }
}
/* Travel stays inside the tank walls (x 40–520) at both ends, wake included. */
@keyframes tank-run { from { transform: translateX(-90px); } to { transform: translateX(60px); } }

@media (prefers-reduced-motion: reduce) {
  .tank-rig { animation: none; }
  .calc__water, .launch__hull { transition: none; }
}

@media (max-width: 1100px) {
  .calc__grid { gap: 32px; }
  .calc__gauge { top: 92px; padding: 20px; }
}
/* Phone calculator (phase 04, wave 2): presets and directions as swipe ribbons, one-line rows with the description
   on demand, and a slim total bar that opens the chosen blocks as a bottom sheet. */
@media (max-width: 700px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .calc__form { min-width: 0; }
  .calc__presets, .calc__tabs { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 0 var(--gutter) 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .calc__presets::-webkit-scrollbar, .calc__tabs::-webkit-scrollbar { display: none; }
  .calc__presets { align-items: center; }
  .calc__presets-label { flex: none; scroll-snap-align: start; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--steel); }
  .calc__preset { flex: none; height: 36px; padding: 0 12px; border: 1px dashed var(--line-strong); background: transparent; color: var(--navy); font-size: 13px; font-weight: 600; white-space: nowrap; scroll-snap-align: start; cursor: pointer; }
  .calc__preset[aria-pressed="true"] { border: 1px solid var(--cyan); background: var(--tint); }
  .calc__tabs { margin-bottom: 16px; }
  .calc__tab { flex: none; height: 40px; padding: 0 12px; font-size: 13px; white-space: nowrap; scroll-snap-align: start; }
  .calc__tab .icon { width: 18px; height: 18px; }
  .calc__item { grid-template-columns: 20px minmax(0, 1fr) auto 36px; grid-template-areas: "box title price more" ". desc desc desc"; column-gap: 10px; row-gap: 6px; align-items: center; padding: 10px 0; }
  .calc__check input { margin-top: 0; }
  .calc__title { font-size: 15px; line-height: 1.3; }
  .calc__price { font-size: 13px; }
  .calc__desc { display: none; font-size: 13px; }
  .calc__item.is-open .calc__desc { display: block; }
  .calc__more { grid-area: more; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--steel); cursor: pointer; }
  .calc__more svg, .calc__toggle svg { stroke: currentColor; stroke-width: 1.6; transition: transform 0.2s var(--ease); }
  .calc__more[aria-expanded="true"] svg, .calc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .calc__svg { display: none; }
  .calc__gauge { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "list list list" "note note note" "readout toggle cta"; align-items: center; gap: 8px 10px; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); border: 0; border-top: 1px solid var(--line-strong); background: var(--white); box-shadow: 0 -8px 24px rgba(6, 27, 49, 0.12); }
  .calc__readout { grid-area: readout; gap: 0; min-width: 0; }
  .calc__label { overflow: hidden; font-size: 10px; letter-spacing: 0.02em; white-space: nowrap; text-overflow: ellipsis; }
  .calc__total { font-size: clamp(16px, 4.9vw, 19px); white-space: nowrap; }
  .calc__monthly { display: none; font-size: 12px; line-height: 1.3; }
  .calc__gauge.is-open .calc__monthly { display: block; }
  .calc__note { grid-area: note; display: none; font-size: 12px; }
  .calc__toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; }
  .calc__list { grid-area: list; display: none; flex-direction: column; max-height: 45vh; margin: 0; padding: 4px 0 0; overflow-y: auto; list-style: none; }
  .calc__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
  .calc__list li span:last-child { flex: none; font-weight: 700; }
  .calc__gauge.is-open .calc__list, .calc__gauge.is-open .calc__note { display: flex; }
  .calc__gauge.is-open .calc__note { display: block; }
  .calc__cta { grid-area: cta; height: 44px; padding-inline: 14px; }
  .calc__cta-long { display: none; }
  .calc__cta-short { display: inline; }
}
@media (max-width: 400px) {
  .calc__toggle { justify-content: center; width: 40px; padding: 0; border: 1px solid var(--line-strong); }
  .calc__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 700px) {
  .cut__bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .cut__label { grid-column: 1; grid-row: 1; }
  .cut__hint { grid-column: 1; grid-row: 2; }
  .cut__icon { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Case page: detailed breakdown ---------- */
.case-details { margin-top: clamp(48px, 5vw, 72px); }
.case-details .section-head { margin-bottom: 24px; }
.case-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--navy); }
.case-details__item { position: relative; padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line-strong); }
.case-details__item::before { content: ""; position: absolute; left: 0; top: 30px; width: 12px; height: 12px; background: var(--cyan); }
.case-details__item h3 { font-size: 19px; margin-bottom: 8px; }
.case-details__item p { font-size: 16px; color: var(--muted); }
@media (max-width: 700px) {
  .case-details__grid { grid-template-columns: 1fr; }
}

/* ---------- Legal: documents, footer operator line, consents, cookie banner ---------- */
.legal-doc { max-width: 820px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.legal-doc h2 { margin: 40px 0 14px; font-size: 24px; color: var(--navy); scroll-margin-top: 110px; }
.legal-doc p, .legal-doc ul { margin: 0 0 14px; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--navy); }
.legal-doc code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 5px; background: var(--mist); }
.legal-doc__date { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.site-footer__link-button { padding: 0; border: 0; background: none; color: var(--text-dark-soft); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.site-footer__link-button:hover { color: var(--cyan); }

.consents { display: flex; flex-direction: column; gap: 12px; }
.consents__req { font-style: normal; color: var(--cyan); }
.consents__hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.contact-form--dark .consents__hint { color: var(--text-dark-dim); }
.contact-form .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--cyan);
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 6px; font-size: 16px; }
.cookie-banner p { font-size: 14px; line-height: 1.5; color: var(--text-dark-soft); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cookie-banner__more { font-size: 14px; color: var(--text-dark-soft); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__more:hover { color: var(--cyan); }
@media (max-width: 700px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .cookie-banner__actions .btn { flex: 1 1 100%; }
}

/* ---------- Contact form: honeypot and send status ---------- */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--cyan); background: var(--tint); font-size: 14px; color: var(--navy); }
.form-status[data-state="error"] { border-left-color: #c0392b; background: #fdecea; }
.contact-form--dark .form-status { background: rgba(0, 194, 199, 0.12); color: var(--white); }
.contact-form--dark .form-status[data-state="error"] { background: rgba(192, 57, 43, 0.25); }

/* ---------- Questionnaires (/forms/, docs/plan/phase-01-ai-questionnaires.md) ---------- */
.qform [hidden], .qlinks [hidden] { display: none !important; }
.sheet--qform { padding-top: 56px; }
.qform { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 48px; align-items: start; }
.qform__nav { position: sticky; top: 108px; display: grid; grid-template-columns: 14px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
/* Draft marks: ticks every tenth, a longer one every half; the water and its waterline node rise with --progress. */
.qform__gauge { position: relative; grid-row: 1 / span 2; min-height: 100%; border-left: 1px solid var(--line-strong); background: repeating-linear-gradient(to top, var(--slate) 0 1px, transparent 1px 10%) left / 6px 100% no-repeat, repeating-linear-gradient(to top, var(--steel) 0 1px, transparent 1px 50%) left / 12px 100% no-repeat; }
.qform__gauge i { position: absolute; inset: auto 0 0 -1px; height: calc(var(--progress, 0) * 1%); border-top: 2px solid var(--cyan); background: rgba(0, 194, 199, 0.16); transition: height 0.4s var(--ease); }
.qform__gauge i::after { content: ""; position: absolute; top: -5px; right: -4px; width: 8px; height: 8px; background: var(--cyan); }
.qform__progress-text { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--steel); }
.qform__toc { margin: 16px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.qform__toc a { display: flex; justify-content: space-between; gap: 12px; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.qform__toc a:hover { color: var(--navy); }
.qform__toc a[aria-current] { border-left-color: var(--navy); color: var(--navy); font-weight: 600; }
.qform__toc small { flex: none; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--slate); }
.qform__toc a.is-complete small { color: var(--steel); }
.qform__toc a.is-complete small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--cyan); vertical-align: 1px; }

.qform__form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.qsection { min-width: 0; margin: 0; padding: 40px; border: 0; background: var(--white); scroll-margin-top: 108px; }
.qsection__head { float: left; display: flex; align-items: baseline; gap: 14px; width: 100%; margin: 0 0 8px; padding: 0; }
.qsection__head + * { clear: both; }
.qsection__head h2 { color: var(--navy); font-size: clamp(24px, 2.2vw, 30px); }
.qsection__note { margin: 8px 0 24px; max-width: 640px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.qsection__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qfield--wide { grid-column: 1 / -1; }
.qfield { position: relative; padding: 28px 0 0 40px; }
.qfield + .qfield { margin-top: 28px; border-top: 1px solid var(--line); }
.qsection__head + .qfield { padding-top: 16px; }
.qfield__label { display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.qfield__label .field__num { position: absolute; left: 0; }
.qfield__hint { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.qfield[aria-invalid="true"] .qfield__label { color: #c0392b; }
.qfield[aria-invalid="true"]::before { content: ""; position: absolute; left: -40px; top: 28px; bottom: 0; width: 3px; background: #c0392b; }
.qinput { display: block; width: 100%; margin-top: 14px; padding: 0 var(--control-px); border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--control-bg); color: var(--control-text); font: inherit; font-size: 16px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
input.qinput { height: var(--control-h); }
textarea.qinput { min-height: 96px; padding-block: 12px; line-height: 1.5; resize: vertical; }
.qinput:hover { border-color: var(--control-border-hover); }
.qinput:focus-visible { outline: none; border-color: var(--control-border-focus); box-shadow: var(--focus-ring); }
.qoptions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qopt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.qopt:hover { border-color: var(--navy); }
.qopt:has(> input:checked) { border-color: var(--navy); background: var(--tint); }
.qopt--other { flex: 1 1 280px; padding-block: 4px; cursor: default; }
.qopt--other label { display: inline-flex; flex: none; align-items: center; gap: 10px; cursor: pointer; }
.qopt--other:has([data-other-toggle]:checked) { border-color: var(--navy); background: var(--tint); }
.qopt--other input[type="text"] { flex: 1; min-width: 120px; height: 34px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.qopt--other input[type="text"]:focus-visible { outline: none; border-bottom-color: var(--cyan); box-shadow: 0 1px 0 0 var(--cyan); }
.qsection .field input[aria-invalid="true"] { border-color: #c0392b; }
.qform__submit { display: flex; flex-direction: column; gap: 16px; padding: 40px; background: var(--white); }
.qform__submit .field--check { font-size: 14px; }
.qform__submit .btn { align-self: flex-start; min-width: 280px; border: 0; cursor: pointer; }
.qform__submit .consents__hint { margin: 0; }
.qform__done { grid-column: 1 / -1; scroll-margin-top: 108px; padding: 56px 40px; border-left: 4px solid var(--cyan); background: var(--white); outline: none; }
.qform__done h2 { margin-bottom: 20px; color: var(--navy); }

.qlinks__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qlinks__group { margin-top: 48px; }
.qlinks__group h3 { color: var(--navy); }
.qlinks__group .caption { margin-top: 8px; max-width: 640px; }
.qlinks { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.qlinks__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.qlinks__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qlinks__meta .caption { margin: 0; }
.qlinks__title { color: var(--navy); font-size: 18px; font-weight: 700; text-decoration: none; }
.qlinks__title:hover { color: var(--steel); text-decoration: underline; }
.qlinks__url { font-family: var(--font-mono); font-size: 12px; color: var(--steel); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.qlinks__url:hover { color: var(--navy); text-decoration-color: currentColor; }
.qlinks__row .btn { flex: none; border-width: 1px; border-style: solid; cursor: pointer; }
.qlinks__note { margin-top: 20px; max-width: 640px; }
.qlinks__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.qlinks__actions .btn { border: 0; cursor: pointer; }

@media (max-width: 1100px) {
  .qform { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qform__nav { top: 84px; z-index: 5; grid-template-columns: minmax(0, 1fr); row-gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter); background: var(--mist); border-bottom: 1px solid var(--line); }
  .qform__toc { display: none; }
  .qform__gauge { grid-row: auto; min-height: 0; height: 12px; border-left: 0; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to right, var(--slate) 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat, repeating-linear-gradient(to right, var(--steel) 0 1px, transparent 1px 50%) bottom / 100% 12px no-repeat; }
  .qform__gauge i { inset: 0 auto -1px 0; width: calc(var(--progress, 0) * 1%); height: auto; border-top: 0; border-right: 2px solid var(--cyan); transition: width 0.4s var(--ease); }
  .qform__gauge i::after { top: 2px; right: -5px; }
  .qform__form { margin-top: 16px; }
  .qsection { scroll-margin-top: 150px; }
}
@media (max-width: 700px) {
  .qform__nav { top: 68px; }
  .qsection, .qform__submit { padding: 28px 20px; }
  .qform__done { padding: 40px 20px; }
  .qsection__grid, .qlinks__fields { grid-template-columns: minmax(0, 1fr); }
  .qfield { padding-left: 0; }
  .qfield__label .field__num { position: static; }
  .qfield[aria-invalid="true"]::before { left: -20px; }
  .qform__submit .btn { align-self: stretch; min-width: 0; }
  .qlinks__row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Questionnaire drawings (src/components/drawings/{Mast,Mooring,LoadLine,Crew,Bulkhead,Arrangement}Drawing) ---------- */
.dw-fade { opacity: 0; animation: fade 0.5s ease-out forwards; animation-delay: var(--d, 1.6s); }
.dw-rise { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; animation: dw-rise 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: var(--d, 1s); }
.dw-signal { opacity: 0; animation: dw-signal 3.2s ease-out infinite; animation-delay: var(--d, 2s); }
.dw-approach { animation: dw-approach 1.2s cubic-bezier(0.22, 0.75, 0.15, 1) both; }
@keyframes dw-rise { to { transform: scaleY(1); } }
@keyframes dw-signal { 0% { opacity: 0; } 15% { opacity: 0.9; } 70%, 100% { opacity: 0; } }
@keyframes dw-approach { from { transform: translateX(-56px); } to { transform: none; } }
/* Finance: the hull heels and rights itself around the keel, the inclinometer pendulum swings back to zero. */
.dw-heel { transform-box: view-box; transform-origin: 280px 372px; animation: dw-heel 2.4s cubic-bezier(0.22, 0.75, 0.15, 1) 0.6s both; }
.dw-swing { transform-box: view-box; transform-origin: 280px 36px; animation: dw-swing 2.4s cubic-bezier(0.22, 0.75, 0.15, 1) 0.6s both; }
@keyframes dw-heel { from { transform: rotate(-7deg); } 60% { transform: rotate(1.5deg); } to { transform: none; } }
@keyframes dw-swing { from { transform: rotate(7deg); } 60% { transform: rotate(-1.5deg); } to { transform: none; } }
/* Owner questionnaire: the helm turns and settles, the compass card swings onto the heading. */
.dw-turn, .dw-card { transform-box: fill-box; transform-origin: center; animation: 2.6s cubic-bezier(0.22, 0.75, 0.15, 1) 0.6s both; }
.dw-turn { animation-name: dw-turn; }
.dw-card { animation-name: dw-card; }
@keyframes dw-turn { from { transform: rotate(-80deg); } 65% { transform: rotate(8deg); } to { transform: none; } }
@keyframes dw-card { from { transform: rotate(60deg); } 65% { transform: rotate(-6deg); } to { transform: none; } }
.ga__room { fill: transparent; transition: fill 0.25s var(--ease); }
.ga__room.is-active { fill: rgba(0, 194, 199, 0.2); }
.ga__label { transition: fill 0.25s var(--ease); }
.ga__label.is-active { fill: #ffffff; }
@media (prefers-reduced-motion: reduce) {
  .dw-fade, .dw-signal { opacity: 1; animation: none; }
  .dw-rise, .dw-approach, .dw-heel, .dw-swing, .dw-turn, .dw-card { transform: none; animation: none; }
}

/* ---------- Phase 04, wave 3: phone home and services ---------- */
.phone-cta { display: none; }
@media (max-width: 700px) {
  /* Header keeps the logo and «Меню»; «Обсудить проект» moves to a slim bar at the bottom after the first screen. */
  .site-header .site-header__aside .btn { display: none; }
  .float-cta { display: none; }
  .phone-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); border-top: 1px solid var(--cyan); color: var(--white); font-size: 15px; font-weight: 600; transform: translateY(110%); transition: transform 0.3s var(--ease); }
  .phone-cta.is-shown { transform: none; }
  .phone-cta__node { width: 10px; height: 10px; background: var(--cyan); }
  .site-footer { padding-bottom: 88px; }

  /* First screen: smaller headline, the lines plan as a quiet backdrop instead of a second screen, actions in a row. */
  .hero { position: relative; overflow: hidden; padding-block: 40px 48px; }
  .hero__copy { position: relative; z-index: 1; gap: 20px; padding-top: 0; }
  .hero__copy h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .hero__brand { font-size: clamp(18px, 5vw, 22px); }
  .hero__drawing { position: absolute; top: 8px; right: -24%; z-index: 0; width: 82%; margin: 0; opacity: 0.3; pointer-events: none; }
  .hero__drawing .title-block { display: none; }

  /* Every page head works the same way: the drawing is a quiet backdrop behind the text, not a second screen. */
  .page-hero, .contact--page { position: relative; overflow: hidden; }
  .page-hero__copy, .contact--page .contact__copy { position: relative; z-index: 1; }
  .page-hero .page-hero__drawing, .contact--page .contact__aside { position: absolute; top: 16px; right: -18%; z-index: 0; width: 80%; max-width: 440px; margin: 0; opacity: 0.3; pointer-events: none; }
  .page-hero .page-hero__drawing .plan, .contact--page .contact__aside .plan { max-width: none; }
  .page-hero .title-block, .contact--page .contact__aside .title-block { display: none; }
  .hero__actions { gap: 16px 18px; }
  .hero__actions .btn { width: auto; flex: none; padding-inline: 20px; }
  .hero__actions .link-underline { white-space: nowrap; }
  .hero__dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 0; }
  .hero__dir { align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.3; }
  .hero__dir .icon { flex: none; width: 20px; height: 20px; }

  /* Stamps: one line, the explanatory note is decoration and stays on larger screens. */
  .title-block--note { grid-template-columns: auto auto auto auto; }
  .title-block--note .title-block__note { display: none; }
  .title-block--note span:nth-child(-n + 4) { border-bottom: 0; }
  .title-block--note span:nth-child(-n + 3) { border-right: 1px solid rgba(255, 255, 255, 0.35); }

  /* Swipe ribbons instead of long vertical lists; the next card peeks out to show there is more. */
  .directions__grid, .who__grid, .process__steps, .price-tiles, .spec--ribbon {
    display: flex; flex-direction: row; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .directions__grid::-webkit-scrollbar, .who__grid::-webkit-scrollbar, .process__steps::-webkit-scrollbar,
  .price-tiles::-webkit-scrollbar, .spec--ribbon::-webkit-scrollbar { display: none; }
  .directions__grid > *, .who__grid > *, .process__steps > *, .price-tiles > *, .spec--ribbon > .spec__row { flex: 0 0 min(80%, 320px); scroll-snap-align: start; }

  .direction { gap: 10px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.2); }
  .direction h3 { font-size: 21px; }
  .direction p { font-size: 15px; }

  .who__grid { border-top: 0; }
  .who__grid .who__item, .who__grid .who__item:nth-child(2n) { padding: 24px 20px 20px; border: 1px solid var(--line-strong); border-top: 2px solid var(--navy); background: var(--white); }
  .who__grid .who__item::before, .who__grid .who__item:nth-child(2n)::before { left: 20px; }

  .process__steps { margin-top: 24px; border-top: 0; }
  .process__steps li { padding: 24px 16px 8px 0; border-top: 1.5px solid var(--navy); }

  .price-tile { padding: 20px 0 8px; }

  .spec--ribbon .spec__row { gap: 12px; padding: 20px; border: 1px solid var(--line-strong); border-top: 2px solid var(--navy); background: var(--white); }
  .spec--ribbon .spec__row p:not(.spec__result) { display: none; }
  .spec--ribbon .spec__client .meta-cells { max-width: none; }

  /* Pricing tables: name and price on one line, the description below without repeated column labels. */
  .spec--rates .spec__row, .spec--projects .spec__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 16px 0; }
  .spec--rates .spec__row > :first-child, .spec--projects .spec__client { grid-column: 1; grid-row: 1; }
  .spec--rates .spec__result, .spec--projects .spec__result { grid-column: 2; grid-row: 1; font-size: 15px; text-align: right; white-space: nowrap; }
  .spec--rates .spec__row p:not(.spec__result), .spec--projects .spec__row p:not(.spec__result) { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
  .spec--rates .spec__row p::before, .spec--projects .spec__row p::before { display: none; }
  .spec--rates .spec__row h3, .spec--projects .spec__client h3 { font-size: 17px; }
  .spec--projects .spec__client { gap: 4px; }
  .price-terms { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .price-terms::-webkit-scrollbar { display: none; }
  .price-terms > * { flex: 0 0 min(70%, 260px); scroll-snap-align: start; }
}
/* The cases chart and the launch drawing stay on phones: the drawing scrolls sideways at a readable scale, the
   switches and the card below stay put; the launch replaces the plain step list as on larger screens. */
.launch ~ .process__steps { display: none; }
@media (max-width: 700px) {
  .launch, .chart { display: block; }
  .chart__scroll, .launch__scroll { margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scrollbar-width: thin; }
  .launch__scroll { padding-top: 48px; }
  .chart__stage { min-width: 720px; }
  .launch__stage { min-width: 640px; }
  .chart { margin-bottom: 32px; }
  .chart__panel, .launch__panel { grid-template-columns: 1fr; gap: 12px; }
  .chart__panel h3 { font-size: 21px; }
  .launch__tabs { display: flex; gap: 0; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .launch__tabs::-webkit-scrollbar { display: none; }
  .launch__tab { flex: 0 0 auto; max-width: 168px; padding: 12px 20px 10px 0; font-size: 15px; scroll-snap-align: start; }
  .launch__panels { padding-top: 16px; }
}
