/* altsc.ru — mobile-first, без фреймворков.
   Задача: закрыть NOT_MOBILE_FRIENDLY из Вебмастера и Core Web Vitals,
   которые не вытягивала Tilda-вёрстка. Никаких блокирующих скриптов. */

/* --- Manrope: только заголовки и кнопки, self-host, кириллица + латиница ---
   Тело текста намеренно оставлено на системном шрифте — ради скорости.
   font-display: swap — текст виден сразу системным, подменяется без сдвигов.
   unicode-range заставляет браузер качать только нужный сабсет. */

@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/manrope-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5b6472;
  --line: #e5e8ee;
  --alt: #f6f8fb;
  --brand: #6E5AE8;
  --brand-dark: #6450e0;
  --brand-tint: #f2f0fe;      /* очень светлый бренд — фоновые заливки */
  --brand-line: #d9d3fb;      /* граница карточки при наведении */
  --radius: 14px;
  --wrap: 1120px;
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(22,24,29,.04), 0 6px 16px -8px rgba(22,24,29,.12);
  --shadow-brand: 0 10px 26px -12px rgba(122,102,243,.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700;
             font-family: var(--font-head); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.375rem, 3.5vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }

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

.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0;
               background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px;
                flex-wrap: wrap; }

.logo { display: block; }
.logo img { width: 66px; height: auto; }

.nav-toggle { display: none; }
.nav-burger { margin-left: auto; width: 40px; height: 40px; display: flex;
              align-items: center; justify-content: center; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--fg);
  position: relative; transition: .2s;
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after  { position: absolute; top: 7px; }

.nav { flex-basis: 100%; display: none; }
.nav-toggle:checked ~ .nav { display: block; }
.nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav a { display: block; padding: 10px 0; color: var(--fg); font-weight: 500; }

.header-cta { flex-basis: 100%; display: none; gap: 10px; padding-bottom: 12px; }
.nav-toggle:checked ~ .header-cta { display: flex; }

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

.btn { display: inline-block; padding: 11px 20px; border-radius: 10px;
       font-family: var(--font-head); font-weight: 600; font-size: .9375rem; text-align: center;
       transition: background .18s ease, box-shadow .18s ease, transform .12s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 30px -10px rgba(122,102,243,.65); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-line); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* --- хлебные крошки --- */

.breadcrumbs { padding: 14px 0 0; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .8125rem; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: var(--fg); }

/* --- секции --- */

.hero { padding: 28px 0 40px;
        background: radial-gradient(900px 380px at 85% 0%, var(--brand-tint), transparent 70%); }
.hero .subtitle { font-size: clamp(1.0625rem, 2.5vw, 1.25rem); color: var(--muted);
                  margin: 0 0 1em; }
.hero .lead { max-width: 62ch; font-size: 1.0625rem; }
.hero-price { font-weight: 700; font-size: 1.125rem; margin: 1.5em 0 .75em; }

.section { padding: 44px 0; }
.section-alt { background: var(--alt); }

/* --- сетки и карточки --- */

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm);
              transform: translateY(-3px); }
.section-alt .card { background: #fff; }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: .4em; }

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

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid;
         gap: 18px; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

/* --- списки --- */

.checklist { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brand);
                        font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
        font-size: .875rem; color: var(--muted); background: #fff; }
.statuses-title { margin-top: 1.5em; }

.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* --- цены --- */

.price { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: 0 0 .25em;
         color: var(--brand-dark); }
.price-note { color: var(--muted); font-size: .9375rem; margin: 0 0 1.25em; }

.pricing-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px; max-width: 660px; box-shadow: var(--shadow-sm);
}
.pricing-card .checklist { grid-template-columns: 1fr; margin: 0 0 1.5em; }
.pricing-card .btn-lg { width: 100%; }

/* блок цены с картинкой справа (главная) */
.pricing-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.pricing-grid .pricing-card { max-width: none; }
.pricing-media img {
  width: 100%; height: auto; max-width: 420px; margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(22, 24, 29, .2));
}
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

/* --- FAQ --- */

.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand);
                           font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* --- отзывы --- */

.review { margin: 0; background: var(--alt); border: 1px solid var(--line);
          border-radius: var(--radius); padding: 22px 20px; }
.review p { color: var(--muted); margin: 0; }
.review-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
                 background: var(--brand); color: #fff; font-size: .875rem; font-weight: 700;
                 display: flex; align-items: center; justify-content: center; }
.review-meta { display: flex; flex-direction: column; line-height: 1.3; }
.review cite { font-style: normal; font-weight: 600; font-size: .9375rem; }
.review-role { color: var(--muted); font-size: .8125rem; }

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

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 18px;
              margin: 0 0 14px; padding: 0; }
.footer-nav a { color: var(--muted); }
.legal { color: var(--muted); font-size: .8125rem; margin: 0; }

/* --- десктоп --- */

@media (min-width: 860px) {
  .nav-burger { display: none; }
  .nav { flex-basis: auto; display: block; margin-left: auto; }
  .nav ul { display: flex; gap: 24px; margin: 0; }
  .nav a { padding: 0; }
  .header-cta { flex-basis: auto; display: flex; padding: 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 40px 0 56px; }
  .section { padding: 64px 0; }
  .breadcrumbs { padding: 20px 0 0; }
}

/* --- главная: блок «Кому подойдёт» --- */

.for-whom { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 1.5em; }
.for-whom-group h3 { margin-bottom: .5em; }
.for-whom-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* --- предупреждение «чего в продукте нет» --- */

.disclaimer {
  max-width: 62ch; margin: 1.25em 0 0; padding: 14px 18px;
  border-left: 3px solid var(--brand); background: var(--alt);
  border-radius: 0 8px 8px 0; font-size: .9375rem; color: var(--muted);
}

/* --- статьи, оферта, посты --- */

.article { max-width: 74ch; }
.article h2 { margin-top: 1.6em; font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
.article p { color: var(--muted); }
.article .checklist { grid-template-columns: 1fr; margin: .5em 0 1.75em; }
.post-date { font-size: .875rem; margin-bottom: 2em; }

/* --- лента постов --- */

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 760px; }
.feed li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.feed a { font-weight: 600; }
.feed time { color: var(--muted); font-size: .875rem; white-space: nowrap; }

@media (min-width: 860px) {
  .for-whom { grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
}

/* --- иконки --- */

.icon { width: 26px; height: 26px; color: var(--brand); flex: 0 0 auto; }
.card .icon { width: 44px; height: 44px; padding: 9px; margin-bottom: 14px;
              background: var(--brand-tint); border-radius: 11px; }
.icon-sm { width: 20px; height: 20px; }
.for-whom-group h3 { display: flex; align-items: center; gap: 9px; }

/* --- скриншоты интерфейса --- */

.shots { display: grid; gap: 26px; grid-template-columns: 1fr; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.shot figcaption b { color: var(--fg); display: block; margin-bottom: 2px; }

@media (min-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* --- герой с картинкой --- */

.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.hero-media img {
  width: 100%; height: auto; max-width: 520px; margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(22, 24, 29, .16));
}

/* --- мокап устройства в блоке «Как это выглядит» --- */

.shot-mockup { background: none; border: 0; text-align: center; }
.shot-mockup img {
  border: 0; background: none; max-width: 320px; margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(22, 24, 29, .18));
}
.shot-mockup figcaption { max-width: 46ch; margin-left: auto; margin-right: auto; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero-media img { max-width: 100%; }
}

/* --- превью «карточки заказа» в герое лендинга --- */

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; max-width: 440px; margin: 0 auto;
  box-shadow: 0 24px 48px -18px rgba(22, 24, 29, .22);
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.hero-card-id { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; }
.hero-card-badge {
  font-size: .75rem; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-tint); padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.hero-card-fields { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 11px; }
.hero-card-fields li {
  position: relative; padding-left: 20px; font-size: .875rem; line-height: 1.35; color: var(--fg);
}
.hero-card-fields li::before {
  content: ""; position: absolute; left: 1px; top: .45em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.hero-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-card-chips .chip { font-size: .75rem; padding: 4px 10px; }

/* --- один скрин на секцию: оформляем как showcase, а не пустую половину сетки --- */

.shots:has(.shot:only-child) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.shots:has(.shot-mockup:only-child) .shot-mockup {
  background: radial-gradient(520px 260px at 50% 0%, var(--brand-tint), var(--alt));
  border-radius: 20px; padding: 40px 24px;
}

/* --- фокус для клавиатурной навигации --- */

a:focus-visible, .btn:focus-visible, summary:focus-visible, .nav-burger:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* --- уважаем настройку «меньше движения» --- */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
