/* Hallmark · v3.0.0 · theme: custom (soviet album) · hero: photo print on an album sheet · nav: letterpress rule · footer: index card */
/* critique: the reference is a grey-green album sheet with black photo corners; the page is built as one sheet, not as a web page with cards. */
/* waive 79: the air under the hero is the album sheet's margin; the print sets the hero height. */
:root {
  --sheet: #C6C1AE;        /* страница альбома */
  --sheet-deep: #B7B2A0;
  --print: #F2EEE1;        /* поле фотографии */
  --paper: #DAD4C2;
  --ink: #26251F;
  --ink-soft: #4A4636;   /* 5.2:1 на странице альбома */
  --rule: #8D8871;
  --red: #8A2B21;          /* штамп */
  --red-ink: #F6F1E3;
  --shadow: rgba(38, 37, 31, 0.8);

  --font-display: "Old Standard TT", "PT Serif", Georgia, serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", serif;
  --font-mono: "PT Mono", "Courier New", monospace;

  --text-body: 1.0625rem;
  --text-lede: 1.1875rem;
  --text-title: 1.375rem;
  --text-section: clamp(1.9rem, 3.4vw, 3rem);
  --text-hero: clamp(2rem, 3.6vw, 3.2rem);

  --measure: 33rem;
  --page: 71rem;
  --gutter: 1.25rem;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  overflow-x: clip;
  background: var(--sheet);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  position: relative;
}

/* бумажное зерно */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--red-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* шапка */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 1rem 0.9rem;
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 6px 0 -5px var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:not(.btn):hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.3rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: translateY(1px); }

.btn-sm { min-height: 2.2rem; padding: 0 0.85rem; font-size: 0.92rem; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-quiet:hover { background: var(--ink); color: var(--red-ink); border-color: var(--ink); }

/* первый экран */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5vw, 4.25rem) 0;
}

.hero-copy { min-width: 0; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 1.1rem;
  max-width: 20ch;
  overflow-wrap: break-word;
}

.hero-copy p {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
}

@media (max-width: 900px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-actions .btn { width: 100%; }
}

/* фотография с уголками */
.print {
  position: relative;
  justify-self: center;
  width: min(21rem, 86vw);
  background: var(--print);
  padding: 0.7rem 0.7rem 2.6rem;
  box-shadow: 0 18px 34px -22px var(--shadow);
  transform: rotate(-0.8deg);
}

/* бумажные уголки-кармашки, как в фабричном альбоме */
.cn {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 3;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M0 0 L40 0 L25.6 14.4 A10 10 0 0 0 14.4 25.6 L0 40 Z' fill='none' stroke='%23766F5B' stroke-width='2.4' stroke-linejoin='round'/></svg>") no-repeat;
  background-size: 100% 100%;
}

.cn.tl { top: 0; left: 0; }
.cn.tr { top: 0; right: 0; transform: scaleX(-1); }
.cn.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.cn.br { bottom: 0; right: 0; transform: scale(-1, -1); }

.print img {
  width: 100%;
  height: min(30rem, 74vw);
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.86) contrast(1.02);
}

/* секции */
.hero + .section { padding-top: clamp(4rem, 8.4vw, 7.5rem); }

.section {
  padding-block: clamp(3.25rem, 6vw, 5.25rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-section);
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 0.8rem;
  max-width: 24ch;
}

.lede {
  color: var(--ink-soft);
  font-size: var(--text-lede);
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 0 2.25rem;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.three h3,
.plan h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-title);
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.three p { margin: 0; color: var(--ink-soft); }

.three.cards article {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.25rem;
  box-shadow: 3px 3px 0 -1px var(--sheet-deep);
}

@media (max-width: 820px) {
  .three { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* шаги */
.steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.steps li {
  list-style: none;
  counter-increment: step;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.steps p { margin: 0; color: var(--ink-soft); }

@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* разворот с фотографиями */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.showcase figure { margin: 0; display: grid; grid-template-rows: 1fr auto; }

.showcase figcaption {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  max-width: 24rem;
}

.showcase-cta { margin-top: 1.75rem; }

.showcase .print { transform: none; width: 100%; }

.showcase .print img { height: min(28rem, 70vw); }

@media (max-width: 820px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
}

/* прейскурант */
.price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan p { margin: 0; color: var(--ink-soft); }

.plan .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0.1rem 0 0.3rem;
}

.plan .amount small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.3rem;
}

.plan-featured {
  border-width: 2px;
  background: var(--print);
}

.badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--red);
  margin: 0 0 0.2rem;
}

.plan-btn { margin-top: auto; width: 100%; }

.price-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 1.8rem 0 0;
  max-width: 46rem;
}

@media (max-width: 820px) {
  .price { grid-template-columns: minmax(0, 1fr); }
}

/* вопросы */
.faq { display: grid; gap: 1.2rem; max-width: 46rem; }

.faq details {
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lede);
  line-height: 1.4;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: " +";
  color: var(--red);
  font-family: var(--font-mono);
}

.faq details[open] summary::after { content: " −"; }

.faq p { color: var(--ink-soft); margin: 0.6rem 0 0; }

/* подвал */
.footer {
  border-top: 2px solid var(--ink);
  padding-block: 2.2rem 3.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer a:hover { border-color: var(--ink); }

.footer .brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .print { transform: none; }
}

@media (min-width: 640px) { :root { --gutter: 2rem; } }
@media (min-width: 820px) { :root { --gap: 2.25rem; } }
@media (min-width: 1100px) { :root { --gutter: 3.5rem; } }

@media (max-width: 760px) {
  .print { width: min(20rem, 84vw); }
  .print img { height: min(30rem, 140vw); }
}

@media (max-width: 400px) {
  .nav { gap: 0.5rem; }
  .wordmark { font-size: 1.05rem; letter-spacing: 0.1em; }
  .nav .btn-sm { min-height: 2.1rem; padding: 0 0.65rem; font-size: 0.66rem; }
}
