/* Сайт-портфолио Крестины — тихий люкс: воздух, тонкая антиква + лёгкий гротеск, кадры крупно.
   Телефон первым; ширина ≥ 820 px — компьютер. */
@import url("fonts/fonts.css");

:root {
  --bg: #f6f3ee;
  --paper: #fbf9f6;
  --ink: #1f1c19;
  --muted: #776f66;
  --line: #ddd5ca;
  --accent: #8a6f4e;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 .9em; }
h1, h2, h3, .price, .num, .k { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: .005em; margin: 0; line-height: 1.12; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.link { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ── шапка ── */
.top { padding: 22px 0 18px; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: .04em; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 2px; }
.langs { display: flex; gap: 12px; font-size: 12px; letter-spacing: .14em; }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--ink); }
nav.main { order: 3; width: 100%; display: flex; gap: 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  border-top: 1px solid var(--line); padding-top: 12px; overflow-x: auto; white-space: nowrap; }
nav.main a { color: var(--muted); padding-bottom: 2px; }
nav.main a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ── главная ── */
.hero { display: grid; gap: 28px; padding: 6px 0 64px; }
.hero figure { margin: 0 calc(-1 * var(--gutter)); }
.hero figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero h1 { font-size: 44px; margin: 14px 0 22px; }
.hero .intro p { font-size: 17px; color: #3b362f; max-width: 34em; margin-bottom: .35em; }
.hero .intro { margin-bottom: 30px; }

section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 34px; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 30px; }

.grid9 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
.grid9 a { display: block; }
.grid9 img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e3da; transition: opacity .4s; }
.grid9 a:hover img { opacity: .88; }
.grid9 h3 { font-size: 20px; margin: 12px 0 2px; }
.grid9 .meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.cta { text-align: left; }
.cta p { max-width: 32em; color: #3b362f; margin: 14px 0 26px; }

/* ── работы ── */
.pagehead { padding: 28px 0 40px; }
.pagehead h1 { font-size: 46px; margin-bottom: 16px; }
.pagehead p { max-width: 36em; color: #3b362f; font-size: 17px; }
.place { padding: 48px 0 56px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.place .num { font-family: var(--serif); font-size: 15px; color: var(--muted); font-style: italic; }
.place h2 { font-size: 36px; margin: 4px 0 8px; }
.place .meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.place .cap { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; max-width: 30em; color: #3b362f; margin-bottom: 26px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip > * { flex: 0 0 auto; scroll-snap-align: start; position: relative; margin: 0; }
.strip img, .strip video { width: 78vw; max-width: 420px; height: auto; aspect-ratio: var(--ar); object-fit: cover; background: #e9e3da; }
.strip .tag { position: absolute; left: 10px; bottom: 24px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: rgba(20,18,16,.35); padding: 3px 8px; pointer-events: none; }
.count { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 6px; }

/* ── условия ── */
.terms section { padding: 32px 0; border-top: 1px solid var(--line); }
.terms h2 { font-size: 30px; margin-bottom: 14px; }
.terms h2 .n { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); vertical-align: middle; margin-right: 10px; }
.terms ul { list-style: none; padding: 0; margin: 0; }
.terms li { padding: 7px 0 7px 22px; position: relative; max-width: 44em; }
.terms li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; border-top: 1px solid var(--accent); }
.lead { color: var(--muted); margin-bottom: 22px; }
.how p { font-size: 18px; margin-bottom: .3em; }
.how p:first-child { font-family: var(--serif); font-size: 26px; font-style: italic; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.thumbs a:nth-child(n+4), .thumbs img:nth-child(n+4) { display: none; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.pilot { display: grid; gap: 14px; }
.pcard { background: var(--paper); border: 1px solid var(--line); padding: 22px 20px 12px; }
.pcard h3 { font-size: 26px; margin-bottom: 10px; }
.pcard dl { margin: 0; }
.pcard dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 10px; }
.pcard dd { margin: 2px 0 8px; }
.pcard dd::first-letter { text-transform: uppercase; }
.common { margin-top: 20px; }

.pkgs { display: grid; gap: 14px; }
.pkg { border: 1px solid var(--line); padding: 24px 20px 18px; display: flex; flex-direction: column; background: var(--paper); }
.pkg .k { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--accent); }
.pkg h3 { font-size: 25px; margin: 2px 0 12px; }
.pkg dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 8px; }
.pkg dd { margin: 2px 0 6px; font-size: 15px; }
.pkg dl { margin: 0 0 14px; flex: 1; }
.pkg .price { border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--serif); font-size: 26px; }
.pkg .price small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); padding: 6px 12px; font-size: 14px; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; padding-left: 44px; position: relative; max-width: 40em; }
ol.steps li::before { border: 0; width: auto; content: counter(s); position: absolute; left: 0; top: -6px; font-family: var(--serif); font-size: 30px; color: var(--accent); }
.faq dt { font-family: var(--serif); font-size: 22px; font-style: italic; margin-top: 18px; }
.faq dd { margin: 4px 0 0; max-width: 40em; }

/* ── контакты ── */
.contacts { display: grid; gap: 0; margin: 10px 0 40px; }
.contacts div { border-top: 1px solid var(--line); padding: 20px 0; display: grid; gap: 4px; }
.contacts span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contacts b, .contacts a { font-family: var(--serif); font-weight: 300; font-size: 30px; }
.contacts .ph { color: var(--muted); }

/* ── подвал ── */
/* футер прижат к низу экрана на коротких страницах (Контакты) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 30px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ── просмотр кадра ── */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lb::backdrop { background: rgba(18,16,14,.92); }
dialog.lb img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; }
dialog.lb button { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 34px; font-family: var(--serif); cursor: pointer; }

/* ── компьютер ── */
@media (min-width: 820px) {
  .thumbs img:nth-child(n+4) { display: block; }
  :root { --gutter: 48px; }
  .top { padding: 34px 0 26px; }
  nav.main { order: 0; width: auto; border: 0; padding: 0; gap: 34px; }
  .hero { grid-template-columns: 5fr 6fr; align-items: center; gap: 64px; padding: 24px 0 96px; }
  .hero figure { margin: 0; order: 2; }
  .hero figure img { height: 78vh; max-height: 820px; aspect-ratio: auto; }
  .hero h1 { font-size: 68px; }
  section.block { padding: 88px 0; }
  section.block h2 { font-size: 46px; }
  .grid9 { grid-template-columns: repeat(3, 1fr); gap: 54px 28px; }
  .grid9 h3 { font-size: 24px; }
  .pagehead { padding: 40px 0 60px; }
  .pagehead h1 { font-size: 72px; }
  .place { padding: 72px 0 80px; display: grid; grid-template-columns: 300px 1fr; gap: 0 48px; }
  .place > div { min-width: 0; }
  .place header { position: sticky; top: 24px; align-self: start; }
  .place h2 { font-size: 44px; }
  .strip { margin: 0 calc(-1 * var(--gutter)) 0 0; padding: 0 var(--gutter) 14px 0; }
  .strip img, .strip video { height: 70vh; max-height: 700px; min-height: 420px; width: auto; max-width: none; }
  .terms { max-width: 1040px; }
  .terms section { padding: 60px 0; }
  .terms h2 { font-size: 40px; }
  .pilot { grid-template-columns: repeat(3, 1fr); }
  .pkgs { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); max-width: 760px; }
}
@media (min-width: 1400px) { .pkgs { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
