/* ДетальКонтроль v5: поблочная живая сборка (сетка Автотеки, смартфон и ТГ из Tribute + ios.css, пакеты Автотеки + DaData, синий ЮKassa) */

:root {
  --bg-canvas: #ffffff;
  --bg-footer: #f8fafc;
  --bg-stone: #f3f4f6;
  --bg-stone-hover: #e8eaee;
  --bg-sand: #f4f1ea;
  --bg-cobalt-soft: #ebf3ff;
  --bg-cobalt-pill: #e6f1fe;

  --ink: #0f172a;
  --ink-body: #1e293b;
  --ink-muted: #5b6474;
  --placeholder: #7a8394;
  --hairline: #eceef2;

  --cobalt: #0070f0;
  --cobalt-hover: #005cc8;
  --tg-blue: #168acd;

  --pay-green: #16a34a;
  --pay-green-hover: #128a3e;

  --ok: #15803d;
  --bad: #dc2626;
  --err-bg: #fef2f2;
  --err-ink: #b91c1c;

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-kerning: normal;
  overflow-x: clip;
}

.page-flow {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Вход по HMAC-кнопке из бота поднимает чистый лист оплаты на первый экран */
.entry-hmac .order-band {
  order: -1;
  padding-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color 150ms ease-out;
}

a:hover {
  color: var(--cobalt-hover);
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка: чистый шрифтовой знак и спокойная сервисная навигация без дубля кнопок */
.site-header {
  height: 60px;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-wordmark:hover {
  color: var(--ink);
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a,
.header-support-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-body);
  white-space: nowrap;
}

.header-nav a:hover,
.header-support-link:hover {
  color: var(--cobalt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: var(--bg-cobalt-pill);
  color: var(--tg-blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.header-tg-btn:hover {
  background-color: #d7e9fd;
  color: #0e6fa8;
}

.tg-icon,
.tg-icon-color {
  flex-shrink: 0;
}

/* Первый экран: продающая выгода слева + реалистичный iPhone 9:41 с чатом ТГ справа */
.hero-band {
  padding: 32px 0 60px;
  background-color: var(--bg-canvas);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: 44px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin: 16px 0 24px;
  max-width: 520px;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-body);
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background-color: var(--cobalt);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

.btn-primary:hover {
  background-color: var(--cobalt-hover);
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background-color: var(--bg-stone);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease-out;
}

.btn-secondary-pay:hover {
  background-color: var(--bg-stone-hover);
  color: var(--ink);
}

/* Строка визуальных якорей под кнопками первого экрана (паттерн Tribute.tg) */
.hero-trust-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--bg-stone);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pay-chip svg {
  display: block;
  flex-shrink: 0;
}

.pay-chip.is-yk {
  color: var(--cobalt);
}

.hero-trust-note {
  margin-left: 0;
}

.hero-example-link {
  margin-left: 0;
  font-weight: 600;
  white-space: nowrap;
}

/* Правая сцена: подиум Т-Банка / Apple со срезом низа и полноразмерный iPhone 16 Pro (9:19.5) */
.hero-stage {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-podium {
  position: relative;
  width: 100%;
  max-width: 372px;
  height: 380px;
  padding: 20px 20px 0;
  border-radius: 28px;
  background-color: #edf2f8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

/* Корпус iPhone 16 Pro в честных пропорциях 1:2.09 (288x602px), срез низа по краю подиума */
.iphone-frame {
  position: relative;
  flex-shrink: 0;
  width: 288px;
  height: 602px;
  padding: 8px;
  border-radius: 46px;
  border: 2.5px solid #7a8291;
  outline: 1px solid rgba(15, 23, 42, 0.2);
  background-color: #0d0f14;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

.hw-btn-top,
.hw-btn-vol1,
.hw-btn-vol2,
.hw-btn-power {
  position: absolute;
  background-color: #6d7584;
}

.hw-btn-top {
  left: -6px;
  top: 84px;
  width: 2.5px;
  height: 18px;
  border-radius: 2px 0 0 2px;
}

.hw-btn-vol1 {
  left: -6px;
  top: 118px;
  width: 2.5px;
  height: 34px;
  border-radius: 2px 0 0 2px;
}

.hw-btn-vol2 {
  left: -6px;
  top: 160px;
  width: 2.5px;
  height: 34px;
  border-radius: 2px 0 0 2px;
}

.hw-btn-power {
  right: -6px;
  top: 132px;
  width: 2.5px;
  height: 52px;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Manrope", sans-serif;
}

.ios-top-chrome {
  background-color: #f6f6f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ios-statusbar {
  height: 32px;
  padding: 8px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000000;
}

.ios-time {
  width: 54px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ios-island {
  width: 84px;
  height: 22px;
  padding-right: 6px;
  border-radius: 12px;
  background-color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.ios-lens {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background-color: #162238;
  box-shadow: inset 1px 1px 0 rgba(96, 165, 250, 0.45);
}

.ios-indicators {
  width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.tg-navbar {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-back {
  width: 64px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #007aff;
}

.tg-peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.tg-peer strong {
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

.tg-peer span {
  font-size: 10.5px;
  color: #8e8e93;
}

.tg-avatar-slot {
  width: 64px;
  display: inline-flex;
  justify-content: flex-end;
}

.tg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #eaeef4;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Фирменный светло-зеленый фон чата iOS Telegram с тонким векторным орнаментом */
.tg-chat-canvas {
  flex: 1 1 auto;
  padding: 8px 10px 16px;
  background-color: #cfe1b9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='14' cy='14' r='4.5' stroke='%23567546' stroke-opacity='0.09' stroke-width='1.3'/%3E%3Crect x='40' y='10' width='10' height='10' rx='2.5' transform='rotate(16 40 10)' stroke='%23567546' stroke-opacity='0.09' stroke-width='1.3'/%3E%3Cpath d='M12 46l5-7 5 7H12Z' stroke='%23567546' stroke-opacity='0.09' stroke-width='1.3' stroke-linejoin='round'/%3E%3Ccircle cx='46' cy='46' r='3' stroke='%23567546' stroke-opacity='0.09' stroke-width='1.3'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tg-msg-out {
  align-self: flex-end;
  width: 184px;
  padding: 2px;
  border-radius: 14px 14px 4px 14px;
  background-color: #effdde;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.tg-photo-wrap {
  position: relative;
}

.tg-photo-wrap img {
  display: block;
  width: 100%;
  height: 68px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 12px;
}

.tg-photo-time {
  position: absolute;
  right: 6px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.44);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tg-bot-stack {
  align-self: flex-start;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-msg-in {
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background-color: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  color: #000000;
}

.tg-meta-line {
  font-size: 11.5px;
  line-height: 15.5px;
  color: #000000;
}

.tg-meta-line strong {
  font-weight: 600;
}

.tg-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #2468a2;
}

.tg-verdict-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tg-verdict-row svg {
  flex-shrink: 0;
}

.tg-verdict-text {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 14.5px;
  color: #000000;
}

.tg-in-time {
  float: right;
  margin-left: 8px;
  margin-top: 2px;
  font-size: 9.5px;
  color: #8e8e93;
}

/* Полупрозрачные стеклянные inline-кнопки iOS Telegram под сообщением бота */
.tg-inline-kb {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-inline-btn {
  position: relative;
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  background-color: rgba(74, 107, 59, 0.48);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-inline-ext {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0.85;
}

.tg-input-bar {
  height: 36px;
  padding: 0 10px;
  background-color: #f6f6f6;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-input-pill {
  flex: 1 1 auto;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #8e8e93;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
}

/* 4 карточки пакетов: единая 4-строчная анатомия без пустых дыр (Автотека + DaData) */
.packs-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pack-tile {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  background-color: var(--bg-stone);
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.pack-tile:hover {
  background-color: var(--bg-stone-hover);
}

.pack-tile.is-featured {
  background-color: var(--bg-cobalt-soft);
}

.pack-tile.is-featured:hover {
  background-color: #dceaff;
}

.pack-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pack-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pack-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pack-badge.is-save {
  background-color: #dcfce7;
  color: #166534;
}

.pack-tile.is-featured .pack-badge.is-save {
  background-color: var(--cobalt);
  color: #ffffff;
}

.pack-price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.pack-tile-price {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink);
}

.pack-old-price {
  font-size: 14px;
  color: var(--placeholder);
  text-decoration: line-through;
}

.pack-tile-note {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}

.btn-tile-buy {
  margin-top: auto;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background-color: #111827;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.btn-tile-buy:hover {
  background-color: #1f2937;
}

.btn-tile-buy.is-accent {
  background-color: var(--cobalt);
}

.btn-tile-buy.is-accent:hover {
  background-color: var(--cobalt-hover);
}

/* Полоса разбора на теплом песочном фоне (паттерн Автотеки) */
.inspect-band {
  padding: 56px 0 60px;
  background-color: var(--bg-sand);
}

.inspect-band h2 {
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
}

.inspect-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.inspect-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inspect-tab {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.inspect-tab:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.inspect-tab.is-active {
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.inspect-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--ink);
}

.inspect-lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  max-width: 680px;
}

.report-sheet {
  padding: 24px;
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-col {
  margin: 0;
}

.compare-col img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.compare-col figcaption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.verdict-ok {
  color: var(--ok);
  font-size: 15px;
}

.verdict-bad {
  color: var(--bad);
  font-size: 15px;
}

.report-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.report-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 22px;
}

.report-disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 18px;
  font-style: italic;
  color: var(--ink-muted);
}

.photo-rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-rules-list strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.photo-rules-list p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* Чистый лист покупки пакета (как autoteka.ru/order_page + якоря СБП/Мир/ЮKassa) */
.order-band {
  padding: 56px 0 60px;
  background-color: var(--bg-canvas);
}

.order-column {
  max-width: 580px;
}

.order-header h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
}

.order-pack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pack-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background-color: var(--bg-stone);
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.pack-pill:hover {
  background-color: var(--bg-stone-hover);
}

.pack-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-save {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
}

.pack-pill:has(input:checked) {
  background-color: var(--cobalt);
  color: #ffffff;
}

.pack-pill:has(input:checked) .pill-save {
  color: #dcfce7;
}

.pack-pill:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.verified-strip {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: var(--bg-stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.verified-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}

.verified-id {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.verified-bal {
  color: var(--ink-muted);
}

.link-action {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.order-fields-section {
  margin-top: 24px;
}

.order-subheading {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--ink);
}

.order-field {
  margin-bottom: 14px;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-body);
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.field-helper-link {
  font-size: 13px;
  font-weight: 500;
}

.soft-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background-color: var(--bg-stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: background-color 150ms ease-out;
}

.soft-input.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.soft-input::placeholder {
  color: var(--placeholder);
}

.soft-input:focus {
  background-color: #ffffff;
  outline: 2px solid var(--cobalt);
  outline-offset: -2px;
}

.soft-input.is-invalid {
  background-color: var(--err-bg);
  outline: 2px solid var(--bad);
  outline-offset: -2px;
}

.field-error-msg {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--err-ink);
  font-weight: 500;
}

.order-consents {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soft-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
  cursor: pointer;
}

.soft-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cobalt);
  cursor: pointer;
}

.soft-check.is-invalid {
  padding: 8px 10px;
  border-radius: 8px;
  background-color: var(--err-bg);
  color: var(--err-ink);
}

.order-summary {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}

.summary-line.is-discount {
  margin-top: 6px;
  color: var(--ok);
  font-weight: 600;
}

.summary-total {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.form-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: var(--err-bg);
  color: var(--err-ink);
  font-size: 14px;
  font-weight: 500;
}

.order-submit-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-pay-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background-color: var(--pay-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}

.btn-pay-green:hover {
  background-color: var(--pay-green-hover);
  color: #ffffff;
}

.btn-pay-green:active {
  transform: scale(0.98);
}

.btn-pay-green:disabled {
  opacity: 0.72;
  cursor: wait;
}

.order-pay-anchors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Подвал */
.site-footer {
  padding: 24px 0;
  background-color: var(--bg-footer);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-requisites,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-requisites a,
.footer-links a {
  color: var(--ink-muted);
}

.footer-requisites a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Внутренние страницы: оферта, ПДн и возврат после оплаты */
.subpage-main {
  flex: 1 0 auto;
  padding: 36px 0 56px;
}

.legal-wrap {
  max-width: 760px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}

.legal-wrap h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  color: var(--ink);
}

.legal-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-muted);
}

.legal-wrap h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: var(--ink);
}

.legal-wrap p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 24px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background-color: var(--bg-stone);
  font-weight: 600;
}

.return-sheet {
  max-width: 560px;
  padding: 32px;
  border-radius: 24px;
  background-color: var(--bg-stone);
}

.return-sheet h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: var(--ink);
}

.return-status-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 24px;
}

.return-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.return-actions .legal-back {
  margin-bottom: 0;
}

/* Ноутбук 1280x660: первый экран + карточки пакетов ИЛИ чистый лист HMAC целиком выше сгиба */
@media (min-width: 900px) and (max-height: 700px) {
  .site-header {
    height: 56px;
  }

  .hero-band {
    padding: 16px 0 40px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .hero-lead {
    margin: 10px 0 16px;
    font-size: 15px;
    line-height: 22px;
  }

  .hero-trust-row {
    margin-top: 12px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }

  .hero-podium {
    max-width: 340px;
    height: 312px;
    padding: 16px 16px 0;
    border-radius: 24px;
  }

  .iphone-frame {
    width: 264px;
    height: 552px;
    padding: 8px;
    border-radius: 42px;
  }

  .iphone-screen {
    border-radius: 34px;
  }

  .ios-statusbar {
    height: 28px;
    padding: 6px 14px 0;
  }

  .tg-navbar {
    height: 34px;
  }

  .tg-chat-canvas {
    padding: 6px 8px 12px;
    gap: 6px;
  }

  .tg-photo-wrap img {
    height: 54px;
  }

  .tg-bot-stack {
    width: 222px;
  }

  .tg-meta-line {
    font-size: 10.5px;
    line-height: 14px;
  }

  .tg-verdict-text {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 13.5px;
  }

  .tg-inline-btn {
    height: 24px;
    font-size: 10.5px;
  }

  .packs-strip {
    margin-top: 24px;
    gap: 12px;
  }

  .inspect-band,
  .order-band {
    padding: 36px 0 40px;
  }

  .pack-tile {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .pack-price-row {
    margin-top: 4px;
  }

  .pack-tile-price {
    font-size: 22px;
    line-height: 26px;
  }

  .pack-tile-note {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .btn-tile-buy {
    height: 36px;
    font-size: 13px;
  }

  .entry-hmac .order-band {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .entry-hmac .order-header h2 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 8px;
  }

  .entry-hmac .pack-pill {
    height: 34px;
    padding: 0 12px;
  }

  .entry-hmac .verified-strip {
    margin-top: 10px;
    padding: 8px 12px;
  }

  .entry-hmac .order-fields-section {
    margin-top: 10px;
  }

  .entry-hmac .order-subheading {
    display: none;
  }

  .entry-hmac .order-field {
    margin-bottom: 8px;
  }

  .entry-hmac .soft-input {
    height: 42px;
  }

  .entry-hmac .order-consents {
    margin-top: 8px;
    gap: 6px;
  }

  .entry-hmac .soft-check {
    font-size: 12px;
    line-height: 16px;
  }

  .entry-hmac .order-summary {
    margin-top: 10px;
    padding-top: 8px;
  }

  .entry-hmac .summary-total {
    margin-top: 6px;
    font-size: 18px;
  }

  .entry-hmac .order-submit-row {
    margin-top: 10px;
  }

  .entry-hmac .btn-pay-green {
    height: 44px;
  }
}

/* Планшеты и смартфоны */
@media (max-width: 899px) {
  .nav-hide-mobile {
    display: none;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 14px;
  }

  .site-header {
    height: 56px;
  }

  .brand-wordmark {
    font-size: 18px;
  }

  .header-tg-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-band {
    padding: 20px 0 44px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .hero-lead {
    margin: 12px 0 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary-pay {
    width: 100%;
  }

  .hero-trust-row .pay-chip {
    order: 1;
  }

  .hero-trust-row .hero-example-link {
    order: 2;
    margin-left: auto;
  }

  .hero-trust-row .hero-trust-note {
    order: 3;
    flex: 1 0 100%;
  }

  .hero-stage {
    justify-content: center;
  }

  .hero-podium {
    max-width: 350px;
    height: 344px;
    padding: 20px 20px 0;
    border-radius: 24px;
  }

  .iphone-frame {
    width: 272px;
    height: 568px;
    border-radius: 44px;
  }

  .iphone-screen {
    border-radius: 36px;
  }

  .tg-bot-stack {
    width: 228px;
  }

  .packs-strip {
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pack-tile {
    padding: 14px;
    border-radius: 16px;
  }

  .pack-tile-top {
    gap: 6px;
  }

  .pack-tile-title {
    font-size: 14px;
    white-space: nowrap;
  }

  .pack-badge {
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .pack-tile-price {
    font-size: 24px;
    line-height: 28px;
  }

  .btn-tile-buy {
    font-size: 13px;
    padding: 0 8px;
  }

  .inspect-band {
    padding: 40px 0 44px;
  }

  .inspect-band h2,
  .order-header h2 {
    font-size: 26px;
    line-height: 30px;
  }

  .inspect-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .inspect-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px 4px;
  }

  .inspect-tabs::-webkit-scrollbar {
    display: none;
  }

  .inspect-tab {
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 14px;
  }

  .report-sheet {
    padding: 16px;
  }

  .compare-pair {
    grid-template-columns: 1fr;
  }

  .order-band {
    padding: 40px 0 44px;
  }

  .entry-hmac .order-band {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .entry-hmac .order-subheading {
    display: none;
  }

  .entry-hmac .order-fields-section {
    margin-top: 14px;
  }

  .entry-hmac .order-summary {
    margin-top: 14px;
    padding-top: 12px;
  }

  .entry-hmac .order-submit-row {
    margin-top: 14px;
    gap: 10px;
  }

  .order-pack-pills {
    gap: 6px;
  }

  .pack-pill {
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .verified-strip {
    padding: 12px 14px;
    align-items: flex-start;
    gap: 12px;
  }

  .verified-info {
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }

  .order-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-pay-green {
    width: 100%;
  }

  .order-pay-anchors {
    justify-content: center;
  }
}

@media (max-width: 355px) {
  .packs-strip {
    grid-template-columns: 1fr;
  }
}
