:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #06d6a0;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --border-radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
  position: relative;
}

body:before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(6, 214, 160, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 30%);
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.05;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; left: -200px; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); bottom: 20%; right: -150px; }
.shape-3 { width: 200px; height: 200px; background: var(--accent); top: 40%; left: 70%; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition);
}
header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li { margin-left: 2.5rem; position: relative; }

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover:after { width: 100%; }

.nav-cta { margin-left: 2rem; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  z-index: 1001;
}

/* Hero */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 600px; }

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero h1 span:after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  z-index: 1;
}

.floating-card:nth-child(1) {
  top: 10%;
  left: 0;
  width: 220px;
  transform: rotate(-5deg);
  z-index: 3;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
}

.floating-card:nth-child(2) {
  top: 40%;
  right: 5%;
  width: 240px;
  transform: rotate(3deg);
  z-index: 2;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.05), rgba(6, 214, 160, 0.1));
}

.floating-card:nth-child(3) {
  bottom: 15%;
  left: 15%;
  width: 200px;
  transform: rotate(-2deg);
  z-index: 1;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.1));
}

.floating-card:hover {
  transform: translateY(-10px) rotate(0deg);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: inline-block;
}

.floating-card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.floating-card ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }

.floating-card li {
  padding: 3px 0;
  color: var(--gray);
  position: relative;
  padding-left: 20px;
}

.floating-card li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn:hover:before { left: 100%; }

.btn-secondary {
  background: linear-gradient(to right, var(--secondary), #05c592);
  box-shadow: 0 10px 20px rgba(6, 214, 160, 0.2);
}

.btn-secondary:hover { box-shadow: 0 15px 30px rgba(6, 214, 160, 0.3); }

.btn-plan { width: 100%; }

/* Sections */
.section { padding: 100px 0; }

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 5px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Services mosaic */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 150px);
  gap: 25px;
  margin-bottom: 80px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover:before { width: 100%; opacity: 0.05; }

.service-card-1 { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.service-card-2 { grid-column: 5 / span 4; grid-row: 2 / span 2; }
.service-card-3 { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.service-card-4 { grid-column: 3 / span 4; grid-row: 3 / span 2; }
.service-card-5 { grid-column: 7 / span 4; grid-row: 3 / span 2; }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  display: inline-block;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--gray); margin-bottom: 25px; }

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.price:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 3px;
}

.price-note { font-size: 0.95rem; color: var(--gray); }

/* Pricing */
.pricing-staggered {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-row { display: flex; align-items: center; gap: 40px; }
.pricing-row:nth-child(even) { flex-direction: row-reverse; }

.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 45px 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex: 1;
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }

.pricing-card h3 { font-size: 1.8rem; margin-bottom: 15px; }

.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.pricing-price:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.pricing-period { color: var(--gray); margin-bottom: 30px; font-size: 1rem; }

.pricing-features { list-style: none; margin-bottom: 35px; }

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
  padding-left: 35px;
}

.pricing-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-badge {
  position: absolute;
  top: 25px;
  right: -35px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  color: white;
  padding: 8px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(6, 214, 160, 0.3);
}

.pricing-visual {
  flex: 0 0 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 214, 160, 0.1));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(6, 214, 160, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.testimonial-sidebar {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}

.testimonial-sidebar h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--primary);
}

.author-preview {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.author-preview.active,
.author-preview:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.author-info h4 { margin-bottom: 5px; font-size: 1.1rem; }
.author-info p { color: var(--gray); margin-bottom: 0; font-size: 0.9rem; }

.testimonial-main { position: relative; height: 400px; }

.testimonial-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(30px);
}

.testimonial-slide.active { opacity: 1; transform: translateY(0); }

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: var(--shadow);
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 30px;
  line-height: 1.8;
  position: relative;
}

.testimonial-text:before {
  content: '"';
  position: absolute;
  top: -30px;
  left: -20px;
  font-size: 6rem;
  color: rgba(99, 102, 241, 0.1);
  font-family: Georgia, serif;
}

.rating { color: var(--accent); font-size: 1.2rem; margin-bottom: 25px; }

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-form-container:before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0 0 0 100px;
  opacity: 0.05;
}

.contact-form-container h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.contact-form-container h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.form-group { margin-bottom: 25px; }

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control { min-height: 150px; resize: vertical; }

.contact-info-container { display: grid; grid-template-columns: 1fr; gap: 30px; }

.contact-info-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 5px solid var(--primary);
}

.contact-info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.contact-info-card h4 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-info-card i {
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-note { font-size: 0.9rem; color: var(--gray); margin-top: 5px; margin-bottom: 0; }

.business-hours {
  background: white;
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.business-hours h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.business-hours h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 15px; }

.footer-links a {
  color: #b0b7c3;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover { color: white; transform: translateX(5px); }

.footer-about p { color: #b0b7c3; margin-bottom: 25px; line-height: 1.7; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }

.social-links a {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover { background: var(--primary); transform: translateY(-5px); }

.footer-bottom {
  background: transparent;              /* убираем тёмный прямоугольник */
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* аккуратная разделительная линия */
}

.policy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
  gap: 20px;
}

.policy-links a {
  color: #b0b7c3;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 6px;
}

.policy-links a:hover { color: white; background: rgba(255, 255, 255, 0.05); }

.footer-company-info {
  color: #b0b7c3;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.policy-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.policy-content.active {
  display: block;
  max-height: 1000px;
  margin-top: 30px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
}

.policy-content h4 {
  color: white;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.policy-content p, .policy-content ul {
  color: #b0b7c3;
  margin-bottom: 15px;
  line-height: 1.7;
}

.policy-content ul { padding-left: 20px; }

.policy-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.policy-content li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
  .services-mosaic { grid-template-rows: repeat(4, 180px); }
  .testimonial-container { grid-template-columns: 250px 1fr; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 3rem; }

  .services-mosaic { display: flex; flex-direction: column; gap: 30px; }
  .service-card { width: 100%; }

  .pricing-row,
  .pricing-row:nth-child(even) { flex-direction: column; }

  .pricing-visual { flex: 0 0 250px; width: 100%; }

  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-10px); }

  .testimonial-container { grid-template-columns: 1fr; gap: 40px; }

  .testimonial-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    height: auto;
  }

  .author-preview { flex: 0 0 200px; }

  .contact-container { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.active { right: 0; }

  .nav-links li { margin: 0 0 25px 0; width: 100%; }
  .nav-cta { margin: 20px 0 0 0; }

  .hero { padding: 150px 0 80px; }
  .hero h1 { font-size: 2.5rem; }

  .section { padding: 80px 0; }
  .section-title h2 { font-size: 2.2rem; }

  .floating-card {
    position: relative;
    width: 100% !important;
    transform: rotate(0) !important;
    margin-bottom: 20px;
  }

  .hero-visual { height: auto; flex-direction: column; }

  .contact-form-container, .contact-info-card, .business-hours { padding: 30px 25px; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }

  .section-title h2 { font-size: 2rem; }

  .btn { padding: 14px 28px; width: 100%; }

  .testimonial-card { padding: 30px 25px; height: auto; }
}

/* =========================================================
   VISUAL TUNING: Less white, more background visibility
   Paste at the end of styles.css
   ========================================================= */

/* 1) Global palette shift (soft dark canvas) */
:root{
  /* Keep your brand accents, but improve contrast on light surfaces */
  --dark: #0b1220;
  --dark-light: #111a2e;

  /* New canvas colors */
  --canvas: #0b1220;
  --canvas-2: #0e1730;

  /* Card surfaces */
  --surface: rgba(255,255,255,.78);
  --surface-strong: rgba(255,255,255,.88);
  --stroke: rgba(255,255,255,.14);
  --stroke-2: rgba(226, 232, 240, .28);

  /* Shadows tuned for darker canvas */
  --shadow: 0 14px 35px -18px rgba(0,0,0,.45);
  --shadow-hover: 0 28px 70px -28px rgba(0,0,0,.60);
}

/* 2) Darker background so shapes become visible */
body{
  color: rgba(255,255,255,.92);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(99,102,241,.18), transparent 60%),
              radial-gradient(900px 600px at 85% 85%, rgba(6,214,160,.16), transparent 62%),
              radial-gradient(700px 450px at 55% 55%, rgba(245,158,11,.12), transparent 60%),
              linear-gradient(180deg, var(--canvas) 0%, var(--canvas-2) 100%);
}

/* your existing body:before becomes stronger + “texture-like” */
body:before{
  opacity: 1;
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.14) 0%, transparent 22%),
    radial-gradient(circle at 90% 80%, rgba(6, 214, 160, 0.12) 0%, transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.10) 0%, transparent 34%),
    radial-gradient(circle at 35% 70%, rgba(255,255,255,0.06) 0%, transparent 30%);
  pointer-events: none;
}

/* Subtle grid for depth (optional but looks “premium”) */
body:after{
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: .08;
  z-index: -1;
  pointer-events: none;
}

/* 3) Make headings readable on dark canvas */
h1,h2,h3,h4,h5{
  color: rgba(255,255,255,.96);
}
p, .section-title p{
  color: rgba(255,255,255,.68);
}

/* 4) Header: glass + readable links */
header{
  background-color: rgba(11,18,32,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
header.scrolled{
  background-color: rgba(11,18,32,.72);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.nav-links a{
  color: rgba(255,255,255,.88);
}
.nav-links a:hover{
  color: rgba(255,255,255,.98);
}

/* 5) Convert “white cards” to frosted glass */
.service-card,
.pricing-card,
.testimonial-sidebar,
.testimonial-card,
.contact-form-container,
.contact-info-card,
.business-hours{
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: rgba(11,18,32,.92); /* keep text dark on surface */
}

/* Card inner text colors */
.service-card p,
.price-note,
.pricing-period,
.author-info p,
.hours-list li,
.contact-note{
  color: rgba(11,18,32,.70);
}

/* Hover state more “3D” */
.service-card:hover,
.pricing-card:hover,
.contact-info-card:hover{
  box-shadow: var(--shadow-hover);
}

/* 6) Make service/pricing visuals match dark background better */
.pricing-visual{
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

/* 7) Floating cards: still “cards”, but not pure white */
.floating-card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Keep hero paragraph readable on dark background */
.hero p{
  color: rgba(255,255,255,.72);
}

/* 8) Shapes become more visible */
.shape{
  opacity: .18;
  filter: blur(1px);
}

/* 9) Mobile menu panel: dark glass */
@media (max-width: 768px){
  .nav-links{
    background: rgba(11,18,32,.86);
    border-left: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
  }
}

/* 10) Section backgrounds: reduce “flat white” impression */
.testimonials{
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
}

/* ===========================
   HERO UNIQUE VISUAL: ORBIT HUB
   =========================== */

.orbit-stage{
  position: relative;
  width: 520px;
  height: 520px;
  margin-left: auto;
  border-radius: 32px;
  isolation: isolate;
}

/* background glow blobs */
.orbit-stage .blob{
  position:absolute;
  inset:auto;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: .45;
  z-index: 0;
}
.orbit-stage .b1{ left: -80px; top: -40px; background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.55), transparent 60%); }
.orbit-stage .b2{ right: -90px; bottom: -60px; background: radial-gradient(circle at 30% 30%, rgba(6,214,160,.45), transparent 60%); }
.orbit-stage .b3{ left: 40px; bottom: -120px; background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.35), transparent 60%); }

.hub{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 190px;
  height: 190px;
  border-radius: 999px;
  z-index: 3;
}

.hub-core{
  position:absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), rgba(255,255,255,.06) 35%, rgba(0,0,0,.12) 70%);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.hub-ring{
  position:absolute;
  inset: -22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: .9;
}

.hub-ring-1{
  inset:-18px;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(99,102,241,.22) 70%, transparent 85%);
  animation: hubSpin 16s linear infinite;
}
.hub-ring-2{
  inset:-34px;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(6,214,160,.18) 72%, transparent 86%);
  animation: hubSpin 22s linear infinite reverse;
}
.hub-ring-3{
  inset:-52px;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(245,158,11,.14) 74%, transparent 88%);
  animation: hubSpin 30s linear infinite;
}

@keyframes hubSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.hub-label{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  text-align:center;
  z-index: 4;
  width: 210px;
  pointer-events:none;
}
.hub-title{
  display:block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
}
.hub-sub{
  display:block;
  margin-top: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.62);
}

/* Orbits */
.orbit{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.12);
  z-index: 2;
}
.orbit-1{ width: 300px; height: 300px; animation: orbitSpin 18s linear infinite; }
.orbit-2{ width: 420px; height: 420px; animation: orbitSpin 28s linear infinite reverse; }
.orbit-3{ width: 520px; height: 520px; animation: orbitSpin 36s linear infinite; }

@keyframes orbitSpin{
  from{ transform: translate(-50%,-50%) rotate(0deg); }
  to{ transform: translate(-50%,-50%) rotate(360deg); }
}

/* Nodes */
.node{
  position:absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow:
    0 0 0 6px rgba(99,102,241,.10),
    0 0 18px rgba(99,102,241,.35);
  opacity: .95;
}
.node::after{
  content: attr(data-tag);
  position:absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  background: rgba(10,14,22,.35);
  border: 1px solid rgba(255,255,255,.10);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.node:hover::after{
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Node placement (unique constellation-like layout) */
.orbit-1 .n1{ top: 20px; left: 50%; transform: translateX(-50%); }
.orbit-1 .n2{ top: 58%; left: 18px; }
.orbit-1 .n3{ top: 72%; right: 22px; }

.orbit-2 .n4{ top: 14px; right: 90px; }
.orbit-2 .n5{ top: 38%; left: 28px; }
.orbit-2 .n6{ bottom: 40px; left: 45%; }
.orbit-2 .n7{ top: 66%; right: 24px; }

.orbit-3 .n8{ top: 80px; left: 28px; }
.orbit-3 .n9{ top: 48%; right: 10px; }
.orbit-3 .n10{ bottom: 70px; left: 80px; }

/* “Signal” lines */
.signal{
  position:absolute;
  inset: 0;
  z-index: 1;
  opacity: .55;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}
.signal path{
  stroke: rgba(255,255,255,.16);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: dashMove 8s linear infinite;
}
@keyframes dashMove{
  from{ stroke-dashoffset: 0; }
  to{ stroke-dashoffset: -200; }
}

/* Make it responsive */
@media (max-width: 992px){
  .orbit-stage{
    width: 100%;
    max-width: 520px;
    height: 520px;
    margin: 0 auto;
  }
}
@media (max-width: 576px){
  .orbit-stage{ height: 460px; }
  .orbit-3{ width: 460px; height: 460px; }
  .orbit-2{ width: 360px; height: 360px; }
  .orbit-1{ width: 260px; height: 260px; }
}

/* =========================================================
   SERVICES PLANS: desktop-safe alternating rows (NO absolute)
   ========================================================= */

.services-plans-stage{
  width: 100%;
  max-width: 1100px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* One row = plan + tile */
.svc-row{
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 22px;
  align-items: center;
}

/* Right rows: tile left, plan right */
.svc-row.is-right{
  grid-template-columns: 96px 1fr;
}
.svc-row.is-right .svc-tile{ order: 0; }
.svc-row.is-right .svc-plan{ order: 1; }

/* Plan card */
.svc-plan{
  position: relative;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  padding: 26px 26px 22px;
  color: #0b1220;
}

/* Typography */
.svc-title{
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: rgba(11,18,32,.75);
  margin-bottom: 6px;
}

.svc-price{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: -0.8px;
  line-height: 1.0;
  margin-bottom: 6px;
}

.svc-sub{
  font-size: 12px;
  color: rgba(11,18,32,.55);
  margin-bottom: 14px;
}

/* List */
.svc-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(11,18,32,.08);
  border-bottom: 1px solid rgba(11,18,32,.08);
}

.svc-list li{
  padding: 9px 0;
  border-top: 1px solid rgba(11,18,32,.08);
  font-size: 12px;
  color: rgba(11,18,32,.70);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.svc-list li:first-child{ border-top: none; }

.svc-list li::before{
  content: "✓";
  font-weight: 900;
  color: #06d6a0;
  transform: translateY(-1px);
}

/* Buttons */
.svc-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  height: 38px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(79,70,229,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.svc-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(79,70,229,.34);
}

.svc-btn-green{
  background: linear-gradient(to right, #06d6a0, #05c592);
  box-shadow: 0 14px 30px rgba(6,214,160,.26);
}

.svc-btn-green:hover{
  box-shadow: 0 18px 42px rgba(6,214,160,.32);
}

/* Featured */
.svc-featured{
  border: 2px solid rgba(99,102,241,.75);
  box-shadow: 0 34px 90px rgba(0,0,0,.52);
}

.svc-ribbon{
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to right, #06d6a0, #f59e0b);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Icon tiles */
.svc-tile{
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 70px rgba(0,0,0,.40);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
}

.svc-tile i{ font-size: 28px; }

/* Responsive */
@media (max-width: 768px){
  .svc-row{
    grid-template-columns: 1fr;
  }
  .svc-row.is-right{
    grid-template-columns: 1fr;
  }
  .svc-tile{
    width: 100%;
    height: 64px;
    border-radius: 16px;
  }
  .svc-tile i{ font-size: 24px; }
}

/* ===========================================
   FIX: Services Plans layout (desktop width)
   Put this at the VERY END of styles.css
   =========================================== */

/* Old mosaic grid is forcing the stage into a thin column */
.services-mosaic{
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
  margin-bottom: 80px;
}

/* If parent still remains grid in some builds, force full span */
.services-plans-stage{
  width: 100%;
  max-width: 1100px;
  margin: 36px auto 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Wider cards on desktop (so they don't look "mobile") */
@media (min-width: 993px){
  .svc-row{
    display: grid;
    grid-template-columns: minmax(680px, 1fr) 96px; /* card + icon tile */
    gap: 22px;
    align-items: center;
  }

  .svc-row.is-right{
    grid-template-columns: 96px minmax(680px, 1fr);
  }

  /* Make the card fill its column nicely */
  .svc-plan{
    width: 100%;
  }
}

/* Stack on tablets/phones */
@media (max-width: 992px){
  .svc-row,
  .svc-row.is-right{
    grid-template-columns: 1fr;
  }
  .svc-tile{
    display: none;
  }
  .services-plans-stage{
    max-width: 560px;
  }
}

/* ===========================
   Make service plan cards slimmer
   =========================== */

/* Card padding smaller */
.svc-plan{
  padding: 18px 20px 16px !important;
  border-radius: 16px !important;
}

/* Price and spacing tighter */
.svc-price{
  font-size: 30px !important;
  margin-bottom: 4px !important;
}
.svc-sub{
  margin-bottom: 10px !important;
}

/* List rows tighter */
.svc-list li{
  padding: 7px 0 !important;
  font-size: 11.5px !important;
}

/* Button shorter */
.svc-btn{
  height: 34px !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
}

/* Reduce row spacing between plans */
.services-plans-stage{
  gap: 16px !important;
  margin-top: 28px !important;
}

/* Slightly narrower cards on big screens (so they don't look huge) */
@media (min-width: 993px){
  .services-plans-stage{
    max-width: 980px !important;
  }

  .svc-row{
    grid-template-columns: minmax(600px, 1fr) 88px !important;
    gap: 18px !important;
  }
  .svc-row.is-right{
    grid-template-columns: 88px minmax(600px, 1fr) !important;
  }

  .svc-tile{
    width: 78px !important;
    height: 78px !important;
    border-radius: 14px !important;
  }
  .svc-tile i{
    font-size: 24px !important;
  }
}

/* ===========================================
   Readability boost for WHITE text on light cards
   (no color changes, only contrast helpers)
   =========================================== */

/* 1) Testimonials: left "Our Clients" sidebar */
.testimonial-sidebar h3,
.author-info h4,
.author-info p{
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* active/highlight state text is also readable */
.author-preview.active .author-info h4,
.author-preview.active .author-info p{
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

/* 2) Contact section: form + info cards (titles, labels, helper text) */
.contact-form-container h3,
.contact-form-container label,
.contact-info-card h4,
.contact-info-card p,
.business-hours h4,
.business-hours li,
.business-hours span{
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

/* 3) Inputs: keep white text readable over light UI */
.contact-form-container .form-control{
  text-shadow: 0 1px 6px rgba(0,0,0,.18);
}

/* placeholders are often too pale */
.contact-form-container .form-control::placeholder{
  text-shadow: 0 1px 6px rgba(0,0,0,.22);
  opacity: 1;
}

/* 4) Subtle inner overlay inside those cards to increase contrast
      (does NOT change text color; just slightly darkens behind text) */
.testimonial-sidebar,
.contact-form-container,
.contact-info-card,
.business-hours,
.testimonial-card{
  position: relative;
  overflow: hidden;
}

.testimonial-sidebar::after,
.contact-form-container::after,
.contact-info-card::after,
.business-hours::after,
.testimonial-card::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* very soft “shade” to help white text */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.05) 35%,
    rgba(0,0,0,.00) 100%
  );
  mix-blend-mode: multiply;
}

/* ensure text stays above overlay */
.testimonial-sidebar > *,
.contact-form-container > *,
.contact-info-card > *,
.business-hours > *,
.testimonial-card > *{
  position: relative;
  z-index: 1;
}

/* ===========================
   Header CTA: Get Started polish
   =========================== */

.nav-links .nav-cta{
  margin-left: 1.6rem;
  display: flex;
  align-items: center;
}

/* target only the header CTA button */
.nav-links .nav-cta .btn.btn-secondary{
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;

  /* premium look */
  background: linear-gradient(135deg, rgba(6,214,160,1), rgba(99,102,241,1));
  box-shadow:
    0 16px 40px rgba(0,0,0,.28),
    0 8px 22px rgba(6,214,160,.18);

  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* subtle shine */
.nav-links .nav-cta .btn.btn-secondary::after{
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 80%;
  height: 220%;
  transform: rotate(25deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: .55;
  transition: transform .6s ease, opacity .6s ease;
}

.nav-links .nav-cta .btn.btn-secondary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 22px 55px rgba(0,0,0,.34),
    0 10px 28px rgba(6,214,160,.22);
}

.nav-links .nav-cta .btn.btn-secondary:hover::after{
  transform: translateX(140%) rotate(25deg);
  opacity: .75;
}

/* focus accessibility */
.nav-links .nav-cta .btn.btn-secondary:focus{
  outline: none;
}
.nav-links .nav-cta .btn.btn-secondary:focus-visible{
  box-shadow:
    0 22px 55px rgba(0,0,0,.34),
    0 0 0 4px rgba(99,102,241,.22),
    0 0 0 8px rgba(6,214,160,.14);
}

/* fix for small header height cases */
@media (max-width: 768px){
  .nav-links .nav-cta .btn.btn-secondary{
    width: 100%;
    height: 46px;
  }
}

/* ===========================
   Align nav links to CTA level
   =========================== */

.nav-links{
  align-items: center; /* важно для flex списка */
}

/* одинаковая высота как у Get Started */
.nav-links li{
  display: flex;
  align-items: center;
}

/* все ссылки меню (кроме самой кнопки) делаем такой же высоты */
.nav-links li:not(.nav-cta) > a{
  height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0 2px; /* минимально, чтобы не сдвигать сетку */
}

/* если линия underline мешает — смещаем её вниз под новую высоту */
.nav-links li:not(.nav-cta) > a:after{
  bottom: 8px; /* было 0, теперь выглядит ровно относительно CTA */
}

/* ===========================================
   Our Clients: viewport + arrows (no scroll)
   =========================================== */

.testimonial-sidebar{
  padding: 26px;
}

/* Header row like in your ref */
.clients-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.clients-controls{
  display: flex;
  gap: 10px;
}

.clients-btn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,.35);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease, border-color .2s ease;
  display: grid;
  place-items: center;
}

.clients-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(99,102,241,.55);
}

.clients-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

/* viewport shows only N items */
.clients-viewport{
  --visible: 4;              /* how many items visible on desktop */
  --gap: 14px;
  overflow: hidden;
  border-radius: 16px;
}

/* track moves up/down */
.clients-track{
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  padding-bottom: 2px;
}

/* Make preview cards more “ref-like” */
.author-preview{
  margin-bottom: 0;          /* we use gap now */
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.author-preview.active,
.author-preview:hover{
  background: rgba(99,102,241,.10);
  border-color: rgba(99,102,241,.55);
}

/* Slightly tighter avatar */
.author-avatar{
  width: 54px;
  height: 54px;
}

/* Desktop: set viewport height based on item height (JS will set exact px) */
@media (min-width: 993px){
  .clients-viewport{
    /* height will be injected by JS for perfect fit */
  }
}

/* Mobile/tablet: show 3 items + switch arrows to left/right feel (optional) */
@media (max-width: 992px){
  .clients-viewport{ --visible: 3; }
}

/* ===========================================
   Clients sidebar: centered title + up/down buttons
   =========================================== */

.clients-title{
  text-align: center;
  margin: 0 0 14px 0;
  font-size: 1.9rem;
  color: var(--primary);
}

/* Center buttons and make them very visible */
.clients-btn{
  width: 54px;
  height: 44px;
  border-radius: 14px;
  margin: 0 auto;
  display: grid;
  place-items: center;

  /* better contrast */
  background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(6,214,160,.14));
  border: 1px solid rgba(99,102,241,.55);
  color: rgba(255,255,255,.95);

  box-shadow:
    0 18px 40px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.08) inset;

  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.clients-btn i{
  font-size: 16px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.clients-btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(99,102,241,.28), rgba(6,214,160,.18));
  box-shadow:
    0 24px 55px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

.clients-btn:active{
  transform: translateY(0px);
}

.clients-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

/* spacing around viewport */
.clients-up{
  margin-bottom: 14px;
}
.clients-down{
  margin-top: 14px;
}

/* keep viewport neat */
.clients-viewport{
  overflow: hidden;
  border-radius: 16px;
}

.clients-track{
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}

/* (optional) make the list cards a touch tighter like your ref */
.author-preview{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* ===========================================
   Our Clients (sidebar): centered title + top/bottom arrows
   =========================================== */

.testimonial-sidebar{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;

  /* чтобы НЕ "сжималась" */
  width: 320px;
  flex: 0 0 320px;

  padding: 30px;
}

/* если у тебя на 992px сайдбар становится в колонку — оставляем */
@media (max-width: 992px){
  .testimonial-sidebar{
    width: 100%;
    flex: 1 1 auto;
    padding: 20px;
  }
}

.clients-title{
  text-align: center;
  width: 100%;
  margin: 0;
  font-size: 30px;         /* как на твоём рефе */
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,25);
}

/* Кнопки вверх/вниз — заметнее */
.clients-btn{
  width: 54px;
  height: 54px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 16px;
  border: 1px solid rgba(99,102,241,45);

  background: linear-gradient(180deg,
    rgba(99,102,241,22) 0%,
    rgba(255,255,255,10) 100%
  );

  box-shadow:
    0 14px 30px rgba(0,0,0,22),
    0 0 0 1px rgba(255,255,255,14) inset;

  color: rgba(255,255,255,95);
  cursor: pointer;

  display: grid;
  place-items: center;

  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, opacity .2s ease;
}

.clients-btn i{
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,25));
}

.clients-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(6,214,160,45);
  background: linear-gradient(180deg,
    rgba(6,214,160,16) 0%,
    rgba(99,102,241,18) 100%
  );
  box-shadow:
    0 18px 40px rgba(0,0,0,26),
    0 0 0 1px rgba(255,255,255,18) inset;
}

.clients-btn:active{
  transform: translateY(0px);
}

.clients-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Вьюпорт */
.clients-viewport{
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

/* Трек */
.clients-track{
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}

/* Карточки клиентов на всю ширину (без "сжатия") */
.author-preview{
  width: 100%;
  margin: 0;
  border-radius: 18px;
}

/* ===== Testimonials layout fix (sidebar + main stay in one row) ===== */
.testimonial-container{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center; /* чтобы отзыв НЕ улетал вниз */
}

/* ===== Our Clients sidebar ===== */
.testimonial-sidebar{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  height: 100%;
}

.clients-title{
  text-align:center;
  margin-bottom: 14px;
}

.clients-viewport{
  overflow:hidden;
  width:100%;
  border-radius: 18px;
}

/* важно: фиксируем одинаковую высоту карточек + gap */
.clients-track{
  display:flex;
  flex-direction:column;
  gap: 14px;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}

/* фиксируем высоту превью — JS шаг становится точным */
.author-preview{
  height: 88px;
  padding: 16px 18px;
  border-radius: 18px;
}

/* ===== Arrow buttons (видимые, с нормальным контрастом) ===== */
.clients-btn{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin: 10px auto;
  border: 1px solid rgba(99,102,241,.55);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.clients-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.22);
}

.clients-btn:active{
  transform: translateY(0px) scale(.98);
}

.clients-btn:disabled{
  opacity: .35;
  cursor:not-allowed;
  box-shadow:none;
}

/* ==============================
   Testimonials: layout hard-fix
   ============================== */
.testimonial-container{
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

/* чтобы правая карточка НЕ падала вниз из-за высоты левой */
.testimonial-main{
  min-height: 400px;
}

/* ==============================
   Our Clients panel (arrows)
   ============================== */
.testimonial-sidebar.clients-panel{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 34px 26px;
  gap: 14px;
}

.clients-title{
  text-align: center;
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--primary);
  text-shadow: 0 8px 22px rgba(99,102,241,.25);
}

/* viewport */
.clients-viewport{
  overflow: hidden;
  border-radius: 18px;
  padding: 8px;
}

/* track */
.clients-track{
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0);
  transition: transform .55s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  will-change: transform;
}

/* buttons */
.clients-btn{
  align-self: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,.55);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,.92);
}

.clients-btn i{
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.clients-btn:hover{
  transform: translateY(-2px);
  background: rgba(99,102,241,.18);
  box-shadow: 0 20px 44px rgba(0,0,0,.26);
}

.clients-btn:active{
  transform: translateY(0);
}

.clients-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}

/* author-preview height becomes stable => arrows + paging точные */
.testimonial-sidebar .author-preview{
  min-height: 78px;
}

/* Responsive: как и было, на узких экранах в колонку */
@media (max-width: 992px){
  .testimonial-container{
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* Buttons visibility + correct rgba alpha */
.clients-btn{
  width: 54px;
  height: 44px;
  border-radius: 14px;
  margin: 0 auto;
  display: grid;
  place-items: center;

  /* FIX: alpha must be 0.xx, not 22 / 14 */
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.22),
    rgba(6,214,160,0.14)
  );
  border: 1px solid rgba(99,102,241,0.55);

  color: rgba(255,255,255,0.95);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.08) inset;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.clients-btn i{
  font-size: 16px;
  line-height: 1;
  opacity: 1;
  color: rgba(255,255,255,0.95);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.clients-btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.28),
    rgba(6,214,160,0.18)
  );
  box-shadow:
    0 24px 55px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,255,255,0.10) inset;
}

.clients-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== FIX: testimonials layout must stay 2 columns on desktop ===== */
#testimonials .testimonial-container{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}

/* ===== FIX: sidebar clients panel ===== */
#testimonials .clients-panel{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

#testimonials .clients-title{
  text-align: center;
  margin-bottom: 18px;
}

/* viewport shows 4 items; arrows sit OUTSIDE viewport */
#testimonials .clients-viewport{
  --visible: 4;
  overflow: hidden;
  width: 100%;
}

#testimonials .clients-track{
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== FIX: arrow buttons visibility + icon color ===== */
#testimonials .clients-btn{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  cursor: pointer;
  user-select: none;
}

#testimonials .clients-btn i{
  font-size: 18px;
  color: rgba(99,102,241,0.95);
  opacity: 1; /* IMPORTANT: icon must be visible */
}

#testimonials .clients-btn:hover{
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

#testimonials .clients-btn:active{
  transform: translateY(0px);
}

#testimonials .clients-btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

/* spacing: up arrow under title, down arrow under list */
#testimonials .clients-up{ margin-bottom: 18px; }
#testimonials .clients-down{ margin-top: 18px; }

/* keep main card aligned, not dropping under sidebar */
#testimonials .testimonial-main{
  position: relative;
  height: 400px;
  min-height: 400px;
}

#testimonials .testimonial-card{
  height: 400px;
}

/* responsive: stack on tablets */
@media (max-width: 992px){
  #testimonials .testimonial-container{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #testimonials .testimonial-main{
    height: auto;
    min-height: 0;
  }
  #testimonials .testimonial-card{
    height: auto;
  }
}

.clients-viewport { position: relative; z-index: 1; }
.clients-track { position: relative; z-index: 1; }

.author-preview { position: relative; z-index: 2; cursor: pointer; }

.clients-up, .clients-down {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* =========================================================
   CONTACT: Center card + switcher (Form <-> Company Info)
   ========================================================= */

#contact .contact-container{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Switcher wrapper centered */
#contact .contact-switcher{
  position: relative;
  width: 100%;
  max-width: 860px;   /* центр, “как премиум карточка” */
  margin: 0 auto;
}

/* Panels */
#contact .contact-panel{
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

#contact .contact-panel.is-active{
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Keep original form card look, just ensure it doesn't stretch weird */
#contact .contact-form-container{
  width: 100%;
}

/* New Company info card - in same visual language */
#contact .company-info-card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 50px;
  position: relative;
  overflow: hidden;
  color: rgba(11,18,32,.92);
}

#contact .company-info-card::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.05) 35%,
    rgba(0,0,0,.00) 100%
  );
  mix-blend-mode: multiply;
}

#contact .company-info-card > *{
  position: relative;
  z-index: 1;
}

#contact .company-info-head h3{
  margin-bottom: 10px;
}

#contact .company-info-head p{
  margin-bottom: 28px;
  color: rgba(11,18,32,.70);
}

#contact .company-info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

#contact .company-info-item{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px 18px;
}

#contact .company-info-item h4{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

#contact .company-info-item h4 i{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.12);
  color: rgba(79,70,229,.95);
}

#contact .company-info-item p{
  margin-bottom: 6px;
  color: rgba(11,18,32,.75);
}

#contact .company-hours{
  grid-column: 1 / -1;
}

#contact .company-hours .hours-list li{
  padding: 10px 0;
}

/* Arrows */
#contact .contact-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
  user-select: none;
}

#contact .contact-nav i{
  font-size: 18px;
  color: rgba(99,102,241,0.95);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

#contact .contact-nav:hover{
  transform: translateY(-50%) translateY(-2px);
  background: rgba(255,255,255,0.16);
}

#contact .contact-nav:active{
  transform: translateY(-50%) scale(.98);
}

#contact .contact-prev{ left: -78px; }
#contact .contact-next{ right: -78px; }

/* Hide prev by default (we'll control via JS) */
#contact .contact-prev.is-hidden,
#contact .contact-next.is-hidden{
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 992px){
  #contact .company-info-card{ padding: 34px; }
  #contact .company-info-grid{ grid-template-columns: 1fr; }

  /* arrows go under card on smaller screens */
  #contact .contact-nav{
    top: auto;
    bottom: -72px;
    transform: none;
  }
  #contact .contact-prev{ left: 0; }
  #contact .contact-next{ right: 0; }
}

@media (max-width: 576px){
  #contact .company-info-card{ padding: 28px 22px; }
}

/* =========================================================
   Premium switch animation (blur + fade + micro-slide)
   for Contact switcher panels
   ========================================================= */

#contact .contact-switcher{
  perspective: 900px;
}

/* Base state for panels */
#contact .contact-panel{
  display: block;               /* важно: держим в DOM для плавной анимации */
  visibility: hidden;
  pointer-events: none;
  opacity: 0;

  transform:
    translateY(10px)
    scale(.995);

  filter: blur(10px);
  transition:
    opacity .42s cubic-bezier(.2,.9,.2,1),
    transform .42s cubic-bezier(.2,.9,.2,1),
    filter .42s cubic-bezier(.2,.9,.2,1),
    visibility 0s linear .42s;  /* скрываем после анимации */
  will-change: opacity, transform, filter;
}

/* Active panel */
#contact .contact-panel.is-active{
  visibility: visible;
  pointer-events: auto;
  opacity: 1;

  transform:
    translateY(0)
    scale(1);

  filter: blur(0px);
  transition:
    opacity .42s cubic-bezier(.2,.9,.2,1),
    transform .42s cubic-bezier(.2,.9,.2,1),
    filter .42s cubic-bezier(.2,.9,.2,1),
    visibility 0s;
}

/* Directional micro-slide (adds premium feel) */
#contact .contact-panel.is-enter-left{
  transform: translateX(-10px) translateY(10px) scale(.995);
}
#contact .contact-panel.is-enter-right{
  transform: translateX(10px) translateY(10px) scale(.995);
}

/* Make animation snappy on reduced motion */
@media (prefers-reduced-motion: reduce){
  #contact .contact-panel,
  #contact .contact-panel.is-active{
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ==============================
   CONTACT SWITCHER: overlay layout
   (fix: panels were stacking)
   ============================== */

#contact .contact-switcher{
  position: relative;
  width: 100%;
  max-width: 680px;          /* можешь увеличить/уменьшить */
  margin: 0 auto;
  min-height: 520px;         /* JS подхватит точнее, но пусть будет fallback */
}

/* Панели должны лежать друг на друге */
#contact .contact-panel{
  position: absolute;
  inset: 0;
  width: 100%;
}

/* Если внутри есть .contact-form-container / .company-info-card —
   пусть растягиваются и остаются "как есть" визуально */
#contact .contact-panel > *{
  width: 100%;
}

/* ==============================
   ARROWS: fixed positioning + visibility
   ============================== */

#contact .contact-prev,
#contact .contact-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 54px;
  height: 54px;
  border-radius: 16px;

  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  cursor: pointer;

  display: grid;
  place-items: center;

  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

#contact .contact-prev{ left: -74px; }
#contact .contact-next{ right: -74px; }

#contact .contact-prev:hover,
#contact .contact-next:hover{
  transform: translateY(-50%) translateY(-1px);
  background: rgba(255,255,255,0.16);
}

/* кнопка скрыта */
#contact .is-hidden{
  opacity: 0;
  pointer-events: none;
}

/* на узких экранах стрелки внутрь */
@media (max-width: 900px){
  #contact .contact-prev{ left: 10px; }
  #contact .contact-next{ right: 10px; }
}

/* === FIX: footer overlaps contact (ensure section has real height) === */
#contact{
  position: relative;
  z-index: 1;
  padding-bottom: 120px; /* запас чтобы футер не “прилипал” */
}

/* fallback высоты, если JS не успел */
#contact .contact-switcher{
  min-height: 640px; /* под твою форму + инфо; можно 600–760 */
}

/* footer пусть всегда ниже и не перекрывает секции */
footer{
  position: relative;
  z-index: 0;
  margin-top: 40px;
}

/* =========================================
   Company Info: boost white text readability
   (NO color change — only contrast helpers)
   ========================================= */

/* 1) На саму карточку добавляем мягкий тёмный слой */
.company-info-card{
  position: relative;
  overflow: hidden;
}

.company-info-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  /* мягкое затемнение под текстом, чтобы белый не сливался */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.12) 40%,
    rgba(0,0,0,.06) 100%
  );

  /* режим “умножение” усиливает контраст, не меняя цвет текста */
  mix-blend-mode: multiply;
}

/* держим контент поверх оверлея */
.company-info-card > *{
  position: relative;
  z-index: 1;
}

/* 2) Тексту — четкая тень + чуть лучше сглаживание */
.company-info-card,
.company-info-card h3,
.company-info-card h4,
.company-info-card p,
.company-info-card li,
.company-info-card span,
.company-info-card a{
  text-shadow:
    0 2px 10px rgba(0,0,0,.35),
    0 1px 2px rgba(0,0,0,.25);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* 3) Иконкам тоже немного контраста (если есть) */
.company-info-card i,
.company-info-card svg{
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* 4) Если внутри есть мелкие подписи/secondary text */
.company-info-card .muted,
.company-info-card .contact-note{
  text-shadow:
    0 2px 12px rgba(0,0,0,.40),
    0 1px 2px rgba(0,0,0,.25);
}

/* ==========================================
   Contact center slot: 2 panels in same place
   ========================================== */

#contact .contact-container{
  grid-template-columns: 1fr !important; /* чтобы центр был реально по центру */
  justify-items: center;
}

#contact .contact-center-slot{
  position: relative;
  width: 100%;
  max-width: 640px;            /* центр и аккуратно */
  min-height: 640px;           /* чтобы футер не налезал + чтобы высота не схлопывалась */
}

/* обе панели занимают одно и то же место */
#contact [data-contact-panel]{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* видимость */
#contact [data-contact-panel]{
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  filter: blur(6px);
}

#contact [data-contact-panel].is-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  filter: blur(0);
}

/* стрелки поверх карточек */
#contact .contact-switch{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

#contact .contact-next{ right: -70px; }
#contact .contact-prev{ left: -70px; }

#contact .contact-switch i{
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
}

#contact .contact-switch.is-hidden{
  display: none !important;
}

/* адаптив: стрелки внутрь */
@media (max-width: 900px){
  #contact .contact-center-slot{ max-width: 560px; min-height: 680px; }
  #contact .contact-next{ right: 14px; top: 14px; transform: none; }
  #contact .contact-prev{ left: 14px; top: 14px; transform: none; }
}

/* =========================================
   FIX: Connect With Us cards clipping
   (paste at the very end of styles.css)
   ========================================= */

#contact .contact-container{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* the slot that contains both panels + arrows */
#contact .contact-center-slot{
  position: relative;
  width: min(760px, 100%);
  overflow: visible;          /* IMPORTANT: prevent clipping */
  padding: 0;                 /* keep clean */
}

/* panels must overlap INSIDE slot without being clipped */
#contact [data-contact-panel]{
  position: absolute;
  inset: 0;
  width: 100%;
}

/* reserve height for absolute panels, so footer won't jump up */
#contact .contact-center-slot{
  min-height: 640px;          /* adjust if your form is taller */
}

/* make sure cards themselves can grow */
#contact .contact-form-container,
#contact .company-info-card{
  height: auto;
  max-height: none;
  overflow: visible;
}

/* Responsive: on smaller screens allow natural height */
@media (max-width: 768px){
  #contact .contact-center-slot{
    min-height: 0;
  }
  #contact [data-contact-panel]{
    position: relative;
    inset: auto;
  }
}

/* =========================================
   FIX: Company Information text too white
   ========================================= */

#contact .company-info-card{
  color: rgba(11,18,32,.92); /* force dark readable text on light glass */
}

/* headings */
#contact .company-info-card h3,
#contact .company-info-card h4{
  color: rgba(11,18,32,.96);
  text-shadow: none;         /* remove "white helpers" if applied */
}

/* paragraphs + small notes */
#contact .company-info-card p,
#contact .company-info-card li,
#contact .company-info-card span,
#contact .company-info-card .contact-note{
  color: rgba(11,18,32,.74);
  text-shadow: none;         /* IMPORTANT: prevents washed/overbright look */
}

/* icons inside company info cards */
#contact .company-info-card i{
  color: rgba(11,18,32,.85);
}

/* =========================================================
   CONNECT WITH US: center card + panel switch (NO CLIP)
   Fix: textarea/buttons/business hours not escaping card
   ========================================================= */

#contact{
  /* чтобы футер никогда не наезжал на контент */
  padding-bottom: 140px;
}

#contact .contact-container{
  /* перебиваем старую 2-колоночную сетку */
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

/* Stage: обе панели лежат одна на другой в grid-cell */
#contact .contact-stage{
  position: relative;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
  isolation: isolate;
}

/* Каждая панель занимает ту же “ячейку” */
#contact .contact-panel{
  grid-area: 1 / 1;
  width: 100%;
  position: relative;
  z-index: 1;

  /* анимация “дорого”: fade + blur + micro-slide */
  opacity: 0;
  transform: translateX(18px);
  filter: blur(10px);
  pointer-events: none;

  transition:
    opacity .28s ease,
    transform .55s cubic-bezier(0.22, 1, 0.36, 1),
    filter .55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Активная панель кликабельна и видима */
#contact .contact-panel.is-active{
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
  z-index: 2;
}

/* Важно: карточки внутри должны иметь нормальную высоту */
#contact .contact-form-container,
#contact .company-info-card{
  width: 100%;
  height: auto;
  overflow: hidden; /* оставляем твой стиль */
}

/* --- стрелки переключения (всегда по центру карточки) --- */
#contact .contact-switch{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 54px;
  height: 54px;
  border-radius: 16px;

  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}

#contact .contact-switch i{
  font-size: 18px;
  line-height: 1;
  opacity: 1;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

#contact .contact-switch:hover{
  transform: translateY(-50%) translateY(-2px);
  background: rgba(255,255,255,0.16);
}

#contact .contact-switch:active{
  transform: translateY(-50%) translateY(0px) scale(0.98);
}

/* Позиции стрелок: снаружи карточки на десктопе */
#contact .contact-prev{ left: -78px; }
#contact .contact-next{ right: -78px; }

/* На узких экранах — внутрь, чтобы не обрезались */
@media (max-width: 992px){
  #contact .contact-prev{ left: 12px; }
  #contact .contact-next{ right: 12px; }
}

/* =========================================================
   Company Info readability (not “too white” + better contrast)
   ========================================================= */

#contact .company-info-card{
  /* сохраняем твой стиль карточки, но улучшаем читабельность */
  color: rgba(255,255,255,0.86);
}

#contact .company-info-card h4{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

#contact .company-info-card p,
#contact .company-info-card li,
#contact .company-info-card span{
  color: rgba(255,255,255,0.72);
  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

/* Лёгкая внутренняя “подложка” под текст, чтобы он не сливался */
#contact .company-info-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.00) 100%
  );
  mix-blend-mode: multiply;
  z-index: 0;
}

#contact .company-info-card > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HOTFIX (Contact switcher): prevent clipping + footer overlap
   Paste at VERY END of styles.css
   ========================================================= */

#contact{
  /* чтобы футер никогда не залезал на карточки */
  padding-bottom: 120px;
}

/* свитчер должен иметь право "расти" по высоте */
#contact .contact-switcher{
  position: relative;
  overflow: visible;
}

/* КРИТИЧНО: убираем обрезание контента у обеих карточек */
#contact .contact-form-container,
#contact .company-info-card{
  height: auto !important;
  max-height: none !important;
  overflow: visible !important; /* фикс обрыва фона у textarea / hours */
}

/* если есть overlay ::after — держим его под контентом */
#contact .contact-form-container::after,
#contact .company-info-card::after{
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
#contact .contact-form-container > *,
#contact .company-info-card > *{
  position: relative;
  z-index: 1;
}

/* Стрелки: компактные, квадратные, как "дорогая" стекляшка (не пилюля) */
#contact .contact-switch{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
  cursor: pointer;
}
#contact .contact-switch i{
  font-size: 16px;
  line-height: 1;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}
#contact .contact-switch:hover{
  background: rgba(255,255,255,0.14);
  transform: translateY(-50%) translateY(-1px);
}
#contact .contact-switch:active{
  transform: translateY(-50%);
}

#contact .contact-prev{ left: -64px; }
#contact .contact-next{ right: -64px; }

/* На меньших экранах стрелки не должны ломать ширину */
@media (max-width: 992px){
  #contact .contact-prev{ left: -52px; }
  #contact .contact-next{ right: -52px; }
}
@media (max-width: 560px){
  #contact{ padding-bottom: 90px; }
  #contact .contact-prev{ left: 10px; }
  #contact .contact-next{ right: 10px; }
}

/* Company info: текст читаемый, но не "слишком белый" */
#contact .company-info-card,
#contact .company-info-card *{
  text-shadow: 0 2px 10px rgba(0,0,0,0.20);
}
#contact .company-info-card p,
#contact .company-info-card li,
#contact .company-info-card .contact-note{
  color: rgba(11,18,32,0.72) !important;
}

/* =========================================================
   CONTACT PANELS FIX (no HTML/JS changes)
   - Active panel defines height (prevents clipping / footer overlap)
   - Keeps arrows style intact
   ========================================================= */

#contact .contact-container{
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 0 !important;
}

#contact .contact-center-slot{
  position: relative;
  width: min(760px, 100%);
  max-width: 100%;
  overflow: visible;
}

/* Panels: inactive are absolute overlays, active is relative (sets height) */
#contact [data-contact-panel]{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;       /* IMPORTANT: no bottom => no forced height */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  filter: blur(6px);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  z-index: 1;
}

#contact [data-contact-panel].is-active{
  position: relative;  /* IMPORTANT: makes container height follow content */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  filter: blur(0);
  z-index: 2;
}

/* Cards must be allowed to grow */
#contact .contact-form-container,
#contact .company-info-card,
#contact .business-hours{
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Keep your arrow look (square button), prevent accidental overrides */
#contact .contact-switch{
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

#contact .contact-next{ right: -70px; }
#contact .contact-prev{ left: -70px; }

/* Mobile: arrows go inside */
@media (max-width: 900px){
  #contact .contact-next{
    right: 14px;
    top: 14px;
    transform: none;
  }
  #contact .contact-prev{
    left: 14px;
    top: 14px;
    transform: none;
  }
}

/* =========================================================
   Company Information text: readable but not "too white"
   ========================================================= */

#contact .company-info-card{
  color: rgba(11,18,32,.88) !important;
}

#contact .company-info-card h3,
#contact .company-info-card h4{
  color: rgba(11,18,32,.94) !important;
  text-shadow: none !important;
}

#contact .company-info-card p,
#contact .company-info-card li,
#contact .company-info-card span,
#contact .company-info-card .contact-note{
  color: rgba(11,18,32,.72) !important;
  text-shadow: none !important;
}

/* ===========================================
   Custom Select (Formcraft style) + animation
   =========================================== */

.fc-select{
  position: relative;
  width: 100%;
}

/* Hide native select but keep it for form submit + validation */
.fc-select > select{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

/* Trigger (looks like your .form-control) */
.fc-select__trigger{
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--gray-light);
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(99,102,241,0);
}

.fc-select__value{
  color: rgba(11,18,32,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.fc-select__trigger i{
  color: rgba(99,102,241,.85);
  font-size: 14px;
  transition: transform .25s ease;
}

/* Focus ring like inputs */
.fc-select.is-open .fc-select__trigger,
.fc-select__trigger:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Rotate chevron on open */
.fc-select.is-open .fc-select__trigger i{
  transform: rotate(180deg);
}

/* Menu panel */
.fc-select__menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);

  padding: 10px;
  max-height: 280px;
  overflow: auto;

  /* closed state */
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  filter: blur(6px);
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.9,.2,1),
    filter .22s ease;
}

/* Open state */
.fc-select.is-open .fc-select__menu{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* Option item */
.fc-option{
  width: 100%;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 0.95rem;
  color: rgba(11,18,32,.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  cursor: pointer;
  user-select: none;
  transition: background .18s ease, transform .18s ease;
}

.fc-option:hover{
  background: rgba(99,102,241,.10);
  transform: translateY(-1px);
}

.fc-option.is-selected{
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(6,214,160,.10));
  border: 1px solid rgba(99,102,241,.25);
}

.fc-option__check{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(6,214,160,.12);
  color: rgba(6,214,160,1);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}

.fc-option.is-selected .fc-option__check{
  opacity: 1;
  transform: scale(1);
}

/* Scrollbar (optional, subtle) */
.fc-select__menu::-webkit-scrollbar{ width: 10px; }
.fc-select__menu::-webkit-scrollbar-thumb{
  background: rgba(99,102,241,.20);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.55);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .fc-select__menu{
    transition: none;
    filter: none;
    transform: none;
  }
  .fc-select__trigger i{
    transition: none;
  }
}

/* ===========================================
   Toast (replaces alert) — premium glass style
   Paste at the VERY END of styles.css
   =========================================== */

:root{
  --toast-surface: rgba(255,255,255,.10);
  --toast-stroke: rgba(255,255,255,.16);
  --toast-text: rgba(255,255,255,.92);
  --toast-sub: rgba(255,255,255,.68);
}

.toast-host{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 12px;

  width: min(420px, calc(100vw - 44px));
  pointer-events: none; /* only toasts themselves clickable */
}

.toast{
  pointer-events: auto;
  position: relative;

  display: grid;
  grid-template-columns: 40px 1fr 36px;
  gap: 12px;
  align-items: start;

  padding: 14px 14px 14px 14px;
  border-radius: 18px;

  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid var(--toast-stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 22px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06) inset;

  color: var(--toast-text);
  overflow: hidden;

  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity .32s ease, transform .32s ease, filter .32s ease;
}

.toast.is-show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.toast.is-hide{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
}

.toast::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 4px;
  background: linear-gradient(180deg, rgba(99,102,241,1), rgba(6,214,160,1));
  opacity: .95;
}

/* Icon bubble */
.toast__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.toast__icon i{
  font-size: 16px;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

.toast__title{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 2px 0;
  font-size: 14px;
  line-height: 1.2;
}

.toast__msg{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--toast-sub);
}

.toast__close{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.toast__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
}

.toast__close:active{
  transform: translateY(0);
}

.toast__bar{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.10);
}

.toast__bar > span{
  display:block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(99,102,241,1), rgba(6,214,160,1));
  transform: scaleX(1);
}

/* Types */
.toast[data-type="success"]::before{
  background: linear-gradient(180deg, rgba(6,214,160,1), rgba(99,102,241,1));
}
.toast[data-type="error"]::before{
  background: linear-gradient(180deg, rgba(245,158,11,1), rgba(99,102,241,1));
}
.toast[data-type="info"]::before{
  background: linear-gradient(180deg, rgba(99,102,241,1), rgba(245,158,11,1));
}

/* Small screens */
@media (max-width: 520px){
  .toast-host{
    right: 14px;
    left: 14px;
    width: auto;
  }
}
