/* PRILKI — сайт. Та же система, что в Mini App (web/styles.css) и docs/10-brand.md:
   монохром, прописные для служебного, моноширинные числа, волосяные линии. */

:root {
  --bg: #f2f0eb;
  --fg: #0a0a0a;
  --muted: #6e6a62;
  --line: rgba(10, 10, 10, 0.16);
  --line-strong: rgba(10, 10, 10, 0.32);
  --inverse-bg: #0a0a0a;
  --inverse-fg: #f2f0eb;

  --sans: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f2f0eb;
    --muted: #8a857c;
    --line: rgba(242, 240, 235, 0.18);
    --line-strong: rgba(242, 240, 235, 0.36);
    --inverse-bg: #f2f0eb;
    --inverse-fg: #0a0a0a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Типографика --- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(38px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.lede {
  font-size: 17px;
  line-height: 1.5;
  max-width: 560px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* --- Шапка --- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--fg);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark-sm {
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--fg);
}

/* --- Кнопки --- */

.btn {
  display: inline-block;
  border: 1px solid var(--fg);
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 24px;
  text-align: center;
}

.btn:hover {
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 10px;
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 0;
  border-top: 1px solid var(--fg);
}

.facts div {
  padding: 14px 16px 0 0;
}

.facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
}

/* --- Секции --- */

.section {
  padding-top: 56px;
  padding-bottom: 8px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fg);
}

/* --- Каталог --- */

.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}

.cat-group {
  padding-top: 22px;
}

.cat-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.app-row:hover .app-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mark {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 15px;
  text-transform: uppercase;
}

.mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-body {
  flex: 1;
  min-width: 0;
}

.app-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

.catalog-foot {
  padding-top: 18px;
}

/* --- Шаги --- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 22px 0;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.step-num {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 11px;
}

/* --- Характеристики --- */

.spec {
  margin: 0;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-size: 15px;
}

/* --- Вопросы --- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-weight: 400;
}

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

.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  max-width: 680px;
}

/* --- Финал и подвал --- */

.cta {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-title {
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.foot {
  border-top: 1px solid var(--fg);
}

.foot-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.foot-row a {
  margin-left: auto;
}

/* --- Телефон --- */

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .top .btn-sm {
    margin-left: auto;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
    gap: 22px;
  }

  .actions .btn {
    width: 100%;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .facts div:nth-child(n + 3) {
    padding-top: 16px;
  }

  .catalog,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-row dd {
    text-align: left;
  }

  .cta {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cta .btn {
    width: 100%;
  }

  .foot-row {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 18px 0;
  }
}
