/* Витрина. Токены и тёмная тема берутся из app.css.

   Оформление отсылает к столу с работой: фактура канвы на первом экране,
   мотки мулине, тёплая бумага. Но текстура ровно одна и только там, где она
   работает, — дальше по странице воздух, иначе выходит ярмарка. */

body.landing {
  display: block;
  overflow: auto;
  font-size: 16px;
}

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

/* ------------------------------------------------------------- шапка --- */

.land-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.land-top-right { display: flex; align-items: center; gap: 12px; }

/* --------------------------------------------------------- первый экран */

.hero {
  position: relative;
  border-radius: 22px;
  padding: 52px 48px;
  margin-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background-color: #ece5d7;
  background-image:
    repeating-linear-gradient(90deg, rgba(120, 100, 70, .10) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(120, 100, 70, .10) 0 1px, transparent 1px 7px);
  box-shadow: var(--shadow-md);
}
/* Фактура канвы — не тема оформления, а сама ткань: она одинаковая в обеих
   темах, как настоящая аида на столе. Поэтому текст на ней тёмный всегда. */
.hero, .hero h1, .hero p { color: #241f18; }

/* Заголовок с тире: без этого строка может начаться с тире, а в русском
   наборе так не переносят. */
.hero h1 { text-wrap: pretty; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.hero-lead { font-size: 17px; line-height: 1.6; margin: 0 0 26px; max-width: 46ch; color: #4f4638; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { font-size: 13px; color: #6b6257; }

.btn-big {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 12px;
  background: #b4453a; color: #fffaf8;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 6px rgba(120, 40, 30, .22), 0 12px 26px rgba(120, 40, 30, .18);
}
.btn-big:hover { background: #9d3a30; }
.btn-big svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.skeins { display: flex; gap: 8px; margin-top: 30px; }
.skeins i {
  width: 16px; height: 46px; border-radius: 8px; display: block;
  box-shadow: inset -3px 0 5px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .12);
}
/* Цвета мотков и точек списка — из карты «Гаммы». В разметке они классами,
   а не style-атрибутами: политика безопасности встроенные стили не пускает. */
.skein-1 { background: #b4453a; } .skein-2 { background: #c8944e; }
.skein-3 { background: #8a9a5b; } .skein-4 { background: #47786a; }
.skein-5 { background: #4a6d8c; } .skein-6 { background: #7d5a7f; }
.skein-7 { background: #e2d4b7; }
.dot-1 { background: #b4453a; } .dot-2 { background: #47786a; }
.dot-3 { background: #c8944e; } .dot-4 { background: #4a6d8c; }

/* ------------------------------------------------------- до и после ---- */

.reveal {
  position: relative; height: 340px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(50, 38, 20, .2), 0 18px 40px rgba(50, 38, 20, .22);
  touch-action: none; cursor: ew-resize; user-select: none;
}
.reveal-photo, .reveal-stitched { position: absolute; inset: 0; }
.reveal-stitched { background: #ece5d7; display: grid; place-content: center; }
.reveal-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .8); border: 0; padding: 0;
}
.reveal-handle::after {
  content: "⇔";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: #4a4136;
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
}
.reveal-handle:focus-visible { outline: 2px solid #b4453a; outline-offset: 2px; }
.reveal-tag {
  position: absolute; bottom: 14px; z-index: 2;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(30, 26, 20, .55);
  padding: 4px 10px; border-radius: 20px;
}
.reveal-tag-left { left: 14px; }
.reveal-tag-right { right: 14px; }

.stitches { display: grid; line-height: 0; }
.stitches i { display: block; }
/* Крестик обязан занимать ровно свою клетку. Без этого его ловит общее
   правило для иконок из app.css (svg { width: 20px }) — оно бьёт атрибуты
   размера, ряды налезают друг на друга, а низ картинки уходит под обрез. */
.stitches svg { display: block; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
  .reveal { height: 260px; }
}

/* ------------------------------------------------------------ разделы -- */

.band { margin-bottom: 96px; }
.band-head { max-width: 62ch; margin-bottom: 34px; }
.band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance;
}
.band-head p { margin: 0; font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 24px; box-shadow: var(--shadow-sm);
}
.card-art { height: 96px; margin-bottom: 16px; display: grid; place-items: center; overflow: hidden; }
.card h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* мелкие картинки внутри карточек */
.art-legend { width: 100%; display: flex; flex-direction: column; gap: 7px; padding: 0 6px; }
.art-legend div { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-family: var(--font-num); }
.art-legend i { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.art-legend b { margin-left: auto; font-weight: 500; }

.art-sheets { display: grid; grid-template-columns: repeat(3, 26px); gap: 5px; }
.art-sheets i {
  aspect-ratio: 210 / 297; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 9px; color: var(--muted); font-family: var(--font-num);
}

.art-patch { border-radius: 8px; overflow: hidden; background: #ece5d7; padding: 5px; }

/* --------------------------------------------------------------- шаги -- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card { display: flex; gap: 14px; }
.step-card b {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-num); font-size: 13px;
}
.step-card h3 { margin: 3px 0 5px; font-size: 16px; font-weight: 600; }
.step-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------------------ глубина -- */

.depth { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.depth-item h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.depth-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* --------------------------------------------------------------- зов --- */

.call {
  text-align: center; padding: 56px 32px; border-radius: 22px;
  background: var(--surface-2); margin-bottom: 60px;
}
.call h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; margin: 0 0 12px; }
.call p { margin: 0 auto 26px; max-width: 52ch; font-size: 16.5px; color: var(--ink-soft); }

/* ------------------------------------------------------------ подвал --- */

.land-foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  padding: 26px 0 60px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.land-foot a { color: var(--muted); }
.land-foot a:hover { color: var(--ink-soft); }
.land-foot .spacer { margin-left: auto; }
