@font-face { font-family: "Marck Script"; src: url("../fonts/MarckScript-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; src: url("../fonts/CormorantGaramond-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; src: url("../fonts/CormorantGaramond-Bold.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0f1b33;
  --night-2: #17284a;
  --gold: #e8c27a;
  --gold-2: #f6dfae;
  --snow: #fbf8f2;
  --ink: #1d2433;
  --muted: #6b7385;
  --red: #b3343b;
  --ok: #2f7d55;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--snow);
}
a { color: var(--red); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* Шапка */
.top { background: var(--night); color: var(--snow); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: "Marck Script", cursive; font-size: 28px; color: var(--gold-2); text-decoration: none; }
.top nav a { color: var(--snow); text-decoration: none; margin-left: 18px; font-size: 15px; opacity: .85; }

/* Первый экран */
.hero {
  background: radial-gradient(ellipse at top, var(--night-2), var(--night) 70%);
  color: var(--snow); padding: 56px 0 64px; position: relative; overflow: hidden; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 160px 60px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 150px, #fff 50%, transparent 51%);
  background-size: 260px 200px;
}
.hero h1 { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 14px; }
.hero h1 em { font-family: "Marck Script", cursive; font-style: normal; color: var(--gold); font-weight: 400; }
.hero p { font-size: 19px; max-width: 620px; margin: 0 auto 28px; opacity: .9; }

.btn {
  display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--night);
  font-weight: 700; padding: 15px 30px; border-radius: 999px; text-decoration: none; border: 0; font-size: 18px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(232, 194, 122, .35);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; border: 1.5px solid var(--night); box-shadow: none; }
.btn.small { padding: 9px 18px; font-size: 15px; }

section { padding: 48px 0; }
h2 { font-family: "Cormorant Garamond", serif; font-size: 36px; margin: 0 0 20px; text-align: center; }
h3 { font-family: "Cormorant Garamond", serif; font-size: 24px; margin: 0 0 6px; }
.lead { text-align: center; color: var(--muted); max-width: 640px; margin: -8px auto 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 14px rgba(15, 27, 51, .07); }
.card .meta { color: var(--muted); font-size: 14px; }
.examples video { border-radius: 14px; aspect-ratio: 9/16; width: 100%; background: #000; object-fit: cover; }
.placeholder { aspect-ratio: 9/16; border-radius: 14px; background: linear-gradient(160deg, var(--night-2), var(--night));
  color: var(--gold-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  font-family: "Marck Script", cursive; font-size: 26px; }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 20px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: var(--gold-2); font-weight: 700;
  font-size: 14px; display: flex; align-items: center; justify-content: center; }

.price { font-family: "Cormorant Garamond", serif; font-size: 34px; font-weight: 700; }
.price s { color: var(--muted); font-size: 22px; margin-left: 6px; }

.notice { background: #fff6e2; border: 1px solid #f0d9a3; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.notice.err { background: #fdecec; border-color: #f2b8b8; }
.notice.ok { background: #e8f5ee; border-color: #a8d8bd; }

/* Форма */
form .field { margin-bottom: 22px; }
label.title { display: block; font-weight: 700; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid #d6d9e0; border-radius: 12px; font-size: 17px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--night); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1.5px solid #d6d9e0; border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; height: 100%; }
.choice input:checked + span { border-color: var(--night); box-shadow: 0 0 0 2px var(--night) inset; background: #f3f5fa; }
.choice.disabled span { opacity: .4; cursor: not-allowed; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.stories .choice span { padding: 14px; }
.photo-drop { border: 2px dashed #c3c8d3; border-radius: 16px; padding: 22px; text-align: center; background: #fff; cursor: pointer; }
.photo-drop img { max-height: 260px; margin: 12px auto 0; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.total { font-size: 20px; margin: 18px 0; }

/* Страница заказа */
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--night); color: var(--gold-2); font-size: 15px; }
.final-video { max-width: 380px; margin: 20px auto; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(15,27,51,.25); }
.final-video video { width: 100%; }
.progress { height: 10px; background: #e3e6ee; border-radius: 999px; overflow: hidden; margin: 16px 0; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .5s; }
.scene-list { list-style: none; padding: 0; }
.scene-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eceef3; }
details.redo { margin-top: 18px; }
details.redo summary { cursor: pointer; color: var(--red); font-weight: 600; }

footer { background: var(--night); color: #b8c0d4; padding: 30px 0; font-size: 14px; }
footer a { color: #d8deeb; }

.legal h1 { font-family: "Cormorant Garamond", serif; }
.legal { padding: 30px 0 60px; }
.draft { background: #fdecec; border: 1px dashed var(--red); padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* Админка */
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.admin th, .admin td { padding: 8px 10px; border-bottom: 1px solid #eceef3; text-align: left; vertical-align: top; }
.admin .tabs a { margin-right: 10px; font-size: 14px; }
.admin .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin .thumbs img, .admin .thumbs video { width: 150px; border-radius: 8px; }
.admin form.inline { display: inline; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 13px; background: #eef0f5; }
.badge.review, .badge.failed, .badge.error { background: #fdecec; color: var(--red); }
.badge.done { background: #e8f5ee; color: var(--ok); }
