/* ==== Шрифт Tavrida ==== */
@font-face {
  font-family: 'Tavrida';
  src: url('../fonts/TavridaLight.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tavrida';
  src: url('../fonts/TavridaRegular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tavrida';
  src: url('../fonts/TavridaMedium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tavrida';
  src: url('../fonts/TavridaBold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tavrida';
  src: url('../fonts/TavridaExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ==== Палитра ==== */
:root {
  --c-blue-light: #91B7DE;
  --c-red: #AC2B37;
  --c-blue: #3E61DE;
  --c-pink: #F09DD7;
  --c-orange: #FFBC6D;
  --c-green: #32BF89;
  --c-coral: #FF7469;

  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #1C2430;
  --muted: #6B7684;
  --border: #E3E8EF;
  --border-focus: var(--c-blue);
  --accent: var(--c-red);
  --accent-dark: #8E222C;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(28, 36, 48, 0.06), 0 10px 30px rgba(28, 36, 48, 0.05);
  --font: 'Tavrida', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: url('../pattern/pattern-1.png');
  background-repeat: no-repeat;
  background-position: right -80px top -60px;
  background-size: 320px;
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

/* ==== Шапка ==== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 26px;
}
.site-header a { display: inline-block; }
.site-header img { height: 54px; width: auto; display: block; }
@media (max-width: 560px) { .site-header img { height: 42px; } }

/* ==== Карточка / заголовки ==== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
@media (max-width: 560px) { .card { padding: 20px 16px; } }

h1 {
  font-weight: 800;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
}

/* ==== Форма ==== */
.field { margin-bottom: 18px; }
label.field-label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 7px;
}
.req { color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }

input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(62, 97, 222, 0.14);
}

/* ==== Dropzone ==== */
.dropzone {
  border: 2px dashed var(--c-blue-light);
  border-radius: var(--radius);
  background: #F3F7FC;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dropzone.dragover { background: #E7F0FA; border-color: var(--c-blue); }
.dropzone strong { color: var(--c-blue); }
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.dz-icon { font-size: 30px; line-height: 1; }

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.previews:empty { margin-top: 0; }
.preview {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .pdf {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; flex-direction: column;
  font-size: 12px; color: var(--muted); gap: 4px; padding: 6px; text-align: center;
}
.preview .pdf .big { font-size: 26px; }
.preview .rm {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  cursor: pointer; font-size: 15px; line-height: 24px; padding: 0;
}
.preview .rm:hover { background: var(--accent); }
.preview .name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.5); color: #fff; font-size: 10px;
  padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==== Капча ==== */
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row .q { font-weight: 500; }
.captcha-row input { width: 96px; }

/* ==== Согласие ==== */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.consent a { color: var(--c-blue); }

/* ==== Кнопка ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 17px;
  color: #fff; background: var(--accent);
  border: none; border-radius: var(--radius-sm);
  padding: 14px 28px; cursor: pointer;
  transition: background .15s, transform .05s;
  width: 100%;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }

/* ==== Прогресс ==== */
.progress {
  display: none; margin-top: 14px; height: 8px; border-radius: 6px;
  background: var(--border); overflow: hidden;
}
.progress.show { display: block; }
.progress .bar { height: 100%; width: 0%; background: var(--c-green); transition: width .1s; }

/* ==== Ошибки ==== */
.errors {
  background: #FDECEE; border: 1px solid #F3C0C6; color: #8E222C;
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 20px;
  font-size: 14px;
}
.errors ul { margin: 0; padding-left: 20px; }
.errors li { margin: 2px 0; }

/* ==== Успех ==== */
.success-card { text-align: center; }
.success-card .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--c-green); color: #fff; font-size: 36px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.success-card .num {
  font-weight: 800; font-size: 40px; color: var(--accent); margin: 8px 0;
}
.success-card .btn { width: auto; margin-top: 18px; }

/* ==== Футер ==== */
.site-footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 26px 0 0;
}

/* Прозрачный паттерн-акцент в углу карточки */
.card { position: relative; }
