/* SI Solutions. The page is set like a company offer: paper, ink rules, one orange. */

@font-face { font-family: "Sofia Sans"; src: url(/assets/fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; src: url(/assets/fonts/sofia-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; 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; }
@font-face { font-family: "Sofia Sans Semi Condensed"; src: url(/assets/fonts/sofia-sans-semi-condensed-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Semi Condensed"; src: url(/assets/fonts/sofia-sans-semi-condensed-latin-wght-normal.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; 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 {
  color-scheme: light;
  --paper: #FBFBFA;
  --desk: #ECEEF1;
  --fill: #F2F4F6;
  --ink: #15171C;
  --ink-2: #474C54;
  --ink-3: #676D76;
  --rule: #D5DAE0;
  --orange: #E2711D;
  --orange-ink: #A94C0D;
  --orange-wash: #FCEBDD;
  --sans: "Sofia Sans", system-ui, sans-serif;
  --cond: "Sofia Sans Semi Condensed", "Sofia Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 4px; /* controls only; paper surfaces and photos stay square */
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 76px;
  --desk-side: clamp(0px, 2.6vw, 40px);
  --desk-gap: clamp(12px, 2.6vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); scrollbar-color: var(--ink-3) var(--fill); }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea { caret-color: var(--orange-ink); }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Sheets: the pages of the offer, lying on the desk */
.sheet { width: min(1320px, 100% - 2 * var(--desk-side)); margin: var(--desk-gap) auto 0; background: var(--paper); box-shadow: 0 1px 2px rgb(21 23 28 / 0.06), 0 16px 40px -12px rgb(21 23 28 / 0.14); }
main > .sheet:last-of-type { margin-bottom: var(--desk-gap); }
main > .sheet:first-child { margin-top: clamp(10px, 1.6vw, 22px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--cond); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #EE8131; }
  .btn-ink:hover { background: #2A2D34; }
  .btn-line:hover { background: var(--fill); }
}
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-2); text-decoration: none; }
.btn-quiet .num { color: var(--ink); font-weight: 650; margin-left: 0.3em; text-decoration: underline; text-decoration-color: var(--rule); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--fill); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Letterhead */
.letterhead { position: sticky; top: 0; z-index: 10; padding-top: 4px; background: var(--paper); box-shadow: inset 0 4px 0 var(--orange); border-bottom: 1px solid var(--rule); } /* impeccable-disable-line side-tab -- letterhead band of the offer, full-width header, not a card */
.letterhead-in { display: flex; align-items: center; gap: 28px; height: calc(var(--head-h) - 5px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--cond); font-weight: 750; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand-legal { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-3); }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-weight: 550; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: 1.1875rem; text-decoration: none; }
.head-phone .icon { color: var(--orange-ink); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-weight: 650; cursor: pointer; transition: transform 140ms var(--ease-out); }
.cart-btn:active { transform: scale(0.97); }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--ink); font-size: 0.875rem; font-weight: 750; }
.cart-count.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* Title block */
.title-block { display: grid; gap: 12px; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(18px, 2vw, 26px); }
.title-block h1 { font-size: clamp(2.25rem, 4vw, 3.625rem); font-weight: 750; letter-spacing: -0.025em; line-height: 0.98; max-width: 21em; }
.lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--ink-2); }
.seal { color: var(--orange-ink); mix-blend-mode: multiply; }
.seal text { fill: currentColor; font-family: var(--cond); font-weight: 750; }
.seal-ring { font-size: 12.5px; }
.seal-mid { font-size: 40px; letter-spacing: -0.02em; }
.seal-low { font-size: 10px; letter-spacing: 2.5px; }
.seal-word { font-size: 14.5px; letter-spacing: 0.3px; }
.seal-date { font-size: 9.5px; letter-spacing: 0.4px; }

/* Services: the positions of the offer */
.picker { padding-bottom: clamp(48px, 6vw, 88px); }
.picker-grid { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 3.2fr) minmax(0, 5.8fr); grid-template-rows: repeat(7, min-content) 1fr; column-gap: clamp(20px, 2.6vw, 40px); border-top: 2px solid var(--ink); }
.pos { display: contents; }
.pos-head { grid-column: 1; display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; align-items: baseline; gap: 10px; width: 100%; padding: 15px 14px 15px 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.pos-no { color: var(--ink-3); font-size: 0.9375rem; font-weight: 600; }
.pos-name { font-family: var(--cond); font-size: 1.3125rem; font-weight: 650; line-height: 1.15; }
.pos-from { font-size: 0.9375rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.pos-caret { display: none; }
.pos-from:empty::before { content: ""; display: inline-block; width: 4.5em; height: 0.8em; border-radius: 2px; background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .pos-head:hover { background: var(--fill); } }
.pos.is-open .pos-head { background: var(--ink); color: var(--paper); }
.pos.is-open .pos-no, .pos.is-open .pos-from { color: var(--orange); }

.pos-body { grid-column: 2 / 4; grid-row: 1 / span 8; display: grid; grid-template-columns: subgrid; padding-top: 20px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 220ms; }
.pos.is-open .pos-body { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pos-photo { margin: 0; aspect-ratio: 4 / 5; background: var(--fill); overflow: hidden; align-self: start; }
.pos-photo img { width: 100%; height: 100%; object-fit: cover; }
.pos-photo img.is-loading { opacity: 0; }
.pos-photo img { transition: opacity 260ms ease; }
.pos-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pos-detail h2 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; }
@media (min-width: 1081px) { .pos-detail { min-height: 520px; } }
.scope { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.scope li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: baseline; }
.scope li::before { content: ""; width: 10px; border-top: 1px solid var(--ink-3); transform: translateY(-0.32em); }
.lines { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.lines th { padding: 6px 0 5px; border-bottom: 1px solid var(--rule); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: left; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; vertical-align: bottom; }
.lines th:nth-child(2), .lines td:nth-child(2) { padding-inline: 14px; white-space: nowrap; }
.lines th:last-child, .lines td:last-child { text-align: right; white-space: nowrap; }
.line-unit { font-size: 0.875rem; color: var(--ink-3); }
.line-per { display: none; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.line-price { font-weight: 700; }
.line-price.ask { font-weight: 600; color: var(--ink-2); }
.pos-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 4px; }
.fine { grid-column: 1 / -1; max-width: 64ch; margin-top: 20px; font-size: 0.875rem; color: var(--ink-3); }

/* Section heads */
.section-title { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.06; text-transform: uppercase; letter-spacing: 0.025em; }
.section-lead { margin-top: 12px; max-width: 60ch; color: var(--ink-2); }

/* Catalog */
.catalog { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.filters:empty { display: none; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.item { display: flex; flex-direction: column; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.item-photo { display: block; width: 100%; padding: 0; border: 0; background: var(--fill); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .item-photo:hover img { transform: scale(1.03); } }
.no-photo { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.no-photo .icon { width: 40px; height: 40px; opacity: 0.5; }
.item-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.item-name { font-family: var(--sans); font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.item-name button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.item-name button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.item-meta { font-size: 0.875rem; color: var(--ink-3); }
.item-meta .sample { color: var(--orange-ink); font-weight: 600; }
.item-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--cond); font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums lining-nums; }
.price.ask { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.btn-add { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn-add.is-added { background: var(--ink); color: var(--paper); }
.catalog-empty { padding: 32px 0; color: var(--ink-2); }
.item-blank { min-height: 1px; }

/* Why us */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.why-photo { margin: 0; aspect-ratio: 9 / 11; background: var(--fill); overflow: hidden; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.clauses { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: none; }
.clauses li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--cond); font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.clauses li:first-child { border-top: 1px solid var(--ink); }
.clauses .num { font-family: var(--sans); font-size: 0.6em; color: var(--orange-ink); font-weight: 700; }

/* Contact: the signature field of the offer */
.contact { background: var(--orange); color: var(--ink); padding-block: clamp(56px, 7vw, 96px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.contact .section-title { max-width: 24ch; }
.contact-side { position: relative; }
.seal-rest { position: absolute; right: 0; top: 0; width: clamp(96px, 10vw, 136px); color: var(--ink); translate: 0 -72%; rotate: -9deg; }
.contact-side .steps li:first-child { padding-right: clamp(100px, 11vw, 150px); }
.contact-phone { display: inline-block; margin: 22px 0 14px; font-family: var(--cond); font-size: clamp(3rem, 7.4vw, 6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 28px; font-weight: 550; }
.contact-lines > * { display: inline-flex; align-items: center; gap: 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2em 1fr; padding: 14px 0; border-bottom: 1px solid rgb(21 23 28 / 0.28); font-weight: 550; }
.steps li::before { content: counter(step); font-weight: 750; font-variant-numeric: tabular-nums; }

/* Footer */
.foot { background: var(--desk); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding-top: 28px; padding-bottom: 28px; font-size: 0.9375rem; color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--cond); font-weight: 750; font-size: 1.125rem; color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* Dialogs */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(21 23 28 / 0.45); }
body:has(dialog[open]) { overflow: hidden; }

/* Request panel: the offer being assembled */
.panel { position: fixed; inset: 0 0 0 auto; width: min(500px, 100vw); height: 100dvh; margin: 0; box-shadow: -24px 0 60px rgb(21 23 28 / 0.18); }
.panel[open] { animation: sheet-in 340ms var(--ease-sheet); }
.panel[open]::backdrop { animation: fade-in 340ms ease; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.panel-doc { display: flex; flex-direction: column; height: 100%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 24px; border-bottom: 2px solid var(--ink); }
.panel-head h2 { font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 24px 28px; overscroll-behavior: contain; }
.order-lines { margin: 0; padding: 0; list-style: none; }
.order-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.order-line .ol-name { font-weight: 650; line-height: 1.3; }
.order-line .ol-sub { grid-column: 1; font-size: 0.875rem; color: var(--ink-3); }
.order-line .ol-price { grid-row: 1; grid-column: 2; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.order-line .ol-actions { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--radius); }
.qty button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; }
.qty button:hover { background: var(--fill); }
.qty .icon { width: 14px; height: 14px; }
.qty output { min-width: 2.2em; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.ol-remove { width: 34px; height: 34px; }
.ol-remove .icon { width: 16px; height: 16px; }
.order-line.is-service { grid-template-columns: 1fr auto; background: var(--orange-wash); margin: 12px -12px 0; padding: 12px; border-bottom: 0; border-radius: var(--radius); }
.order-empty { padding: 20px 0 8px; color: var(--ink-2); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-bottom: 2px solid var(--ink); font-weight: 700; }
.order-total .price { font-size: 1.75rem; }
.order-total small { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--ink-3); }
.order-form { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.875rem; font-weight: 650; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B9C0C8; border-radius: var(--radius); background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(226 113 29 / 0.35); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
::placeholder { color: var(--ink-3); opacity: 1; }
.hint { font-size: 0.8125rem; color: var(--ink-3); }
.form-error { color: #B3261E; font-weight: 600; font-size: 0.9375rem; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.panel-done { display: grid; align-content: start; gap: 12px; flex: 1; overflow-y: auto; padding: 24px; }
.sent { position: relative; margin-bottom: 18px; }
.sent-doc { padding: 16px 18px 18px; border: 1px solid var(--rule); background: #fff; }
.sent-doc .order-line.is-service { margin: 0 0 4px; }
.sent-meta { font-size: 0.8125rem; color: var(--ink-3); }
.sent-from { margin-top: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.sent .seal-stamp { position: absolute; right: -4px; bottom: -34px; }
.panel-done[hidden] { display: none; }
.panel-done h3 { font-size: 1.625rem; }
.panel-done p { max-width: 40ch; color: var(--ink-2); margin-bottom: 8px; }
.panel-done .btn { justify-self: start; }
.seal-stamp { width: 150px; transform: rotate(-12deg); }
.panel-done:not([hidden]) .seal-stamp { animation: stamp 380ms var(--ease-out) both; }
@keyframes stamp { from { transform: scale(1.45) rotate(-4deg); } }

/* Product dialog */
.product-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: auto; box-shadow: 0 30px 80px rgb(21 23 28 / 0.3); }
.product-dialog[open] { animation: rise 260ms var(--ease-out); }
.product-dialog[open]::backdrop { animation: fade-in 260ms ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.pd-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--paper); }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-photo { background: var(--fill); aspect-ratio: 1; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-text { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 32px; }
.pd-text h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); padding-right: 36px; }
.pd-desc { color: var(--ink-2); white-space: pre-line; }
.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.pd-buy .price { margin-right: auto; font-size: 2rem; }
.pd-buy .qty button { width: 42px; height: 46px; }

/* Short laptop screens: keep the action inside the first viewport */
@media (min-width: 1081px) and (max-height: 860px) {
  .pos-detail > h2 { order: -2; }
  .pos-cta { order: -1; margin-top: 0; }
}

/* Tablet: positions beside one body, photo on top */
@media (max-width: 1080px) {
  .nav { display: none; }
  .picker-grid { grid-template-columns: minmax(230px, 5fr) minmax(0, 7fr); }
  .pos-body { grid-column: 2; grid-template-columns: 1fr; gap: 20px; }
  .pos-head { grid-template-columns: 1.6em minmax(0, 1fr); row-gap: 2px; }
  .pos-from { grid-column: 2; }
  .pos-photo { aspect-ratio: 21 / 9; }
  .pos-detail > h2 { order: -2; }
  .pos-cta { order: -1; margin-top: 0; }
  .lines th:nth-child(2), .lines td:nth-child(2) { display: none; }
  .line-per { display: inline; }
  .contact-side { padding-top: 84px; }
  .seal-rest { top: 84px; translate: 0 -92%; }
  .contact-side .steps li:first-child { padding-right: 0; }
}

/* Phone: the offer reads top to bottom; each position opens in place */
@media (max-width: 760px) {
  :root { --head-h: 66px; --desk-side: 0px; --desk-gap: 10px; }
  body { font-size: 1rem; }
  .letterhead-in { gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand-legal, .cart-word, .head-phone .num { display: none; }
  .head-phone { width: 44px; height: 44px; justify-content: center; border-radius: var(--radius); background: var(--orange); color: var(--ink); }
  .head-phone .icon { color: var(--ink); }
  .cart-btn { padding: 0 12px; }
  .title-block { gap: 14px 16px; }
  .picker-grid { display: block; }
  .pos { display: block; }
  .pos-head { grid-template-columns: 1.6em minmax(0, 1fr) auto 20px; padding: 16px 4px; }
  .pos-from { grid-column: auto; }
  .pos-caret { display: block; width: 18px; height: 18px; align-self: center; transition: transform 200ms var(--ease-out); }
  .pos.is-open .pos-caret { transform: rotate(180deg); }
  .pos-body { display: none; padding: 4px 0 28px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .pos.is-open .pos-body { display: grid; gap: 18px; }
  .pos.is-open .pos-head { background: var(--ink); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .pos-photo { aspect-ratio: 3 / 2; }
  .pos-detail > h2, .pos-cta { order: 0; }
  .contact-side { padding-top: 0; }
  .seal-rest { top: 0; translate: 0 -72%; }
  .contact-side .steps li:first-child { padding-right: 100px; }
  .why, .contact-in { grid-template-columns: 1fr; }
  .why-photo { aspect-ratio: 3 / 2; }
  .field-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-body { padding: 12px 12px 14px; }
  .item-name { font-size: 0.9375rem; }
  .item-buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 1.25rem; }
  .pd { grid-template-columns: 1fr; }
  .pd-photo { aspect-ratio: 4 / 3; }
  .pd-text { padding: 24px 20px; }
  .panel-body { padding-inline: 18px; }
  .panel-head { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .pos-body { transform: none; }
}
