/* ==========================================================================
   MT VPN — Официальный публичный стиль
   Спецификация: docs/branding/MT_BRAND_TECHNICAL_SPEC.md
   ========================================================================== */

:root {
  /* Фирменные токены MT */
  --mt-blue: #0066E6;
  --mt-blue-accent: #3DA0FF;
  --mt-blue-dark: #004fc2;
  --mt-sky: #8FC6FF;
  --mt-light: #E8F4FF;
  --mt-surface: #F8FBFF;
  --mt-navy: #0B3B7A;
  --mt-navy-deep: #07254E;
  --mt-white: #FFFFFF;
  
  /* Нейтральная палитра */
  --mt-text: #0B3B7A;
  --mt-text-dark: #07254E;
  --mt-text-muted: #536E92;
  --mt-border: #D8E7F8;
  --mt-border-light: #EBF3FC;
  
  /* Градиенты */
  --mt-gradient-primary: linear-gradient(90deg, #0066E6 0%, #3DA0FF 100%);
  --mt-gradient-hover: linear-gradient(90deg, #0052B8 0%, #2D8CE8 100%);
  --mt-gradient-hero: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  --mt-gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);

  /* Типографика */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Marck Script', cursive;

  /* Скругления */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Тени */
  --shadow-sm: 0 2px 6px rgba(11, 59, 122, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 102, 230, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 102, 230, 0.12);
  --shadow-cta: 0 8px 20px rgba(0, 102, 230, 0.28);

  /* Максимальная ширина */
  --container-max: 1140px;
}

/* Сброс и базовые настройки */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ui);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mt-text);
  background-color: var(--mt-surface);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Шапка (Navbar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mt-border-light);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 42px;
  width: 42px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mt-navy);
  line-height: 1.1;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mt-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mt-text);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--mt-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--mt-gradient-primary);
  color: var(--mt-white);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--mt-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 102, 230, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--mt-light);
  color: var(--mt-navy);
  border: 1px solid var(--mt-border);
}

.btn-secondary:hover {
  background: #DCEDFF;
  color: var(--mt-blue-dark);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

/* Мобильный бургер */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--mt-navy);
}

/* Секция Hero */
.hero-section {
  position: relative;
  background: var(--mt-gradient-hero);
  padding: 80px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--mt-border-light);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(61, 160, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 102, 230, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mt-light);
  border: 1px solid var(--mt-border);
  color: var(--mt-blue-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--mt-navy-deep);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--mt-text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}

/* Единственный акцент рукописным шрифтом по брендбуку */
.handwriting-accent {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--mt-blue);
  margin-bottom: 32px;
  display: block;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mt-text-muted);
  border-top: 1px solid var(--mt-border-light);
  padding-top: 20px;
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--mt-blue);
  flex-shrink: 0;
}

/* Визуальный элемент Hero (Интерфейсная карточка) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.device-card-mockup {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.device-card-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background: var(--mt-gradient-primary);
  border-radius: 4px 4px 0 0;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F9EE;
  color: #167941;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.mockup-hero-btn {
  width: 100%;
  height: 110px;
  background: var(--mt-surface);
  border: 2px dashed var(--mt-sky);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--mt-navy);
}

.mockup-switch-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mt-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.mockup-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--mt-border-light);
  padding-top: 16px;
  font-size: 0.85rem;
}

.mockup-info-row {
  display: flex;
  justify-content: space-between;
  color: var(--mt-text-muted);
}

.mockup-info-row strong {
  color: var(--mt-navy);
}

/* Секции контента */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: var(--mt-white);
  border-top: 1px solid var(--mt-border-light);
  border-bottom: 1px solid var(--mt-border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mt-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mt-navy-deep);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--mt-text-muted);
  line-height: 1.6;
}

/* Сетка преимуществ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mt-sky);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--mt-light);
  color: var(--mt-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mt-navy);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--mt-text-muted);
  line-height: 1.55;
}

/* Шаги подключения */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mt-blue);
  color: var(--mt-white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mt-navy);
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.95rem;
  color: var(--mt-text-muted);
  line-height: 1.6;
}

/* Тарифы */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}

.pricing-card.featured {
  border: 2px solid var(--mt-blue);
  box-shadow: var(--shadow-lg);
  background: var(--mt-gradient-card);
}

.featured-badge {
  position: absolute;
  top: -14px;
  right: 32px;
  background: var(--mt-gradient-primary);
  color: var(--mt-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mt-navy);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--mt-text-muted);
  margin-bottom: 24px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--mt-border-light);
  padding-bottom: 24px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--mt-navy-deep);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mt-text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--mt-navy);
}

.pricing-feature svg {
  color: var(--mt-blue);
  flex-shrink: 0;
}

.pricing-notice {
  text-align: center;
  font-size: 0.85rem;
  color: var(--mt-text-muted);
  margin-top: 24px;
}

/* Платформы */
.platforms-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--mt-navy);
  box-shadow: var(--shadow-sm);
}

.platform-pill svg {
  color: var(--mt-blue);
}

.platform-badge {
  font-size: 0.7rem;
  background: var(--mt-light);
  color: var(--mt-blue);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* CTA Баннер перед футером */
.cta-banner {
  background: var(--mt-gradient-primary);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: var(--mt-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.cta-banner-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: #E2F0FF;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-banner .btn {
  background: var(--mt-white);
  color: var(--mt-blue);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 34px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn:hover {
  background: #F4F9FF;
  transform: translateY(-2px);
}

/* Блок верификации и поддержки (Platega Ready) */
.compliance-box {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.compliance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compliance-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mt-navy);
}

.compliance-desc {
  font-size: 0.85rem;
  color: var(--mt-text-muted);
}

.verification-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mt-white);
  border: 1px dashed var(--mt-sky);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--mt-blue-dark);
  font-weight: 700;
}

/* Подвал (Footer) */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--mt-border-light);
  padding: 50px 0 30px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-text {
  font-size: 0.88rem;
  color: var(--mt-text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mt-navy);
  margin-bottom: 14px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--mt-text-muted);
}

.footer-link:hover {
  color: var(--mt-blue);
}

.footer-bottom {
  border-top: 1px solid var(--mt-border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--mt-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* Документные страницы (Privacy / Terms) */
.legal-container {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 40px;
  background: var(--mt-white);
  border: 1px solid var(--mt-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--mt-border-light);
  padding-bottom: 24px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mt-navy-deep);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--mt-text-muted);
}

.legal-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mt-navy);
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--mt-navy-deep);
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul {
  margin: 0 0 20px 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mt-blue);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

@media (max-width: 768px) {
  .navbar .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--mt-white);
    border-bottom: 1px solid var(--mt-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .navbar .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner-title {
    font-size: 1.8rem;
  }

  .legal-container {
    padding: 24px;
    margin: 20px auto 40px;
  }
}
