@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
    --porcelain: #f4f6f8;
    --enamel: #ffffff;
    --ink: #1e2238;
    --ink-soft: #4d5268;
    --badge: #48518f;
    --badge-deep: #353c70;
    --galv: #b9bec9;
    --plate: #e3e6eb;
    --copper: #a8541f;
    --copper-deep: #8a4317;
    --head: "Libre Franklin", "Segoe UI", Arial, sans-serif;
    --body: "Crimson Pro", Georgia, serif;
    --max-width: 1180px;
    --radius: 4px;
    --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font-family: var(--body); font-size: 1.25rem; line-height: 1.55; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); font-weight: 800; letter-spacing: -0.022em; }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--badge); text-underline-offset: 3px; }
a:hover { color: var(--badge-deep); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; font-family: var(--head); }
.skip-link:focus { left: 8px; top: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 0; border-radius: var(--radius); background: var(--copper); color: #fff; font-family: var(--head); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease; }
.button:hover { background: var(--copper-deep); color: #fff; }
.button-ink { background: var(--ink); }
.button-ink:hover { background: #0f1224; }
.text-link { font-family: var(--head); font-size: 1rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hero-actions .text-link, .result-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* top bar */
.topbar { background: var(--ink); color: #dfe2ec; font-family: var(--head); font-size: 0.86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar-facts { display: flex; gap: 22px; align-items: center; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--enamel); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--galv); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--head); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-family: var(--head); font-size: 0.97rem; font-weight: 600; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.button):hover, .site-nav a.is-active { border-bottom-color: var(--badge); }
.nav-call { min-height: 44px; padding: 8px 16px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 14px 12px; border: 1px solid var(--galv); border-radius: var(--radius); background: var(--enamel); cursor: pointer; flex-direction: column; justify-content: space-between; font-family: inherit; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* hero */
.hero { background: var(--enamel); padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero-badge img { width: 100%; max-width: 420px; }
.lede { font-size: 1.4rem; line-height: 1.45; margin: 22px 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-note { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--galv); font-family: var(--head); font-size: 0.92rem; color: var(--ink-soft); max-width: 34em; }
.photo-run { margin: 64px 0 0; }
.photo-run-row { display: flex; gap: 6px; height: clamp(220px, 27vw, 400px); }
.photo-run-row img { height: 100%; width: auto; min-width: 0; object-fit: cover; }
.run-wide { flex: 4 1 0; }
.run-tall { flex: 2.4 1 0; }
.photo-run figcaption { font-family: var(--head); font-size: 0.9rem; color: var(--ink-soft); padding-top: 12px; padding-bottom: 18px; }

/* sections */
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0; }
.services { background: var(--badge); color: #fff; padding: 88px 0 96px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.service-list li { padding: 20px 0 18px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.service-list h3 { margin-bottom: 6px; font-size: 1.14rem; }
.service-list p { margin: 0; color: #e7e9f4; font-size: 1.15rem; line-height: 1.45; }

/* tank age reader */
.tank { padding: 96px 0; }
.tank-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "fig head" "fig tool"; column-gap: 64px; row-gap: 0; align-items: start; }
.tank-head { grid-area: head; }
.tank-tool { grid-area: tool; min-width: 0; }
.tank-figure { grid-area: fig; position: sticky; top: 104px; }
.tank-svg { width: 100%; max-width: 400px; margin: 0 auto; overflow: visible; }
.tank-svg text { font-family: var(--head); fill: var(--ink); }
.scale text { font-size: 15px; font-weight: 700; }
.scale .scale-unit { font-size: 12px; font-weight: 500; fill: var(--ink-soft); }
.scale-young { fill: #c9d0e6; }
.scale-mid { fill: #8f97c4; }
.scale-old { fill: var(--badge-deep); }
.scale-ticks line { stroke: var(--ink); stroke-width: 1.5; }
.scale-marker path { fill: var(--copper); }
.pipe { fill: var(--copper); }
.fitting { fill: #c2a35a; }
.jacket { fill: var(--enamel); stroke: var(--ink); stroke-width: 2.5; }
.jacket-top { fill: #dfe3ee; stroke: var(--ink); stroke-width: 2.5; }
.jacket-seam { fill: none; stroke: var(--galv); stroke-width: 1.5; }
.plate-face { fill: var(--plate); stroke: var(--ink); stroke-width: 1.5; }
.plate-rivet { fill: #8d93a3; }
.plate-rule { stroke: var(--ink); stroke-width: 1; }
.tank-svg .plate-brand { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.tank-svg .plate-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; }
.plate-cells rect { fill: var(--enamel); stroke: var(--ink); stroke-width: 1; }
.plate-chars text { font-size: 21px; font-weight: 800; }
.cover { fill: var(--porcelain); stroke: var(--ink); stroke-width: 1.5; }
.foot { fill: var(--ink); }
.floor { stroke: var(--ink); stroke-width: 2.5; }

.tank-intro { margin: 16px 0 30px; max-width: 34em; }
.brand-set { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.brand-set legend, .field label { display: block; padding: 0; margin-bottom: 8px; font-family: var(--head); font-size: 0.95rem; font-weight: 700; }
.brand-options { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-options label { position: relative; cursor: pointer; }
.brand-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.brand-options span { display: flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--enamel); font-family: var(--head); font-size: 0.95rem; font-weight: 600; }
.brand-options input:checked + span { background: var(--ink); color: #fff; }
.brand-options input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 3px; }
.serial-row { display: flex; align-items: flex-end; gap: 12px; }
.serial-row .field { flex: 1 1 auto; min-width: 0; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--enamel); color: var(--ink); font-family: var(--head); font-size: 1.05rem; }
.field textarea { resize: vertical; line-height: 1.4; }
#tank-serial { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
#tank-serial::placeholder { color: #9aa0b3; }
.tank-hint { margin: 12px 0 0; font-family: var(--head); font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); max-width: 40em; }
.tank-result { margin-top: 30px; padding: 24px 0 0; border-top: 2.5px solid var(--ink); }
.result-built { font-family: var(--head); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 10px; }
.result-verdict { margin-bottom: 0; max-width: 36em; }
.tank-result.is-error .result-built { color: var(--copper-deep); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.result-actions[hidden], .result-fine[hidden] { display: none; }
.result-fine { margin: 14px 0 0; font-family: var(--head); font-size: 0.86rem; color: var(--ink-soft); }
.tank-facts { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--galv); }
.tank-facts h3 { font-size: 1.3rem; margin-bottom: 12px; }
.plain-list { margin: 0 0 1em; padding-left: 1.1em; }
.plain-list li { margin-bottom: 4px; }

/* fixtures */
.fixtures { background: var(--enamel); padding: 96px 0; }
.fixtures-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.fixtures-copy h2 { margin-bottom: 8px; }
.fixtures-copy h3 { font-size: 1.3rem; margin: 34px 0 10px; }
.fixtures-copy p { max-width: 34em; }
.fixtures-copy .brand-line { font-family: var(--head); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.fixtures-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fixtures-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.fixtures-photos img:first-child, .fixtures-photos img:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* reviews */
.reviews { padding: 96px 0; }
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.review { margin: 0; padding-top: 22px; border-top: 2.5px solid var(--ink); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.32rem; line-height: 1.45; font-style: italic; margin-bottom: 18px; }
.review figcaption { font-family: var(--head); font-size: 0.92rem; font-weight: 700; }

/* faq */
.faq { background: var(--enamel); padding: 96px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-item { border-top: 1px solid var(--galv); }
.faq-item:last-child { border-bottom: 1px solid var(--galv); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--head); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 12px; width: 12px; height: 12px; margin-right: 6px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.3s ease; }
.faq-item.is-open summary::after { transform: rotate(225deg); }
.faq-item.is-open summary { color: var(--badge); }
.faq-answer { overflow: hidden; margin: 0; padding-bottom: 24px; max-width: 38em; }

/* contact */
.contact { background: var(--ink); color: #fff; padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: #dfe2ec; max-width: 32em; }
.contact-copy a { color: #fff; }
.contact-list { margin: 34px 0 0; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.contact-list dt { font-family: var(--head); font-size: 0.92rem; font-weight: 600; color: #c4c8dc; padding-top: 4px; }
.contact-list dd { margin: 0; font-family: var(--head); font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-form { background: var(--porcelain); color: var(--ink); padding: 30px; border-radius: var(--radius-lg); }
.contact-form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.contact-form .field { margin-bottom: 16px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .button { width: 100%; margin-top: 4px; }
.form-note { margin: 14px 0 0; font-family: var(--head); font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }
.form-status { margin: 0; font-family: var(--head); font-size: 0.98rem; font-weight: 700; overflow: hidden; }
.form-status.is-shown { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--copper); border-radius: var(--radius); color: var(--copper-deep); background: var(--enamel); }
.field.has-error input, .field.has-error textarea { border-color: var(--copper); border-width: 2.5px; }

/* footer */
.site-footer { background: #151829; color: #c9cddd; padding: 44px 0 110px; font-family: var(--head); font-size: 0.94rem; line-height: 1.6; }
.site-footer address { font-style: normal; margin-bottom: 16px; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }

/* simple pages */
.page-simple { background: var(--enamel); }
.page-simple main { padding: 56px 0 120px; }
.page-simple h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-simple h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.page-simple main p { max-width: 40em; }
.page-simple .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--enamel); border-bottom: 1px solid var(--galv); }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--plate); }
    .nav-call { margin-top: 14px; min-height: 50px; }
    .hero-grid, .tank-grid, .fixtures-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding-top: 36px; }
    .hero-badge img { max-width: 210px; }
    .tank-grid { grid-template-areas: "head" "fig" "tool"; row-gap: 8px; }
    .tank-figure { position: static; margin-bottom: 28px; }
    .tank-svg { max-width: 250px; }
    .review-row { grid-template-columns: 1fr; gap: 32px; }
    .services, .tank, .fixtures, .reviews, .faq, .contact { padding: 64px 0; }
}
@media (max-width: 700px) {
    body { font-size: 1.16rem; }
    .topbar-place { display: none; }
    .topbar-inner { justify-content: center; }
    .service-list { grid-template-columns: 1fr; }
    .photo-run { margin-top: 44px; }
    .photo-run-row { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
    .photo-run-row img { width: 100%; height: 100%; aspect-ratio: 1; }
    .serial-row { flex-direction: column; align-items: stretch; }
    .field-pair { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 22px 18px; }
    .contact-list div { grid-template-columns: 84px 1fr; }
    .hero-actions .button, .result-actions .button { width: 100%; }
    .lede { font-size: 1.24rem; }
}
@media (max-width: 380px) {
    .wrap { padding: 0 16px; }
    .brand-name { font-size: 1.12rem; }
    .topbar-facts { gap: 12px; font-size: 0.8rem; }
    .button { padding: 12px 14px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
