/* Mark GreenEngine — стили публичного сайта. Системные шрифты, без внешних зависимостей. */

:root {
  --green-900: #0c3a22;
  --green-800: #0f4d2d;
  --green-700: #136a3d;
  --green-600: #17804a;
  --green-500: #1f9a5a;
  --green-100: #e3f4ea;
  --green-50:  #f2faf5;
  --ink: #17221c;
  --muted: #5a6b61;
  --line: #dbe7df;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 58, 34, .06), 0 8px 24px rgba(12, 58, 34, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-700); }
a:hover { color: var(--green-500); }
h1, h2, h3 { line-height: 1.25; color: var(--green-900); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--green-600);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--green-600);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-outline { background: transparent; color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); }
.btn-light { background: #fff; border-color: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-100); border-color: var(--green-100); color: var(--green-900); }
.btn-small { padding: 7px 14px; font-size: .95rem; }
.btn-block { display: block; text-align: center; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.brand-name { font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.brand-name b { color: var(--green-600); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-600); }
.site-nav a.btn { color: #fff; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block; width: 40px; height: 40px; cursor: pointer; position: relative;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: var(--green-900); content: "";
  }
  .nav-toggle-label span { top: 19px; }
  .nav-toggle-label span::before { top: -7px; left: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Первый экран */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(31, 154, 90, .18), transparent 60%),
    linear-gradient(180deg, var(--green-50), #fff);
  padding: 72px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hero-card li:last-child { border-bottom: 0; }
.dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--green-500); }
@media (max-width: 860px) {
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Секции */
.section { padding: 72px 0; }
.section-alt { background: var(--green-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) { .section { padding: 48px 0; } }

.grid { display: grid; gap: 20px; }
.grid > *, .pricing > *, .shots > *, .hero-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(12, 58, 34, .04);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 4px 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--green-100); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.module-card { display: flex; flex-direction: column; }

/* Шаги */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 70px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

/* Тарифы */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--green-600); }
.price-name { font-weight: 600; color: var(--green-800); }
.price-value { font-size: 2.2rem; font-weight: 700; color: var(--green-900); margin: 8px 0 2px; letter-spacing: -.02em; white-space: nowrap; }
.price-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { padding: 6px 0 6px 24px; position: relative; font-size: .95rem; }
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px;
  border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg);
}
.badge {
  align-self: flex-start; font-size: .78rem; font-weight: 600; color: #fff; background: var(--green-600);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.pricing-notes { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.pricing-notes p { margin-bottom: .5em; }

/* Скриншоты */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img, .shot-frame {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
.shot-frame { position: relative; overflow: hidden; }
.shot-frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--green-800);
}
.shot-frame::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 40px; bottom: 14px;
  background:
    linear-gradient(var(--green-100), var(--green-100)) 0 0 / 30% 12px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 18px, var(--green-50) 18px 36px);
  border: 1px solid var(--line); border-radius: 6px;
}
.shot-frame span {
  position: absolute; left: 12px; top: 4px; z-index: 1; color: #fff; font-size: .8rem; font-weight: 600;
}
.shot figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); }

/* Требования */
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.req-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.req-list b { display: block; }
.req-list small { color: var(--muted); font-size: .92rem; }

/* Призыв */
.cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; border-radius: 20px;
  padding: 44px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }

/* Документы */
.doc-hero { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.doc-hero p { color: var(--muted); margin: 0; }
.doc { padding: 36px 0 72px; }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.4em; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 6px 0; }
.doc .clauses { list-style: none; padding-left: 0; }
.doc .clauses > li { padding-left: 0; }
.doc .num { font-weight: 600; color: var(--green-800); margin-right: 4px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.note {
  background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 8px; padding: 14px 18px; margin: 18px 0;
}
.table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.doc-table { width: 100%; border-collapse: collapse; background: #fff; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { background: var(--green-50); color: var(--green-900); }
.requisites th { width: 34%; font-weight: 600; color: var(--green-900); background: var(--green-50); }

/* Подвал */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .82); padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green-100); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-title { font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* Заглушка кабинета */
.placeholder { text-align: center; padding: 80px 0; }
.placeholder .lead { margin: 0 auto 24px; }
