/* Palette A — «Інструмент» (owner-approved 2026-10-07).
 *
 * Petrol blue-green carries trust and competence for a buyer who arrives at a
 * used-laptop shop expecting risk; a single amber accent carries value and
 * warmth; cool neutrals keep dense specification tables readable. Brand is
 * 30% of the surface, the accent stays under 10%, and every pair below is
 * measured by tests/palette-smoke.php, not eyeballed.
 *
 * Two themes, one set of names.
 *
 * The light set is what ships today; the dark set below re-declares the same
 * token names, so a surface that flips to dark only needs the attribute — no
 * selector in the storefront CSS knows which theme is running. The dark side is
 * opt-in (`<html data-theme="dark">`), never automatic: the owner asked for a
 * dark theme later, not for a page that changes under a visitor because their
 * laptop is dark at night.
 *
 * Three roles exist only because dark inverts them:
 *   --on-brand     label on the brand fill (dark brand needs dark text)
 *   --on-band-soft quiet text on the petrol bands (--line is a hairline on
 *                  paper, and would be a hairline *only* on dark paper)
 *   --on-accent    label on the amber fill, which keeps one value in both themes
 * The veils (--veil, --veil-strong, --veil-soft) and the shadows flip with the
 * theme too, so a sticky header or a badge over a photo never stays white on a
 * dark page. Every pair is measured in both themes by tests/palette-smoke.php. */
:root {
    color-scheme: light;
    --ink: #0d1f27;
    --ink-dark: #0a1720;
    --muted: #53666f;
    --muted-2: #5b6c75;
    --muted-strong: #42545d;
    --line: #d9e2e5;
    --line-soft: #e6edf0;
    --line-strong: #c9d6dc;
    --line-faint: #e9eff2;
    --paper: #f4f7f7;
    --white: #fff;
    --brand: #0e4f61;
    --brand-dark: #0a3a48;
    --accent: #f6c445;
    --accent-dark: #dcab2e;
    --soft: #e4eef0;
    --tint: #e8eff2;
    --ring: #2f8fa8;
    --on-dark: #dcebf0;
    --on-dark-accent: #f8d98a;
    --on-brand: #ffffff;
    --on-band-soft: #d9e2e5;
    --on-accent: #0d1f27;
    --glyph: #6d8894;
    --notice-bg: #fdf7e6;
    --notice-border: #f0d7a0;
    --notice-icon: #8a5a00;
    --notice-text: #6a5416;
    --veil-strong: rgba(255, 255, 255, .96);
    --veil: rgba(255, 255, 255, .92);
    --veil-soft: rgba(255, 255, 255, .55);
    --art-glow: rgba(127, 208, 230, .35);
    /* The wash that carries copy across the photo bands: opaque where the words
     * sit, thinning to nothing where the picture should still read. One system,
     * so the hero, the catalog band and the closing call to action fade alike. */
    --band-wash-strong: rgba(10, 58, 72, .96);
    --band-wash-mid: rgba(10, 58, 72, .78);
    --band-wash-soft: rgba(10, 58, 72, .3);
    /* The band surfaces themselves, thinned so a picture behind them still reads.
     * The two themes want opposite ends of that: on paper the strip has to stay
     * clearly darker than the page it separates, so the light veil keeps almost
     * all of its colour and gives up only a hint of the frame; on the dark theme
     * the same strip sits a shade lighter than the page instead. */
    --band-veil: rgba(10, 58, 72, .94);
    --shadow: 0 24px 70px rgba(13, 40, 52, .1);
    --shadow-card: 0 14px 34px rgba(13, 40, 52, .07);
    --shadow-card-hover: 0 22px 46px rgba(13, 40, 52, .13);
    --shadow-badge: 0 1px 4px rgba(13, 40, 52, .18);
}

/* Dark theme: the same names, re-measured on near-black petrol. The brand has to
 * brighten to stay legible as text on a dark card, which is exactly why the
 * label on the brand fill (--on-brand) flips dark; the petrol bands (--brand-dark)
 * stay dark in both themes and keep their light --on-dark text, so the header,
 * footer and closing call to action need no per-theme rules at all. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8f1f4;
    --ink-dark: #f4fafc;
    --muted: #a7bbc3;
    --muted-2: #9cb1ba;
    --muted-strong: #c6d6dc;
    --line: #24424c;
    --line-soft: #1c343d;
    --line-strong: #2d505b;
    --line-faint: #16282f;
    --paper: #0b1418;
    --white: #122025;
    --brand: #7fcbdf;
    --brand-dark: #082c37;
    --accent: #f6c445;
    --accent-dark: #dcab2e;
    --soft: #1b2d34;
    --tint: #16262c;
    --ring: #56b8d0;
    --on-dark: #dcebf0;
    --on-dark-accent: #f8d98a;
    --on-brand: #0b1418;
    --on-band-soft: #c9dbe1;
    --on-accent: #0d1f27;
    --glyph: #7d97a2;
    --notice-bg: #2b2214;
    --notice-border: #4d3e1f;
    --notice-icon: #f0c877;
    --notice-text: #ecdcb2;
    --veil-strong: rgba(11, 20, 24, .95);
    --veil: rgba(18, 32, 37, .92);
    --veil-soft: rgba(18, 32, 37, .6);
    --art-glow: rgba(127, 208, 230, .2);
    --band-wash-strong: rgba(8, 44, 55, .96);
    --band-wash-mid: rgba(8, 44, 55, .78);
    --band-wash-soft: rgba(8, 44, 55, .3);
    --band-veil: rgba(8, 44, 55, .78);
    /* unchanged on purpose: on a near-black page the strip reads by being lighter */
    --shadow: 0 24px 70px rgba(0, 0, 0, .55);
    --shadow-card: 0 14px 34px rgba(0, 0, 0, .4);
    --shadow-card-hover: 0 22px 46px rgba(0, 0, 0, .5);
    --shadow-badge: 0 1px 4px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 4px;
    border-radius: 3px;
}

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
}

.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line-soft); }

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.brand img { display: block; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a, .text-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease;
}

.main-nav a:hover, .text-link:hover { color: var(--brand); }

.button {
    min-height: 54px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 0 21px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-dark); transform: translateY(-1px); }
.button-small { min-height: 42px; padding-inline: 16px; }
.button-light { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-light:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.hero { overflow: hidden; }

.hero-grid {
    min-height: 565px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 38px;
    padding-block: 58px 64px;
}

.hero-copy { max-width: 610px; padding-block: 18px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.35;
    text-transform: uppercase;
}

.eyebrow-dot, .tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ring); }

h1, h2, p { margin-top: 0; }

h1, h2 {
    color: var(--ink);
    font-weight: 720;
    letter-spacing: -.055em;
    line-height: 1.07;
}

h1 { max-width: 590px; margin-bottom: 22px; font-size: clamp(44px, 5.5vw, 70px); }

.hero-lead {
    max-width: 510px;
    margin-bottom: 28px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; }

.hero-note { margin: 20px 0 0; color: var(--muted-2); font-size: 12px; }

.hero-art {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(145deg, var(--veil-strong), var(--tint)),
        var(--tint);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.art-glow {
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--art-glow);
    filter: blur(35px);
}

.art-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, .88);
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 700;
}

.laptop-art { width: min(92%, 500px); height: auto; }

.art-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 17px;
    border: 1px solid rgba(217, 226, 229, .9);
    border-radius: 6px;
    background: var(--veil);
}

.caption-label { color: var(--muted-2); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.art-caption strong { color: var(--ink); font-size: 14px; }

.trust-strip { border-block: 1px solid var(--line); background: var(--veil-soft); }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-block: 25px;
}

.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-number { color: var(--muted-2); font-size: 13px; font-weight: 800; }
.trust-item div { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-size: 13px; }
.trust-item div span { color: var(--muted); font-size: 12px; }

.content-section { padding-block: 104px; }

.content-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 74px;
}

.section-heading h2, .details-intro h2, .faq-heading h2, .contact-card h2 {
    margin-bottom: 17px;
    font-size: clamp(34px, 4vw, 48px);
}

.section-heading > p:not(.eyebrow), .details-intro > p:not(.eyebrow), .faq-heading > p:not(.eyebrow), .contact-card > div > p:not(.eyebrow) {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.spec-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.spec-card-header { display: flex; align-items: center; gap: 14px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.spec-card-header > div { display: flex; flex-direction: column; gap: 4px; }
.spec-card-header strong { font-size: 15px; }
.spec-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: var(--soft); color: var(--brand); font-size: 20px; }

.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(135px, .8fr) 1.2fr; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line-soft); }
.spec-list dt { color: var(--muted-strong); font-size: 13px; font-weight: 650; }
.spec-list dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.card-footnote { margin: 17px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.6; }

.details-section { padding-bottom: 100px; }

.details-panel {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    padding: 54px;
    border-radius: 8px;
    background: var(--tint);
}

.details-intro h2 { font-size: clamp(30px, 3.5vw, 42px); }
.details-intro > p:not(.eyebrow) { margin-bottom: 0; }
.details-list { display: grid; grid-template-columns: 1fr; gap: 0; align-content: center; margin: 0; padding: 0; list-style: none; }
.details-list li { display: flex; align-items: flex-start; gap: 13px; padding-block: 15px; border-bottom: 1px solid var(--line-strong); color: var(--muted-strong); font-size: 14px; }
.details-list li:last-child { border-bottom: 0; }
.check-mark { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--brand); font-size: 12px; font-weight: 800; }

.faq-section { padding-block: 95px 105px; background: var(--white); }

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 78px; }
.faq-heading > p:not(.eyebrow) { max-width: 380px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 21px; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; }
.faq-toggle::before, .faq-toggle::after { position: absolute; top: 9px; left: 6px; width: 8px; height: 2px; background: var(--brand); content: ""; }
.faq-toggle::after { transform: rotate(90deg); transition: transform .18s ease; }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-item > p { max-width: 610px; margin: -3px 42px 20px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact-section { padding-block: 78px; }

/* The closing call to action is the last surface a visitor sees, so it carries
 * the neon keyboard shot (tools/make_banners.py) instead of flat petrol. The
 * wash is anchored left and stays opaque where the copy sits — the measured
 * on-dark / on-dark-accent pairs on brand-dark are the shipped ones. */
.contact-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 38px; padding: 45px 52px; border-radius: 8px; background: var(--brand-dark); }
.contact-card-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(60%, 660px);
}

.contact-card-art picture { display: block; width: 100%; height: 100%; }
.contact-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.contact-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--band-wash-strong) 0 42%, var(--band-wash-mid) 60%, var(--band-wash-soft) 100%);
    content: "";
}
.contact-card > div, .contact-card > .button { position: relative; z-index: 1; }
.contact-card h2 { max-width: 560px; margin-bottom: 12px; color: var(--on-dark); font-size: clamp(31px, 4vw, 45px); }
.contact-card .eyebrow { color: var(--on-dark-accent); }
.contact-card > div > p:not(.eyebrow) { max-width: 600px; margin-bottom: 0; color: var(--on-dark); }
.contact-card .button { flex: 0 0 auto; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand { font-size: 15px; }
.footer-inner > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 11px; }
.footer-email { color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-email:hover { text-decoration: underline; }

@media (max-width: 980px) {
    /* Stacked, the copy runs over the whole card, so the photo becomes a full
     * wash: the gradient is vertical and nearly opaque where the text sits. */
    .contact-card-art { width: 100%; }
    .contact-card::after { background: linear-gradient(180deg, var(--band-wash-mid), var(--band-wash-strong)); }

    .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 55px; }
    .hero-copy { max-width: 720px; }
    .hero-art { min-height: 370px; }
    .trust-grid { grid-template-columns: 1fr; gap: 0; }
    .trust-item { padding-block: 13px; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
    .content-grid, .details-panel, .faq-layout { grid-template-columns: 1fr; gap: 34px; }
    .details-panel { padding: 38px; }
    .content-section { padding-block: 78px; }
    .details-section { padding-bottom: 78px; }
    .faq-section { padding-block: 75px; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 36px, 560px); }
    .header-inner { min-height: 72px; flex-wrap: wrap; gap: 13px; padding-block: 14px; }
    .brand { font-size: 16px; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 14px; }
    .main-nav a { font-size: 12px; }
    .header-inner > .button { margin-left: auto; }
    .hero-grid { min-height: auto; padding-block: 47px 42px; }
    h1 { font-size: clamp(40px, 12vw, 58px); }
    .hero-lead { font-size: 16px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
    .hero-actions .button { width: 100%; }
    .text-link { width: fit-content; }
    .hero-art { min-height: 300px; }
    .art-tag { top: 15px; left: 15px; }
    .laptop-art { width: 100%; padding-inline: 9px; }
    .art-caption { right: 12px; bottom: 12px; left: 12px; }
    .content-section { padding-block: 62px; }
    .spec-card { padding: 20px; }
    .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
    .details-panel { padding: 28px 22px; }
    .details-section { padding-bottom: 62px; }
    .faq-section { padding-block: 62px; }
    .faq-item summary { font-size: 14px; }
    .contact-section { padding-block: 54px; }
    .contact-card { align-items: stretch; flex-direction: column; gap: 25px; padding: 30px 23px; }
    .contact-card .button { width: 100%; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
