/* Concept: the site reads like a printer's test page — CMYK strips,
   mono print-job labels. Brand red from the MegaPrint logo, ink black, white paper. */
:root {
  --paper: #ffffff;
  --paper-2: #f2f3f5;
  --ink: #121316;
  --ink-2: #2c2f35;
  --muted: #676b74;
  --line: #e1e3e7;
  --line-2: #d6d9de;
  --surface: #ffffff;
  --field: #f2f3f5;
  --header-bg: rgba(255, 255, 255, .94);
  --chip-bg: rgba(255, 255, 255, .94);
  --brand-text: #4a4e56;
  --logo-blue: #2b4ea8;
  --invalid-bg: #fff4f5;
  --hover: #f5a400;        /* hover accent for outlined controls */
  --outline: #c9ccd2;
  --dark: #121316;          /* stays dark in both themes: ink sections, photo frames */
  --sun: 0;               /* 1 in dark theme: drives the sun/moon swap animation */
  --dark-ring: transparent;
  --wa-green: #189a48;      /* WhatsApp green, darkened enough to read on white */
  --wa-btn: #f2f3f5;        /* hero WhatsApp button: soft grey fill in light, white in dark */
  --wa-btn-line: #d6d9de;
  --wa-btn-hover: #e8eaed;
  --wa-btn-hover-line: #121316;
  --photo-bg: var(--dark);
  --photo-radius: 28px;
  --photo-shadow: none;
  --photo-ring: transparent;
  --photo-mask: none;
  --photo-glow: 0;
  --photo-strip: 0;
  /* light theme: crisp card edges, only the top-left corner softly lightens into the page */
  --frame-mask: radial-gradient(circle at 0 0, rgba(0, 0, 0, .55) 0, #000 32%);
  --red: #cf0a1f;          /* a touch deeper than the sign red: calmer on buttons and the request block */
  --red-2: #ad0818;
  --brand-red: #e2001a;     /* exact sign red, kept for the logo */

  /* process colours, used only where the page shows actual print output */
  --c: #00a0e3;
  --m: #e5007d;
  --y: #ffdd00;
  --k: #121316;

  --display: "Geologica", "Golos Text", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --content: 1600px;
  --header-h: 76px;
  --radius: 14px;
}

/* ===== Dark theme: follows the system unless the visitor picked one with the header switch ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #0f1013;
    --paper-2: #16181c;
    --surface: #1d2025;
    --field: #262a30;
    --ink: #eceef1;
    --ink-2: #c3c7ce;
    --muted: #959ba5;
    --line: #2a2d34;
    --line-2: #363a42;
    --header-bg: rgba(15, 16, 19, .88);
    --chip-bg: rgba(29, 32, 37, .94);
    --brand-text: #a9aeb7;
    --logo-blue: #7a9cff;
    --invalid-bg: #3a1418;
    --sun: 1;
  --dark-ring: #2e3138;
  --wa-green: #25d366;
  --wa-btn: #eceef1;
  --wa-btn-line: #eceef1;
  --wa-btn-hover: #ffffff;
  --wa-btn-hover-line: #ffffff;
  --photo-bg: transparent;
  --photo-radius: 0;
  --photo-shadow: none;
  --photo-ring: transparent;
  --photo-mask: radial-gradient(ellipse 68% 66% at 52% 50%, #000 58%, transparent 100%);
  --photo-glow: 1;
  --photo-strip: 0;
  --frame-mask: none;
  --outline: #3a3e46;
  --k: #3a3d44;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1013;
  --paper-2: #16181c;
  --surface: #1d2025;
  --field: #262a30;
  --ink: #eceef1;
  --ink-2: #c3c7ce;
  --muted: #959ba5;
  --line: #2a2d34;
  --line-2: #363a42;
  --header-bg: rgba(15, 16, 19, .88);
  --chip-bg: rgba(29, 32, 37, .94);
  --brand-text: #a9aeb7;
  --logo-blue: #7a9cff;
  --invalid-bg: #3a1418;
  --sun: 1;
  --dark-ring: #2e3138;
  --wa-green: #25d366;
  --wa-btn: #eceef1;
  --wa-btn-line: #eceef1;
  --wa-btn-hover: #ffffff;
  --wa-btn-hover-line: #ffffff;
  --photo-bg: transparent;
  --photo-radius: 0;
  --photo-shadow: none;
  --photo-ring: transparent;
  --photo-mask: radial-gradient(ellipse 68% 66% at 52% 50%, #000 58%, transparent 100%);
  --photo-glow: 1;
  --photo-strip: 0;
  --frame-mask: none;
  --outline: #3a3e46;
  --k: #3a3d44;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 2.8vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.red { color: var(--red); }
.mono { font-family: var(--mono); }
.ico { width: 20px; height: 20px; flex: none; }

.label {
  font-family: var(--mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.label--light { color: rgba(255, 255, 255, .72); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--body); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.ico--wa { color: #25d366; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--wa { background: var(--wa-btn); color: #121316; border-color: var(--wa-btn-line); }
.btn--wa:hover { background: var(--wa-btn-hover); border-color: var(--wa-btn-hover-line); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.btn--wa:active { transform: translateY(0); }
.btn--wa .ico--wa { color: var(--wa-green); transition: transform .2s; }
.btn--wa:hover .ico--wa { transform: scale(1.12); }

.link { font-weight: 600; color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--red-2); }

/* ===== Wordmark: as on the shop sign — MEGA PRINT in red caps, SERVICE in blue after three slanted stripes ===== */
.logo { display: inline-flex; align-items: center; }
.wordmark { display: inline-grid; font-family: var(--display); line-height: .9; }
.wordmark__top { font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; color: var(--brand-red); white-space: nowrap; }
.wordmark__bot { display: flex; align-items: center; gap: 6px; margin-top: 3px; padding-left: 1px; }
.wordmark__stripes { display: flex; gap: 2px; }
.wordmark__stripes i { width: 6px; height: 14px; transform: skewX(-22deg); }
.wordmark__stripes i:nth-child(1) { background: #2b59c3; }
.wordmark__stripes i:nth-child(2) { background: #8fb1ff; }
.wordmark__stripes i:nth-child(3) { background: var(--brand-red); }
.wordmark__svc { font-weight: 800; font-style: italic; font-size: 1.05rem; letter-spacing: .06em; color: var(--logo-blue); }

#page-top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header { transition: border-color .2s, transform .35s ease, opacity .35s ease; }
.header.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.header.is-scrolled { border-bottom-color: var(--line); }
/* open mobile menu: a separator line in the logo's SERVICE blue grows from the centre outwards */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--logo-blue);
  transform: scaleX(0); transform-origin: center; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.header.menu-open { border-bottom-color: transparent; }
.header.menu-open::after { transform: scaleX(1); }
/* constant height: a sticky header that resizes on scroll shifts the page under it and makes scrolling stutter near the top */
.header__inner { --hdr-gap: 36px; height: var(--header-h); display: flex; align-items: center; gap: var(--hdr-gap); }
/* language and theme switches sit together as one settings group */
.lang-menu + .theme-toggle { margin-left: min(0px, calc(8px - var(--hdr-gap))); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--red); }
.header__cta { display: flex; align-items: center; gap: 20px; }
.header__phone { font-family: var(--mono); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #b8bcc4; }
.status.is-open i { background: #2fbf71; }
.status.is-open { color: var(--ink-2); }
.header__phone:hover { color: var(--red); }
.header__phones { display: grid; gap: 2px; text-align: right; }
.header__phones .header__phone { font-size: .88rem; line-height: 1.25; }
.nav__phones { display: none; }
.header__call { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; place-items: center; }
.header__call svg { width: 20px; height: 20px; }
.lang-menu { position: relative; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px;
  border: 1px solid var(--outline); border-radius: 12px; background: transparent; color: var(--ink);
  font: 700 .82rem var(--mono); cursor: pointer; transition: border-color .2s;
}
.lang-menu__btn:hover, .lang-menu__btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-menu__btn svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.lang-menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 160px; padding: 6px;
  display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.lang-menu__list[hidden] { display: none; }
.lang-menu__list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink);
  font: 500 .95rem var(--body); text-align: left; cursor: pointer;
}
.lang-menu__list button:hover { background: var(--paper-2); }
.lang-menu__list button[aria-pressed="true"] { color: var(--red); font-weight: 600; }
.lang-menu__list button[aria-pressed="true"]::after { content: "✓"; font-size: .85rem; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--outline); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--hover); color: var(--hover); }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg {
  position: absolute; top: 50%; left: 50%; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px;
  transition: transform .55s cubic-bezier(.5, -0.4, .3, 1.4), opacity .35s ease;
}
/* the moon rolls out to one side while the sun rolls in from the other, and back */
.theme-toggle .i-moon {
  opacity: calc(1 - var(--sun));
  transform: rotate(calc(var(--sun) * -100deg)) scale(calc(1 - var(--sun) * .5)) translateY(calc(var(--sun) * 14px));
}
.theme-toggle .i-sun {
  opacity: var(--sun);
  transform: rotate(calc((1 - var(--sun)) * 100deg)) scale(calc(.5 + var(--sun) * .5)) translateY(calc((1 - var(--sun)) * 14px));
}
.theme-toggle .i-sun .rays { transform-origin: 12px 12px; transition: transform .6s ease; }
.theme-toggle:hover .i-sun .rays { transform: rotate(45deg); }
.theme-toggle:hover .i-moon { transform: rotate(-18deg); }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.hero__title {
  margin: 18px 0 28px; font-family: var(--display); font-weight: 500;
  font-size: clamp(2.5rem, 4.5vw, 5rem); line-height: 1; letter-spacing: -.045em;
}
.hero__lead { max-width: 36em; font-size: clamp(1.02rem, 1.1vw, 1.15rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.symptoms { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.symptoms__label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.symptoms__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 .9rem/1.2 var(--body); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); background: var(--paper-2); }

/* printer output slot + test page */
.hero__visual { position: relative; }
.hero__photo { margin: 0 0 0 auto; width: 100%; aspect-ratio: 1100 / 894; max-height: 600px; border-radius: var(--photo-radius); overflow: hidden; background: var(--photo-bg); box-shadow: var(--photo-shadow); -webkit-mask-image: var(--frame-mask); mask-image: var(--frame-mask); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* hero slider: photos cross-fade with a slight settle; story-style progress pills top right */
.hero__slider { --slide-time: 5s; touch-action: pan-y; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 1.5s ease-in-out, transform 2.2s cubic-bezier(.2, .7, .2, 1); }
.hero__slide.is-active { opacity: 1; transform: none; }
.hero__dots { position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; gap: 6px; }
.hero__dots button { width: 34px; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.hero__dots button { position: relative; }
.hero__dots button::before { content: ""; position: absolute; inset: -13px -3px; }   /* invisible 40×44 tap area */
.hero__dots i { display: block; position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-selected="true"] i::after { animation: slide-progress var(--slide-time) linear forwards; }
.hero__slider.is-paused .hero__dots [aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes slide-progress { to { transform: scaleX(1); } }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--photo-ring); pointer-events: none; }
/* dark theme: no card — the photo dissolves into the page, a soft light pool sits behind the printer */
.hero__photo::before {
  content: ""; position: absolute; inset: 8% 6% 4%; z-index: 0; pointer-events: none; opacity: var(--photo-glow);
  background: radial-gradient(ellipse 60% 55% at 50% 58%, rgba(255, 255, 255, .07), transparent 70%);
}
.hero__slide { -webkit-mask-image: var(--photo-mask); mask-image: var(--photo-mask); }
.hero__strip { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; opacity: var(--photo-strip); }
.hero__strip i:nth-child(1) { background: var(--c); } .hero__strip i:nth-child(2) { background: var(--m); } .hero__strip i:nth-child(3) { background: var(--y); } .hero__strip i:nth-child(4) { background: var(--k); }
.hero__chip {
  position: absolute; bottom: -20px; left: 28px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--chip-bg); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 22px 24px 30px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 300; font-size: clamp(2.1rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

.colorbar { display: grid; grid-template-columns: repeat(4, 1fr); height: 10px; }
.colorbar i:nth-child(1) { background: var(--c); }
.colorbar i:nth-child(2) { background: var(--m); }
.colorbar i:nth-child(3) { background: var(--y); }
.colorbar i:nth-child(4) { background: var(--k); }
.colorbar--thin { height: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--dark); color: #fff; }
.section--red { background: var(--red); color: #fff; }
.head { margin-bottom: 48px; }
.head h2 { margin-top: 14px; }
.head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ===== Services: a list, not cards ===== */
.svc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__item a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 170px 32px; gap: 32px; align-items: center;
  padding: 34px 12px; transition: background-size .5s cubic-bezier(.6, 0, .2, 1), padding .35s;
  background: linear-gradient(var(--red), var(--red)) no-repeat left center / 0% 100%;
}
.svc__text, .svc__tag { transition: color .3s, border-color .3s; }
.svc__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.035em; transition: color .3s; }
.svc__text { color: var(--muted); font-size: .98rem; }
.svc__tag { justify-self: end; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); white-space: nowrap; }
.svc__go { justify-self: end; font-size: 1.5rem; color: var(--red); transition: transform .25s; }
.svc__item a:hover { background-size: 100% 100%; padding-left: 28px; padding-right: 28px; }
.svc__item a:hover .svc__name, .svc__item a:hover .svc__go { color: #fff; }
.svc__item a:hover .svc__text { color: rgba(255, 255, 255, .85); }
.svc__item a:hover .svc__tag { color: #fff; border-color: rgba(255, 255, 255, .5); }
.svc__item a:hover .svc__go { transform: translateX(8px); }
.brands { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.brands__label { flex: none; font-family: var(--mono); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.brands__list li { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; color: var(--brand-text); }


/* ===== Services bento ===== */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 250px;
  background: var(--paper-2); color: var(--ink); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover { transform: translateY(-4px); }
.tile--xl { grid-column: span 4; grid-row: span 2; }
.bento .tile:nth-child(2) { grid-column: span 2; }
.bento .tile:nth-child(3) { grid-column: span 2; }
.bento .tile:nth-child(4) { grid-column: span 3; }
.bento .tile:nth-child(5) { grid-column: span 3; }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover > img { transform: scale(1.06); }
.tile--photo { color: #fff; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 19, 22, .15) 0%, rgba(18, 19, 22, .72) 40%, rgba(18, 19, 22, .94) 100%); }
.tile--light { color: var(--ink); }
.tile--light::before { background: none; }
.tile--light .tile__body { padding: 18px 20px; border-radius: 14px; background: var(--chip-bg); }
.tile--paper { background: var(--paper-2); color: var(--ink); }
.tile--ink { background: var(--dark); color: #fff; box-shadow: inset 0 0 0 1px var(--dark-ring); }
.tile__tag { position: absolute; top: 22px; left: 24px; padding: 5px 11px; border-radius: 999px; font-family: var(--mono); font-size: .72rem; background: rgba(255, 255, 255, .9); color: var(--dark); }
.tile--ink .tile__tag { background: rgba(255, 255, 255, .14); color: #fff; }
.tile--paper .tile__tag { background: var(--surface); color: var(--ink); }
.tile--light .tile__tag { background: var(--ink); color: var(--paper); }
.tile__body { display: grid; gap: 8px; max-width: 34em; }
.tile__body b { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1.7vw, 1.65rem); line-height: 1.1; letter-spacing: -.03em; }
.tile--xl .tile__body b { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
.tile__body span { font-size: .98rem; opacity: .92; }
.tile--light .tile__body { max-width: 52%; }
.tile__go {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; background: #fff; color: var(--dark);
  transition: transform .3s, background .3s, color .3s;
}
.tile:hover .tile__go { transform: rotate(-45deg); background: var(--red); color: #fff; }
.tile--ink:hover .tile__go { background: var(--red); color: #fff; }
.tile__icon { position: absolute; right: 24px; top: 50%; width: 88px; height: 88px; margin-top: -44px; color: rgba(255, 255, 255, .08); }
.tile--paper::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(18, 19, 22, .05); z-index: -1; }

/* ===== How ===== */
.how { display: grid; grid-template-columns: 1fr; gap: 56px; }
.how__intro h2 { margin: 14px 0 20px; }
.how__intro > p:not(.label) { color: var(--ink-2); font-size: 1.05rem; max-width: 32em; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 21px; left: 0; height: 2px; background: var(--line-2); right: 0; }
.steps::after { background: var(--ink); right: 100%; transition: right 1.6s cubic-bezier(.6, 0, .2, 1); }
.steps.is-run::after { right: 0; }
.steps li { position: relative; display: grid; gap: 18px; align-content: start; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink); font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--ink); }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* ===== B2B ===== */
.b2b-band { position: relative; overflow: hidden; isolation: isolate; }
.b2b-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.b2b-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 19, 22, .96) 0%, rgba(18, 19, 22, .93) 50%, rgba(18, 19, 22, .92) 100%); }
.b2b { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.b2b h2 { margin: 14px 0 20px; }
.b2b__lead { color: #d0d3d9; font-size: 1.05rem; max-width: 30em; margin-bottom: 32px; }
.b2b__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #fff; }
.b2b__list li { padding: 24px 20px 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.b2b__list li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .15); }
.b2b__list b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.b2b__list span { color: #d0d3d9; font-size: .93rem; }

/* ===== Shop ===== */
.shop { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.shop__copy h2 { margin: 14px 0 20px; }
.shop__copy p:not(.label) { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 32px; }
.shop__table { border-top: 2px solid var(--ink); }
.shop__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.shop__row--head { padding: 12px 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shop__row:not(.shop__row--head) span:first-child { color: var(--muted); font-size: .92rem; }
.shop__row span:first-child b { display: block; color: var(--ink); font-size: 1.02rem; }
.shop__row .mono { font-size: .9rem; line-height: 1.7; font-weight: 500; }

/* ===== Reviews: rating ===== */
.rating { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.rating__score { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.rating__num { font-family: var(--display); font-weight: 300; font-size: clamp(5rem, 8vw, 8rem); line-height: .85; letter-spacing: -.06em; }
.rating__stars { color: #f5a400; font-size: 1.6rem; letter-spacing: 4px; }
.rating__count { margin: 6px 0 20px; font-weight: 600; font-size: 1.1rem; }
.rating__quotes { display: grid; gap: 24px; }
.rating__quotes blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--ink); }
.rating__quotes p { font-size: 1rem; color: var(--ink-2); }
.rating__quotes footer { margin-top: 6px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq__aside { display: grid; gap: 16px; justify-items: start; }
.faq__aside p { color: var(--muted); max-width: 26em; }
.faq__phone { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }
.faq__phone:hover { color: var(--red); }
.faq__phones { display: grid; gap: 4px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ===== Request ===== */
.request { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.request h2 { margin: 14px 0 18px; font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.request__copy > p:not(.label) { color: rgba(255, 255, 255, .85); font-size: 1.08rem; max-width: 28em; }
.request__phones { display: grid; gap: 4px; margin-top: 32px; }
.request__phones a { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.request__phones a:hover { text-decoration: underline; text-underline-offset: 6px; }
.form { display: grid; gap: 16px; padding: 32px; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px rgba(80, 0, 10, .25); }
.field { display: grid; gap: 6px; }
.field span { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: 10px;
  transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23959ba5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.field.is-invalid input { border-color: var(--red); background: var(--invalid-bg); }
.form__note { font-size: .9rem; color: var(--red); text-align: center; }
.form__note:empty { display: none; }
.form[hidden] { display: none; }
.form-done { justify-items: center; text-align: center; gap: 12px; padding: 40px 32px; }
.form-done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(37, 211, 102, .12); color: var(--wa-green); animation: done-pop .45s cubic-bezier(.2, .9, .3, 1.3); }
.form-done__icon svg { width: 34px; height: 34px; }
.form-done h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; outline: none; }
.form-done p { color: var(--muted); max-width: 26em; }
.form-done__alt { margin-top: 8px; font-size: .9rem; }
.form-done__phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.form-done__phones a:hover { color: var(--red); }
.form-done .btn { margin-top: 10px; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } }

/* ===== Contacts ===== */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: stretch; }
.contacts h2 { margin-top: 14px; }
.contacts__list { margin: 32px 0; border-top: 2px solid var(--ink); }
.contacts__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contacts__list dd { margin: 0; font-weight: 600; }
.contacts__list a:hover { color: var(--red); }
/* invisible larger tap areas for the small phone links; the two stacked numbers split the space between them */
.contacts__list a, .footer__meta a { position: relative; }
.contacts__list a::after, .footer__meta a::after { content: ""; position: absolute; inset: -10px -6px; }
.contacts__list a:first-of-type::after { bottom: -2px; }
.contacts__list a:last-of-type::after { top: -2px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 12px; font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: var(--paper); }
.socials svg { width: 18px; height: 18px; }
.map { min-height: 420px; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.3); }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3); } }

/* ===== Footer ===== */
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 40px; padding-bottom: 40px; }
.footer__motto { font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: -.01em; }
.footer__meta { margin-left: auto; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.footer__meta a:hover { color: var(--red); }

/* ===== Floating WhatsApp ===== */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }

/* ===== WhatsApp number picker ===== */
.wa-sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.wa-sheet[hidden] { display: none; }
.wa-sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 13, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: wa-fade .25s ease; }
.wa-sheet__panel {
  position: relative; width: 100%; max-width: 380px; padding: 30px 24px 24px; text-align: center;
  background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: wa-pop .32s cubic-bezier(.2, .9, .3, 1.2);
}
.wa-sheet__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.wa-sheet__close:hover { color: var(--ink); background: var(--paper-2); }
.wa-sheet__close svg { width: 20px; height: 20px; }
.wa-sheet__logo { width: 44px; height: 44px; margin: 0 auto 12px; color: #25d366; }
.wa-sheet__title { font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: -.02em; }
.wa-sheet__text { margin: 6px 0 20px; color: var(--muted); font-size: .95rem; }
.wa-sheet__list { display: grid; gap: 10px; }
.wa-sheet__num {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  transition: border-color .2s, transform .2s;
}
.wa-sheet__num:hover { border-color: #25d366; transform: translateY(-1px); }
.wa-sheet__num svg { width: 20px; height: 20px; flex: none; color: #25d366; }
.wa-sheet__who { display: grid; gap: 2px; text-align: left; }
.wa-sheet__name { font-size: .92rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.wa-sheet__phone { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; line-height: 1.2; white-space: nowrap; }
/* WhatsApp picker: numbers in WhatsApp green */
#waSheet .wa-sheet__phone { color: var(--wa-green); }
/* call picker: same sheet, red accents */
.call-sheet .wa-sheet__logo { width: 40px; height: 40px; color: var(--red); }
.call-sheet .wa-sheet__phone, .call-sheet .wa-sheet__num svg { color: var(--red); }
.call-sheet .wa-sheet__num:hover { border-color: var(--red); }
@keyframes wa-fade { from { opacity: 0; } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@media (max-width: 640px) {
  .wa-sheet { place-items: end center; padding: 0; }
  .wa-sheet__panel { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); animation-name: wa-up; }
  @keyframes wa-up { from { transform: translateY(100%); } }
}

/* While the theme flips, colour transitions are off so every element repaints in the same frame
   (only the sun/moon icon keeps its own animation) */
html.theme-switching *:not(.i-sun):not(.i-moon):not(.rays),
html.theme-switching *::before,
html.theme-switching *::after { transition: none !important; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-sheet__backdrop, .wa-sheet__panel { animation: none; }
  .hero__dots [aria-selected="true"] i::after { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1620px) {
  .status { display: none; }
}

@media (max-width: 1240px) {
  .header__inner { --hdr-gap: 22px; }
  .header__cta { gap: 14px; }
  .nav { gap: 16px; }
  .nav a { font-size: .9rem; }
  .header__cta .btn { display: none; }
}

@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .how, .b2b, .shop, .faq, .request, .contacts { grid-template-columns: 1fr; gap: 48px; }
  /* tablets keep text and photo side by side, like on desktop */
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .hero__title { font-size: clamp(1.9rem, 4.3vw, 2.6rem); }
  .hero__label-sep { display: none; }
  .hero__label-exp { display: block; margin-top: 4px; }
  .hero__chip { left: 12px; font-size: .8rem; padding: 8px 12px; }
  .hero__lead { font-size: 1rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tile, .bento .tile:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .bento .tile--xl:nth-child(n) { grid-column: span 2; min-height: 380px; }
  .bento .tile:nth-child(5) { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc__item a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; }
  .svc__text { grid-column: 1; grid-row: 2; }
  .svc__tag { grid-column: 2; grid-row: 1; }
  .svc__go { display: none; }
  .rating { grid-template-columns: 1fr; gap: 40px; }

  .header__inner { --hdr-gap: 10px; }
  .header__cta { margin-left: auto; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: calc(var(--header-h) + 1px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav__phones { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav__phones a { padding: 8px 0; border: 0; font-family: var(--mono); font-weight: 700; color: var(--red); }
}

@media (max-width: 700px) {
  .hero { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  /* phones: size follows the available width so each service stays on one line
     ("Заправка картриджей" is ~10.4 em wide; the Kyrgyz line is longer, ~12.2 em) */
  .hero__title { font-size: min(2.5rem, calc((100vw - 2 * var(--gutter)) / 10.8)); }
  html[lang="ky"] .hero__title { font-size: min(2.5rem, calc((100vw - 2 * var(--gutter)) / 12.7)); }
  .hero__title-top { font-size: 1.12em; }   /* the first line is shorter, so it can be a little larger */
  .hero__visual { order: -1; width: 100%; }
  .hero__photo { aspect-ratio: 16 / 11; max-height: 42vh; border-radius: min(var(--photo-radius), 20px); }
  .hero__dots { top: 12px; right: 12px; }
  .hero__chip { bottom: -14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  /* lighter mobile header: icon buttons without frames, only the call button is filled */
  .header__inner { --hdr-gap: 4px; }
  .wordmark__top { font-size: 1.4rem; }
  .wordmark__svc { font-size: .92rem; }
  .wordmark__stripes i { width: 5px; height: 12px; }
  .theme-toggle, .burger { width: 40px; height: 40px; border: 0; background: transparent; }
  .lang-menu { margin-left: auto; }
  .lang-menu__btn { height: 40px; padding: 0 6px 0 8px; gap: 3px; border-color: transparent; }
  .lang-menu__btn svg { width: 12px; height: 12px; }
  .burger span { width: 20px; }
  .header__call { width: 40px; height: 40px; border-radius: 12px; margin: 0 2px; }
  .header__call svg { width: 18px; height: 18px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { margin-top: 48px; }
  .facts > div { padding: 18px 12px 22px 0; }
  .facts > div + div { padding-left: 12px; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .svc__item a { grid-template-columns: 1fr; padding: 24px 0; }
  .svc__item a:hover { padding-left: 0; padding-right: 0; background-size: 0% 100%; }
  .svc__item a:hover .svc__name { color: var(--red); }
  .svc__item a:hover .svc__text { color: var(--muted); }
  .svc__item a:hover .svc__tag { color: var(--ink-2); border-color: var(--line); }
  .svc__tag { grid-column: 1; grid-row: 3; justify-self: start; }
  .b2b__list { grid-template-columns: 1fr; }
  .b2b__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .shop__row { grid-template-columns: 1fr; gap: 6px; }
  .shop__row--head { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile:nth-child(n), .bento .tile--xl:nth-child(n) { grid-column: span 1; }
  .tile { min-height: 230px; padding: 22px; }
  .tile--light .tile__body { max-width: 75%; }
  .steps { grid-template-columns: 1fr; }
    .hero__chip { left: 14px; bottom: -16px; font-size: .78rem; padding: 8px 12px; }
  .tile__icon { display: none; }
  .form { padding: 22px; }
  .contacts__list div { grid-template-columns: 1fr; gap: 2px; }
  .footer__meta { margin-left: 0; }
  .fab { width: 52px; height: 52px; right: 16px; bottom: 16px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  .header__cta { display: none; }
  .header__call { display: grid; }
}
