/* The look of the pages beyond the home page: the material pages, delivery and
   the calculator. The home page keeps its own copy inline, because it is the
   one page that has to paint before anything else arrives. Same colours, same
   type, so moving between them feels like one site. */
:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --ink-soft: #b5b5b5;
  --paper: #0d0d0d;
  --paper-alt: #161616;
  --card: #1b1b1b;
  --line: #333333;
  --accent: #f47216;
  --accent-dark: #ff9346;
  --accent-hover: #d9600a;
  --radius: 10px;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "Source Sans 3", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Oswald", Impact, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
.alt { background: var(--paper-alt); }
.lead { color: var(--ink-soft); max-width: 70ch; font-size: 1.1rem; }
[hidden] { display: none !important; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none;
       border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Header: white, like the home page, with the links always visible. */
header.top { background: #fff; color: #000; border-bottom: 4px solid var(--accent); }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; flex-wrap: wrap; }
header.top img { display: block; height: 70px; width: auto; }
header.top .links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
header.top .links a { color: #000; text-decoration: none; font-weight: 600; font-size: .95rem; }
header.top .links a:hover { color: #c75500; }
header.top .links .phone { background: var(--accent); padding: 8px 14px; border-radius: 6px; }

.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.crumbs { color: var(--ink-soft); font-size: .9rem; }
.crumbs a { color: var(--ink-soft); }

/* A material, one card each. */
.mats { display: grid; gap: 28px; }
.mat { display: grid; grid-template-columns: 340px 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line);
       border-radius: var(--radius); overflow: hidden; }
.mat img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; background: #222; }
.mat-body { padding: 24px 24px 24px 0; }
.mat-body p { color: var(--ink-soft); }
.uses { color: var(--accent-dark) !important; font-weight: 600; font-size: .95rem; }
.by { font-size: .95rem; }
.price { font-family: "Oswald", sans-serif; font-size: 1.6rem; color: var(--ink) !important; }
.tag { display: inline-block; margin-left: 10px; vertical-align: middle; font: 600 .7rem "Source Sans 3", sans-serif;
       text-transform: uppercase; letter-spacing: .06em; background: var(--paper-alt); color: var(--accent-dark);
       padding: 2px 8px; border-radius: 99px; }
.cov { border-collapse: collapse; margin: 6px 0 6px; min-width: 300px; }
.cov caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.cov td { padding: 5px 18px 5px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.cov-note { font-size: .88rem; }
.others { columns: 2; padding-left: 18px; max-width: 640px; }
.others li { margin-bottom: 6px; }

/* Plain lists of facts on the delivery page. */
.facts { padding-left: 20px; max-width: 75ch; }
.facts li { margin-bottom: 10px; color: var(--ink-soft); }
.facts strong { color: var(--ink); }
.towns { max-width: 80ch; line-height: 1.9; color: var(--ink-soft); }
mark.confirm { background: #ffe14d; color: #000; padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* The calculator page. */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px;
        display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field label, .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px;
                              font: inherit; background: var(--paper); color: var(--ink); }
.field.full { grid-column: 1 / -1; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px;
            background: var(--paper); cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #000; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.hint { color: var(--ink-soft); font-size: .92rem; margin: 0; grid-column: 1 / -1; }
.result { background: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
          display: flex; flex-direction: column; justify-content: center; }
.result .big { font-family: "Oswald", sans-serif; font-size: 3rem; line-height: 1; color: var(--accent-dark); }
.result .unit { color: var(--ink-soft); margin-bottom: 18px; }
.result small { color: var(--ink-soft); }

footer { background: #000; border-top: 4px solid var(--accent); color: #9a9a9a; padding: 28px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
footer a { color: #9a9a9a; }

/* Call and text, always in reach on a phone. */
.callbar { display: none; }
@media (max-width: 860px) {
  .mat { grid-template-columns: 1fr; gap: 0; }
  .mat img { min-height: 0; height: 220px; }
  .mat-body { padding: 20px; }
  .calc { grid-template-columns: 1fr; }
  header.top .links .phone { display: none; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
             background: #000; border-top: 3px solid var(--accent); gap: 10px;
             padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .callbar a { display: block; text-align: center; padding: 12px 8px; border-radius: 6px; font-weight: 700;
               text-decoration: none; font-size: 1.05rem; }
  .callbar .call { background: var(--accent); color: #000; }
  .callbar .text { border: 2px solid var(--accent); color: #fff; }
  body { padding-bottom: 76px; }
}
@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; }
  .others { columns: 1; }
  .cov { min-width: 0; width: 100%; }
}
