/* ===== Общие стили сайта ===== */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --ok: #16a34a;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

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

/* --- Шапка --- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--brand); }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  font: 600 15px/1 'Inter', Arial, sans-serif; transition: .15s; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--muted) !important; }

/* --- Герой --- */
.hero { padding: 70px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-sub { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: '✓ '; color: var(--ok); font-weight: 700; }

.hero-preview {
  position: relative; border-radius: var(--radius); background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .18); overflow: hidden; aspect-ratio: 210/260;
}
.hero-preview .scaled { position: absolute; top: 0; left: 0; transform-origin: top left; }

/* --- Секции лендинга --- */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 36px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.section-alt .feature { background: var(--bg); }
.feature-ico { font-size: 28px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* --- Галерея шаблонов --- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tpl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .15s; position: relative; display: block; color: var(--ink);
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(15,23,42,.12); }
.tpl-thumb { position: relative; aspect-ratio: 210/297; overflow: hidden; background: #eef1f6; }
.tpl-thumb .scaled { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.tpl-name { font-weight: 600; font-size: 15px; }
.tpl-badge {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: #ecfdf5; color: var(--ok);
}
.tpl-badge.premium { background: #fef3c7; color: #b45309; }

/* --- Примеры --- */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ex-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.ex-emoji { font-size: 32px; }
.ex-card h3 { margin: 4px 0 2px; }
.ex-card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.ex-card .btn { margin-top: auto; align-self: flex-start; }

/* --- Цены --- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }
.price-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.price-card.hot { border-color: var(--brand); box-shadow: 0 15px 40px rgba(37,99,235,.15); position: relative; }
.price-hot-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.price-name { font-weight: 700; font-size: 18px; }
.price-val { font-size: 40px; font-weight: 800; margin: 8px 0 2px; }
.price-val small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; }
.price-list li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-list li.no::before { content: '—'; color: #cbd5e1; }
.price-card .btn { margin-top: auto; }

/* --- FAQ --- */
.faq { max-width: 760px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* --- Подвал --- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 30px 0; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); margin-right: 18px; }
.footer a:hover { color: var(--brand); }

/* --- Страница результата оплаты --- */
.pay-result { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pay-card {
  background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,23,42,.12);
  padding: 44px; max-width: 460px; text-align: center;
}
.pay-icon { font-size: 52px; margin-bottom: 12px; }
.pay-card h1 { font-size: 26px; margin: 0 0 10px; }
.pay-card p { color: var(--muted); margin: 0 0 24px; }

/* --- Простые текстовые страницы --- */
.page-text { max-width: 760px; padding: 50px 20px; margin: 0 auto; }
.page-text h1 { font-size: 30px; }
.page-text h2 { font-size: 21px; margin-top: 30px; }
.page-text p, .page-text li { color: #334155; }

/* --- Адаптив --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { max-width: 420px; }
  .features { grid-template-columns: 1fr 1fr; }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .ex-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .features, .price-grid, .ex-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 12px; font-size: 14px; }
  .nav .btn { padding: 9px 14px; }
  .nav a.nav-link-sec { display: none; }
}
