/* fotemio.ru — лендинг и документы. Цвета, шрифты и размеры компонентов — tokens.css (бренд-кит «Персик», не править). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--plum);
  font: 500 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 14px; background: var(--plum); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 245, 238, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--font-logo); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.035em; }

/* ---------- кнопки (макет: h56 r18 / h44 r14, коралл, текст «слива») ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border: 0; border-radius: 18px;
  background: var(--coral); color: var(--plum);
  font: 600 16px/1 var(--font-ui); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #FF9274; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
.btn--sm svg { width: 18px; height: 18px; }

/* ---------- первый экран ---------- */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 16px; background: var(--peach); font-size: 13px; font-weight: 600;
}
.hero h1 { margin-top: 16px; font-size: clamp(36px, 9.4vw, 62px); line-height: 1.05; }
.lead { margin-top: 16px; max-width: 36ch; color: var(--muted); font-size: 17px; line-height: 1.5; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
.cta .btn { width: 100%; }
.cta-note { color: var(--muted); font-size: 14px; }
.cta-note b { color: var(--plum); font-weight: 600; }

.hero-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-content: start; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot figcaption { font-size: 14px; font-weight: 600; }
.shot-media { position: relative; aspect-ratio: 3 / 4; }
.shot-media > img { width: 100%; height: 100%; object-fit: cover; }

/* селфи в «видоискателе» (зона загрузки из макета: белая, уголки «сливой») */
.viewfinder { padding: 14px; border-radius: 24px; background: var(--white); }
.viewfinder > img { border-radius: 12px; }
.vf { position: absolute; width: 26px; height: 26px; border: 5px solid var(--plum); }
.vf--tl { left: 5px; top: 5px; border-right: 0; border-bottom: 0; border-top-left-radius: 13px; }
.vf--tr { right: 5px; top: 5px; border-left: 0; border-bottom: 0; border-top-right-radius: 13px; }
.vf--bl { left: 5px; bottom: 5px; border-right: 0; border-top: 0; border-bottom-left-radius: 13px; }
.vf--br { right: 5px; bottom: 5px; border-left: 0; border-top: 0; border-bottom-right-radius: 13px; }

/* выбранный кадр: кольцо 3px «сливой» + уголок corner.svg справа снизу */
.picked { border-radius: 20px; box-shadow: 0 0 0 3px var(--plum); }
.picked > img { border-radius: 20px; }
.picked .corner { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 33px; }
.hero-arrow {
  position: absolute; left: -30px; top: 50%; z-index: 2; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: var(--plum);
  box-shadow: 0 0 0 4px var(--bg);
}
.hero-arrow svg { width: 22px; height: 22px; }

.hero-more { grid-column: 1 / -1; }
.hero-more p { color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-more ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.hero-more li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.hero-more img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--peach); }

/* ---------- секции ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--white); }
.section h2 { font-size: 30px; line-height: 1.12; }
.section-lead { margin-top: 10px; max-width: 46ch; color: var(--muted); font-size: 17px; }

.steps { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 20px; border-radius: 20px; background: var(--bg); }
.step-num {
  grid-row: 1 / 3; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--peach);
  font: 800 18px/1 var(--font-head);
}
.step h3 { align-self: center; font-size: 19px; line-height: 1.25; }
.step p { color: var(--muted); font-size: 15px; }

.features { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.feature { padding: 20px; border-radius: 20px; background: var(--white); }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 16px; background: var(--peach); }
.feature:nth-child(even) .feature-icon { background: var(--haze); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; line-height: 1.25; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 24px; }
.gallery figure { display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; background: var(--peach); }
.gallery figcaption { font-size: 14px; font-weight: 600; }
.note { margin-top: 18px; color: var(--muted); font-size: 13px; }

.prices { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border-radius: 20px; background: var(--white); }
.price h3 { font-size: 20px; line-height: 1.2; }
.price-sum { grid-column: 2; grid-row: 1 / 3; font: 800 28px/1 var(--font-head); letter-spacing: -0.02em; white-space: nowrap; }
.price-per { color: var(--muted); font-size: 14px; }
.free { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 18px 20px; border-radius: 20px; background: var(--g1); }
.free svg { width: 44px; height: 44px; flex: none; }
.free b { display: block; font: 800 18px/1.25 var(--font-head); letter-spacing: -0.01em; }
.free span { font-size: 14px; }
.facts { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.facts li { position: relative; padding-left: 26px; font-size: 15px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 16px; background: url("brand/corner.svg") no-repeat center / contain; }
.prices-cta { margin-top: 26px; }

.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 820px; }
.faq details { padding: 0 20px; border-radius: 18px; background: var(--bg); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B1F3F' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.faq details > p a { color: var(--plum); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.final { padding: 8px 0 56px; }
.final-card { display: grid; gap: 14px; justify-items: start; padding: 32px 24px; border-radius: 28px; background: var(--plum); color: var(--white); }
.final-card > svg { width: 64px; height: 64px; }
.final-card h2 { font-size: 28px; line-height: 1.12; }
.final-card p { max-width: 44ch; margin-top: 8px; color: #EBD7DF; font-size: 16px; }
.final-card .btn { margin-top: 8px; width: 100%; }

/* ---------- подвал ---------- */
.site-foot { padding: 40px 0 28px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { margin-top: 10px; max-width: 34ch; }
.foot-title { margin-bottom: 10px; color: var(--plum); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-links { list-style: none; display: grid; gap: 10px; }
.foot-links a, .seller a { color: var(--plum); font-weight: 600; text-decoration: none; }
.foot-links a:hover, .seller a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.seller { line-height: 1.65; }
.seller b { color: var(--plum); font-weight: 600; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; }

/* ---------- документы ---------- */
.doc { padding: 22px 0 56px; }
.doc .wrap { max-width: 840px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--plum); }
.doc-nav { display: flex; gap: 8px; margin: 18px -20px 0; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.doc-nav::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; flex: none; align-items: center; height: 44px; padding: 0 16px;
  border-radius: 22px; background: var(--peach); color: var(--plum);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip:hover { background: #FFCDB4; }
.chip[aria-current="page"] { background: var(--plum); color: var(--white); }
.doc h1 { margin-top: 22px; font-size: 32px; line-height: 1.12; }
.doc-meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.doc-body { margin-top: 22px; padding: 24px 20px; border-radius: 28px; background: var(--white); }
.doc-body h2 { margin: 30px 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.doc-body > :first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 15.5px; line-height: 1.65; }
.doc-body p + p { margin-top: 10px; }
.doc-body ul, .doc-body ol { margin: 10px 0; padding-left: 22px; }
.doc-body li + li { margin-top: 6px; }
.doc-body a { color: var(--plum); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; word-break: break-word; }
.doc-body .formula { margin: 10px 0; padding: 12px 16px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.req { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--bg); }
.req dl { display: grid; gap: 4px 16px; margin: 0; }
.req dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.req dd { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; word-break: break-word; }
.req dd:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 72px 0 96px; text-align: center; }
.notfound .wrap { display: grid; justify-items: center; gap: 14px; }
.notfound svg { width: 72px; height: 72px; }
.notfound h1 { font-size: 34px; }
.notfound p { color: var(--muted); }

/* ---------- планшет и шире ---------- */
@media (min-width: 640px) {
  .cta { flex-direction: row; align-items: center; gap: 18px; }
  .cta .btn { width: auto; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .final-card .btn { width: auto; }
  .req dl { grid-template-columns: 220px minmax(0, 1fr); }
  .req dd { margin: 0; }
  .doc-nav { flex-wrap: wrap; overflow: visible; margin: 18px 0 0; padding: 0; }
  .doc-body { padding: 36px 40px; }
}

@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .lead { font-size: 19px; }
  .hero-art { max-width: 540px; justify-self: end; width: 100%; }
  .section { padding: 88px 0; }
  .section h2 { font-size: 40px; }
  .section-lead { font-size: 18px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 26px; }
  .step-num { grid-row: auto; margin-bottom: 10px; }
  .step h3 { align-self: start; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .feature { padding: 26px; }
  .gallery { gap: 26px 20px; margin-top: 32px; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .price { grid-template-columns: 1fr; gap: 4px; padding: 28px; }
  .price-sum { grid-column: auto; grid-row: auto; margin: 14px 0 6px; font-size: 42px; }
  .free { padding: 22px 26px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
  .faq { margin-top: 32px; }
  .final-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 40px 48px; }
  .final-card .btn { margin-top: 0; }
  .final-card h2 { font-size: 32px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
  .doc h1 { font-size: 44px; }
  .doc-body { padding: 44px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
