/* =========================================================
   Foncut — стили лендинга
   Точные значения сняты через официальный Figma MCP
   (get_design_context / get_metadata) — сент. 2026
   ========================================================= */

/* Craftwork Grotesk — заголовки (веб-лицензия куплена) */
@font-face {
  font-family: 'Craftwork Grotesk';
  src: url('../assets/fonts/CraftworkGrotesk-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Grotesk';
  src: url('../assets/fonts/CraftworkGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Grotesk';
  src: url('../assets/fonts/CraftworkGrotesk-Heavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: optional;
}

/* Craftwork Sans — текст, кнопки, интерфейс */
@font-face {
  font-family: 'Craftwork Sans';
  src: url('../assets/fonts/CraftworkSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Sans';
  src: url('../assets/fonts/CraftworkSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Sans';
  src: url('../assets/fonts/CraftworkSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Sans';
  src: url('../assets/fonts/CraftworkSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Craftwork Sans';
  src: url('../assets/fonts/CraftworkSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: optional;
}

:root {
  --bg: #FEF5F3;
  --accent: #E84B1E;
  --accent-hover: #C93E14;
  --accent-light: #FF997C;
  --accent-soft: #FED0C2;
  --ink: #000000;
  --text-body: #575757;
  --text-muted: #707070;
  --text-faint: #838383;
  --border-light: #DDDDDD;
  --surface: #FFFFFF;
  --surface-tint: #F2F2F2;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;

  --font-main: 'Craftwork Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Craftwork Grotesk', 'Craftwork Sans', system-ui, sans-serif;

  /* Контейнер = реальная ширина контентной зоны в макете (1302px из 1920px канвы) */
  --container-w: 1302px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--bg) url('../assets/page-bg.jpg') top center / 100% auto no-repeat;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  height: 30px;
  width: auto;
}

.logo-tagline {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-body);
  max-width: 220px;
  border-left: 1px solid var(--border-light);
  padding-left: 12px;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 14px;
}

.main-nav a { color: var(--text-body); text-decoration: underline; }
.main-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credits-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--text-muted);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 18px;
  cursor: default;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.email-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: var(--surface);
  cursor: pointer;
}

.email-pill-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  pointer-events: none;
  z-index: 20;
}

.email-pill:hover .email-pill-tooltip,
.email-pill.is-open .email-pill-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.12;
  margin: 0 0 16px;
  position: relative;
}

.sticker-combo {
  display: inline-block;
  width: clamp(110px, 12vw, 165px);
  height: auto;
  margin-left: 14px;
  vertical-align: middle;
}

.lb-mobile { display: none; }

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--ink);
  margin: 0 0 32px;
}

/* Точные размеры сняты через Figma MCP (frame "Фон загрузка" 25:309):
   внешний слой 1302×726, белый слой инсет 20px радиус 24, плашка 771×56 внизу */
.upload-card {
  position: relative;
  width: 100%;
  border-radius: 32px;
  background: rgba(248,248,248,.2);
  box-shadow: 0 4px 98px 5px #EBCAC0;
  padding: 20px;
}

.upload-card-white {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 24px;
}

.upload-card-inner {
  padding: 88px 40px 120px;
  text-align: center;
}

.upload-icon { margin: 0 auto 62px; width: 108px; height: 108px; }

.upload-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  margin: 0 0 11px;
}

.upload-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(16px, 2.3vw, 24px);
  color: var(--text-faint);
  margin: 0 0 26px;
}

.format-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 37px;
  flex-wrap: wrap;
}

.format-pills span {
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  padding: 8px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.upload-hint {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-faint);
  margin: 15px 0 0;
}

.upload-free-hint {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin: 8px 0 0;
}

/* Линия прогресса под кнопкой — снята через Figma MCP (Rectangle 31/32),
   трек #FFE9E2, заполнение var(--accent-light), радиус "таблетка" */
.upload-progress {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  width: 59.2%;
  max-width: 771px;
  height: 9px;
  border-radius: 40px;
  background: #FFE9E2;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 21px;
  border-radius: 30px;
  background: var(--accent-light);
  transition: width .3s ease;
}

.upload-note {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 59.2%;
  min-width: min(570px, 100%);
  max-width: 771px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FED0C2;
  border-radius: 30px 30px 0 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  padding: 0 8px;
}

/* ---------- Результаты обработки (тестовая версия с рабочим бэкендом) ---------- */
.results {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  text-align: left;
}

.results[hidden] { display: none; }

.results-status {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 4px;
}

.result-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-thumb img { width: 100%; height: 100%; object-fit: contain; }

.result-thumb.is-loading::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: foncut-spin 0.8s linear infinite;
}

.result-thumb.is-error {
  background: #fdeceb;
  color: var(--accent);
}

@keyframes foncut-spin {
  to { transform: rotate(360deg); }
}

.result-name {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-download {
  display: inline-block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.result-download:hover { background: var(--accent-hover); }

.result-error-text {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 30px 48px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(.98); }

.btn-block {
  width: 100%;
  font-size: 20px;
  padding: 22px 32px;
}

/* ---------- Proof / compare ---------- */
.proof {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 58px;
  align-items: center;
  padding: 0 20px;
  margin-top: 164px;
}

.compare {
  position: relative;
  aspect-ratio: 507 / 387;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
}

.compare-before, .compare-after {
  position: absolute;
  inset: 0;
}

.compare-before img, .compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.compare-after {
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f4f4f4;
  clip-path: inset(0 0 0 var(--split, 50%));
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 60px;
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
}

.compare-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  max-width: none;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.proof-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.proof-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-text li {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
}

.proof-text li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink);
}

/* ---------- Pricing ---------- */
.pricing { padding: 0 20px; margin-top: 164px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 33px;
}

.price-card {
  position: relative;
  background: rgba(255,255,255,.2);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-card--featured {
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgba(232,75,30,.35);
}

.badge {
  position: absolute;
  top: -37px;
  width: clamp(170px, 20vw, 210px);
  height: auto;
}

.price-card h3 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin: 16px 0 12px;
}

.price-credits {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
}

.price-credits-caption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 10px 0 2px;
}

.price-credits-sub {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 18px;
}

.price-divider {
  border: none;
  border-top: 1px solid var(--accent-light);
  width: 100%;
  margin: 20px 0 0;
}

.price-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 999px;
  margin: -15px 0 18px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  margin: 0;
}

.price-per {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  margin: 8px 0 4px;
}

.price-note {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 22px;
}

/* ---------- FAQ ---------- */
.faq { padding: 0 20px; margin-top: 164px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(248,248,248,.2);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 28px);
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chev { width: 28px; height: 28px; transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; transform: rotate(-90deg); }
.faq-item[open] .chev { transform: rotate(0deg); }

.faq-item p {
  margin: 18px 0 0;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
  margin-top: 164px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-legal { display: flex; align-items: flex-start; gap: 24px; }

.footer-links { display: flex; flex-direction: column; gap: 6px; }

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

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.footer-credit-icon {
  width: 20px;
  height: 20px;
}

.footer-credit:hover { color: var(--accent); }

/* ---------- Модалка: email за бесплатные кредиты ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  padding: 40px 36px 32px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-tint);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: var(--accent-soft); color: var(--accent); }

.modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.modal-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 10px;
}

.modal-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-body);
  margin: 0 0 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-input.is-invalid { border-color: var(--accent); }

.modal-form .btn-block { font-size: 18px; padding: 18px 24px; }

.modal-hint {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- Юридические страницы (соглашение, конфиденциальность) ---------- */
.legal-main { padding: 48px 0 80px; }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-updated {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 12px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content a { color: var(--accent); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .badge { position: static; display: inline-block; margin-bottom: 8px; }
  .price-card { padding-top: 24px; }
  .btn-primary { padding: 20px 32px; }
  /* На десктопе отступы между блоками 164px (по просьбе) — на мобильных/планшетах
     оставляем как было, вёрстку этих версий делает отдельно сама Ms. Black */
  .hero { padding-bottom: 64px; }
  .proof, .pricing, .faq, .site-footer { margin-top: 0; }
  .proof { padding-top: 48px; padding-bottom: 48px; }
  .pricing { padding-top: 48px; padding-bottom: 64px; }
  .faq { padding-top: 24px; padding-bottom: 80px; }
}

@media (max-width: 480px) {
  /* Точные размеры сняты через Figma MCP с фрейма "Мобильная версия" (34:773) */

  /* ---- Шапка: логотип/аккаунт в строке, навигация — отдельной строкой по центру ---- */
  .site-header { padding: 14px 0; }
  .header-inner { flex-wrap: wrap; row-gap: 12px; }
  .logo-tagline { display: none; }
  .logo-mark { height: 26px; }
  .main-nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 24px;
    font-size: 16px;
  }
  .credits-pill { padding: 6px 12px; font-size: 15px; }
  .avatar { width: 32px; height: 32px; font-size: 15px; }
  .email-pill { width: 32px; height: 32px; }

  /* ---- Герой: заголовок бьётся так же, как в макете — "Пакетное" отдельной строкой;
     стикер "за 2 мин." теперь в правом верхнем углу блока, поверх заголовка (новая
     композиция первого блока, снята через Figma MCP) ---- */
  .hero { position: relative; padding: 32px 16px 0; }
  .lb-mobile { display: inline; }
  .hero h1 { margin-bottom: 8px; }
  .sticker-combo {
    position: absolute;
    top: -23px;
    right: -1px;
    margin: 0;
    /* На узких экранах слева от стикера меньше места (короткое слово "Пакетное"
       разъезжается по центру) — считаем ширину так, чтобы стикер не наезжал на буквы */
    width: clamp(50px, min(26vw, 50vw - 108px), 120px);
  }
  .hero-subtitle { font-size: 17px; margin-bottom: 24px; }

  /* ---- Карточка загрузки ---- */
  .upload-card { padding: 13px; }
  .upload-card-inner { padding: 27px 16px 108px; }
  .upload-icon { width: 68px; height: 68px; margin-bottom: 20px; }
  .upload-title { font-size: 18px; margin-bottom: 8px; }
  .upload-sub { font-size: 14px; margin-bottom: 20px; }
  .format-pills { gap: 8px; margin-bottom: 18px; }
  .format-pills span { padding: 5px 14px; font-size: 12px; }
  .upload-card .btn-primary { width: 100%; font-size: 20px; padding: 22px 20px; }
  .upload-hint { font-size: 12px; margin-top: 10px; }

  /* Линия прогресса — та же ширина, что в мобильном макете (85% карточки) */
  .upload-progress { width: 85%; bottom: 81px; }

  /* Плашка с подписью — уже полностью вписана внутри карточки, шире на мобильном */
  .upload-note {
    width: 81%;
    min-width: 0;
    height: 58px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    padding: 0 16px;
  }

  /* ---- Слайдер до/после: ручка чуть крупнее под палец (по макету) ---- */
  .compare-handle-icon { width: 52px; }

  /* ---- Текст под "Крутой результат в HD качестве" ---- */
  .proof-text li {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 16px;
  }

  /* ---- Тарифы: карточки уже в одну колонку — только отступы под мобильный экран ---- */
  .price-card { padding: 24px 16px; }

  /* ---- Единый отступ между блоками на мобильном — 68px ---- */
  .proof, .pricing, .faq {
    margin-top: 68px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .site-footer { margin-top: 68px; }

  /* ---- FAQ: ответы 16px на мобильном ---- */
  .faq-item p { font-size: 16px; }

  /* ---- Модалка email на мобильном ---- */
  .modal-card { padding: 32px 20px 24px; border-radius: 24px; }
  .modal-card h3 { font-size: 20px; }
  .modal-text { font-size: 14px; }

  /* ---- Футер: колонка по центру, без копирайта — по мобильному макету в Figma ---- */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-brand small { display: none; }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 12px;
    color: #656565;
    line-height: 1.5;
  }
  .footer-links {
    align-items: center;
    gap: 8px;
  }
  .footer-links a {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 12px;
    text-decoration: underline;
    color: var(--ink);
  }
  .footer-credit-icon { width: 29px; height: 29px; }

  /* ---- Юридические страницы: меньше отступов на мобильном ---- */
  .legal-main { padding: 28px 0 48px; }
  .legal-content { padding: 28px 20px; border-radius: var(--radius-md); }
  .legal-content h2 { font-size: 17px; margin: 26px 0 10px; }
}
