/* =========================================================================
   TS GROUP — design system
   New identity: "ink & paper". Warm paper background, deep ink typography,
   one loud printing-orange accent. Self-hosted fonts, no external requests.
   ========================================================================= */

/* ------------------------------------------------------------- tokens ---- */
:root {
  --ink:        #101418;
  --ink-soft:   #1C232B;
  --ink-mute:   #5B6470;
  --paper:      #F6F3EE;
  --paper-2:    #FFFFFF;
  --paper-3:    #ECE7DF;
  --line:       #DCD5CA;
  --accent:     #FF4D14;
  --accent-ink: #D63A08;
  --accent-soft:#FFE9E0;
  --teal:       #0E7C86;
  --teal-soft:  #E1F2F3;
  --gold:       #C99700;

  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(16,20,24,.06), 0 4px 12px rgba(16,20,24,.05);
  --shadow:   0 2px 6px rgba(16,20,24,.06), 0 14px 34px rgba(16,20,24,.09);
  --shadow-l: 0 30px 70px rgba(16,20,24,.16);

  --container: 1240px;
  --gap: 24px;

  --font-display: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 25px); }
h4 { font-size: 17px; }
p  { margin: 0 0 1em; }
a  { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-tight { padding: clamp(36px, 4vw, 60px) 0; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink a:not(.btn) { color: #fff; }

/* ------------------------------------------------------------ typography -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.bg-ink .eyebrow { color: #FF8A5C; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-mute); line-height: 1.6; }
.bg-ink .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--ink-mute); }
.small { font-size: 13.5px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------- header --- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 42px; }
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; opacity: .75; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,243,238,.88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand__sub { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--paper-3); }
.nav a.is-active { background: var(--ink); color: #fff; }
.header__actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.lang-switch a { padding: 7px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-mute); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__inner { gap: 16px; }
}
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 12px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-nav .btn { width: 100%; margin-top: 14px; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  cursor: pointer; transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,77,20,.28); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-soft); }
.bg-ink .btn--ink { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.bg-ink .btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.bg-ink .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- cards ---- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--shadow-s);
}
.card--pad-sm { padding: 20px; }
.card--flat { box-shadow: none; }
.card--hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3CABC; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- product cards --- */
.product-card {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(16,20,24,.86); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 19px; margin: 0 0 6px; }
.product-card__text { color: var(--ink-mute); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-from { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.price-from small { display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper-3); color: var(--ink-soft);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge--teal { background: var(--teal-soft); color: var(--teal); }
.badge--ok { background: #DFF3E4; color: #1B6B32; }
.badge--warn { background: #FFF1D6; color: #8A5A00; }
.badge--danger { background: #FBE0DE; color: #A32019; }

/* ---------------------------------------------------------------- hero ---- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(255,77,20,.30), transparent 62%),
    radial-gradient(700px 420px at 8% 110%, rgba(14,124,134,.28), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 116px) 0; }
.hero h1 { margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.hero__stat span { font-size: 13.5px; color: rgba(255,255,255,.6); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-l); width: 100%; }
.hero__badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-l); max-width: 240px;
}
.hero__badge b { display: block; font-family: var(--font-display); font-size: 15px; }
.hero__badge span { font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__badge { left: 12px; }
}

/* --------------------------------------------------------------- steps ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 15px; color: var(--accent); background: var(--accent-soft); width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 12px;
}
.bg-ink .step::before { background: rgba(255,77,20,.16); color: #FF8A5C; }

/* --------------------------------------------------------------- forms ---- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; letter-spacing: .01em; }
.field .hint { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,77,20,.13); }
.input::placeholder, .textarea::placeholder { color: #A9A29A; }
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }

/* choice chips (used by the price calculator) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .16s var(--ease); color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink-mute); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* file dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--paper-2); cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: #FFF9F6; }
.dropzone__icon { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--accent); }
.dropzone__list { margin-top: 14px; text-align: left; font-size: 13.5px; color: var(--ink-mute); }
.dropzone__list li { margin-bottom: 4px; }

/* ------------------------------------------------------------- messages --- */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.alert--ok { background: #E6F5EA; border-color: #B9E2C6; color: #17572B; }
.alert--err { background: #FCE9E7; border-color: #F3C3BE; color: #96211A; }
.alert--info { background: var(--teal-soft); border-color: #B7E0E3; color: #0A5A62; }
.alert--warn { background: #FFF4DE; border-color: #F2D9A2; color: #7A4E00; }

/* ----------------------------------------------------------- calculator --- */
.calc { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 1040px) { .calc { grid-template-columns: 1fr; } }
.calc__groups { display: grid; gap: 18px; }
.calc__group { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px 24px; }
.calc__group[hidden] { display: none; }
.calc__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.calc__label .req { color: var(--accent); }
.calc__summary {
  position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: var(--radius-l);
  padding: 26px; box-shadow: var(--shadow-l);
}
.calc__price { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -.03em; line-height: 1; }
.calc__unit { color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 8px; }
.calc__lines { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.calc__line { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13.5px; }
.calc__line span { color: rgba(255,255,255,.62); }
.calc__line b { font-weight: 600; }
.calc__line-detail { display: block; font-size: 11.5px; color: rgba(255,255,255,.42); }
.calc__total { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); margin-top: 10px; padding-top: 12px; font-weight: 700; }
.calc__actions { margin-top: 20px; display: grid; gap: 10px; }
.calc__meta { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 14px; line-height: 1.5; }

/* --------------------------------------------------------------- table ---- */
.table-wrap { overflow-x: auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-l); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); background: var(--paper); font-weight: 700; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FBFAF7; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- pagination - */
.pagination { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding-inline: 12px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--paper-2);
}
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; }

/* ---------------------------------------------------------------- misc ---- */
.breadcrumbs { font-size: 13px; color: var(--ink-mute); padding: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { opacity: .45; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > *:first-child { order: 0; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs button, .tabs a {
  padding: 12px 18px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 14.5px;
  color: var(--ink-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .16s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

.media-frame { border-radius: var(--radius-l); overflow: hidden; background: var(--paper-3); }
.media-frame img { width: 100%; }

.kv { display: grid; gap: 2px; }
.kv__row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv__row:last-child { border-bottom: 0; }
.kv__row span { color: var(--ink-mute); }
.kv__row b { font-weight: 600; text-align: right; }

.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 15px; height: 8px;
  border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent);
  transform: rotate(-45deg);
}
.bg-ink .list-check li::before { border-color: #FF8A5C; }

.figure { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; display: block; }

.quote { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; line-height: 1.32; letter-spacing: -.02em; }
.quote-by { margin-top: 18px; font-size: 14px; color: var(--ink-mute); }

/* -------------------------------------------------------------- footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 64px 0 30px; font-size: 14.5px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__links a { display: block; padding: 4px 0; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer .brand { color: #fff; }
.footer .brand__mark { background: var(--accent); }

/* -------------------------------------------------------- cookie banner --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); padding: 22px 24px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 { margin-bottom: 8px; }
.cookie-banner p { font-size: 13.5px; color: var(--ink-mute); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* --------------------------------------------------------------- chat ----- */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; box-shadow: 0 14px 34px rgba(255,77,20,.42);
  display: grid; place-items: center; transition: transform .2s var(--ease);
}
.chat-launch:hover { transform: scale(1.06); }
.chat-launch svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 85; width: min(390px, calc(100vw - 40px)); height: min(560px, calc(100vh - 140px));
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.is-open { display: flex; }
.chat-panel__head { padding: 16px 18px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; }
.chat-panel__head b { display: block; font-family: var(--font-display); font-size: 15px; }
.chat-panel__head span { font-size: 12px; color: rgba(255,255,255,.6); }
.chat-panel__close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 20px; line-height: 1; }
.chat-panel__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FCFBF8; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg--bot { background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--user { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-panel__quick { display: flex; gap: 8px; padding: 10px 14px 0; flex-wrap: wrap; }
.chat-panel__quick button {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.chat-panel__quick button:hover { border-color: var(--accent); color: var(--accent); }
.chat-panel__form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--paper-2); }
.chat-panel__form input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.chat-panel__form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; flex: none; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

/* ---------------------------------------------------------------- misc ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; border-radius: 8px; }
.print-only { display: none; }
@media print {
  .header, .topbar, .footer, .cookie-banner, .chat-launch, .chat-panel, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}

/* ------------------------------------------------- wide calc (product) ---- */
.calc--wide { display:block; background:#fff; border:1px solid var(--line); border-radius: var(--radius-l);
  padding: 24px; box-shadow: var(--shadow-s); }
.calc__fields { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap:14px; align-items:end; }
.calc__field { min-width:0; }
.calc__field .calc__label, .calc__files .calc__label { display:block; font-family: var(--font-body); font-weight:600;
  font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color: var(--ink-mute); margin:0 0 7px; }
.calc__priceline { text-align:right; padding-left:10px; }
.calc__priceline .calc__price { font-size:40px; color: var(--ink); }
.calc__priceline .calc__unit { color: var(--ink-mute); font-size:13px; margin-top:2px; }
.calc__files { margin-top:20px; }
.calc__files .dropzone { padding: 20px 16px; }
.calc__wide .calc__actions { margin-top:18px; display:grid; gap:10px; }
.calc__wide .calc__meta { color: var(--ink-mute); font-size:12px; margin-top:12px; line-height:1.5; }
.calc--wide .calc__actions { margin-top:18px; }
.calc--wide .calc__meta { color: var(--ink-mute); font-size:12px; margin-top:12px; line-height:1.55; }
.calc--wide .dropzone__list:empty { display:none; }
@media (max-width: 980px) {
  .calc__fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calc__priceline { grid-column: 1 / -1; text-align:left; padding-left:0; }
}
@media (max-width: 560px) {
  .calc__fields { grid-template-columns: 1fr; }
  .calc__priceline .calc__price { font-size:34px; }
}
/* --------------------------------------------------------- product head ---- */
.product-head { display:grid; grid-template-columns: 420px minmax(0,1fr); gap:36px; align-items:start; }
.product-head__text { min-width:0; }
.product-hero { margin:0; border-radius: var(--radius-l); overflow:hidden; background: var(--paper-3); box-shadow: var(--shadow-s); }
.product-hero img { display:block; width:100%; height:auto; }
@media (max-width: 900px) {
  .product-head { grid-template-columns: 1fr; gap:22px; }
  .product-hero { max-width:520px; }
}


/* ------------------------------------------------------ product description -- */
.product-desc { position: relative; margin-top: 22px; padding: 24px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; overflow: hidden; }
.product-desc__title { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.25; margin-bottom: 10px; color: var(--ink); }
.product-desc__text { position: relative; z-index: 2; color: var(--ink); line-height: 1.8; font-size: 15px; }
.product-desc--photo { border-color: var(--line);
  background-image: linear-gradient(95deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 48%, rgba(255,255,255,.7) 76%, rgba(255,255,255,.4) 92%),
    var(--desc-bg);
  background-size: cover; background-position: right center; background-repeat: no-repeat; }
@media (max-width: 900px) {
  .product-desc { padding: 20px 20px; }
  .product-desc--photo {
    background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 64%, rgba(255,255,255,.8) 86%, rgba(255,255,255,.6) 100%),
      var(--desc-bg);
    background-position: center top; background-size: cover;
  }
  .product-desc__text { font-size: 14.5px; line-height: 1.75; }
}