/* Eurasia — microfiber cloths, export one-pager
   Layout idea: light page, graphite text, one accent — the blue of the Eurasia logo, thin rules between
   blocks; single column on phones, two columns from 900px. Light theme only. */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #1A2029;
  --muted: #56606E;
  --line: #DADEE5;
  --line-strong: #B3BAC6;
  --accent: #00357A;
  --accent-hover: #00275C;
  --accent-tint: #E8EEF7;
  --placeholder: #ECEFF3;
  --error: #A2331F;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --gutter: 20px;
  --maxw: 1200px;
  color-scheme: light;
}

/* Manrope (OFL), self-hosted: Latin, Latin Extended (Turkish), Cyrillic */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  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;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }

h1, h2, p, dl, dd, ol, ul, figure, fieldset, table { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }

h1, h2 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.25rem + 3.9vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.3rem); }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 30;
  padding: 10px 14px; background: var(--accent); color: #fff;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 22px;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-tint); }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "brand lang cta"
    "nav   nav  nav";
  align-items: center;
  column-gap: 8px;
  padding-top: 12px;
}
.brand {
  grid-area: brand;
  display: inline-flex; flex-direction: column; justify-self: start; min-width: 0;
  color: var(--ink); text-decoration: none; line-height: 1;
}
/* The logo file has a white background; multiply lets the page colour show through it. */
/* align-self keeps the logo at its own width: stretched to the caption's width it looked distorted. */
.brand-logo { display: block; flex: none; align-self: flex-start; width: auto; max-width: none; height: 42px; aspect-ratio: 320 / 183; object-fit: contain; mix-blend-mode: multiply; }
.brand-tag {
  margin-top: 5px;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; line-height: 1.35; text-transform: uppercase;
  color: var(--muted);
}

.lang {
  grid-area: lang;
  display: inline-flex; min-width: max-content;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  min-width: 35px; min-height: 40px; padding: 0 7px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line-strong); }
.lang-btn:hover { background: var(--accent-tint); }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-btn:focus-visible { outline-offset: -3px; }

.header-cta { grid-area: cta; min-height: 42px; padding: 8px 12px; font-size: 0.9rem; white-space: nowrap; }
.cta-long { display: none; }

.nav {
  grid-area: nav;
  display: flex; gap: 4px 16px; flex-wrap: wrap;
  margin-top: 10px; padding: 4px 0;
  border-top: 1px solid var(--line);
}
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero { padding-top: 36px; }
/* Phones: headline, then the photo, then the text and buttons. */
.hero-grid { display: grid; gap: 0; }
.hero-copy { display: contents; }
.hero-grid .eyebrow { order: 1; }
.hero-grid h1 { order: 2; }
.hero-visual { order: 3; }
.hero-grid .lead { order: 4; }
.hero-grid .cta-row { order: 5; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.lead {
  max-width: 34em;
  margin-top: 18px;
  font-size: 1.1rem; color: var(--ink);
}
.cta-row { display: grid; gap: 12px; margin-top: 28px; }

.hero-visual { display: none; }
.hero-visual.has-media { display: block; margin-top: 22px; }
.hero-visual img { width: 100%; height: auto; border-radius: var(--radius); }
/* Photos shot on a white studio background (whiteBg in data/product.js) melt into the page colour. */
img.on-white { mix-blend-mode: multiply; }
.gallery-stage.on-white { background: var(--bg); }
.hero-visual.has-media .hero-panel { display: none; }

.hero-panel {
  height: 100%; min-height: 340px;
  display: grid; align-content: end; justify-items: start;
  grid-template-columns: auto 1fr; column-gap: 14px;
  padding: 36px 40px;
  background: var(--accent-tint);
  border-radius: var(--radius);
  color: var(--accent);
}
.hero-panel-num {
  font-size: clamp(7rem, 13vw, 11rem); font-weight: 700; line-height: 0.82; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.hero-panel-unit { align-self: end; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.hero-panel-cap {
  grid-column: 1 / -1; margin-top: 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}

.facts {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 14px 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.fact dd { margin-top: 3px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding-block: 56px; scroll-margin-top: 12px; }
.section-ruled > .container { position: relative; }
.section-ruled > .container::before {
  content: ""; position: absolute; top: -56px; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--line);
}
.section-lead { max-width: 36em; margin-top: 14px; font-size: 1.05rem; color: var(--ink); }

/* ---------- Product: gallery, colour, specification ---------- */
.product-grid {
  display: grid; gap: 24px;
  grid-template-areas: "head" "media" "details";
}
.product-head { grid-area: head; }
.product-media { grid-area: media; min-width: 0; }
.product-details { grid-area: details; min-width: 0; display: grid; gap: 26px; }

.mini-label {
  margin: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); line-height: 1.3;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}
.gallery-main, .feature-media {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; position: relative;
}
/* The gallery button fills its fixed-ratio stage. The fabric photo keeps its own ratio instead:
   a 100% height there stretched the button over the caption below it. */
.gallery-main { height: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main:focus-visible, .feature-media:focus-visible { outline-offset: -4px; }
.gallery-zoom {
  position: absolute; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 40px; height: 40px;
  background: rgba(250, 248, 245, 0.92); color: var(--ink);
  border-radius: 50%; pointer-events: none;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(250, 248, 245, 0.92); color: var(--ink);
  cursor: pointer;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-caption {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-top: 10px; font-size: 0.92rem; font-weight: 600; line-height: 1.35;
}
.gallery-count { flex: none; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; margin-top: 12px; }
.thumb {
  display: grid; gap: 5px; align-content: start; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0;
}
.thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 3px; background: var(--placeholder);
  outline: 2px solid transparent; outline-offset: 2px;
}
.thumb:hover img { outline-color: var(--line-strong); }
.thumb[aria-current="true"] img { outline-color: var(--accent); }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible img { outline-color: var(--ink); }
.thumb-label { font-size: 0.74rem; font-weight: 600; line-height: 1.25; color: var(--muted); }
.thumb[aria-current="true"] .thumb-label { color: var(--ink); }

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; text-align: center;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
.video { margin-top: 12px; }
.video video { width: 100%; border-radius: var(--radius); background: #000; }

.colors { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 6px 14px 6px 8px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 700; line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.chip-dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background-color: var(--placeholder); background-size: 420%; background-position: 30% 70%;
  box-shadow: inset 0 0 0 1px rgba(30, 34, 37, 0.12);
}
.color-selected { font-size: 0.9rem; font-weight: 600; color: var(--accent); line-height: 1.35; }
.color-selected:empty { display: none; }

.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec th, .spec td {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; line-height: 1.35;
}
.spec th {
  width: 36%; padding-right: 16px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 18px;
}
.spec td { font-size: 1.05rem; font-weight: 700; }

.image-note { margin-top: 12px; }
.image-note-light { font-size: 0.86rem; line-height: 1.4; color: var(--muted); }

/* ---------- Fabric feature ---------- */
/* A quiet tinted band: blue stays for buttons, links and small labels only. */
.feature { background: var(--accent-tint); color: var(--ink); padding-block: 48px; scroll-margin-top: 12px; }
.feature-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.feature-visual { min-width: 0; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--placeholder); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text { margin-top: 16px; max-width: 34em; font-size: 1.08rem; line-height: 1.6; }
.feature-text-second { margin-top: 12px; }
.section-lead.lead-second { margin-top: 12px; }
.feature-spec {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-strong);
  font-size: 1.02rem; font-weight: 700;
}
.btn-invert { margin-top: 24px; background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-invert:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- Own brand ---------- */
.brand-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.brand-copy .btn { margin-top: 24px; }
.brand-visual { min-width: 0; }
.brand-media {
  display: block; position: relative; width: 100%; padding: 0; border: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 2 / 1;
}
.brand-media.is-static { cursor: default; }
.brand-media.is-static .gallery-zoom { display: none; }
.brand-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-media:focus-visible { outline-offset: -4px; }
.no-photo .brand-visual { display: none; }

/* ---------- Sizes and packing ---------- */
.sizes-label { margin-top: 26px; }
.size-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.size-card {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  line-height: 1.2;
}
.size-card strong { font-size: 1.35rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.size-card span { font-weight: 600; color: var(--muted); }

.sizes-lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
.sizes-col { min-width: 0; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pack {
  display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; line-height: 1.25;
}
.pack strong { font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.sizes-custom { margin-top: 16px; font-weight: 700; line-height: 1.4; }
.terms-text { margin-top: 12px; max-width: 36em; line-height: 1.5; }
.sizes-col .btn { margin-top: 20px; }

/* ---------- About the company ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.about-production { margin-top: 14px; }
.about-facts { border-top: 1px solid var(--line); }
.about-fact { padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-fact dt {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); line-height: 1.3;
}
.about-fact dd { margin-top: 4px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- Photo viewer ---------- */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #14181A; color: #F4F1EA;
}
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; }
.lb-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; min-width: 0; }
.lb-count { color: #A9B0B3; margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; overflow: hidden; touch-action: pan-y; cursor: zoom-out;
}
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-in; }
.lb-stage.is-zoomed { display: block; overflow: auto; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lb-stage.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-hint { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 0.85rem; color: #A9B0B3; }

/* ---------- Request ---------- */
.request-grid { display: grid; gap: 30px; }
.contact-card { display: grid; gap: 16px; margin-top: 24px; max-width: 420px; }
.contact-person { display: grid; gap: 2px; line-height: 1.3; }
.contact-person strong { font-size: 1.15rem; font-weight: 700; }
.contact-person span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-row { display: grid; gap: 7px; }
.contact-value {
  font-size: 1.05rem; font-weight: 700; line-height: 1.3; text-align: center;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all;
}
.contact-fallback { margin-top: 14px; font-size: 0.95rem; }

.form-title { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.fab {
  position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--accent); color: #fff; border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 53, 122, 0.3);
  transition: opacity .18s ease, transform .18s ease;
}
.fab:hover { background: var(--accent-hover); }
.fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.fab.is-away { opacity: 0; transform: scale(0.85); pointer-events: none; }
/* room under the footer so the button never rests on the last lines of the page */
html.has-fab .site-footer { padding-bottom: 84px; }
html.lb-open .fab { display: none; }

.form {
  display: grid; gap: 22px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form legend, .form label, .field-label {
  display: block; padding: 0;
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.form legend { margin-bottom: 8px; }
.optional { font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.segmented { display: grid; gap: 8px; }
.seg { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.seg:hover span { border-color: var(--accent); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented-soft .seg input:checked + span { background: var(--accent-tint); color: var(--accent); }

.fields { display: grid; gap: 18px 14px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field input[type="text"], .field select, .field textarea, .result textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea, .result textarea { resize: vertical; min-height: 104px; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2225' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  text-overflow: ellipsis;
}
.field ::placeholder { color: #8A8F92; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .result textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.hint { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

.check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.total {
  display: flex; align-items: center; min-height: 48px; padding: 11px 13px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums;
}
.total.is-empty { color: var(--muted); font-weight: 500; }
.segmented-flex { display: flex; flex-wrap: wrap; }
.segmented-flex .seg { flex: 1 1 auto; }
.segmented-flex .seg span { white-space: nowrap; padding-inline: 16px; }

.actions { display: grid; gap: 10px; }
.actions-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions-multi #btn-wa { grid-column: 1 / -1; }
.actions-multi .btn { padding-inline: 10px; font-size: 0.95rem; }
/* WhatsApp, Telegram, email and copy: WhatsApp and copy take the full row, the other two share one. */
.actions-four #btn-copy { grid-column: 1 / -1; }
.actions .btn-copy-secondary { background: transparent; color: var(--accent); }
.actions .btn-copy-secondary:hover { background: var(--accent-tint); }

.result { display: grid; gap: 7px; }
.result textarea { min-height: 150px; background: var(--bg); font-size: 0.95rem; resize: none; }
.status { min-height: 1.4em; font-size: 0.92rem; font-weight: 600; color: var(--accent); line-height: 1.4; }
.status:empty { display: none; }
.status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 26px 34px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 8px; }
.footer-brand { font-weight: 700; }
.footer-brand a { color: inherit; text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-contacts { display: grid; gap: 6px; margin-top: 6px; }
.footer-contacts a { font-weight: 600; }

/* ---------- ≥ 560px ---------- */
@media (min-width: 560px) {
  .cta-row { display: flex; flex-wrap: wrap; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .segmented { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form { padding: 28px; }
  .gallery-thumbs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .header-cta { padding: 8px 18px; }
  .header-grid { column-gap: 12px; }
  .brand-tag { font-size: 0.6rem; letter-spacing: 0.16em; white-space: nowrap; }
  .nav { gap: 4px 24px; }
  .nav a { font-size: 0.95rem; }
  .brand-logo { height: 46px; }
  .lang-btn { min-width: 40px; padding: 0 9px; }
}

/* ---------- ≥ 720px ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 18px 24px; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-block: 72px; }
  .section-ruled > .container::before { top: -72px; }
  .size-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .sizes-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .packs { gap: 12px; }
  .feature { padding-block: 64px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: baseline; }
  .footer-grid > p:nth-child(2) { text-align: right; }
  .footer-contacts { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 28px; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; z-index: 20; }
  .header-grid {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand nav lang cta";
    column-gap: 22px;
    padding-block: 14px;
  }
  .nav { justify-content: center; gap: 36px; margin-top: 0; padding: 0; border-top: 0; }
  .nav a { font-size: 1rem; }
  .header-cta { min-height: 46px; padding: 10px 24px; font-size: 1rem; }
  .section, .feature { scroll-margin-top: 78px; }

  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .hero-copy { display: block; padding-block: 12px; }
  .hero-visual, .hero-visual.has-media { display: block; margin-top: 0; }
  .hero-visual:not(.has-media) { align-self: stretch; }
  .facts { margin-top: 56px; grid-template-columns: repeat(4, 1fr); }
  .facts .fact { border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
  .facts .fact:first-child { border-left: 0; padding-left: 0; }

  .product-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: "media head" "media details";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 26px; align-items: start;
  }
  .product-head { padding-top: 4px; }
  .thumb-label { font-size: 0.76rem; }

  .feature { padding-block: 80px; }
  .feature-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }

  .brand-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: start; }
  .brand-logo { height: 52px; }
  .request-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .request-copy { position: sticky; top: 100px; }
  .fab { display: none; }
  html.has-fab .site-footer { padding-bottom: 34px; }
  .sizes-lower { gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .seg span, .chip, .fab { transition: none; }
}

@media print {
  .site-header, .actions, .skip-link, .lightbox, .fab { display: none; }
}

/* ---------- Very narrow phones (< 360px) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .header-grid { column-gap: 6px; }
  .brand-logo { height: 36px; }
  .brand-tag { font-size: 0.5rem; letter-spacing: 0.08em; }
  .lang-btn { min-width: 31px; padding: 0 5px; font-size: 0.76rem; }
  .header-cta { padding: 8px 9px; font-size: 0.8rem; }
}
