/* Общий стиль для всех страниц. Цвета и шрифты меняются здесь, в :root. */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600&family=Unbounded:wght@500;700&display=swap');

:root {
  --paper: #eef1f6;
  --print: #ffffff;
  --ink: #16182d;
  --muted: #5c6178;
  --line: #d5dae5;
  --blue: #0a6cff;
  --blue-dark: #0052cc;
  --flash: #ffd84d;
  --display: 'Unbounded', 'Golos Text', sans-serif;
  --body: 'Golos Text', system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  padding-bottom: 76px; /* место под мобильную кнопку */
}
a { color: var(--blue-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--flash); outline-offset: 3px; }
img { max-width: 100%; display: block; }

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

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font: 700 18px/1 var(--display); color: var(--ink); text-decoration: none; margin-right: auto; }
.logo span { background: var(--flash); padding: 2px 6px; border-radius: 4px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue-dark); }

/* Кнопка */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: #fff; text-decoration: none;
  font: 600 17px/1.2 var(--body);
  padding: 16px 26px; border-radius: 12px;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-small { padding: 10px 16px; font-size: 15px; border-radius: 10px; }

/* Первый экран */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; }
.hero h1 { font: 700 clamp(30px, 6vw, 54px)/1.08 var(--display); margin: 0 0 20px; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Отпечатки: сюда ставятся примеры фото */
.prints { position: relative; min-height: 320px; }
.print {
  position: absolute; width: 58%; background: var(--print);
  padding: 10px 10px 14px; border-radius: 6px;
  box-shadow: 0 14px 30px rgba(22, 24, 45, .16);
}
.print img, .print .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 3px; }
.print figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.print:nth-child(1) { left: 0; top: 24px; transform: rotate(-5deg); }
.print:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
figure { margin: 0; }
.ph { background: linear-gradient(160deg, #c9d2e6, #9aa8c9); }
.ph.after { background: linear-gradient(160deg, #ffd84d, #ff8f6b 55%, #7a5cff); }

/* Разделы */
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section h2 { font: 700 clamp(22px, 3.6vw, 30px)/1.2 var(--display); margin: 0 0 24px; }
.text p { margin: 0 0 16px; max-width: 44em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding-left: 58px; position: relative; max-width: 30em; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 16px/42px var(--display); text-align: center;
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery .ph, .gallery img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 8px; }

/* Список других инструментов */
.tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tools li { border-bottom: 1px solid var(--line); }
.tools a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.tools a span { color: var(--muted); font-weight: 400; }
.tools a:hover { color: var(--blue-dark); }

/* Вопросы */
.faq details { border-bottom: 1px solid var(--line); max-width: 44em; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Блок с призывом */
.cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 36px 24px; }
.cta h2 { font: 700 clamp(22px, 4vw, 32px)/1.2 var(--display); margin: 0 0 10px; }
.cta p { margin: 0 0 24px; color: #c3c8dc; max-width: 34em; }

.foot { padding: 28px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Кнопка внизу экрана на телефоне */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 14px; background: rgba(238, 241, 246, .94);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.sticky .btn { width: 100%; }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .prints { min-height: 430px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cta { padding: 52px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
