/* =================================================================
   1. CSS RESET & VARIABLES (Синяя палитра вместо желтой)
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #f0f4f8;       
  --bg-surface: #ffffff;       
  --bg-surface-alt: #e2e8f0;   
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  
  --primary: #1d4ed8;       
  --primary-dark: #0f172a;  
  --accent: #3b82f6;        /* Заменили желтый на красивый современный синий */
  --accent-hover: #2563eb;  
  
  --border-color: #cbd5e1;
  --border-light: #cbd5e1;
  
  --focus-ring: #3b82f6;
  
  --container-width: 1180px;
  --header-height: 72px;
  
  --transition-fast: 0.2s ease;
}

html {
  font-size: 112.5%; /* Увеличенный размер шрифта */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  color: var(--text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* =================================================================
   2. ACCESSIBILITY & UTILITIES
   =================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* =================================================================
   3. TYPOGRAPHY & BUTTONS
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  max-width: 75ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(29, 78, 216, 0.4);
}

/* =================================================================
   4. HEADER & NAVIGATION
   =================================================================== */
.site-header {
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: #ffffff;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  padding: 8px 0;
  display: inline-block;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  min-width: 240px;
  padding: 8px 0;
  display: none;
  z-index: 60;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #f1f5f9;
  font-weight: 500;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: #334155;
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =================================================================
   5. HERO SECTION
   =================================================================== */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-bottom: 4px solid var(--accent);
}

.hero h1, 
.hero h2, 
.hero h3 {
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =================================================================
   6. CARDS, SERVICES & TRUST BLOCKS
   =================================================================== */
.section {
  padding: 4rem 0;
  background-color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--primary-dark);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.15);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.trust-block {
  background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
  border-left: 5px solid var(--primary);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* =================================================================
   7. STEPS & CHECK LISTS
   =================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: #dbeafe;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

/* =================================================================
   8. PRICES TABLE & FAQ
   =================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.price-table th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.price-table tr:hover td {
  background-color: #f1f5f9;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  width: 28px;
  height: 28px;
  background-color: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* =================================================================
   9. BREADCRUMBS & FOOTER
   =================================================================== */
.breadcrumbs {
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-light);
}

.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* =================================================================
   10. 404 PAGE STYLES
   =================================================================== */
.error-section {
  text-align: center;
  padding: 6rem 0;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =================================================================
   11. MEDIA QUERIES & REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Настройки изображений */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
}

.hero-media img {
  width: 100% !important;
  height: auto !important;
  max-height: 750px !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  display: block !important;
  margin: 0 auto !important;
}

.trust-block img {
  max-width: 380px !important;
  width: 100% !important;
  height: auto !important;
  max-height: 280px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  display: block !important;
  margin: 0 auto !important;
}

.steps-grid img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}