/* ─────────────────────────────────────────────
   Pixel HD — лендинг выкупа
   Фирменные цвета: графит #1B1C20, янтарь #F5A623,
   тёплый светлый фон #FAF7F2
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --graphite: #1B1C20;
  --graphite-2: #26282E;
  --graphite-3: #33363E;
  --amber: #F5A623;
  --amber-dark: #D98C0C;
  --cream: #FAF7F2;
  --cream-2: #F2ECE3;
  --ink: #1B1C20;
  --amber-text: #915C00;   /* янтарь для текста: 5,3:1 на кремовом */
  --ink-soft: #5C5F68;
  --ink-faint: #63666F;
  --placeholder: #8B8F99;  /* заметно светлее текста — это подсказка, не значение */
  --line: #E2DCD2;
  --line-dark: #3A3D45;
  --danger: #C0392B;
  --success: #2E7D4F;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --shadow: 0 2px 4px rgba(27, 28, 32, .04), 0 12px 32px rgba(27, 28, 32, .07);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); margin-bottom: .8em; }
h3 { font-size: 20px; }
p  { margin: 0 0 1em; }

/* ───────── кнопки ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--amber); color: var(--graphite); }
.btn-accent:hover { background: #FFB63F; box-shadow: 0 6px 20px rgba(245, 166, 35, .35); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #D8D0C4;
}
.btn-ghost:hover { background: rgba(27, 28, 32, .04); box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 18px 40px; font-size: 18px; width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .dropzone:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ───────── шапка ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
/* Логотип задаём по высоте: локап широкий (1023×176), по ширине его легко
   загнать ниже минимально читаемого размера. */
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.logo-mark { display: none; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.header-phone:hover { color: var(--amber-dark); }
.header-phone-icon { display: none; }

/* ───────── hero ───────── */
.hero {
  background:
    radial-gradient(900px 520px at 80% -14%, rgba(245, 166, 35, .28), transparent 62%),
    linear-gradient(180deg, #FFFDF8 0%, var(--cream) 100%);
  color: var(--ink);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 116px);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}
.eyebrow {
  color: var(--amber-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.trust li { display: flex; align-items: center; gap: 12px; }
.trust b { font-size: 26px; color: var(--amber-text); font-weight: 700; }
.trust span { font-size: 13.5px; line-height: 1.35; color: var(--ink-faint); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 4px;
}
.hero-card-inner { padding: 28px; }
.hero-card-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.checklist { list-style: none; margin: 0 0 22px; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
}
.hero-card-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ───────── секции ───────── */
.section { padding: clamp(56px, 7vw, 96px) 0; }
/* Липкая шапка не должна накрывать заголовок при переходе по якорю */
section[id] { scroll-margin-top: 80px; }
.section-white { background: #fff; }
.section-form { background: var(--cream-2); }
.section-note {
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 60ch;
}
.section-note b { color: var(--ink); font-weight: 600; }
.section-note + .section-note { margin-top: 10px; }

/* карточки категорий */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #D8CFC0;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

/* шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--graphite);
  font-weight: 700;
  font-size: 19px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

/* ───────── форма ───────── */
.form-sub { color: var(--ink-soft); max-width: 58ch; margin-bottom: 36px; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}
.req { color: var(--amber-text); }

.field input[type=text],
.field input[type=tel],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235C5F68' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CFC6B7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.err { display: none; margin: 7px 0 0; font-size: 14px; color: var(--danger); }
.field.invalid .err { display: block; }
.hint { margin: 7px 0 0; font-size: 14px; color: var(--ink-faint); }

/* чекбокс согласия */
.field-consent { margin-top: 4px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 0 !important;
}
.checkbox input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--amber-dark);
  cursor: pointer;
}

/* зона загрузки фото */
.dropzone {
  border: 2px dashed #D5CCBD;
  border-radius: var(--radius);
  background: var(--cream);
  padding: 30px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--amber);
  background: #FFF8EC;
}
.dz-title { margin: 0 0 6px; font-weight: 600; font-size: 16px; }
.dz-sub { margin: 0; font-size: 14px; color: var(--ink-faint); line-height: 1.45; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.thumbs:empty { margin: 0; }
.thumbs li {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 28, 32, .78);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-del:hover { background: var(--danger); }

.form-legal {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: 15.5px;
  line-height: 1.45;
}
.form-status.show { display: block; }
.form-status.error { background: #FCEDEB; color: var(--danger); }
.form-status.pending { background: var(--cream-2); color: var(--ink-soft); }

/* экран успеха */
.form-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow);
}
.success-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--graphite);
  font-size: 34px;
  line-height: 68px;
  font-weight: 700;
}
.form-success h3 { font-size: 27px; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.success-sub { margin-top: 18px; font-weight: 600; color: var(--ink) !important; }

/* ───────── контакты и карта ───────── */
.contacts-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
}
.contacts-info dl { margin: 0 0 28px; }
.contacts-info dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.contacts-info dd {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.5;
}
.contacts-info dd a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 15px;
  padding: 20px;
}
/* Карта загрузилась — убираем заглушку, иначе текст висит поверх карты */
.map[data-loaded="1"] .map-placeholder { display: none; }

.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.map-link:hover { color: var(--ink); }

/* ───────── подвал ───────── */
.site-footer {
  background: var(--cream-2);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 46px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-logo { height: 34px; width: auto; }
.footer-text { margin: 0; font-size: 15px; line-height: 1.55; }
.footer-legal { margin: 0; font-size: 14px; color: var(--ink-faint); }

/* ───────── документ: политика обработки данных ───────── */
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }

.doc-title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.doc-date { color: var(--ink-faint); font-size: 15px; margin-bottom: 40px; }

.prose { max-width: 68ch; }
.prose h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); text-decoration-color: var(--amber); }

/* Незаполненные реквизиты подсвечены, чтобы их нельзя было не заметить.
   Перед публикацией не должно остаться ни одного .fill — проверить
   поиском по слову fill в policy.html. */
.fill {
  background: #FFE9BF;
  color: var(--amber-text);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #EBC77E;
}

.btn-back { margin-top: 44px; }

/* ссылка на политику в чекбоксе согласия */
.checkbox a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ───────── адаптив ───────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 340px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn, .contacts-info .btn { width: 100%; }
  .trust { gap: 16px 26px; }
  .trust b { font-size: 22px; }

  /* Шапка: номер целиком не влезает рядом с кнопкой, оставляем
     кружок-звонилку размером с палец. */
  .header-inner { min-height: 64px; gap: 10px; }
  .footer-logo { height: 30px; }
  .header-phone-text { display: none; }
  .header-phone-icon { display: block; }
  .header-phone {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #D8D0C4;
  }
  .header-phone:active { background: rgba(27, 28, 32, .06); }
  .btn-word { display: none; }
  .header-right { gap: 10px; }

  /* Телефон в контактах — палец, а не курсор */
  .contacts-info dd { font-size: 16px; }
  .contacts-info dd a { display: inline-block; padding: 11px 0; }

  .checkbox input { width: 24px; height: 24px; }
}

/* Локап (174×30) перестаёт помещаться рядом с телефоном и кнопкой
   примерно на 430 px — только там уходим на один знак. */
@media (max-width: 430px) {
  .logo-full { display: none; }
  .logo-mark { display: block; height: 34px; }
}
