/* «Зеркало» — в палитре сайта polinaprema.ru («Смелый минимализм»). После выбора стиля Soft Life меняются только переменные ниже. */
:root {
  --bg: #F1EEE8;
  --surface: #FAF8F4;
  --ink: #111111;
  --ink-2: #3D3D3D;
  --ink-3: #6B6B6B;
  --line: rgba(17, 17, 17, .14);
  --accent: #7A1E2C;
  --accent-dark: #5C1520;
  --accent-soft: #F3E4E6;
  --ok: #2F6B45;
  --radius: 4px;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --italic: 'Playfair Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
[hidden] { display: none !important; }

.top { padding: 18px 16px; max-width: 680px; margin: 0 auto; }
.logo { font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.wrap { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }

.hero h1 { font-size: clamp(64px, 16vw, 112px); line-height: .95; margin: 16px 0 12px; font-weight: 400; }
.hero h1 em { font-family: var(--italic); font-style: italic; color: var(--accent); letter-spacing: -.02em; }
.sub { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 20px; }
.intro { font-family: var(--italic); font-style: italic; font-size: clamp(20px, 4.4vw, 24px); line-height: 1.4; color: var(--ink-2); margin: 0 0 24px; padding-left: 16px; border-left: 2px solid var(--accent); }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.facts li { padding-left: 22px; position: relative; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--accent); }
.next { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 36px; }
.next__label { font-size: 13px; color: var(--ink-3); }
.next__date { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.next__date::first-letter { text-transform: uppercase; }

.form { display: grid; gap: 0; }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 8px; line-height: 1.35; padding: 0; }
.field .req { color: var(--accent); }
.field input[type=text], .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; transition: border-color .15s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 15px; line-height: 1.3; transition: all .15s; }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts--wide { display: grid; }
.opts--wide .opt span { display: block; border-radius: var(--radius); padding: 14px 16px; }
.field.bad input[type=text], .field.bad textarea, .field.bad .opt span { border-color: var(--accent); }
.field.bad > label, .field.bad > legend { color: var(--accent); }

.consents { display: grid; gap: 12px; margin: 4px 0 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.check.bad { color: var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; padding: 16px 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.err { color: var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: var(--radius); margin: 0 0 14px; font-size: 15px; }
.closed { background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); }
.loading { color: var(--ink-3); }

.done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 14px; }
.done h2 { font-family: var(--italic); font-style: italic; font-weight: 400; color: var(--accent); font-size: 40px; line-height: 1; margin: 0; }
.done__date { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.done__date::first-letter { text-transform: uppercase; }
.done__zoom { font-size: 15px; }
.done__zoom a { color: var(--accent); font-weight: 600; word-break: break-all; }
.done__zoom .lbl { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.done__tg { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.done__tg p { margin: 0; font-size: 15px; color: var(--ink-2); }
.done__tg.linked .btn { background: transparent; color: var(--ok); border-color: var(--ok); }
.hint { font-size: 14px; color: var(--ink-3); margin: 0; }
.keep { margin: -8px 0 0; font-size: 14px; word-break: break-all; }
.keep a { color: var(--ink-2); }

.foot { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--ink-3); }
