/* ===== OrbitalPro: вариант А «Техпаспорт» (светлый) ===== */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-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; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-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; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-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; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-700-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; }
@font-face { font-family: "PlexMono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "PlexMono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "PlexMono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "PlexMono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-ext-400-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: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-ext-500-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: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-ext-600-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: "Plex"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-ext-700-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: "PlexMono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-ext-400-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: "PlexMono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-ext-500-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  --paper: #F3F1EC;
  --paper-2: #FBFAF7;
  --ink: #1C1F22;
  --ink-2: #3D4247;
  --muted: #5B6168;
  --line: #D5D1C8;
  --line-strong: #1C1F22;
  --accent: #1E56A0;
  --accent-dark: #163F75;
  --accent-soft: #E3EAF4;
  --mono: "PlexMono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.container { width: min(1160px, 92%); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* ---------- Полоса группы HighTengry ---------- */
.group-strip { background: var(--ink); color: #D9D6CF; font-size: 13px; }
.group-strip__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.45rem 0; }
.group-strip a { color: var(--paper); text-decoration: none; }
.group-strip a:hover { text-decoration: underline; color: #fff; }

/* ---------- Типографика ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin-bottom: 0.6rem; }
.section__lead { color: var(--ink-2); font-size: clamp(1rem, 1.8vw, 1.1rem); max-width: 720px; margin-bottom: 2.2rem; }
.accent { color: var(--accent); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(28, 31, 34, 0.06); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { flex: none; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
.nav a { position: relative; padding: 0.45rem 0.7rem; color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.1rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after, .nav a:hover::after { transform: scaleX(1); }
.nav .nav__extra { display: none; }
.header__actions { flex: none; display: flex; align-items: center; gap: 0.9rem; }
.lang { display: flex; font-family: var(--mono); font-size: 0.8rem; }
.lang a { padding: 0.25rem 0.55rem; color: var(--ink-2); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a.is-active { background: var(--ink); color: var(--paper); }
.header__cta { white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.header.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.menu-open .burger span:nth-child(2) { opacity: 0; }
.header.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .burger { display: block; }
  .header__inner { justify-content: space-between; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 4% 1rem; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
  .header.menu-open .nav { opacity: 1; visibility: visible; }
  .nav a, .nav .nav__extra { display: block; padding: 0.85rem 0.2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .nav a.is-current { color: var(--accent); }
}
@media (max-width: 560px) {
  .header__inner { height: 60px; gap: 0.6rem; }
  .nav { top: 60px; }
  .header__cta { display: none; }
}

/* ---------- Кнопки: плоские, без градиентов и свечения ---------- */
.btn { display: inline-block; padding: 0.8rem 1.4rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: 1rem; font-family: inherit; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--whatsapp { background: #1F7A47; color: #fff; }
.btn--whatsapp:hover { background: #17603A; color: #fff; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0 4rem; border-bottom: 1px solid var(--line); }
.hero__eyebrow { display: inline-block; font-family: var(--mono); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; max-width: 900px; }
.hero__title .accent { color: var(--accent); }
.hero__sub { color: var(--ink-2); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 740px; margin: 1.4rem 0 2rem; }
.hero__sub strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); width: fit-content; max-width: 100%; }
.badge { padding: 0.55rem 1rem; font-size: 0.88rem; font-weight: 500; border-right: 1px solid var(--line); background: var(--paper-2); }
.badge:last-child { border-right: none; }
.hero__hint { margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; font-family: var(--mono); }

/* Фото и видео: не фоном под текстом, а отдельными кадрами */
.bgvideo, .bgphoto { display: none; }
.hero { overflow: hidden; }
.hero > .bgvideo { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 38vw; border-left: 1px solid var(--line-strong); background: #1C1F22 url(images/bg_site_poster.jpg) center / cover no-repeat; }
.bgvideo video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; filter: none; }
@media (min-width: 1101px) {
  .hero__title, .hero__sub, .hero__hint, .badges, .hero__actions { max-width: calc(62vw - 9rem); }
}
#usecases > .bgphoto, .section--offer > .bgvideo {
  display: block; position: relative; inset: auto; height: clamp(180px, 26vw, 340px);
  background-size: cover; background-position: center; opacity: 1; filter: none;
  margin: calc(-1 * clamp(3.2rem, 7vw, 5.2rem)) 0 clamp(2.4rem, 5vw, 3.6rem);
  border-bottom: 1px solid var(--line-strong);
}
.section--offer > .bgvideo { background: #1C1F22; }
@media (max-width: 1100px) {
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero > .bgvideo { position: relative; width: 100%; height: clamp(220px, 52vw, 380px); order: 2; margin-top: 2.5rem; border-left: 0; border-top: 1px solid var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) { .bgvideo video { display: none; } }

/* ---------- Секции ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.2rem) 0; position: relative; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--problem .card__num { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--accent); margin-bottom: 0.6rem; }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 0; border: 1px solid var(--line-strong); background: var(--paper-2); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; line-height: 1.3; }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card p strong { color: var(--ink); }
.card--icon .card__emoji, .card__icon-box { display: none; }
.card--horizontal { display: block; }
#usecases .card h3 { padding-top: 0.9rem; border-top: 3px solid var(--accent); display: inline-block; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--paper-2); font-size: 0.95rem; border: 1px solid var(--line-strong); }
.table th, .table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--ink); color: var(--paper); font-weight: 600; }
.table tbody th { color: var(--ink); font-weight: 600; }
.table td { color: var(--ink-2); }
.table td strong { color: var(--ink); }
.table .hl, td.hl, th.hl { background: var(--accent-soft); color: var(--ink) !important; font-weight: 500; }
.table thead th.hl { background: var(--accent); color: #fff !important; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
.photo-card { background: var(--paper-2); border: 1px solid var(--line-strong); display: flex; flex-direction: column; }
.photo-card__img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #E7E4DD; }
.photo-card__caption { padding: 0.8rem 1rem; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); }
.photo-ph__box { aspect-ratio: 4 / 3; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- Галерея ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.gallery-item { background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery-item:hover { border-color: var(--ink); }
.gallery-item__img-wrap { width: 100%; height: 220px; background: #E7E4DD; overflow: hidden; }
.gallery-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item__body { padding: 1.1rem 1.2rem; flex: 1; }
.gallery-item__body h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.gallery-item__body p { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Калькулятор ---------- */
.calc { background: var(--paper-2); border: 1px solid var(--line-strong); padding: clamp(1.4rem, 4vw, 2.4rem); max-width: 920px; }
.calc__controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.calc__field label { display: block; font-weight: 600; margin-bottom: 0.7rem; font-size: 0.95rem; }
.calc__field output { color: var(--accent); font-family: var(--mono); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 1.6rem; }
.calc__results { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.calc__result { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; border-right: 1px solid var(--line); }
.calc__result:last-child { border-right: none; }
.calc__result--accent { background: var(--ink); color: var(--paper); }
.calc__value { font-family: var(--mono); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 500; color: var(--ink); }
.calc__result--accent .calc__value { color: #fff; }
.calc__label { font-size: 0.82rem; color: var(--muted); }
.calc__result--accent .calc__label { color: #C9C6BF; }
.calc__note { color: var(--muted); font-size: 0.84rem; margin-bottom: 1.5rem; }

/* ---------- Предложение ---------- */
.section--offer { background: var(--paper-2); border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; background: var(--paper); border: 1px solid var(--line-strong); padding: clamp(1.4rem, 4vw, 2.4rem); }
.offer__list { list-style: none; display: grid; gap: 0.75rem; }
.offer__list li { padding-left: 1.4rem; position: relative; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); }
.offer__terms { display: grid; gap: 0; border: 1px solid var(--line); align-content: start; }
.offer__term { padding: 0.9rem 1.1rem; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.offer__term:last-child { border-bottom: none; }
.offer__term strong { font-family: var(--mono); color: var(--muted); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.offer__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.offer__price { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; color: var(--ink); }
.offer__price small { display: block; font-size: 0.42em; color: var(--muted); font-weight: 400; max-width: 560px; line-height: 1.45; margin-top: 0.3rem; }

/* ---------- Форма ---------- */
.form-wrap { max-width: 840px; }
.form { background: var(--paper-2); border: 1px solid var(--line-strong); padding: clamp(1.4rem, 4vw, 2.4rem); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__group--full { margin-bottom: 1.1rem; }
.form label { font-weight: 500; font-size: 0.92rem; }
.form label em { color: var(--accent); font-style: normal; }
.form input, .form select, .form textarea { background: #fff; border: 1px solid #8A8F95; padding: 0.8rem 0.9rem; color: var(--ink); font-size: 1rem; font-family: inherit; width: 100%; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form input.invalid, .form select.invalid { border-color: #B3261E; outline-color: #B3261E; }
.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.86rem !important; line-height: 1.5; color: var(--ink-2); margin: 0.4rem 0 1.1rem; cursor: pointer; }
.form__consent input { width: 20px !important; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); padding: 0 !important; }
.form__submit { width: 100%; margin-top: 0.2rem; }
.form__status { margin-top: 1rem; font-weight: 600; text-align: center; }
.form__status.ok { color: #1F7A47; }
.form__status.err { color: #B3261E; }
.form__fallback { margin-top: 1.2rem; text-align: center; color: var(--ink-2); }
.form__fallback-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 0.8rem; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #C9C6BF; padding: 2.8rem 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
.footer .logo { color: var(--paper); }
.footer .logo span { color: #8FB3E3; }
.footer h3 { margin-bottom: 0.6rem; font-size: 1rem; color: var(--paper); }
.footer p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: #fff; }
.footer__disclaimer { border-top: 1px solid #34383C; padding-top: 1.3rem; }
.footer__disclaimer p { font-size: 0.78rem; color: #9C9890; }

/* ---------- Появление при прокрутке ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-on .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

[id] { scroll-margin-top: 76px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .offer { grid-template-columns: 1fr; }
  .calc__controls, .calc__results { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards--3, .cards--4, .cards--2, .calc__controls, .calc__results, .form__grid, .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .badges { width: 100%; }
  .badge { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--line); }
  .table { font-size: 0.86rem; }
  .offer__cta { flex-direction: column; align-items: stretch; }
}

/* ---------- Статьи ---------- */
.page-article main { padding: 3rem 0 4rem; }
.article { max-width: 820px; }
.article__crumbs { margin-bottom: 1.2rem; font-size: 0.9rem; }
.article__crumbs a { color: var(--muted); text-decoration: none; }
.article__crumbs a::before { content: "← "; }
.article__crumbs a:hover { color: var(--accent); }
.article__title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.article__lead { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 2.2rem; border-left: 3px solid var(--accent); padding-left: 1rem; }
.article__body { font-size: 1.04rem; line-height: 1.75; }
.article__body h2 { font-size: 1.55rem; margin: 2.4rem 0 0.9rem; }
.article__body h3 { font-size: 1.18rem; margin: 1.8rem 0 0.6rem; }
.article__body p, .article__body ul, .article__body ol { margin-bottom: 1.1rem; }
.article__body ul, .article__body ol { padding-left: 1.4rem; }
.article__body li { margin-bottom: 0.4rem; }
.article__body a { word-break: break-word; }
.article__body strong { color: var(--ink); }
.article__body blockquote { background: var(--paper-2); border: 1px solid var(--line); padding: 1rem 1.3rem; margin: 1.4rem 0; }
.article__body .table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.article__body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.article__body th { background: var(--paper-2); }
.article__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.acards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-strong); }
.page-article .article:has(.acards) { max-width: 1160px; }
.acard { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--paper-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acard:hover { background: #fff; }
.acard__num { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; }
.acard__title { font-size: 1.15rem; line-height: 1.3; }
.acard__desc { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.acard__more { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 720px) { .acards { grid-template-columns: 1fr; } }

/* ---------- Исправления вёрстки на телефоне (01.12) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.group-strip__inner { flex-wrap: nowrap; align-items: center; }
.group-strip__inner > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-strip__inner > a { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
  .header__actions .header__cta { display: none; }
  .header__actions { gap: 0.5rem; }
  .lang a { padding: 0.25rem 0.45rem; }
}
@media (max-width: 400px) {
  .group-strip__inner > span { display: none; }
  .group-strip__inner { justify-content: flex-end; }
}
.article__body, .article, main { overflow-wrap: break-word; }
.article__body li, .article__body p, .article__body a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .table--compare { table-layout: fixed; width: 100%; }
  .table--compare th, .table--compare td { padding: 0.6rem 0.45rem; font-size: 0.8rem; overflow-wrap: anywhere; hyphens: auto; }
}

/* Фото: в «Где ручная сварка…» убрано, в «Где применяется» склад трубных узлов */
#usecases > .bgphoto { background-image: url(images/bg_spools.jpg) !important; }

/* Название проекта: шрифтовой знак с плашкой PRO */
.logo { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.logo span { font-family: var(--mono); font-size: 0.6em; font-weight: 600; letter-spacing: 0.14em; color: #fff; background: var(--accent); padding: 0.34em 0.5em 0.3em; border-radius: 2px; }
.footer .logo span { color: var(--ink); background: #8FB3E3; }
@media (max-width: 400px) { .logo { font-size: 1.1rem; letter-spacing: 0.04em; gap: 0.35rem; } }

/* Пометка «Создано ИИ» на всех фото и видео (Закон РК об искусственном интеллекте) */
.photo-card, .gallery-item__img-wrap { position: relative; }
.hero > .bgvideo::after, #usecases > .bgphoto::after, .section--offer > .bgvideo::after,
.photo-card::after, .gallery-item__img-wrap::after {
  content: "Создано ИИ"; position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 3px 8px; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.02em;
  background: rgba(28, 31, 34, 0.82); color: #F3F1EC; border-radius: 2px; pointer-events: none;
}
html:lang(kk) .hero > .bgvideo::after, html:lang(kk) #usecases > .bgphoto::after, html:lang(kk) .section--offer > .bgvideo::after,
html:lang(kk) .photo-card::after, html:lang(kk) .gallery-item__img-wrap::after { content: "ЖИ арқылы жасалған"; }
html:lang(en) .hero > .bgvideo::after, html:lang(en) #usecases > .bgphoto::after, html:lang(en) .section--offer > .bgvideo::after,
html:lang(en) .photo-card::after, html:lang(en) .gallery-item__img-wrap::after { content: "AI-generated"; }
html:lang(uz) .hero > .bgvideo::after, html:lang(uz) #usecases > .bgphoto::after, html:lang(uz) .section--offer > .bgvideo::after,
html:lang(uz) .photo-card::after, html:lang(uz) .gallery-item__img-wrap::after { content: "SI yordamida yaratilgan"; }

/* Первый экран: неподвижное фото вместо видео, в кадре аппарат и сварочная головка */
.hero > .bgvideo video { display: none !important; }
.hero > .bgvideo { background-image: url(images/bg_site_poster.jpg); background-size: cover; background-position: 62% 60%; }
@media (min-width: 1101px) {
  .hero > .bgvideo { bottom: auto; height: min(100%, calc(100vh - 104px)); border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 1100px) {
  .hero > .bgvideo { background-size: 150% auto; background-position: 64% 92%; }
}

/* «Состав комплекта и условия»: неподвижное фото вместо видео */
.section--offer > .bgvideo video { display: none !important; }
.section--offer > .bgvideo { background: #1C1F22 url(images/bg_assembly_poster.jpg) 70% 62% / cover no-repeat; }
@media (max-width: 640px) {
  .section--offer > .bgvideo { background-size: 140% auto; background-position: 78% 62%; }
}
