:root {
  /* Палитра «Коралл + тёмно-синий» */
  --coral: #FF5A5F;        /* основной — кнопки, акценты */
  --coral-dark: #ED4B51;   /* hover */
  --blue: #2563EB;         /* вторичный акцент */
  --ink: #1D2B4F;          /* текст */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --muted: #647095;
  --radius: 16px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.5;
}

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

h1 { font-size: 56px; font-weight: 900; line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 32px; font-weight: 700; margin: 0 0 28px; text-align: center; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary { background: var(--blue); color: #fff; border-radius: 24px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid rgba(33,31,84,.15); }

/* Header */
.site-header { border-bottom: 1px solid rgba(33,31,84,.08); position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px 20px; }
.logo { font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; transition: color .15s ease; }
.nav-link:hover { color: var(--coral); }

/* Hero */
.hero { padding: 48px 0 44px; text-align: center; }
.subtitle { font-size: 22px; color: var(--muted); margin: 0 auto 36px; max-width: 640px; }
/* Фокус — на загрузчике. Заголовок и подзаголовок намеренно приглушены. */
.hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 10px; }
.hero .subtitle { font-size: 17px; margin: 0 auto 30px; max-width: 540px; color: var(--muted); }
.hero .uploader .btn-primary { font-size: 19px; padding: 17px 44px; }
.hero .drop { box-shadow: 0 16px 48px rgba(255,90,95,.14); border-color: rgba(255,90,95,.65); }
@media (max-width: 640px) {
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 26px; }
  .hero .subtitle { font-size: 15px; margin-bottom: 24px; }
}

/* Uploader */
.uploader { max-width: 620px; margin: 0 auto; }
.drop {
  background: var(--card);
  border: 2px dashed rgba(255,90,95,.5);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: 0 12px 40px rgba(33,31,84,.06);
}
.drop.dragover { border-color: var(--coral); background: #fff5f5; }
.drop-hint { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.drop-formats { color: var(--muted); margin: 6px 0 0; font-size: 13px; }

.spinner {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border: 4px solid rgba(255,90,95,.2);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.drop-error p { color: var(--coral-dark); margin: 0 0 14px; }

/* Result */
.result { max-width: 620px; margin: 28px auto 0; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 40px rgba(33,31,84,.06); text-align: left; }
.result-meta { color: var(--muted); font-size: 15px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }
.preview { background: #F2F5FA; border-radius: 12px; padding: 16px; font-size: 15px; max-height: 280px; overflow-y: auto; margin-bottom: 20px; }
.preview .line { margin: 0 0 10px; }
.preview .who { font-weight: 700; color: var(--blue); }
.preview .ts { color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 56px 0; }
.features { background: #F5F7FB; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(33,31,84,.05); }
.card p { color: var(--muted); margin: 0; }

.pay { text-align: center; }
.pay p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.pay-cta { margin-top: 24px !important; }

/* Pricing page */
.pricing-hero { padding: 56px 0 24px; text-align: center; }
.pricing-hero .subtitle { font-size: 19px; }
.tariffs-section { padding-top: 24px; }
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .tariffs { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(33,31,84,.06);
  border: 2px solid transparent;
}
.tariff-card.featured { border-color: var(--coral); box-shadow: 0 16px 48px rgba(255,90,95,.18); }
.tariff-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
}
.tariff-hours { font-size: 24px; margin-bottom: 4px; }
.tariff-rate { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.tariff-price { font-size: 40px; font-weight: 900; color: var(--ink); margin: 0 0 20px; }
.tariff-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; flex: 1 1 auto; }
.tariff-features li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink); font-size: 16px; }
.tariff-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--coral); font-weight: 900;
}
.tariff-btn { width: 100%; }
.tariffs-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

.review p { color: var(--ink); font-style: italic; }
.review-author { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* FAQ */
.faq .container { max-width: 760px; }
details { background: var(--card); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(33,31,84,.04); }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 12px 0 0; }
details a { color: var(--coral-dark); }

/* Hero extras */
.drop-free { color: var(--coral); font-weight: 700; font-size: 17px; margin: 16px 0 4px; }
.result-upsell { color: var(--muted); font-size: 15px; margin: 4px 0 16px; }
.result-upsell a { color: var(--coral-dark); }

/* Trust bar */
.trust-bar { background: var(--ink); padding: 18px 0; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.trust-inner span { color: #fff; font-weight: 500; font-size: 15px; opacity: .92; }

/* Section lead */
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: -16px auto 32px; }

/* Steps */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.step { text-align: center; padding: 8px; }
.step-num { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step p { color: var(--muted); }

/* Usecases */
.usecases .card h3 { color: var(--ink); }

/* Security */
.security { background: var(--ink); color: #fff; text-align: center; }
.security h2 { color: #fff; }
.security p { max-width: 640px; margin: 0 auto; opacity: .9; }

/* Example */
.example-doc { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 28px 32px; box-shadow: 0 8px 30px rgba(33,31,84,.06); }
.example-doc p { margin: 0 0 14px; line-height: 1.6; }
.example-doc p:last-child { margin-bottom: 0; }
.ex-ts { color: var(--muted); font-size: 13px; font-weight: 500; }
.ex-who { color: var(--coral); font-weight: 700; }

/* Pricing preview */
.pricing-preview { background: #F5F7FB; }
.price-mini { position: relative; text-align: center; }
.price-mini.featured-mini { border: 2px solid var(--coral); }
.price-mini-sum { font-size: 32px; font-weight: 900; color: var(--ink); margin: 8px 0 2px; }
.price-mini-rate { color: var(--muted); font-size: 14px; margin: 0; }
.pricing-preview-cta { text-align: center; margin-top: 32px; }

/* Прогресс — таймер под спиннером */
.busy-elapsed { color: var(--ink); font-weight: 700; margin: 4px 0 0; }
.busy-elapsed span { color: var(--coral); }

/* Пейвол в зоне загрузки */
.drop-paywall { text-align: center; }
.drop-paywall h3 { font-size: 24px; margin-bottom: 6px; }
.pw-lead { color: var(--muted); margin: 0 auto 20px; max-width: 460px; font-size: 15px; }
.pw-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 480px) { .pw-list { grid-template-columns: 1fr; } }
.pw-card { border: 2px solid rgba(33,31,84,.1); border-radius: 12px; padding: 16px 14px; min-width: 0; }
.pw-card.pw-featured { border-color: var(--coral); }
.pw-hours { font-weight: 900; font-size: 20px; }
.pw-rate { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.pw-btn { width: 100%; padding: 12px 10px; font-size: 15px; }
.pw-email-label { display: block; text-align: left; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pw-email-label span { opacity: .7; }
.pw-email { width: 100%; padding: 12px 14px; border: 2px solid rgba(33,31,84,.15); border-radius: var(--radius-btn); font-family: inherit; font-size: 16px; margin-bottom: 8px; }
.pw-email:focus { outline: none; border-color: var(--coral); }

/* Отзывы — сетка 2×2 */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Стартовый пакет на странице тарифов */
.starter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #F5F7FB; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.starter-text { min-width: 0; }
.starter-text strong { display: block; font-size: 18px; }
.starter-text span { color: var(--muted); font-size: 15px; }
.starter-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.starter-email { margin-bottom: 0; min-width: 220px; flex: 1 1 220px; }
.pay-error { color: var(--coral-dark); text-align: center; margin-top: 16px; font-weight: 500; }

/* Экран оплаты */
.paid-box { max-width: 560px; margin: 0 auto; text-align: center; }
.paid-title { font-size: 34px; margin-top: 8px; }
.paid-box .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-brand { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; opacity: .85; font-size: 15px; }
.site-footer a:hover { opacity: 1; }
@media (max-width: 560px) { .footer-inner { flex-direction: column; align-items: flex-start; } }
