:root {
  --primary: #2E2164;
  --primary-dark: #231A4F;
  --secondary: #5F83C0;
  --accent: #FFFFFF;
  --heading: #111827;
  --text: #374151;
  --text-muted: #6B7280;
  --surface: #FFFFFF;
  --surface-alt: #F6F7FB;
  --surface-dark: #15142A;
  --on-dark: #F9FAFB;
  --on-primary: #FFFFFF;
  --radius: 18px;
  --font-heading: "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --scale: 1;
  --h1: 45px;
  --h2: 30px;
  --h3: 20px;
  --h4: 20px;
  --p: 16px;
  --menu: 18px;
  --logo: 22px;
  --footer: 12px;
}

@media (max-width: 768px) {
  :root {
    --scale: 0.7;
  }

  header .max-w-6xl {
    flex-wrap: wrap;
  }

  header .max-w-6xl > div:last-child {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  header .phone-button {
    padding: 8px 12px;
    font-size: 14px;
  }

  header .phone-button svg {
    width: 16px;
    height: 16px;
  }

  .mobile-call {
    left: 0;
    right: 0;
    transform: none;
    padding: 0 16px;
    width: 100%;
  }

  .mobile-call a {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
}

h1 { font-size: calc(var(--h1) * var(--scale)); line-height: 1.1; }
h2 { font-size: calc(var(--h2) * var(--scale)); line-height: 1.2; }
h3 { font-size: calc(var(--h3) * var(--scale)); line-height: 1.25; }
h4 { font-size: calc(var(--h4) * var(--scale)); line-height: 1.3; }
p, li { font-size: calc(var(--p) * var(--scale)); line-height: 1.7; }

.menu-link {
  font-size: calc(var(--menu) * var(--scale));
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo-text {
  font-size: calc(var(--logo) * var(--scale));
  letter-spacing: 0.3px;
}

.footer-text {
  font-size: calc(var(--footer) * var(--scale));
}

.section-1 { background: rgba(46, 33, 100, 0.18); }
.section-2 { background: rgba(95, 131, 192, 0.1); }
.section-3 { background: transparent; }
.section-4 { background: rgba(46, 33, 100, 0.12); }
.section-5 { background: transparent; }
.section-6 { background: transparent; }
.section-7 { background: transparent; }
.section-8 { background: transparent; }
.section-9 { background: transparent; }
.section-10 { background: transparent; }
.section-11 { background: transparent; }
.section-12 { background: transparent; }
.section-13 { background: transparent; }
.section-14 { background: transparent; }
.section-15 { background: transparent; }

.section-wrap {
  border-radius: var(--radius);
}

.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  padding: 14px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 33, 100, 0.25);
}

.button-shimmer {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(120deg, #2E2164 0%, #4D3FA1 45%, #2E2164 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.button-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 33, 100, 0.25);
}

.phone-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-button:hover {
  background: #476DB2;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(95, 131, 192, 0.3);
}

.rating-stars {
  color: var(--accent);
  letter-spacing: 4px;
  font-weight: 700;
}


.hero-panel {
  min-height: 520px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.icon-row img {
  max-height: 30px;
  max-width: 164px;
  width: auto;
  object-fit: contain;
}

.icon-row {
  flex-wrap: nowrap;
  overflow: hidden;
}

.button-primary,
.button-outline {
  margin-top: 6px;
}

.button-primary,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

#cta-fast .text-sm,
#contacts .text-sm {
  padding-right: 8px;
}

#cta-fast .button-primary,
#contacts .button-primary {
  margin-top: 2px;
}

.button-primary + .button-outline {
  margin-top: 6px;
}

#cta-fast .text-sm,
#contacts .text-sm {
  margin-bottom: 4px;
  display: block;
}

.section-1 { background: rgba(46, 33, 100, 0.24); }
.section-2 { background: transparent; }
.section-3 { background: transparent; }
.section-4 { background: transparent; }
.section-5 { background: rgba(95, 131, 192, 0.18); }
.section-6 { background: transparent; }
.section-7 { background: transparent; }
.section-8 { background: transparent; }
.section-9 { background: transparent; }
.section-10 { background: transparent; }
.section-11 { background: transparent; }
.section-12 { background: transparent; }
.section-13 { background: transparent; }
.section-14 { background: transparent; }
.section-15 { background: transparent; }

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.badge {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.carousel-card {
  min-width: 280px;
  max-width: 340px;
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.section-title {
  margin-bottom: 16px;
}

.image-tile {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.mobile-call {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 50;
  display: none;
}

.mobile-call a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(46, 33, 100, 0.35);
}

@media (max-width: 768px) {
  .mobile-call {
    display: block;
  }
}

.footer {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.footer a { color: #F9FAFB; }

.footer h3, .footer h4 {
  color: #FFFFFF;
}

.faq-item {
  border-radius: var(--radius);
  background: #FFFFFF;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
}

.trust-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.trust-table td:first-child {
  font-weight: 600;
}
