/* Main Stylesheet - загружается асинхронно */

/* Transitions & Animations */
* {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2563eb;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #374151;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem;
}

.mobile-menu li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: #2563eb;
}

.breadcrumbs span {
  color: #9ca3af;
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: #374151;
  font-weight: 500;
}

/* CTA Blocks */
.cta-block {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cta-block h2,
.cta-block h3 {
  color: white;
  margin-bottom: 1rem;
}

.cta-block p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-btn {
  background: white;
  color: #2563eb;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Premium Service Cards */
.service-card-premium {
  background: linear-gradient(to bottom, #ffffff, #fafafa);
  border: 2px solid transparent;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.service-card-premium::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe, #fce7f3, #fef3c7);
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card-premium:hover::before {
  opacity: 1;
}

.service-card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.service-card-featured {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 30%, #dbeafe 70%, #ffffff 100%);
  border: 3px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.service-card-featured::before {
  background: linear-gradient(135deg, #fbbf24, #3b82f6, #8b5cf6);
  opacity: 0.15;
}

.service-card-featured:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25), 0 0 0 2px #3b82f6;
}

.service-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.service-card-premium:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.service-price {
  margin: 1rem 0;
  padding: 0.5rem 0;
}

.popular-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #ea580c);
  color: white;
  padding: 10px 28px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
  white-space: nowrap;
  z-index: 10;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.8);
  }
}

/* Comparison Block - Modern Minimal */
.comparison-wrapper {
  position: relative;
}

.comparison-card {
  background: white;
  padding: 3rem 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.comparison-card-left {
  background: linear-gradient(to bottom, #fafafa, #ffffff);
  border-right: 1px solid #e5e7eb;
}

.comparison-card-right {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.03);
}

.comparison-card-right:hover {
  box-shadow: -8px 0 32px rgba(59, 130, 246, 0.08);
}

.comparison-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.comparison-label-left {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.comparison-label-right {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.comparison-body-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex-grow: 1;
}

.comparison-item-modern {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  padding-left: 0.5rem;
}

.comparison-marker {
  min-width: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.comparison-marker-negative {
  background: #dc2626;
  box-shadow: 0 0 0 3px #fee2e2;
}

.comparison-marker-positive {
  background: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.comparison-cta-modern {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}

@media (max-width: 768px) {
  .comparison-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }
  
  .comparison-card-left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .comparison-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Process Steps */
.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.step-1 {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.step-2 {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.step-3 {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.step-4 {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.step-card h3 {
  color: #2563eb;
  margin-bottom: 0.75rem;
}

/* Reviews */
.review-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.review-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  display: block;
  border: 3px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.review-card:hover .review-avatar-img {
  transform: scale(1.05);
  border-color: #3b82f6;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.review-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #d1fae5;
  color: #065f46;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Price Table */
.price-table {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow-x: auto;
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  background: #f9fafb;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.price-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-badge.popular {
  background: #dbeafe;
  color: #1e40af;
}

.price-badge.premium {
  background: #fee2e2;
  color: #991b1b;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dc2626;
}

.form-success {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* FAQ */
.faq-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-item[open] {
  border-color: #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.faq-summary {
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.5rem;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}

.faq-question {
  flex-grow: 1;
  font-size: 1.05rem;
}

.faq-toggle {
  font-size: 2rem;
  color: #2563eb;
  font-weight: 300;
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.faq-item[open] .faq-toggle {
  transform: rotate(90deg);
  color: #1d4ed8;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  animation: fadeIn 0.3s ease;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Trust Signals */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f0f9ff;
  border-radius: 1rem;
  margin: 1rem 0;
}

.trust-icon {
  font-size: 2rem;
  color: #2563eb;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  max-width: 100%;
  height: 400px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.125rem;
  margin: 2rem 0;
  box-sizing: border-box;
}

/* Map Wrapper */
.map-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Legal Content Styles */
.legal-content {
  color: #374151;
  line-height: 1.75;
  font-size: 1rem;
}

.legal-content h2 {
  color: #1f2937;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.legal-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.legal-content a {
  color: #2563eb;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  font-weight: 600;
  color: #1f2937;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Grid */
@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ensure all elements stay within viewport */
img, video, iframe, table {
  max-width: 100%;
  height: auto;
}

section, header, footer, main {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .cta-block {
    padding: 2rem 1.5rem;
  }
  
  .price-table {
    font-size: 0.875rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.py-8 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hidden {
  display: none;
}

