/* Витрина «Как устроен CarPoint»: светлая тема */

:root {
  --accent: #FF7101;
  --accent-hover: #E86600;
  --ink: #24272C;
  --muted: #8E8E93;
  --bg: #ffffff;
  --bg-sec: #f7f7f7;
  --border: #ECECEC;
  --header-h: 92px;   /* высота липкой шапки: на телефоне два ряда, с 768 px один (64 px) */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

/* Переход по якорю оставляет начало раздела под липкой шапкой видимым */
section[id] { scroll-margin-top: var(--header-h); }

/* Плавная прокрутка по якорям страницы; класс smooth ставит page.js после загрузки, чтобы прыжок к #разделу
   при открытии страницы (в том числе после смены языка) был мгновенным */
@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; }
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Шапка: липкая, логотип, ряд ссылок на разделы и языки. На телефоне ссылки вторым рядом,
   ряд прокручивается пальцем вбок (до края экрана), сама страница по горизонтали не прокручивается. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border), 0 4px 14px rgba(36, 39, 44, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) 40px;
  grid-template-areas: "logo langs" "nav nav";
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { grid-area: logo; justify-self: start; display: inline-flex; }
.logo img { display: block; width: auto; height: 28px; }

.site-nav {
  grid-area: nav;
  display: flex;
  align-self: start;
  margin-inline: -16px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  flex: none;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font: 500 14px/1.15 "Inter", system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:first-child { margin-left: -10px; }   /* текст первой ссылки по краю логотипа */
.site-nav a:hover { color: var(--accent); }
.site-nav a:focus-visible { outline-offset: -2px; }

.lang-switch { grid-area: langs; display: flex; gap: 4px; }

/* Ссылки на страницы языков: ro/ и en/, русская в корне витрины */
.lang-switch a {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font: 500 14px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch a:hover { color: var(--ink); }

.lang-switch a[aria-current="page"] {
  border-color: var(--border);
  color: var(--ink);
}

/* Первый экран */

#hero { padding: 40px 0 56px; }

.hero-grid { display: grid; gap: 40px; }

.hero-text h1 { font-size: clamp(32px, 4.2vw, 48px); }

.lead { margin: 20px 0 0; font-size: 18px; }

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.number {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.number-value {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.number-label { color: var(--muted); font-size: 14px; line-height: 1.35; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-sec); }

.vendor-line { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-sec);
}

.frame img { display: block; width: 100%; }

.frame-window a { display: block; cursor: zoom-in; }
.frame-window a:focus-visible { outline-offset: -2px; }

/* Что уже работает (src/partials/works.html): карточки - label для radio name="works", выбранная раскрывает
   свою панель под рядом карточек, «Свернуть» выбирает скрытый works-none. Без JS, как сценарии. */

#works { padding: 56px 0 72px; background: var(--bg-sec); }

.section-title { margin-bottom: 24px; font-size: clamp(26px, 3vw, 34px); }

/* radio карточек прибиты к окну: фокус после клика по карточке не прокручивает страницу к ним */
#works .works-input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* works-none стоит над рядом карточек: «Свернуть» внизу длинной панели фокусирует его и возвращает карточки в окно */
#works #works-none {
  position: absolute;
  top: auto;
  left: auto;
  scroll-margin-top: var(--header-h);
}

.works-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-card:hover { border-color: var(--accent); }

.work-card .work-title {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.work-card .work-text { font-size: 15px; }

.work-card::after {
  content: "↓" / "";
  margin-top: auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

#works-site:checked ~ .works-grid label[for="works-site"],
#works-bot:checked ~ .works-grid label[for="works-bot"],
#works-comms:checked ~ .works-grid label[for="works-comms"],
#works-content:checked ~ .works-grid label[for="works-content"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

#works-site:focus-visible ~ .works-grid label[for="works-site"],
#works-bot:focus-visible ~ .works-grid label[for="works-bot"],
#works-comms:focus-visible ~ .works-grid label[for="works-comms"],
#works-content:focus-visible ~ .works-grid label[for="works-content"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* фокус с клавиатуры на свёрнутом состоянии: рамка вокруг всего ряда, стрелки выбирают карточку */
#works-none:focus-visible ~ .works-grid { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 10px; }

#works .works-panel {
  display: none;
  grid-template-areas: "text" "shot" "actions";
  gap: 24px;
  margin-top: 16px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

#works-site:checked ~ .works-panels .works-panel-site,
#works-bot:checked ~ .works-panels .works-panel-bot,
#works-comms:checked ~ .works-panels .works-panel-comms,
#works-content:checked ~ .works-panels .works-panel-content { display: grid; }

#works .works-panel-text { grid-area: text; }

#works .works-lead { margin: 0; font-size: 17px; }

#works .shot { grid-area: shot; margin: 0; }

#works .works-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

#works .works-more {
  display: inline-flex;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

#works .works-more:hover { text-decoration: underline; }

#works .works-collapse {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s;
}

#works .works-collapse:hover { border-color: var(--ink); }

/* Подвал */

.site-footer { padding: 32px 0; border-top: 1px solid var(--border); font-size: 14px; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand { font-weight: 600; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Ширина: телефон по умолчанию, дальше 2 и 4 колонки */

@media (max-width: 559px) {
  .actions .btn { flex: 1 1 100%; }
}

/* Телефон: ряд ссылок шапки гаснет у правого края (знак, что он прокручивается); справа запас 32 px,
   чтобы прокрученная до конца последняя ссылка и её рамка фокуса не попадали в гаснущую полосу */
@media (max-width: 767px) {
  .site-nav {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}

/* Телефон: карточки ниже, стрелка в строке заголовка, чтобы раскрытая панель оказалась ближе к карточке */
@media (max-width: 599px) {
  .work-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 18px; }
  .work-card .work-text { grid-column: 1 / -1; }
  .work-card::after { grid-row: 1; grid-column: 2; margin-top: 0; }
}

@media (min-width: 600px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

/* С 768 px шапка в один ряд: логотип, ссылки на разделы по центру, языки */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "logo nav langs";
    gap: 16px;
  }
  .site-nav { align-self: center; margin-inline: 0; padding: 0; }
  .site-nav a { padding-inline: 8px; }
  .site-nav a:first-child { margin-left: auto; }   /* по центру, а если ряд не влез, начало не обрезается */
  .site-nav a:last-child { margin-right: auto; }
}

@media (min-width: 1024px) {
  #hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .works-grid { grid-template-columns: repeat(4, 1fr); }
  .site-nav a { padding-inline: 12px; }
  #works .works-panel {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "text shot" "actions shot";
    align-items: start;
    gap: 24px 48px;
    padding: 32px;
  }
  #works .works-panel-with-phone { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* Один заказ на нескольких экранах: переключатель на radio + label, без JS */

#scenarios { padding: 64px 0 72px; }

#scenarios .sc-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

#scenarios .sc-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-sec);
}

#scenarios .sc-switch label {
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

#scenarios .sc-switch label:hover { background: var(--bg); }

#sc-rent:checked ~ .sc-switch label[for="sc-rent"],
#sc-tour:checked ~ .sc-switch label[for="sc-tour"] { background: var(--ink); color: #fff; }

#sc-rent:focus-visible ~ .sc-switch label[for="sc-rent"],
#sc-tour:focus-visible ~ .sc-switch label[for="sc-tour"] { outline: 2px solid var(--accent); outline-offset: 2px; }

#scenarios .sc-note { margin: 12px 0 28px; color: var(--muted); font-size: 14px; }

#scenarios .panel { display: none; }

#sc-rent:checked ~ .panels .panel-rent,
#sc-tour:checked ~ .panels .panel-tour { display: block; }

#scenarios .steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

#scenarios .step {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

#scenarios .step-text {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: start;
  gap: 12px 14px;
}

#scenarios .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

#scenarios .step h3 { font-size: 20px; }

#scenarios .step-lines { grid-column: 1 / -1; display: grid; gap: 14px; margin: 6px 0 0; }

#scenarios .step-lines > div { padding-left: 12px; border-left: 2px solid var(--border); }

#scenarios .step-lines > .step-result { border-left-color: var(--accent); }

#scenarios .step-lines dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#scenarios .step-lines dd { margin: 2px 0 0; font-size: 15px; }

/* Рамки экранов: окно для снимков 1280, телефон для 390 */

.frame-window::before {
  content: "";
  display: block;
  height: 24px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 14px 50%, rgba(142, 142, 147, 0.45) 3.5px, transparent 4px),
    radial-gradient(circle at 28px 50%, rgba(142, 142, 147, 0.45) 3.5px, transparent 4px),
    radial-gradient(circle at 42px 50%, rgba(142, 142, 147, 0.45) 3.5px, transparent 4px),
    var(--bg);
}

.frame-phone {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(36, 39, 44, 0.08);
}

@media (max-width: 559px) {
  #scenarios .sc-switch { display: flex; }
  #scenarios .sc-switch label { flex: 1 1 0; padding: 10px 8px; }
}

@media (min-width: 1024px) {
  #scenarios .step {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 40px;
    padding: 32px;
  }
  #scenarios .step-text { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Карта связей: два инлайн-SVG с подписями RU и RO внутри, оба масштабируются по ширине.
   До 768 px вертикальная src/partials/map-phone.svg (358 x 776), от 768 px широкая
   src/partials/map.svg (1120 x 420): так подписи не мельче 11 px и прокрутки нет. */

#map { padding: 64px 0 72px; background: var(--bg-sec); }

#map .map-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

#map .map-svg { display: block; width: 100%; height: auto; }

#map .map-wide { display: none; }

#map .map-phone .map-svg { max-width: 440px; margin-inline: auto; }

#map .node, #map .chip { transition: stroke 0.15s; }
#map .spine { transition: stroke-width 0.15s; }

#map g.stage:hover .node,
#map g.stage:hover .chip { stroke: var(--accent); }
#map g.stage:hover .spine { stroke-width: 3; }

@media (min-width: 768px) {
  #map .map-wide { display: block; }
  #map .map-phone { display: none; }
}

@media (min-width: 1024px) {
  #map .map-card { padding: 24px; }
}

/* Возможности по задачам: девять блоков из data/systems.json (src/partials/systems.html) */

#systems { padding: 64px 0 32px; }

#systems .system {
  display: grid;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

#systems .system-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

#systems .system h3 { font-size: clamp(22px, 2.4vw, 28px); }

#systems .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

#systems .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

#systems .status-pilot { color: var(--muted); }
#systems .status-pilot::before { background: var(--muted); }

#systems .system-lead { margin: 14px 0 0; font-size: 17px; }

#systems .features,
#works .features {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

#systems .features li,
#works .features li { position: relative; padding-left: 18px; }

#systems .features li::before,
#works .features li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

#systems .wow {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--bg-sec);
  font-size: 15px;
  font-weight: 500;
}

#systems .system-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

#systems .system-link:hover { text-decoration: underline; }

#systems .screens { display: grid; gap: 24px; align-items: start; }

#systems .shot { margin: 0; }

#systems .shot figcaption,
#works .shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }

#systems .shot-phone figcaption,
#works .shot-phone figcaption { max-width: 280px; margin-inline: auto; text-align: center; }

@media (min-width: 600px) {
  #systems .screens-window-window,
  #systems .screens-phone-phone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #systems .screens-phone-window { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  #systems .screens-window-phone { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* С 1024 px текст и экраны в две колонки, чётные блоки зеркально */
@media (min-width: 1024px) {
  #systems .system {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 56px;
    padding: 56px 0;
  }
  #systems .system:nth-of-type(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  #systems .system:nth-of-type(even) .system-text { order: 2; }
  #systems .screens-window-window { grid-template-columns: minmax(0, 1fr); }
}

/* Кто и как построил (src/partials/author.html): фото и авторство, история 2026 года, два кейса, технологии */

#author { padding: 64px 0 72px; background: var(--bg-sec); }

#author .author-head { display: grid; gap: 24px; align-items: start; }

#author .author-photo {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  background: var(--border);
}

#author .author-name {
  margin: 0;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

#author .author-role { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

#author .prose { max-width: 680px; font-size: 17px; }

#author .prose p { margin: 14px 0 0; }

#author .prose h3 {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 18px;
}

#author .author-subtitle { margin: 56px 0 20px; font-size: 22px; }

#author .timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

#author .timeline-item {
  position: relative;
  padding: 0 0 20px 22px;
  border-left: 2px solid var(--border);
}

#author .timeline-item:last-child { padding-bottom: 0; }

#author .timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

#author .timeline-when {
  display: block;
  color: var(--accent);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

#author .timeline-what { margin: 4px 0 0; font-size: 15px; }

#author .cases { display: grid; gap: 16px; }

#author .case {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

#author .case-lines { display: grid; gap: 16px; margin: 0; }

#author .case-lines > div { padding-left: 12px; border-left: 2px solid var(--border); }

#author .case-lines > .case-result { border-left-color: var(--accent); }

#author .case-lines dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#author .case-lines dd { margin: 2px 0 0; font-size: 15px; }

#author .case-result dd { font-weight: 500; }

#author .author-tech {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

#author .author-tech p { margin: 0; max-width: 820px; }

#author .author-tech .author-tests { margin-top: 8px; color: var(--muted); }

@media (min-width: 600px) {
  #author .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  #author .timeline-item { padding: 20px 0 0; border-left: 0; border-top: 2px solid var(--border); }
  #author .timeline-item::before { top: -6px; left: 0; }
}

@media (min-width: 768px) {
  #author .author-head { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  #author .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  #author .timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #author .case { padding: 28px; }
}

/* Решения для других компаний (src/partials/offer.html): отрасли, примеры задач, порядок работы */

#offer { padding: 64px 0 72px; }

#offer .offer-lead {
  margin: 0;
  max-width: 760px;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

#offer .prose { max-width: 680px; }

#offer .prose p { margin: 14px 0 0; }

#offer .offer-grid { display: grid; gap: 40px; margin-top: 40px; }

#offer .offer-col h3 { margin-bottom: 18px; font-size: 20px; }

#offer .offer-tasks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

#offer .offer-tasks li { position: relative; padding-left: 18px; }

#offer .offer-tasks li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

#offer .process { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

#offer .process-step { display: flex; align-items: center; gap: 14px; }

#offer .process-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  #offer .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
}

/* Контакт (src/partials/contact.html): адреса из data/site.json */

#contact { padding: 64px 0 80px; background: var(--bg-sec); }

#contact .contact-headline { max-width: 760px; font-size: clamp(28px, 3.4vw, 40px); }

#contact .prose { max-width: 640px; font-size: 17px; }

#contact .prose p { margin: 16px 0 0; }

#contact .contact-links { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }

#contact .contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.15s;
}

#contact .contact-link:hover { border-color: var(--accent); }

#contact .contact-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#contact .contact-value {
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#contact .contact-link:hover .contact-value { color: var(--accent); }

@media (min-width: 768px) {
  #contact .contact-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Просмотр экрана поверх страницы (#lightbox в src/template.html, открывает src/page.js).
   Картинка в натуральную ширину внутри прокрутки по обеим осям: на телефоне экран 1280 px
   двигается пальцем в масштабе 1:1, pinch-zoom не запрещён; с 1024 px картинка вписана в ширину оверлея. */

/* место под полосу прокрутки всегда занято: блокировка прокрутки не сдвигает страницу */
html { scrollbar-gutter: stable; }

html.lightbox-open { overflow: hidden; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  padding: 72px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(36, 39, 44, 0.94);
}

#lightbox[hidden] { display: none; }

/* margin: auto центрирует, пока картинка меньше окна, и не обрезает левый край, когда она шире */
#lightbox img {
  flex: none;
  max-width: none;
  margin: auto;
  border-radius: 4px;
  background: var(--bg);
}

#lightbox .lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font: 400 28px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

#lightbox .lightbox-close:hover { background: var(--accent); border-color: var(--accent); }

/* Подпись «Закрыть» для экранных чтецов */
#lightbox .lightbox-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  #lightbox img { max-width: 100%; }   /* от ширины оверлея без его полос прокрутки, не шире натуральных 1280 px */
}
