/* Витрина сервиса «Сарафан».
 *
 * Светлая, спокойная страница: продаём доверие, а тёмные «технологичные»
 * лендинги для малого бизнеса читаются как обещание сложности.
 * Цвет действия — тёплый красно-оранжевый, он же по умолчанию в виджетах.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent:      #e8452c;
  --accent-dark: #c8351e;
  --accent-pale: #fef1ee;
  --ink:         #14161a;
  --text:        #545c69;
  --muted:       #838d9c;
  --line:        #e8ebf0;
  --line-soft:   #f2f4f7;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --wrap:        1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── кнопки ───────────────────────────────────────────────  */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }

/* ── шапка ────────────────────────────────────────────────  */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.top-in { display: flex; align-items: center; gap: 26px; min-height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.logo-mark svg { width: 19px; height: 19px; }

.top-menu { display: flex; gap: 22px; }
.top-menu a { color: var(--text); font-size: 15px; font-weight: 500; }
.top-menu a:hover { color: var(--accent); }

.top-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }

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

section { padding: 56px 0; }

.hero {
  padding: 60px 0 52px;
  background:
    radial-gradient(60% 110% at 15% 0%, rgba(232, 69, 44, .09) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(50% 90% at 92% 8%, rgba(232, 69, 44, .06) 0%, rgba(255, 255, 255, 0) 60%);
}

.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; margin-bottom: 18px; }
.lead { font-size: clamp(16px, 2vw, 19px); max-width: 66ch; }

.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.hero-facts {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
}
@media (min-width: 780px) { .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hero-facts li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  color: var(--muted);
}
.hero-facts b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ── заголовки разделов ───────────────────────────────────  */

.head { margin-bottom: 28px; }
.head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 10px; }
.head p { max-width: 72ch; margin: 0; }

/* ── демонстрация ─────────────────────────────────────────  */

.demo-sec { background: var(--bg-soft); }

.demo-frame {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.demo-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ── шаги ─────────────────────────────────────────────────  */

.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; margin: 0; padding: 0; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.steps li {
  counter-increment: s;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-weight: 800;
}
.steps b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; }

/* ── виды виджета и доводы ────────────────────────────────  */

.kinds-sec { background: var(--bg-soft); }

.kinds { display: grid; gap: 16px; }
@media (min-width: 700px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kind { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.kind h3 { font-size: 17px; margin-bottom: 8px; }
.kind p { margin: 0; font-size: 15px; }

.kinds-more { margin: 20px 0 0; }
.kinds-more a { color: var(--accent); font-weight: 600; }

.whys { display: grid; gap: 18px; }
@media (min-width: 860px) { .whys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.why { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { margin: 0; }

/* ── тарифы ───────────────────────────────────────────────  */

.plans-sec { background: var(--bg-soft); }

.plans { display: grid; gap: 18px; align-items: start; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.plan-best { border-color: var(--accent); box-shadow: 0 14px 40px rgba(232, 69, 44, .12); }

.plan-tag {
  position: absolute;
  top: -12px; left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan-price { font-size: 34px; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--muted); }

.plan-list { list-style: none; margin: 0 0 20px; padding: 0; }
.plan-list li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line-soft); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before {
  content: '';
  position: absolute;
  left: 3px; top: 15px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── вопросы ──────────────────────────────────────────────  */

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

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 9px; height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 18px; max-width: 78ch; }

/* ── призыв ───────────────────────────────────────────────  */

.cta {
  display: grid;
  gap: 22px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: rgba(255, 255, 255, .92);
}
@media (min-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; } }
.cta h2 { color: #fff; margin-bottom: 8px; font-size: clamp(22px, 2.6vw, 30px); }
.cta p { margin: 0; max-width: 60ch; }

.cta-act { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-act .btn-main { background: #fff; color: var(--accent-dark); }
.cta-act .btn-main:hover { background: #ffece7; color: var(--accent-dark); }
.cta-act .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-act .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

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

.foot { border-top: 1px solid var(--line); padding: 44px 0 26px; font-size: 15px; }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 780px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }

.logo-foot { margin-bottom: 12px; }
.foot-desc { color: var(--muted); max-width: 40ch; }
.foot h3 { font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--text); }
.foot a:hover { color: var(--accent); }
.foot-req { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.foot-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

/* ── узкие экраны ─────────────────────────────────────────  */

@media (max-width: 860px) {
  .top-menu { display: none; }
  section { padding: 40px 0; }
  .hero { padding: 36px 0 40px; }
  .hero-act .btn { flex: 1 1 100%; }
  .demo-frame { padding: 16px; }
  .cta { padding: 24px; }
}

@media (max-width: 420px) {
  .top-act .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
