* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --text: #111827;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --gradient: linear-gradient(135deg, #4F46E5, #7C3AED 50%, #CB11AB);
  --radius: 14px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px -10px rgba(79,70,229,.15);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--primary); }
.btn-sm {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--gradient); color: #fff !important;
}
.btn-sm:hover { color: #fff !important; transform: translateY(-1px); }
.btn-sm.ghost {
  background: transparent; color: var(--text) !important; border: 1.5px solid var(--border);
}
.btn-sm.ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

/* Flash */
.flash {
  padding: 12px 18px; border-radius: 10px; margin: 16px 0; font-size: 14px;
  border-left: 4px solid var(--info); background: #EFF6FF; color: #1E40AF;
}
.flash-success { border-color: var(--success); background: #ECFDF5; color: #065F46; }
.flash-danger  { border-color: var(--danger);  background: #FEF2F2; color: #991B1B; }
.flash-warning { border-color: var(--warning); background: #FFFBEB; color: #92400E; }
.flash-info    { border-color: var(--info);    background: #EFF6FF; color: #1E40AF; }

/* Footer */
.site-footer { background: #0F172A; color: #94A3B8; padding: 50px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s; font-family: inherit;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 25px -5px rgba(79,70,229,.4);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(79,70,229,.5); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

/* Forms */
.form-card {
  max-width: 480px; margin: 50px auto;
  padding: 40px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 26px; margin-bottom: 8px; font-weight: 800; }
.form-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-group .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 12px;
}
.checkbox input { margin-top: 3px; flex-shrink: 0; }
.checkbox a { font-weight: 500; }

.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-footer {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px 18px; margin: 16px auto; }

  /* Компактная шапка */
  .header-inner { padding: 8px 0; gap: 8px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
  .nav { gap: 8px; }
  .nav a:not(.btn-sm) { display: none; }
  .btn-sm { padding: 7px 14px; font-size: 13px; }

  /* Меньше отступы на страницах */
  .container { padding-left: 16px; padding-right: 16px; }
  body { font-size: 15px; }
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
}

@media (max-width: 400px) {
  .logo { font-size: 13px; gap: 6px; }
  .logo-mark { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .header-inner { padding: 6px 0; }
}

/* ===== Тарифы ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

/* Мобильный: одна колонка, компактно */
@media (max-width: 700px) {
  #pricing { padding: 32px 0 !important; }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 100% !important;
  }
  .pricing-card {
    padding: 20px 18px !important;
  }
  #pricing h3 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }
  #pricing h2 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }
  #pricing > .container > div:first-child {
    margin-bottom: 24px !important;
  }
  /* Ценник "500 ₽" */
  #pricing div[style*="font-size:38px"] {
    font-size: 26px !important;
  }
  #pricing div[style*="font-size:15px"] {
    font-size: 13px !important;
  }
  /* Пункты списка */
  #pricing li {
    padding: 7px 0 !important;
    font-size: 13px !important;
  }
  /* Подпись под ценником */
  #pricing p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  /* Кнопки в карточках */
  #pricing .btn {
    width: 100% !important;
    justify-content: center;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* ============ ФИНАЛЬНЫЕ РАЗМЕРЫ ШАПКИ (приоритет) ============ */

/* Мобильный: лого крупное, кнопка заметная, сдвинута левее */
@media (max-width: 700px) {
  .header-inner {
    padding: 12px 0 !important;
    gap: 10px !important;
  }
  .logo {
    font-size: 19px !important;
    gap: 10px !important;
  }
  .logo-mark {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
  }
  .nav {
    gap: 10px !important;
    margin-right: 10px !important;   /* кнопка чуть отходит от края */
  }
  .nav a:not(.btn-sm) { display: none; }
  .btn-sm {
    padding: 11px 22px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
}

/* Очень узкие экраны — просто чуть компактнее, но название сохраняется */
@media (max-width: 400px) {
  .header-inner { padding: 10px 0 !important; }
  .logo { font-size: 17px !important; gap: 8px !important; }
  .logo-mark {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 9px !important;
  }
  .btn-sm { padding: 10px 18px !important; font-size: 14px !important; }
  .nav { margin-right: 8px !important; }
}

/* На широком экране — тоже возвращаем красивое */
@media (min-width: 701px) {
  .logo { font-size: 18px; }
  .logo-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .btn-sm { padding: 9px 20px; font-size: 14px; font-weight: 600; }
}

/* ============ СДВИГ ЛОГО ВПРАВО ============ */
.logo {
  margin-left: 8px;
}
@media (max-width: 700px) {
  .logo { margin-left: 10px; }
}
@media (max-width: 400px) {
  .logo { margin-left: 8px; }
}

/* ============ Бургер и мобильное меню ============ */

.burger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--text);
  font-family: inherit;
  border-radius: 8px;
  transition: background .15s;
}
.burger-btn:hover { background: var(--bg-alt); }
.burger-btn.is-open { color: var(--primary); }

.site-header {
  position: relative;  /* для позиционирования .mobile-menu */
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 9997;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-menu.is-open {
  max-height: 600px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-alt); color: var(--primary); }

.notif-bell-mobile {
  background: #10B981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  margin-left: 8px;
}

/* Кнопка-бургер видна только на мобильном */
@media (max-width: 700px) {
  .burger-btn { display: inline-block; }
  .nav a:not(.btn-sm) { display: none; }
}

/* На десктопе бургер скрыт всегда */
@media (min-width: 701px) {
  .burger-btn { display: none !important; }
  /* На desktop — меню скрываем без display, иначе оно залипает */
  .mobile-menu { max-height: 0 !important; overflow: hidden; }
}
