/* Главная страница сайта (лендинг) и /vendors/. Общие цвета, шрифт и токены — в style.css */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.container { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section.block { padding: var(--s-96) 0; }
.kicker { display: inline-block; font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-12); }
.h2 { font-size: clamp(var(--fs-24), 4vw, var(--fs-44)); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 var(--s-16); text-wrap: balance; }
.lead { font-size: var(--fs-18); color: var(--muted); max-width: 640px; line-height: 1.6; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(252, 251, 254, 0.88); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); height: 64px; }
.nav .brand { font-weight: 600; font-size: var(--fs-16); }
.nav .brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: var(--s-8) var(--s-12); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-14); }
.nav ul a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav .right { display: flex; align-items: center; gap: var(--s-8); }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-16); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-14); text-decoration: none; white-space: nowrap; }
.btn-sm.primary { background: var(--accent); color: #fff; }
.btn-sm.primary:hover { background: var(--accent-dark); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; }
.lang-sw { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.lang-sw a { font-size: var(--fs-14); font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--r-pill); min-height: 32px; display: inline-flex; align-items: center; }
.lang-sw a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
@media (max-width: 860px) {
  .nav nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2); display: none; }
  .nav nav.open { display: block; }
  .nav ul { flex-direction: column; padding: var(--s-8) max(20px, env(safe-area-inset-left, 0px)) var(--s-16); gap: 0; }
  .nav ul a { padding: var(--s-12) 0; border-radius: 0; font-size: var(--fs-16); border-bottom: 1px solid var(--line); }
  .nav ul li:last-child a { border-bottom: 0; }
  .nav ul a:hover { background: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) { .nav .brand span { display: none; } }

/* Первый экран */
.hero2 { padding: var(--s-48) 0 var(--s-32); overflow: hidden; }
.hero2 .container { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-64); align-items: center; }
.hero2 .eyebrow { font-size: var(--fs-14); font-weight: 500; color: var(--accent-dark); margin: 0 0 var(--s-16); }
.hero2 h1 { font-size: clamp(34px, 4.4vw, var(--fs-56)); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 var(--s-24); text-wrap: balance; }
.hero2 h1 .grad { color: var(--accent); }
.hero2 .lead { font-size: var(--fs-18); }
.pill { display: inline-block; padding: 6px var(--s-12); border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--line); font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-32); }
.store { position: relative; display: inline-flex; align-items: center; gap: var(--s-12); min-width: 190px; height: 56px; padding: 0 var(--s-16) 0 var(--s-12);
  border-radius: var(--r-md); background: #1E1A2E; color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: var(--fs-12); opacity: .75; font-weight: 500; }
.store strong { font-size: var(--fs-18); font-weight: 600; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; }
.store .soon { position: absolute; top: -9px; right: -8px; background: #FFE9A8; color: #6B4A00; font-size: 11px; font-weight: 600; font-style: normal;
  padding: 3px var(--s-8); border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .04em; }
.ticks { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); margin-top: var(--s-24); color: var(--muted); font-weight: 500; font-size: var(--fs-14); }
.ticks span::before { content: "✓"; color: var(--success); font-weight: 600; margin-right: 6px; }
.phones { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 276px; aspect-ratio: 390 / 844; border-radius: 44px; padding: 9px; background: #1E1A2E;
  box-shadow: 0 24px 48px rgba(60, 40, 130, 0.2), 0 6px 14px rgba(60, 40, 130, 0.1); }
.phone img { width: 100%; height: 100%; border-radius: 36px; display: block; object-fit: cover; }
.float { position: absolute; z-index: 3; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-12) var(--s-16); box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: var(--s-12); font-size: var(--fs-14); font-weight: 500; }
.float .dot { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 600; background: var(--success-soft); color: var(--success); }
.float small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-12); }
.float.f1 { left: -24px; top: 58%; }
@media (max-width: 1100px) {
  .hero2 .container { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-40, 40px); }
  .hero2 .phone { width: 250px; }
  .float.f1 { display: none; }
}
@media (max-width: 860px) {
  .hero2 .container { grid-template-columns: minmax(0, 1fr); gap: var(--s-48); }
  .hero2 .container > div:first-child { max-width: 640px; }
}
@media (max-width: 600px) {
  .phones { height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .hero2 .phone { width: 240px; border-radius: 38px; }
  .hero2 .phone img { border-radius: 30px; }
}
@media (max-width: 480px) {
  .stores { gap: var(--s-8); }
  .store { min-width: 0; flex: 1; padding: 0 var(--s-12) 0 var(--s-8); gap: var(--s-8); }
  .store strong { font-size: var(--fs-16); }
  .store svg { width: 22px; height: 22px; }
  .ticks { flex-direction: column; gap: var(--s-4); }
}

/* Знакомо? */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); margin-top: var(--s-32); }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-24); box-shadow: var(--shadow); }
.pain .ic { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--s-16); }
.pain .ic svg { width: 24px; height: 24px; }
.pain h3 { margin: 0 0 6px; font-size: var(--fs-18); font-weight: 600; }
.pain p { color: var(--muted); }
.answer { margin: var(--s-32) auto 0; max-width: 720px; text-align: center; font-size: var(--fs-20); font-weight: 500; line-height: 1.5; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* Возможности */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-64); align-items: center; padding: var(--s-48) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot .phone { width: 260px; }
.feature .shot .bg { padding: var(--s-32) 0; width: 100%; display: flex; justify-content: center; border-radius: var(--r-xl); background: var(--hero-soft); }
.feature h3 { font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 var(--s-12); text-wrap: balance; }
.feature .tag { display: inline-flex; align-items: center; gap: var(--s-8); font-weight: 500; color: var(--accent-dark); background: var(--accent-soft);
  padding: 6px var(--s-12); border-radius: var(--r-pill); font-size: var(--fs-14); margin-bottom: var(--s-16); }
.list { list-style: none; padding: 0; margin: var(--s-16) 0 0; display: grid; gap: var(--s-12); }
.list li { position: relative; padding-left: 32px; font-size: var(--fs-16); }
.list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FD6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: var(--s-24); padding: var(--s-32) 0; }
  .feature .shot { order: 2; }
  .feature.flip .shot { order: 2; }
}
@media (max-width: 600px) {
  /* на телефоне — только верх экрана приложения, с затуханием: короче страница, крупнее детали */
  .feature .shot .bg { height: 270px; overflow: hidden; align-items: flex-start; padding: var(--s-24) 0 0; }
  .feature .shot .phone { width: 230px; -webkit-mask-image: linear-gradient(#000 60%, transparent 92%); mask-image: linear-gradient(#000 60%, transparent 92%); }
  .feature .lead { font-size: var(--fs-16); }
  .feature .list { gap: var(--s-8); }
}

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-16); margin-top: var(--s-32); counter-reset: s; }
.stepc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-24); box-shadow: var(--shadow); }
.stepc::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: var(--fs-18); margin-bottom: var(--s-16); }
.stepc h3 { margin: 0 0 6px; font-size: var(--fs-18); font-weight: 600; }
.stepc p { color: var(--muted); font-size: var(--fs-14); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  /* компактный нумерованный список вместо карточек */
  .steps { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-8) var(--s-16); box-shadow: var(--shadow); }
  .stepc { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-12); background: none; border: 0; border-radius: 0; box-shadow: none; padding: var(--s-12) 0; }
  .stepc + .stepc { border-top: 1px solid var(--line); }
  .stepc::before { width: 32px; height: 32px; font-size: var(--fs-14); margin: 0; grid-row: span 2; border-radius: var(--r-sm); }
  .stepc h3 { font-size: var(--fs-16); margin-bottom: 2px; }
}

/* Роли */
.roles { margin-top: var(--s-32); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.role { display: grid; grid-template-columns: 220px 1fr auto; gap: var(--s-16); align-items: center; padding: var(--s-16) var(--s-24); }
.role + .role { border-top: 1px solid var(--line); }
.role b { font-size: var(--fs-16); font-weight: 600; }
.role p { color: var(--muted); }
.money { font-size: var(--fs-12); font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.money.yes { background: #E3F6EE; color: var(--success-text); }
.money.no { background: #F1EFF6; color: var(--muted); }
@media (max-width: 640px) { .role { grid-template-columns: 1fr auto; padding: var(--s-16); } .role p { grid-column: 1 / -1; grid-row: 2; } }

/* Цены */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); margin: var(--s-32) auto 0; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-32); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow-2); }
.plan .name { font-weight: 600; font-size: var(--fs-20); display: flex; align-items: center; gap: var(--s-12); }
.plan .badge { font-size: var(--fs-12); font-weight: 600; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: var(--r-pill); }
.plan .price { font-size: var(--fs-44); font-weight: 700; letter-spacing: -0.03em; margin: var(--s-12) 0 2px; }
.plan .price small { font-size: var(--fs-18); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .sub { color: var(--muted); font-weight: 500; }
.plan .list { margin: var(--s-24) 0; flex: 1; }
.plan .btn { min-height: 52px; font-weight: 600; }
.note { margin: var(--s-24) auto 0; max-width: 860px; text-align: center; color: var(--muted); font-size: var(--fs-14); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: var(--s-24); } }

/* Вопросы */
.faq { max-width: 800px; margin: var(--s-32) auto 0; display: grid; gap: var(--s-12); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 var(--s-24); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-16) 32px var(--s-16) 0; font-weight: 600; font-size: var(--fs-16); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: var(--fs-24); color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 var(--s-16); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
@media (max-width: 600px) { .faq details { padding: 0 var(--s-16); } }

/* Скачать */
.cta { display: grid; grid-template-columns: 360px 1fr; gap: var(--s-48); align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s-48); box-shadow: var(--shadow); }
.cta .peek .card { box-shadow: var(--shadow-2); text-align: center; font-weight: 500; }
.cta .stores { margin-top: var(--s-24); }
.cta .tester { display: inline-flex; margin-top: var(--s-24); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: var(--s-24); gap: var(--s-24); } .cta .peek { max-width: 360px; margin: 0 auto; width: 100%; } }

/* Подвал */
.foot { text-align: left; border-top: 1px solid var(--line); margin-top: var(--s-24); padding: var(--s-48) 0 var(--s-32); font-size: var(--fs-14); }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-32); }
.foot h3 { margin: 0 0 var(--s-8); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot ul a { display: inline-block; padding: var(--s-8) 0; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--accent); }
.foot a.mail { overflow-wrap: anywhere; }
.foot .legal { margin-top: var(--s-32); color: var(--muted); font-size: var(--fs-14); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24) var(--s-16); } .foot .about { grid-column: 1 / -1; } }
@media (max-width: 400px) { .foot .cols { grid-template-columns: 1fr; } }
.cta .peek > img:first-child, .cta .peek .card { cursor: pointer; }

/* Полоса «Исполнителям» */
.vendors-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); padding: var(--s-24); border-radius: var(--r-xl);
  background: var(--accent-soft); color: var(--ink); text-decoration: none; border: 1px solid #E2DAFF; }
.vendors-strip:hover { border-color: #C9BBFF; }
@media (max-width: 640px) { .vendors-strip { flex-direction: column; align-items: flex-start; } }

@media (max-width: 600px) {
  section.block { padding: var(--s-64) 0; }
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Статьи (страницы для поиска: приглашения, чек-лист) */
.article { max-width: 760px; margin: 0 auto; padding: var(--s-48) 0 var(--s-64); }
.crumbs { font-size: var(--fs-14); color: var(--muted); margin-bottom: var(--s-16); }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(30px, 5vw, var(--fs-44)); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 var(--s-16); text-wrap: balance; hyphens: manual; }
.article .lead { font-size: var(--fs-18); margin-bottom: var(--s-32); max-width: none; }
.article h2 { font-size: var(--fs-24); line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; margin: var(--s-48) 0 var(--s-12); }
.article h3 { font-size: var(--fs-18); font-weight: 600; margin: var(--s-24) 0 var(--s-8); }
.article p { margin: 0 0 var(--s-12); }
.article ul.check, .article ol.num { padding-left: 0; list-style: none; margin: 0 0 var(--s-16); display: grid; gap: var(--s-8); }
.article ul.check li { position: relative; padding-left: 30px; }
.article ul.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; border: 1.75px solid var(--accent); background: var(--surface); }
.article ol.num { counter-reset: n; }
.article ol.num li { position: relative; padding-left: 40px; counter-increment: n; }
.article ol.num li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: var(--fs-14); display: grid; place-items: center; }
.article .app-tip { background: var(--accent-soft); border-radius: var(--r-lg); padding: var(--s-12) var(--s-16); font-size: var(--fs-14); color: var(--ink); margin: var(--s-8) 0 var(--s-16); }
.article .app-tip b { color: var(--accent-dark); }
.article figure { margin: var(--s-24) 0; display: flex; justify-content: center; }
.article figure .phone { width: 240px; }
.article .cta-box { margin-top: var(--s-48); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-24); box-shadow: var(--shadow); }
.article .cta-box h2 { margin-top: 0; }
.article .cta-box .row-btns { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-16); }
.article .cta-box .row-btns a { min-height: 48px; padding: 0 var(--s-24); }
.btn-sm.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.related { margin-top: var(--s-32); display: grid; gap: var(--s-8); }
.related a { font-weight: 500; }
