html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 400;
}

.title {
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 16px 0;
}

.muted {
  color: var(--muted);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand-2);
  color: #fff;
}

.btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--bg-soft);
  border-color: var(--brand);
}

/* Header email button */
.header .btn.ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 13px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.header .btn.ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.header .btn.ghost:hover::before {
  left: 100%;
}

.header .btn.ghost:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.15) 100%);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  color: #fbbf24;
}

.btn.wa-pill {
  background: #25D366;
  color: #fff;
}

.btn.wa-pill:hover {
  background: #128C7E;
  transform: translateY(-1px);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.98) 0%, rgba(139, 92, 246, 0.95) 50%, rgba(167, 139, 250, 0.98) 100%);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.2);
}

.top-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.icon-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.4);
}

.icon-link i {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Специальные цвета для социальных иконок */
.icon-link.whatsapp:hover {
  background: rgba(37, 211, 102, 0.3);
  border-color: rgba(37, 211, 102, 0.6);
}

.icon-link.phone:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
}

.icon-link.instagram:hover {
  background: linear-gradient(45deg, rgba(225, 48, 108, 0.3), rgba(255, 214, 0, 0.3));
  border-color: rgba(225, 48, 108, 0.6);
}

/* Online Status */
.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(34, 197, 94, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* CTA Button */
.top-cta-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
}

.top-cta-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  border-color: rgba(245, 158, 11, 0.6);
}

.top-language {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  min-height: 36px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.4);
}

.lang-btn.active {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Header styles */
.header {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 25%, #a855f7 50%, #c084fc 75%, #d8b4fe 100%);
  color: #fff;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 64px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 30px;
  height: 90px;
}

/* Language switcher */
.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-switcher button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.language-switcher button:hover {
  background: rgba(255,255,255,0.25);
}

.language-switcher button.active {
  background: #a78bfa;
  color: #fff;
}

.language-switcher button.active:hover {
  background: #8b5cf6;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-left: -15px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.logo img {
  height: 65px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}

/* Top icons */
.top-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: var(--transition);
  color: #fff;
}

.icon-link:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,.25);
}

.icon-link i {
  font-size: 18px;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language switcher */
.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-switcher button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.language-switcher button:hover {
  background: rgba(255,255,255,0.25);
}

.language-switcher button.active {
  background: #a78bfa;
  color: #fff;
}

.language-switcher button.active:hover {
  background: #8b5cf6;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 25px;
  margin-left: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 12px 18px;
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.6s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  color: #fbbf24;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.2);
}

.nav-links a.active {
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  backdrop-filter: blur(15px);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: -10px;
  gap: 12px;
}

/* Services dropdown */
.services-dropdown {
  position: relative;
}

.services-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 250px;
  display: none;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  margin: 0 8px;
  text-transform: none;
  letter-spacing: normal;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--brand);
}

.dropdown-menu i {
  width: 20px;
  text-align: center;
  color: var(--brand);
}

/* Hero section */
.hero {
  position: relative;
  margin-top: 154px;
  text-align: center;
  padding: 48px 16px;
  background: linear-gradient(180deg, #f6f7ff, var(--bg));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero video {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55));
}

.hero .content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 15vh;
  width: min(100%, 1200px);
  padding: 0 30px;
  color: #fff;
  text-align: center;
  z-index: 2;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.85) 0%, rgba(139, 92, 246, 0.75) 50%, rgba(167, 139, 250, 0.85) 100%);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 50px 40px;
  box-shadow: 0 25px 50px rgba(109, 40, 217, 0.3);
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.hero .content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 900px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.hero .lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: #f8fafc;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-cta .btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.hero-cta .btn.wa-pill {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255,255,255,0.2);
}

.hero-cta .btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 2px solid rgba(255,255,255,0.2);
}

/* Footer */
.footer {
  background: var(--bg-soft);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
