:root {
  --color-bg: #0f1419;
  --color-bg-alt: #1a2332;
  --color-surface: #ffffff;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 20, 25, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
}

.logo__icon {
  font-size: 1.5rem;
}

.logo strong {
  color: var(--color-primary);
  font-weight: 700;
}

.header__phone {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #fef9ee 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-light);
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--color-bg);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.offer-card {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.offer-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.offer-card__value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-bg);
  margin-bottom: 12px;
}

.offer-card__value span {
  color: #dc2626;
}

.offer-card__price {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.offer-card__price strong {
  color: var(--color-primary);
  font-size: 1.125rem;
}

.offer-card__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.stat-card--accent {
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  border: none;
  color: #fff;
}

.stat-card--accent .stat-card__label {
  color: rgba(255, 255, 255, 0.85);
}

.stat-card__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--color-bg);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-subtitle--left {
  margin: 0 0 32px;
  text-align: left;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-bg);
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.services__cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.services__cta p {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* Trust */
.trust {
  padding: 80px 0;
  background: var(--color-bg);
  color: #fff;
}

.trust__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trust .section-title {
  color: #fff;
}

.trust .section-subtitle {
  color: var(--color-text-light);
}

.trust-list {
  list-style: none;
  margin-bottom: 36px;
}

.trust-list__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-list__item:last-child {
  border-bottom: none;
}

.trust-list__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.trust-list__item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-list__item p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.dashboard-mock {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.dashboard-mock__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-mock__dot:first-child { background: #ef4444; }
.dashboard-mock__dot:nth-child(2) { background: #f59e0b; }
.dashboard-mock__dot:nth-child(3) { background: #10b981; }

.dashboard-mock__title {
  margin-left: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.dashboard-mock__body {
  padding: 20px;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.dashboard-row span {
  color: var(--color-text-light);
}

.dashboard-row strong {
  color: #fff;
  font-weight: 600;
}

.dashboard-row--warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dashboard-row--warning span,
.dashboard-row--warning strong {
  color: #fbbf24;
}

/* Footer */
.footer {
  padding: 32px 0;
  background: #0a0e13;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.logo--footer {
  color: #fff;
}

.logo--footer strong {
  color: #60a5fa;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s;
}

.modal__close:hover {
  background: #e2e8f0;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-bg);
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__input::placeholder {
  color: #cbd5e1;
}

.form__privacy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}

.modal__success {
  text-align: center;
  padding: 20px 0;
}

.modal__success[hidden] {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #d1fae5;
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.modal__success h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-bg);
}

.modal__success p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form[hidden] {
  display: none;
}

.form__error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}

.form__error.is-visible {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner,
  .trust__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 60px;
  }

  .logo {
    font-size: 0.95rem;
    gap: 6px;
    min-width: 0;
  }

  .logo__icon {
    font-size: 1.25rem;
  }

  .header__phone {
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
  }

  .offer-card {
    padding: 20px;
  }

  .services,
  .trust {
    padding: 60px 0;
  }

  .modal__dialog {
    padding: 28px 20px;
  }
}
