:root {
  color-scheme: light;
  --paper: #f8f4ec;
  --light: #fffaf2;
  --ink: #272420;
  --muted: #615850;
  --red: #8a2935;
  --red-dark: #6c202b;
  --edge: #d8cfc1;
  --cinema: #232724;
  --cream: #fbf4e7;
  --serif: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
figure, fieldset { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.042em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.025em; }
section[id] { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 3px solid #b95449; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--edge); }
.header-inner, .footer-inner, nav, .hero-actions, .format-footer {
  display: flex;
  align-items: center;
}
.header-inner, .footer-inner, .format-footer { justify-content: space-between; }
.header-inner { min-height: 4.65rem; gap: 1rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
}
nav { gap: clamp(.8rem, 3vw, 2rem); }
.nav-link { text-decoration: none; font-size: .92rem; }
.nav-link:hover, .text-link:hover { color: var(--red); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.18rem;
  border: 1px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  color: #fffaf2;
  font-size: .95rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button:disabled { opacity: .65; cursor: wait; }
.button-small { min-height: 2.55rem; padding: .48rem .88rem; font-size: .88rem; }
.button-outline { border-color: #b59b95; background: transparent; color: var(--red); }
.button-outline:hover { border-color: var(--red); background: #f2e4de; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.eyebrow {
  color: var(--red);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
h1 {
  margin-block: .95rem 1.15rem;
  font-size: clamp(2.8rem, 6.15vw, 5.7rem);
  letter-spacing: -.066em;
  line-height: 1.02;
}
h1 em { font-weight: 500; color: var(--red); }
.intro {
  max-width: 29rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
}
.hero-actions { flex-wrap: wrap; gap: .85rem 1.25rem; margin-top: 1.55rem; }
.text-link { font-size: .95rem; font-weight: 620; text-underline-offset: .25em; }
.hero-note, figcaption { color: var(--muted); font-size: .875rem; }
.hero-note { margin-top: .85rem; }
.hero-figure figcaption { margin-top: .65rem; text-align: center; }
.mockup {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid #e2dacd;
  border-radius: 10px;
  background: #f0edf4;
}
.mockup img { width: 100%; height: auto; }
.mockup-date-area {
  position: absolute;
  top: 68.15%;
  left: 17.65%;
  width: 59.2%;
  height: 11.45%;
  padding: .45cqw 1.5cqw .55cqw;
  transform: rotate(2.85deg);
  background: linear-gradient(100deg, #efedf1, #edebef);
  color: #211f20;
  font-size: 1.12cqw;
  text-align: center;
  line-height: 1.06;
}
.mockup-weekdays, .mockup-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.mockup-weekdays { padding-bottom: .35cqw; border-bottom: 1px solid #aaa4ab; font-weight: 650; }
.mockup-days { padding-top: .29cqw; row-gap: .12cqw; }
.mockup-weekdays span:nth-child(n+6),
.mockup-days span:nth-child(7n),
.mockup-days span:nth-child(7n+6) { color: #962837; }

.scenes-section { background: var(--cinema); color: var(--cream); padding-block: clamp(2.75rem, 6vw, 4.55rem); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.section-heading .eyebrow { color: #efb7ac; margin-bottom: .5rem; }
.section-heading h2 { margin-bottom: .65rem; }
.section-heading p:not(.eyebrow) { color: #dbd2c6; max-width: 36rem; }
.scene-switch {
  display: flex;
  gap: .15rem;
  border: 1px solid #767468;
  padding: .2rem;
  border-radius: 6px;
}
.scene-switch label { position: relative; cursor: pointer; }
.scene-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scene-switch span {
  display: block;
  border-radius: 3px;
  padding: .48rem .75rem;
  color: var(--cream);
  font-size: .9rem;
  font-weight: 600;
}
.scene-switch input:checked + span { background: var(--cream); color: var(--cinema); }
.scene-switch input:focus-visible + span { outline: 2px solid #efb7ac; outline-offset: 2px; }
.gallery-controls, .gallery-nav { display: flex; align-items: center; gap: .55rem; }
.gallery-controls { justify-content: space-between; margin-block: 1.4rem .65rem; }
#gallery-count { font-size: .88rem; color: #dbd2c6; }
.gallery-nav button, .dialog-button {
  border: 1px solid #777569;
  border-radius: 4px;
  padding: .25rem .65rem;
  background: transparent;
  color: var(--cream);
  font-size: .88rem;
}
.gallery-nav button:hover:not(:disabled), .dialog-button:hover { background: #41443d; }
.gallery-nav button:disabled { opacity: .45; cursor: default; }
.film-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.25rem) / 4);
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: .6rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a29786 #383c36;
}
.film-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid #565950;
  border-radius: 6px;
  background: #31352f;
  color: var(--cream);
  scroll-snap-align: start;
  text-align: left;
}
.film-card:hover { border-color: #ecc2ac; background: #3e433a; }
.film-card:focus-visible { outline-offset: -3px; }
.film-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #41433b; }
.film-card span { padding: .68rem .75rem; min-height: 3.2rem; font-size: .93rem; font-weight: 570; }

.explanation {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(1.7rem, 5vw, 4.4rem);
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.steps {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 1.05rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.steps li {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  column-gap: .7rem;
  counter-increment: steps;
}
.steps li::before {
  content: counter(steps);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #c9a69c;
  border-radius: 50%;
  color: var(--red);
  font-size: .88rem;
  font-weight: 700;
}
.steps strong { padding-top: .1rem; }
.steps span { color: var(--muted); }
.transformation img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--edge); }
.transformation figcaption { margin-top: .65rem; text-align: center; }

.formats-section { border-block: 1px solid var(--edge); background: #f0e9de; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.format-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.3rem; }
.format-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--light);
  border: 1px solid var(--edge);
  border-radius: 7px;
}
.format-card p { color: var(--muted); }
.format-footer { gap: .65rem; margin-top: auto; padding-top: .6rem; flex-wrap: wrap; }
.price { color: var(--red); font-size: 1.5rem; }
.delivery { margin-top: 1.2rem; max-width: 51rem; }
.delivery summary { width: fit-content; cursor: pointer; font-weight: 650; }
.delivery p { margin-top: .6rem; color: var(--muted); }

.order-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.order-intro p { margin-top: .9rem; color: var(--muted); }
.order-intro .photo-note { margin-top: 1.3rem; font-size: .94rem; }
#order-form { min-width: 0; border: 1px solid var(--edge); background: var(--light); padding: clamp(1rem, 3vw, 1.7rem); border-radius: 7px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-bottom: .9rem; }
.form-row label, .file-field label { font-weight: 650; font-size: .92rem; }
.form-row input, .form-row select {
  display: block;
  width: 100%;
  min-height: 2.8rem;
  margin-top: .3rem;
  padding: .44rem .55rem;
  border: 1px solid #bfb2a2;
  border-radius: 4px;
  background-color: #fffdf8;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.form-row select { appearance: none; padding-right: 1.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23615850' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: .65rem; }
.file-field { margin-bottom: 1rem; }
.file-field input { display: block; max-width: 100%; margin-top: .3rem; font-size: .9rem; }
.file-field input::file-selector-button { border: 1px solid #bfb2a2; border-radius: 4px; padding: .45rem .6rem; margin-right: .6rem; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.file-field p { margin-top: .35rem; color: var(--muted); font-size: .875rem; }
.agreement { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1rem; color: var(--muted); font-size: .875rem; }
.agreement input { flex: none; width: 1rem; height: 1rem; margin: .17rem 0 0; accent-color: var(--red); }
.form-status { margin-top: .9rem; padding: .7rem .85rem; border-radius: 4px; background: #efe8db; color: var(--ink); }
.form-status[data-state="success"] { background: #e0eddf; color: #29462a; }
.form-status[data-state="error"] { background: #f4e0dc; color: #70222d; }
.site-footer { border-top: 1px solid var(--edge); }
.footer-inner { flex-wrap: wrap; gap: .65rem 1rem; padding-block: 1.1rem; }
.footer-inner span { color: var(--muted); font-size: .875rem; }

dialog {
  width: min(67rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  border: 1px solid #626459;
  border-radius: 7px;
  background: var(--cinema);
  color: var(--cream);
  padding: .8rem 1rem;
}
dialog::backdrop { background: #161512c9; }
.dialog-header, .dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog-header { margin-bottom: .65rem; }
.dialog-header h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: -.02em; }
.dialog-footer { margin-top: .65rem; }
.dialog-footer p { font-size: .88rem; }
dialog img { width: 100%; max-height: 71vh; object-fit: contain; background: #191b19; }

@media (max-width: 900px) {
  .film-strip { grid-auto-columns: calc((100% - 1.5rem) / 3); }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.9rem; }
  .nav-link { display: none; }
  .hero, .explanation, .order-section { grid-template-columns: 1fr; }
  .hero { padding-block: 2.2rem 2.55rem; }
  h1 { font-size: clamp(2.65rem, 9vw, 4.65rem); }
  .hero-figure { width: min(100%, 33rem); margin-inline: auto; }
  .film-strip { grid-auto-columns: calc((100% - .75rem) / 2.2); }
  .transformation { max-width: 40rem; }
}
@media (max-width: 455px) {
  .wordmark { font-size: 1.08rem; gap: .4rem; }
  .wordmark img { width: 25px; height: 25px; }
  .header-inner .button { font-size: .8rem; padding-inline: .57rem; }
  .film-strip { grid-auto-columns: 76%; }
  .format-cards, .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.preview-status { margin: 0 0 1rem; }
#order-form :disabled { cursor: default; }
