html { scroll-behavior: smooth; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ember-deep);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 244, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 42px; height: 42px; flex: none; }
.brand span b { color: var(--ember-deep); font-weight: 800; }

.nav { display: none; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-card);
}
.lang span,
.lang a {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover { color: var(--text); background: var(--bg-soft); }
.lang [aria-current="true"] { background: var(--bg-soft); color: var(--text); }
.lang [aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* ---------- Buttons ---------- */

.header-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(800px 380px at 85% 100%, rgba(255, 154, 60, 0.24), transparent 70%),
    radial-gradient(700px 360px at 0% 100%, rgba(163, 185, 79, 0.26), transparent 70%),
    radial-gradient(640px 320px at 5% 0%, rgba(240, 82, 45, 0.08), transparent 70%),
    var(--bg);
}

#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 40px;
}

h1 {
  font-size: clamp(36px, 9vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { text-wrap: balance; }
h1 em {
  white-space: nowrap;
  font-style: normal;
  background: linear-gradient(100deg, #ff7a2e, #e0381a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.actions .btn { flex: 1 1 220px; }

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.chips-hint {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}
.industries { margin-top: 10px; }

/* ---------- KPI card ---------- */

/* ---------- Карточка первого экрана: «было и стало» ---------- */
.flow-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
}
.flow-toggle button {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.flow-toggle button.on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px -2px rgba(120, 60, 20, 0.3);
}

.flow-stage { position: relative; height: 282px; }
.flow-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 13px;
  transition: opacity 0.5s ease;
}
.flow-frame .fdots {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 14px 0 0 var(--glow), 28px 0 0 var(--avocado);
  margin-right: 28px;
  align-self: flex-start;
  margin-top: 7px;
}
.flow-frame b { align-self: flex-start; margin-top: 2px; white-space: nowrap; }
.flow-frame em {
  align-self: flex-start;
  margin: 0 0 0 auto;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* Заметка: без скриптов это аккуратная строка «стало», с классом is-before она становится плиткой со значком на столе */
.chip-note {
  position: absolute;
  left: 4%;
  top: var(--bt);
  display: grid;
  align-items: center;
  width: 92%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(120, 60, 20, 0.08);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: left 0.8s cubic-bezier(0.3, 0.8, 0.3, 1), top 0.8s cubic-bezier(0.3, 0.8, 0.3, 1),
    width 0.8s cubic-bezier(0.3, 0.8, 0.3, 1), height 0.8s cubic-bezier(0.3, 0.8, 0.3, 1),
    transform 0.8s cubic-bezier(0.3, 0.8, 0.3, 1),
    background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
  transition-delay: calc(var(--i) * 70ms);
}
.chip-note::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: rgba(31, 138, 85, 0.14);
  color: var(--ok);
  font-size: 11px;
  font-weight: 800;
  transition: opacity 0.4s;
}
.chip-note > span { grid-area: 1 / 1; transition: opacity 0.4s, visibility 0.4s; }
.chip-note .ico { position: absolute; width: 40px; height: 40px; opacity: 0; visibility: hidden; transition: opacity 0.5s; }
/* Скрытый вариант текста и значок не влияют на размер заметки */
.chip-note .was, .flow.is-before .chip-note .now { position: absolute; inset: 0 12px 0 36px; display: flex; align-items: center; }
.chip-note .was { opacity: 0; visibility: hidden; }

.flow.is-before .chip-note {
  left: var(--al);
  top: var(--at);
  width: 31%;
  height: 100px;
  padding: 8px 4px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
  transform: rotate(var(--ar));
  border-color: rgba(120, 60, 20, 0.12);
  box-shadow: 0 8px 16px -10px rgba(120, 60, 20, 0.55);
}
.flow.is-before .chip-note::before { opacity: 0; }
.flow.is-before .chip-note .ico { position: static; grid-area: auto; opacity: 1; visibility: visible; }
.flow.is-before .chip-note .was { position: static; grid-area: auto; display: block; opacity: 1; visibility: visible; overflow-wrap: anywhere; }
.flow.is-before .chip-note .now { opacity: 0; visibility: hidden; }
.flow.is-before .n1 { background: #eaf6ee; }
.flow.is-before .n2 { background: #fff6e2; }
.flow.is-before .n3 { background: #e6f3fb; }
.flow.is-before .n4 { background: #ffe9e1; }
.flow.is-before .n5 { background: #f1e8fb; }
.flow.is-before .flow-frame { opacity: 0; }

.flow-cap { display: grid; margin-top: 14px; font-size: 15px; font-weight: 600; }
.flow-cap > span { grid-area: 1 / 1; transition: opacity 0.4s, visibility 0.4s; }
.flow-cap .was { opacity: 0; visibility: hidden; }
.flow.is-before .flow-cap .was { opacity: 1; visibility: visible; }
.flow.is-before .flow-cap .now { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .chip-note, .flow-frame, .flow-toggle button { transition: none; }
}
/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--avocado-soft); border-top-color: var(--avocado-line); }
.section h2 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.section .sub { margin-top: 12px; color: var(--muted); max-width: 40em; }

.cards { display: grid; gap: 16px; margin-top: 32px; }

.more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  text-align: center;
}
.more .hint { color: var(--muted); font-size: 14px; }

/* ---------- Our products (revealed by button) ---------- */
.products {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.products[hidden] { display: none; }
.products:not([hidden]) { animation: reveal 0.45s ease both; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid #f2c9a6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #fff6ec);
  box-shadow: var(--shadow);
}
.product h3 { font-size: 22px; }
.product p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ember-deep);
  font-size: 13px;
  font-weight: 700;
}
.product .btn { align-self: flex-start; margin-top: auto; }
.demo-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.demo-slot small { color: var(--muted); font-size: 13px; }
.product-body { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.product-wide { grid-column: 1 / -1; }
.product-video { margin: 0; }
.product-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--text); }
.product-video figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Экраны отраслей (окно по кнопке отрасли) ---------- */
.view { display: grid; gap: 14px; container: view / inline-size; }
.view .bar { min-width: 60px; }
.view .bar i { width: 0; transition: width 0.9s ease; }

.split { display: grid; gap: 14px; }
@container view (min-width: 520px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: 20px; }
}

.rows { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.rows li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rows small { display: block; color: var(--muted); font-size: 12px; }
.rows b { font-variant-numeric: tabular-nums; }

/* Торговля: касса */
.receipt {
  padding: 14px;
  border: 1px dashed #d8c3ad;
  border-radius: 12px;
  background: #fffdf9;
  font-variant-numeric: tabular-nums;
}
.receipt ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.receipt li { display: grid; grid-template-columns: 1fr auto 58px; gap: 8px; }
.receipt em { color: var(--muted); font-style: normal; }
.receipt li b { text-align: right; font-weight: 700; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d8c3ad;
}
.receipt-total b { font-size: 20px; font-weight: 800; }
.pay { display: flex; gap: 6px; margin-top: 12px; }
.pay span {
  flex: 1;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.pay span:first-child { background: linear-gradient(135deg, #ffb061, #ff7a3d); color: var(--on-ember); }

/* Производство: конвейер по этапам и шкала продвижения у каждого заказа */
.pipe { display: flex; }
.stage {
  flex: 1;
  display: grid;
  justify-items: center;
  min-width: 0;
  margin-left: -8px;
  padding: 8px 4px 8px 16px;
  background: var(--bg-soft);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
}
.stage:first-child { margin-left: 0; padding-left: 8px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
.stage:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 11px 50%); }
.stage b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.stage span { color: var(--muted); font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 480px) {
  .stage { padding: 8px 2px 8px 13px; }
  .stage span { font-size: 10px; }
}
.stage.peak { background: linear-gradient(135deg, #ffb061, #ff7a3d); }
.stage.peak b, .stage.peak span { color: var(--on-ember); }

.orders { display: grid; gap: 8px; }
@container view (min-width: 520px) {
  .orders { grid-template-columns: 1fr 1fr; }
}
.order {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: 12px;
  background: #fff;
}
.order.late { border-left-color: #d6361b; background: #fffaf8; }
.o-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.o-top b { font-size: 14px; }
.due { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.order.late .due { color: var(--bad); }
.o-flow { display: flex; align-items: center; gap: 10px; }
.steps { display: flex; flex: 1; gap: 3px; margin: 0; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 99px; background: #f0e0cf; }
.steps .done { background: linear-gradient(90deg, var(--glow), var(--ember)); }
.steps .now { background: var(--ember); box-shadow: 0 0 0 3px rgba(240, 82, 45, 0.18); }
.order.late .steps .done, .order.late .steps .now { background: #d6361b; }
.order.late .steps .now { box-shadow: 0 0 0 3px rgba(214, 54, 27, 0.18); }
.order small { color: var(--muted); font-size: 12px; }
.output p { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.output p b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Услуги: напоминание клиенту */
.reminder { display: grid; gap: 6px; }
.reminder small { color: var(--muted); font-size: 12px; font-weight: 600; }
.reminder p {
  justify-self: start;
  max-width: 30em;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--info-bg);
  color: #1d2f5c;
  font-size: 13px;
}
.reminder div { display: flex; flex-wrap: wrap; gap: 6px; }
.reminder div span {
  padding: 6px 12px;
  border: 1px solid #bcd0f5;
  border-radius: 99px;
  background: #fff;
  color: var(--info);
  font-size: 12px;
  font-weight: 700;
}

/* Логистика: схема рейсов */
.map {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #fffaf2, var(--bg-soft));
}
.map .road { fill: none; stroke: #e2cdb6; stroke-width: 2; stroke-dasharray: 3 4; }
.map .route-fill { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1s ease; }
.map .city { fill: #fff; stroke: var(--text); stroke-width: 1.5; }
.map text { fill: var(--muted); font: 600 11.5px var(--font); }
.map .truck { stroke: #fff; stroke-width: 2; }
.map .truck.alert { transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-in-out infinite; }
@keyframes ping { 50% { transform: scale(1.45); } }
.trips b { min-width: 42px; text-align: right; }

/* Медицина: табло электронной очереди */
.board {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb061, #ff7a3d);
  color: var(--on-ember);
}
.board small { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.board b { font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: 0.02em; }
.board span { font-size: 14px; font-weight: 700; }
.tickets strong { min-width: 44px; color: var(--ember-deep); font-variant-numeric: tabular-nums; }

/* Образование: журнал посещаемости */
.group { display: grid; grid-template-columns: 1fr minmax(70px, 110px) auto; align-items: center; gap: 0 12px; }
.group b { grid-column: 1; font-size: 15px; }
.group span { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12px; }
.group .bar { grid-column: 2; grid-row: 1 / 3; }
.group em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-weight: 800; }
.jr { width: 100%; border-collapse: collapse; font-size: 13px; }
.jr th { padding: 0 2px 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
.jr td { padding: 7px 2px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.jr th:first-child, .jr td:first-child { padding-left: 0; text-align: left; }
.jr th:last-child, .jr td:last-child { padding-right: 0; }
.m {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.m.ok { background: var(--ok-bg); color: var(--ok); }
.m.no { background: var(--bad-bg); color: var(--bad); }
.m.late { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 480px) {
  .jr { font-size: 12px; }
  .jr th { font-size: 10.5px; }
  .m { width: 19px; height: 19px; font-size: 11px; }
}

/* ---------- Блог ---------- */
.nav a[aria-current="page"] { color: var(--text); }

/* «Блог» в меню выделен: плашка цвета сайта и пульсирующая точка, как у новинки */
.nav a.nav-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(240, 82, 45, 0.11);
  color: #b8300c;
  font-weight: 700;
}
.nav a.nav-blog:hover { background: rgba(240, 82, 45, 0.2); color: #b8300c; }
.nav a.nav-blog[aria-current="page"] { background: rgba(240, 82, 45, 0.2); }
.nav a.nav-blog::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  animation: blog-dot 2.2s ease-out infinite;
}
@keyframes blog-dot {
  0% { box-shadow: 0 0 0 0 rgba(240, 82, 45, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(240, 82, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav a.nav-blog::before { animation: none; }
}
.blog { padding: 44px 0 72px; }
.blog .narrow { max-width: 800px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.crumbs a { font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.blog h1 { margin-top: 10px; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.blog .sub { margin-top: 12px; color: var(--muted); }

.post-list { display: grid; gap: 16px; margin-top: 32px; }
.post-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #f2c9a6;
  box-shadow: var(--shadow-lift);
}
.post-card h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; }
.post-card p { color: var(--muted); }
.post-card .more { color: var(--ember-deep); font-weight: 700; }

.post .meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.post .lead { margin-top: 22px; max-width: none; color: var(--text); }
.post h2 { margin: 44px 0 14px; font-size: clamp(24px, 4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.post p { color: var(--muted); }

.kit { display: grid; gap: 12px; margin-top: 16px; }
.kit div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.kit b { display: block; }
.kit span { color: var(--muted); font-size: 15px; }
.formats { display: grid; gap: 12px; }
.formats div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.formats h3 { margin: 14px 0 6px; font-size: 19px; }
.formats p { font-size: 15px; }

.post-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.post-cta h2 { margin: 0; }
.post-cta p { margin: 0; }
@media (min-width: 640px) {
  .kit { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .formats { grid-template-columns: repeat(3, 1fr); }
}

/* Иллюстрации блога: плоская изометрия в палитре бренда, без людей */
.post-hero, .post-img { border: 1px solid var(--line); background: radial-gradient(60% 70% at 95% 100%, rgba(255, 154, 60, 0.26), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(163, 185, 79, 0.28), transparent 70%), var(--bg); overflow: hidden; }
.post-hero { margin-top: 24px; border-radius: var(--radius-lg); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-img { display: block; justify-self: stretch; width: 100%; height: auto; border-radius: var(--radius); }
@media (min-width: 760px) {
  .post-card { grid-template-columns: 1fr 300px; column-gap: 28px; }
  .post-card > :not(.post-img) { grid-column: 1; }
  .post-card .post-img { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}

/* Плашка на главной: ведёт к статье про Windows */
.band { padding: 22px 0; border-top: 1px solid var(--avocado-line); background: var(--bg-card); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.band p { color: var(--muted); }
.band b { color: var(--text); }

/* ---------- Industry example window ---------- */
body.modal-open { overflow: hidden; }

.modal {
  width: min(780px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(60, 30, 10, 0.6);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(43, 29, 20, 0.55);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: pop 0.25s ease both; }

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 20px; line-height: 1.25; }
.modal-head p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.modal-close {
  flex: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--ember); }

.modal-body { display: grid; gap: 18px; padding: 20px; }
.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.modal-foot .note { flex: 1 1 200px; margin: 0; }

.app-title { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.table-wrap { overflow-x: auto; }

.sched {
  display: grid;
  grid-template-columns: 46px repeat(3, 1fr);
  gap: 6px;
  font-size: 13px;
}
.sched div { padding: 9px 8px; border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .sched { font-size: 11.5px; gap: 4px; grid-template-columns: 40px repeat(3, 1fr); }
  .sched div { padding: 8px 5px; }
}
.sched .head { padding: 0 2px 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sched .time { padding: 9px 0; color: var(--muted); font-weight: 700; white-space: nowrap; }
.sched .busy {
  background: var(--bg-soft);
  border-left: 3px solid var(--ember);
  font-weight: 600;
}
.sched .free {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.app-hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.app-hint::before { content: "✦ "; color: var(--ember-deep); font-weight: 800; }

/* ---------- About (окно «Обо мне») ---------- */
.about-body { gap: 20px; align-items: center; }
.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb061, #ff6a3d);
  color: var(--on-ember);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
  object-fit: cover;
  box-shadow: 0 16px 34px -16px rgba(240, 82, 45, 0.8);
}
.about-text p { margin: 0 0 12px; color: var(--muted); }
.about-text p:last-child { margin-bottom: 0; }
.nav .nav-extra { display: none; }

.direct { margin-top: 20px; color: var(--muted); font-size: 15px; }
.direct a, .footer a { color: var(--ember-deep); font-weight: 700; text-underline-offset: 3px; }
.footer a { font-weight: 600; }
.footer a:hover, .direct a:hover { text-decoration: underline; }

@media (min-width: 600px) {
  .about-body { grid-template-columns: auto 1fr; gap: 28px; }
  .avatar { width: 128px; height: 128px; font-size: 42px; }
}
@media (min-width: 1200px) {
  .nav .nav-extra { display: inline; }
}

/* ---------- Lead form ---------- */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 64px; }

.contact-grid { display: grid; gap: 32px; }

.next-steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.next-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  counter-increment: step;
}
.next-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5d678, var(--avocado));
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.next-steps b { color: var(--text); }

.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress i {
  height: 6px;
  border-radius: 99px;
  background: #f0e0cf;
  transition: background 0.3s;
}
.progress i.done { background: linear-gradient(90deg, var(--glow), var(--ember)); }
.progress-text { margin: 10px 0 18px; color: var(--muted); font-size: 14px; font-weight: 600; }

.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step legend {
  margin-bottom: 14px;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.group-label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }

.two .field { align-content: end; }

.field-error { margin-top: 8px; color: var(--bad); font-size: 14px; font-weight: 600; }
.from-example { margin-top: 10px; color: var(--ok); font-size: 14px; font-weight: 700; }
.hint-text { margin-top: 10px; color: var(--muted); font-size: 14px; }

.two { display: grid; gap: 0 12px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ember-deep); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.form-actions .btn { flex: 1 1 0; }

.success { padding: 6px 0 2px; text-align: center; }
.success .check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 28px;
  font-weight: 800;
}
.success h3 { margin: 14px 0 6px; font-size: 24px; line-height: 1.2; }
.success .sub { margin-inline: auto; }
.summary {
  display: grid;
  gap: 6px;
  margin: 20px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}
.summary p { margin: 0; }
.summary b { color: var(--text); }
.test-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: #7a4700;
  font-size: 13px;
}

@media (min-width: 720px) {
  .form-card { padding: 30px; }
  .two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
  .product-wide { flex-direction: row; align-items: center; gap: 36px; }
  .product-wide .product-body { flex: 0 1 38%; }
  .product-wide .product-video { flex: 1 1 62%; }
}

/* ---------- How we work ---------- */
.process {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.p-step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.p-head { display: flex; align-items: center; gap: 10px; }
.p-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5d678, var(--avocado));
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.p-who {
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--avocado-soft);
  color: var(--avocado-deep);
  font-size: 12px;
  font-weight: 800;
}
.p-step h3 { margin: 14px 0 6px; font-size: 19px; line-height: 1.25; }
.p-step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 28px; }
.faq-intro .btn { margin-top: 20px; }

@media (min-width: 720px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; gap: 22px; }
}
@media (min-width: 960px) {
  .process { grid-template-columns: repeat(4, 1fr); }
  .p-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    right: -17px;
    width: 18px;
    border-top: 2px dashed #e0bf9b;
  }
  .faq-grid { grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
  .faq-intro { position: sticky; top: 92px; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .header-cta { display: inline-flex; }
  .actions .btn { flex: 0 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero { padding: 84px 0 96px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Большие экраны: шире контейнер и крупнее текст, чтобы по бокам не оставалось пустоты ---------- */
@media (min-width: 1360px) {
  :root { --max: 1260px; --gutter: 32px; }
  .modal { width: min(820px, calc(100% - 24px)); }

  /* Блок заявки: форма не растягивается на весь экран, левый текст стоит по центру напротив неё */
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 700px); gap: 64px; align-items: center; }
  .form-actions { justify-content: flex-end; }
  .form-actions .btn { flex: 0 0 auto; min-width: 190px; }
  .form-actions #lead-back { margin-right: auto; }
}

@media (min-width: 1600px) {
  :root { --max: 1420px; --gutter: 36px; }
  body { font-size: 18px; }
  .site-header .wrap { min-height: 72px; }
  .brand { font-size: 21px; }
  .brand svg { width: 46px; height: 46px; }
  .nav a { font-size: 16px; }
  .btn { min-height: 54px; font-size: 17px; padding: 0 28px; }
  .btn-sm { min-height: 44px; font-size: 15px; }
  .hero { padding: 100px 0 112px; }
  .hero .wrap { gap: 72px; }
  .eyebrow { font-size: 15px; }
  h1 { font-size: 78px; }
  .lead { font-size: 22px; }
  .chips-hint, .chip { font-size: 15px; }
  .section { padding: 84px 0; }
  .section h2 { font-size: 46px; }
  .section .sub { font-size: 19px; }
  .card { padding: 28px; }
  .card h3 { font-size: 22px; }
  .product { padding: 30px; }
  .product h3 { font-size: 24px; }
  .p-step { padding: 26px; }
  .p-step h3 { font-size: 21px; }
  .p-step p { font-size: 16px; }
  .qa summary { font-size: 18px; }
  .qa p { font-size: 17px; }
  .avatar { width: 144px; height: 144px; font-size: 48px; }
  .form-card { padding: 36px; }
  .step legend { font-size: 22px; }
  .modal { width: min(900px, calc(100% - 24px)); }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 800px); gap: 80px; }
  .next-steps { gap: 18px; }
  .next-steps li { font-size: 19px; }
  .next-steps li::before { width: 34px; height: 34px; font-size: 15px; }
  .direct { font-size: 17px; }
  .progress-text { font-size: 15px; }
  .opt span { padding: 10px 18px; font-size: 16px; }
  .group-label, .field label { font-size: 15px; }
  .field input[type="text"], .field textarea, .field select { padding: 14px 16px; font-size: 17px; }
  .consent { font-size: 15px; }
  .form-actions .btn { min-width: 210px; }
}

@media (min-width: 1920px) {
  :root { --max: 1560px; --gutter: 40px; }
  body { font-size: 19px; }
  .site-header .wrap { min-height: 80px; }
  .brand { font-size: 23px; }
  .nav a { font-size: 17px; }
  .btn { min-height: 58px; font-size: 18px; padding: 0 32px; }
  .btn-sm { min-height: 48px; font-size: 16px; }
  .hero { padding: 120px 0 128px; }
  .hero .wrap { gap: 88px; }
  .eyebrow { font-size: 16px; }
  h1 { font-size: 84px; }
  .lead { font-size: 24px; }
  .chips-hint, .chip { font-size: 16px; }
  .section { padding: 100px 0; }
  .section h2 { font-size: 52px; }
  .section .sub { font-size: 21px; }
  .card { padding: 32px; }
  .card h3 { font-size: 24px; }
  .p-step h3 { font-size: 23px; }
  .p-step p { font-size: 17px; }
  .qa summary { font-size: 19px; }
  .qa p { font-size: 18px; }
  .modal { width: min(960px, calc(100% - 24px)); }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 860px); gap: 96px; }
  .next-steps li { font-size: 21px; }
  .direct { font-size: 18px; }
  .opt span { font-size: 17px; }
  .form-card { padding: 44px; }
}

@media (min-width: 2400px) {
  :root { --max: 1920px; --gutter: 48px; }
  body { font-size: 21px; }
  h1 { font-size: 98px; }
  .lead { font-size: 27px; }
  .section h2 { font-size: 58px; }
  .section .sub { font-size: 23px; }
  .btn { min-height: 64px; font-size: 20px; }
  .card h3 { font-size: 27px; }
  .modal { width: min(1040px, calc(100% - 24px)); }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 980px); gap: 120px; }
  .next-steps li { font-size: 24px; }
  .direct { font-size: 20px; }
  .opt span { font-size: 19px; }
  .form-card { padding: 52px; }
}

/* Кнопки отраслей на первом экране: в одну строку, когда левая колонка достаточно широкая;
   размер текста подстраивается под ширину колонки, чтобы все шесть кнопок помещались. */
.hero .wrap > div:first-child { container-type: inline-size; }

@container (min-width: 600px) {
  .industries { flex-wrap: nowrap; gap: 0.6cqw; }
  .chip {
    padding: 0.55em 0.95em;
    font-size: min(16px, 2.05cqw);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i, .btn, .card, .chip, .map .route-fill { transition: none; }
  .map .truck.alert { animation: none; }
  .modal[open] { animation: none; }
  .products:not([hidden]) { animation: none; }
}
