:root {
  --stock: #e4ddd0;
  --ink: #1a1915;
  --muted: #5e594f;
  --line: rgba(26, 25, 21, 0.16);
  --film: #1a1915;
  --paper: #f6f3ec;
  --rec: #e23b2f;
  --rec-text: #a82a20;
  --ok: #1f6b45;
  --shadow: 0 24px 60px rgba(40, 32, 18, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(26, 25, 21, 0.04), transparent 42px, transparent calc(100% - 42px), rgba(26, 25, 21, 0.04)),
    var(--stock);
  color: var(--ink);
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

.top {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a { text-decoration: none; }

.nav-link { color: var(--muted); }

.tg-link {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.tg-short { display: none; }

.top-nav a:hover,
.foot-link:hover,
.text-btn:hover { color: var(--rec-text); }

.tg-link:hover { background: var(--ink); color: var(--paper) !important; }

.open-form,
.login button,
#lead-submit,
.admin button.solid {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.open-form:hover,
.login button:hover,
#lead-submit:hover { background: #000; }

#logout {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.strip {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.hero { padding: 36px 0 12px; }

.tight-hero { padding-top: 18px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.hero-actions .open-form { padding: 13px 22px; font-size: 18px; }

.ghost-link {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 18px;
  text-decoration: none;
}

.ghost-link:hover { background: var(--ink); color: var(--paper); }

.eyebrow {
  margin: 0 0 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 22ch;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.lede.tight { margin-top: 8px; }

.block { padding: 44px 0 4px; }

/* Цены */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 20px 22px;
}

.plan h3 {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.price-tag {
  margin: 8px 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
}

.term {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.plan ul {
  margin: 14px 0 18px;
  padding-left: 18px;
  flex: 1;
}

.plan li { margin-bottom: 6px; }

.plan button {
  align-self: flex-start;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.plan button:hover { background: var(--ink); color: var(--paper); }

.plans-note {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Работы */
.reel {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 22px;
}

.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.frame:focus-visible,
.text-btn:focus-visible,
.open-form:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.film {
  background: var(--film);
  color: var(--paper);
  padding: 12px 12px 14px;
}

.holes {
  height: 18px;
  margin: 0 4px;
  background-image: radial-gradient(circle at 9px 9px, var(--stock) 5px, transparent 5.5px);
  background-size: 32px 18px;
  background-repeat: repeat-x;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.stage video,
.stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 34px;
}

img.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
}

.caption h3 {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.index,
.duration {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}

.line { margin: 2px 0 0; color: var(--muted); }

.badge {
  display: inline-block;
  margin-left: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rec-text);
  vertical-align: middle;
}

/* Как это устроено */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}

.steps b {
  display: block;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* О себе, отзывы, призыв */
.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.about p { margin: 0; color: var(--ink); }

.certs {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.certs a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-decoration: none;
}

.certs a:hover { border-color: var(--ink); }

.certs strong {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.certs span { color: var(--muted); font-size: 14px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.review {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px;
}

.review blockquote { margin: 0; }

.review figcaption { margin-top: 10px; font-weight: 600; }

.review figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  margin-top: 40px;
  padding: 30px 28px 32px;
  background: var(--ink);
  color: var(--paper);
}

.cta .lede { color: #cfc8b9; }

.cta .open-form { background: var(--paper); color: var(--ink); }

.cta .open-form:hover { background: #fff; }

.cta .ghost-link { border-color: var(--paper); }

.cta .ghost-link:hover { background: var(--paper); color: var(--ink); }

.colophon {
  width: min(920px, calc(100% - 32px));
  margin: 10px auto 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.socials { display: flex; gap: 16px; }

.socials a,
.foot-link { color: var(--muted); text-decoration: none; }

/* Диалоги */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
}

dialog::backdrop { background: rgba(28, 24, 16, 0.62); }

.lead-dialog { width: min(480px, calc(100% - 24px)); }

.dialog-card {
  background: var(--paper);
  color: var(--ink);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-bar h2,
#case-title {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#case-title { margin: 0 0 14px; font-size: 40px; }

.dialog-bar h2 { margin: 0; font-size: 32px; }

.dialog-bar .eyebrow { margin: 0; }

.text-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.case-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.case-stage .stage { border: 1px solid var(--film); }

.facts { margin: 0; }

.facts div { padding: 10px 0; border-top: 1px solid var(--line); }

.facts dt {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd { margin: 4px 0 0; }

.facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.shot {
  border: 1px solid var(--film);
  overflow: hidden;
  background: white;
}

.example-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

form label,
.login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
}

form label.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

form label.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(26, 25, 21, 0.28);
  background: #fff;
  padding: 10px 12px;
  border-radius: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-error { color: var(--rec-text); }

.form-ok { color: var(--ok); }

.form-alt { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

#lead-submit { margin-top: 16px; }

#lead-submit:disabled,
button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Админка */
.login { max-width: 360px; }

.board { display: flex; flex-direction: column; gap: 12px; }

.admin-title { margin: 36px 0 0; }

.lead {
  border-top: 1px solid var(--line);
  padding: 14px 0 8px;
}

.lead header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.lead h2 {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.lead p { margin: 8px 0; }

.meta {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.actions button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
}

.actions button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.lead.spam { opacity: 0.55; }

.reasons { margin: 8px 0; padding-left: 18px; font-size: 0.92rem; }
.reasons li { margin: 2px 0; }
.draft { margin: 10px 0; }
.draft summary { cursor: pointer; font-size: 0.92rem; }
.draft-text { white-space: pre-wrap; }
.draft .actions { margin-top: 6px; }

.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-head .admin-title { margin-bottom: 0; }

.button-like {
  border: 1px solid var(--ink);
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.sheet { margin: 12px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.sheet summary { cursor: pointer; font-size: 0.92rem; }
.sheet-form { max-width: 560px; margin: 10px 0 14px; }
.sheet-form button { margin-top: 8px; }
.sheet-form select { max-width: 260px; }
.sheet-form input[name="note"] { max-width: 360px; }
.remind {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.empty { color: var(--muted); }

.review-form { max-width: 560px; margin-top: 14px; }

.review-form button { margin-top: 14px; }

/* Политика конфиденциальности */
.doc { max-width: 68ch; padding-bottom: 20px; }

.doc h1 { max-width: none; font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }

.doc h2 { font-size: 24px; margin-top: 28px; }

.doc p, .doc li { color: #2a2823; }

@media (max-width: 760px) {
  .case-layout, .shots, .caption, .plans, .steps, .about, .reviews, .certs { grid-template-columns: 1fr; }
  .caption { gap: 4px; }
  h1 { max-width: none; }
  .colophon { align-items: flex-start; flex-direction: column; }
  .nav-link { display: none; }
  .tg-long { display: none; }
  .tg-short { display: inline; }
  .badge { display: block; margin: 4px 0 0; }
  #case-title { font-size: 32px; }
  .cta { padding: 24px 18px 26px; }
  .top { align-items: flex-start; }
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
