:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe2;
  --surface: #ffffff;
  --text: #2b2622;
  --muted: #6f655c;
  --line: #e3dbcf;
  --accent: #a8532e;
  --accent-hover: #8e4424;
  --accent-soft: #f6e6dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .06), 0 6px 20px rgba(43, 38, 34, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); }
.btn-small { padding: 9px 18px; font-size: 15px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hint { font-size: 15px; color: var(--muted); margin-top: 16px; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 680px; }

/* до/после */
.examples { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
.ba {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt);
  --pos: 50%;
}
.ba-portrait { aspect-ratio: 3 / 4; }  /* вертикальные фото — без обрезки до полоски */
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35); pointer-events: none;
}
.ba-line::after {
  content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--text);
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.ba-tag {
  position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(43, 38, 34, .7); color: #fff; pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.ba input[type=range]:focus-visible + * { outline: none; }
.ba:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-empty { display: grid; place-items: center; border: 2px dashed var(--line); box-shadow: none; }
.ba-placeholder { color: var(--muted); font-size: 15px; }

/* режимы */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 14px;
}

/* шаги */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.step { position: relative; padding-left: 60px; }
.step p { color: var(--muted); margin: 0; }
.step-num {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center;
}

/* тарифы */
.tariffs { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 24px; }
.tariff {
  background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.tariff-featured { border-color: var(--accent); }
.tariff-price { font-size: 34px; font-weight: 700; margin: 0 0 4px; }
.tariff-count { font-weight: 600; margin: 0 0 4px; }
.tariff-tax { font-size: 14px; font-weight: 400; color: var(--muted); }
.tariff-period, .tariff-per { color: var(--muted); font-size: 15px; margin: 0 0 4px; }

/* FAQ */
.faq details {
  background: var(--surface); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta { padding: 64px 0; text-align: center; background: var(--accent-soft); }

/* документы и служебные страницы */
.doc h1 { font-size: clamp(26px, 4vw, 34px); }
.doc h2 { font-size: 21px; margin-top: 1.6em; }
.doc blockquote {
  margin: 0 0 1.5em; padding: 14px 18px; background: #fff3cd; border-left: 4px solid #e0a800; border-radius: 8px;
}
.doc li { margin-bottom: .4em; }
.message { text-align: center; padding: 40px 0; }
.message .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }

.footer { border-top: 1px solid var(--line); padding: 32px 0 24px; font-size: 15px; color: var(--muted); }
.footer p { margin: 0 0 4px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-name { color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-note { margin-top: 20px !important; font-size: 13px; }

@media (min-width: 720px) {
  .examples { grid-template-columns: 1fr 1fr; }
  .cards, .steps, .tariffs { grid-template-columns: repeat(3, 1fr); }
}
