/* ===========================================================================
   Зерно — фотолаборатория проявки плёнки. Дизайн-система одного лендинга.
   Палитра: почти-чёрный #0e0d0b + плёночно-оранжевый #f08a24 + бумага #ece6d8.
   Типографика: моноширинный (тех-акценты) + гротеск (тело). Только локально.
   =========================================================================== */

:root {
  --bg:       #0e0d0b;
  --bg-2:     #15130f;
  --panel:    #1b1813;
  --paper:    #ece6d8;
  --paper-2:  #ded6c3;
  --ink:      #11100d;
  --ink-soft: #4b463c;
  --fg:       #e9e3d4;
  --fg-soft:  #a39c8b;
  --line:     #2c2820;
  --line-lt:  #c8bfa9;
  --amber:    #f08a24;
  --amber-2:  #ffb24a;
  --amber-dk: #c96f15;
  --red:      #d23a2a;

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Consolas", "Liberation Mono", "DejaVu Sans Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 72px; --s-7: 104px; --s-8: 140px;

  --maxw: 1200px;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow:    0 1px 0 rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.6,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.06; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 var(--s-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--amber); color: #1a1206; padding: 10px 16px; border-radius: var(--radius); z-index: 999; font-family: var(--mono);
}

.section { padding-block: var(--s-7); }
.section--dark { background: var(--bg-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--amber);
  margin: 0 0 var(--s-2);
}
.eyebrow--light { color: var(--amber-2); }

.section-head { max-width: 680px; margin: 0 auto var(--s-6); }
.section-head--left { margin-inline: 0; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: var(--s-2); }
.section-head__lead { color: var(--fg-soft); font-size: 18px; margin: 0; max-width: 56ch; }
.section-head--light h2 { color: var(--fg); }

.services, .process, .reviews, .faq { background: var(--paper); color: var(--ink); }
.services .section-head__lead,
.process .process__intro p,
.reviews .review blockquote,
.faq .section-head__lead { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #1a1206;
  padding: 14px 26px; border: 1px solid var(--amber);
  border-radius: var(--radius); font-weight: 700; font-size: 15px;
  font-family: var(--mono); letter-spacing: .02em;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(240,138,36,.28); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 9px 16px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--amber); }
.btn--ghost:hover { background: rgba(240,138,36,.12); color: var(--amber-2); box-shadow: none; transform: translateY(-2px); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,13,11,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.brand__mark { color: var(--amber); flex: none; }
.brand__dot { color: var(--amber); font-weight: 500; }

.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a { font-family: var(--mono); font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; color: var(--fg-soft); transition: color .2s var(--ease); }
.nav a::before { content: "\00B7"; color: var(--amber); opacity: 0; margin-right: 4px; transition: opacity .2s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a:hover::before { opacity: 1; }
.nav-cta { flex: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s var(--ease); }

.hero { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; margin-top: -72px; padding-top: 72px; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; background-size: cover; background-position: center 40%;
  z-index: -3; will-change: transform; filter: saturate(.85) contrast(1.05);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,13,11,.94) 0%, rgba(14,13,11,.72) 46%, rgba(14,13,11,.40) 100%),
    linear-gradient(0deg, rgba(14,13,11,.85) 0%, rgba(14,13,11,0) 50%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(240,138,36,.05) 24px 25px);
}
.hero__content { max-width: 820px; padding-block: var(--s-7); }
.hero__title {
  font-size: clamp(44px, 8vw, 96px); line-height: .98; margin-bottom: var(--s-3);
  letter-spacing: -.03em;
}
.hero__lead { font-size: clamp(17px, 2.1vw, 21px); max-width: 40ch; color: var(--fg-soft); margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5); margin: 0;
  border-top: 1px solid var(--line); padding-top: var(--s-4);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--amber-2); line-height: 1; }
.hero__meta dd { margin: 8px 0 0; font-size: 13px; color: var(--fg-soft); }

.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 24px; height: 40px; border: 2px solid rgba(240,138,36,.6); border-radius: 13px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; background: var(--amber);
  border-radius: 2px; transform: translateX(-50%); animation: scrollcue 1.6s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } 100% { opacity: 0; } }

.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-lt); border-radius: var(--radius-lg); overflow: hidden; }
.svc {
  padding: var(--s-4); border-right: 1px solid var(--line-lt); position: relative; background: var(--paper);
  transition: background .25s var(--ease);
}
.svc:last-child { border-right: 0; }
.svc:hover { background: var(--paper-2); }
.svc__idx { font-family: var(--mono); font-size: 13px; color: var(--amber-dk); display: block; margin-bottom: var(--s-3); letter-spacing: .1em; }
.svc h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.01em; }
.svc p { color: var(--ink-soft); font-size: 15px; margin: 0 0 var(--s-3); }
.svc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.svc__tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); border: 1px solid var(--line-lt); border-radius: 999px; padding: 3px 10px; }

.price__tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: var(--s-5); }
.price__table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.price__table thead th {
  text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-2); padding: var(--s-3) var(--s-3); background: var(--panel); border-bottom: 1px solid var(--line);
}
.price__table thead th:not(:first-child) { text-align: right; width: 18%; }
.price__table tbody th {
  text-align: left; font-weight: 500; color: var(--fg); padding: 16px var(--s-3);
  border-bottom: 1px solid var(--line);
}
.price__table tbody td { text-align: right; padding: 16px var(--s-3); border-bottom: 1px solid var(--line); color: var(--fg-soft); font-family: var(--mono); }
.price__table tbody td b { color: var(--fg); font-weight: 700; }
.price__table tbody tr:last-child th, .price__table tbody tr:last-child td { border-bottom: 0; }
.price__table tbody tr:hover th, .price__table tbody tr:hover td { background: rgba(240,138,36,.05); }
.price__note { display: block; font-size: 11px; color: var(--amber-dk); }

.price__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.bundle {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); background: var(--panel);
  display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.bundle:hover { transform: translateY(-4px); border-color: var(--amber-dk); }
.bundle--feature { border-color: var(--amber); box-shadow: inset 0 0 0 1px rgba(240,138,36,.3); }
.bundle__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 var(--s-2); }
.bundle h3 { font-size: 22px; margin-bottom: 10px; }
.bundle__desc { color: var(--fg-soft); font-size: 14.5px; margin: 0 0 var(--s-3); flex: 1; }
.bundle__price { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--amber-2); margin: 0; display: flex; flex-direction: column; }
.bundle__price span { font-size: 12px; font-weight: 400; color: var(--fg-soft); margin-top: 4px; letter-spacing: .02em; }

.process__layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s-6); align-items: start; }
.process__intro h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: var(--s-3); }
.process__media { margin: var(--s-4) 0 0; position: relative; }
.process__media img { border-radius: var(--radius-lg); filter: saturate(.9); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.process__media figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--amber); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--amber), var(--line-lt)); }
.timeline__step { position: relative; padding: 0 0 var(--s-5) var(--s-5); }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--amber);
}
.timeline__day { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--amber-dk); text-transform: uppercase; }
.timeline__step h3 { font-size: 21px; margin: 6px 0 8px; }
.timeline__step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding-block: var(--s-8); }
.band__veil { position: absolute; inset: 0; background: linear-gradient(rgba(14,13,11,.78), rgba(40,12,6,.7)); }
.band blockquote { position: relative; margin: 0; max-width: 920px; text-align: center; }
.band blockquote p { font-size: clamp(24px, 3.8vw, 42px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.band cite { display: block; margin-top: var(--s-3); font-style: normal; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--amber-2); }

.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); aspect-ratio: 3/2; }
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); transition: transform .6s var(--ease), filter .4s var(--ease); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.05) contrast(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 26px var(--s-3) 12px; font-family: var(--mono); font-size: 12px; color: var(--fg);
  background: linear-gradient(transparent, rgba(14,13,11,.88));
}
.shot figcaption b { font-weight: 700; color: var(--amber-2); }
.shot figcaption span { color: var(--fg-soft); }

.slots__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6); align-items: center; }
.slots__text h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--fg); margin-bottom: var(--s-2); }
.slots__text p { color: var(--fg-soft); }
.slots__points { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.slots__points li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; color: var(--fg-soft); }
.slots__points li::before { content: "\2192"; position: absolute; left: 0; color: var(--amber); font-family: var(--mono); }

.subscribe { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.subscribe__lead { font-family: var(--mono); font-size: 14px; color: var(--amber-2); margin: 0 0 var(--s-2); }
.subscribe__row { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 15px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 16px; font-family: var(--mono);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.subscribe input::placeholder { color: #6b6557; }
.subscribe input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,138,36,.22); }
.subscribe input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(210,58,42,.25); }
.subscribe .btn { flex: none; }
.subscribe__hint { font-size: 12.5px; color: var(--fg-soft); margin: 14px 0 0; line-height: 1.5; }
.subscribe__ok { font-size: 15px; color: var(--amber-2); margin: 14px 0 0; font-family: var(--mono); }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.review { margin: 0; background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--s-4); position: relative; }
.review::before { content: "\201C"; position: absolute; top: 6px; right: 18px; font-size: 64px; color: rgba(240,138,36,.22); font-family: Georgia, serif; line-height: 1; }
.review blockquote { margin: 0 0 var(--s-3); font-size: 16px; line-height: 1.58; color: var(--ink); position: relative; }
.review figcaption { display: flex; flex-direction: column; }
.review figcaption b { font-size: 15px; color: var(--ink); }
.review figcaption span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.faq__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-6); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line-lt); padding: var(--s-2) 0; }
.faq__list summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 19px; color: var(--ink);
  padding: 10px 40px 10px 0; position: relative; transition: color .2s var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--amber-dk); font-family: var(--mono); transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list summary:hover { color: var(--amber-dk); }
.faq__list details p { color: var(--ink-soft); padding: 0 40px 10px 0; margin: 0; font-size: 15.5px; }

.site-footer { background: var(--bg); color: var(--fg-soft); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.footer__brand p { margin-top: var(--s-2); font-size: 14.5px; max-width: 34ch; color: var(--fg-soft); }
.footer__col h4 { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--amber); margin: 0 0 var(--s-2); }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: var(--fg-soft); margin: 0 0 8px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--amber-2); }
.footer__social a { display: inline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid var(--line); padding-block: var(--s-3) var(--s-4); font-family: var(--mono); font-size: 13px; color: #6b6557;
}
.footer__bottom a:hover { color: var(--amber-2); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .process__layout, .slots__inner, .faq__inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .svc { border-right: 1px solid var(--line-lt); border-bottom: 1px solid var(--line-lt); }
  .svc:nth-child(2n) { border-right: 0; }
  .svc:nth-last-child(-n+2) { border-bottom: 0; }
  .price__cards { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .band { background-attachment: scroll; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-6); }
  .wrap { padding-inline: var(--s-3); }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(14,13,11,.98); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-3) var(--s-3); transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow); margin: 0;
  }
  .site-header.menu-open .nav { transform: translateY(0); }
  .site-header.menu-open:not(.scrolled) { background: rgba(14,13,11,.98); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--fg); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::before { display: none; }
  .site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services__grid { grid-template-columns: 1fr; }
  .svc { border-right: 0; }
  .svc:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-lt); }
  .svc:last-child { border-bottom: 0; }
  .gallery__grid { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .hero__meta { gap: var(--s-3); }
  .subscribe__row { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span::after { animation: none; }
  .hero__bg { transform: none !important; }
  * { transition-duration: .01ms !important; }
}
