/* ============================================ */
/* ДОМОФОНСЕРВИС — ФИНАЛЬНЫЙ CSS                */
/* Увеличенные логотипы, все темы, градиенты    */
/* ============================================ */

:root {
  /* ---------- СВЕТЛАЯ ТЕМА ---------- */
  --bg-body: #ffffff;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --header-bg: rgba(255,255,255,0.94);
  --header-border: rgba(0,0,0,0.04);
  
  --hero-gradient: linear-gradient(135deg, #e8d5ff 0%, #b8d4ff 50%, #88d8ff 100%);
  --callback-gradient: linear-gradient(135deg, #e8d5ff 0%, #b8d4ff 50%, #88d8ff 100%);
  
  --hero-text: #1F2937;
  --hero-tag-border: rgba(0,0,0,0.12);
  --hero-desc: #374151;
  
  --city-image: url('/images/city-day.svg');
  --city-opacity: 0.25;
  
  --callback-text: #1F2937;
  --callback-btn-bg: rgba(0,0,0,0.05);
  --callback-btn-border: rgba(0,0,0,0.1);
  --callback-btn-hover: rgba(0,0,0,0.1);
  
  --footer-bg: linear-gradient(135deg, #f8f9fa, #e9ecef);
  --footer-text: #1F2937;
  --footer-copy: #6B7280;
  
  --social-border-color: #6B7280;
}

body.dark {
  /* ---------- ТЁМНАЯ ТЕМА ---------- */
  --bg-body: #0a0a0a;
  --text-primary: #F3F4F6;
  --text-secondary: #D1D5DB;
  --header-bg: rgba(20,20,20,0.94);
  --header-border: rgba(255,255,255,0.05);
  
  --hero-gradient: linear-gradient(135deg, #2d1b4e 0%, #1a4a5a 50%, #0d3b4a 100%);
  --callback-gradient: linear-gradient(135deg, #2d1b4e 0%, #1a4a5a 50%, #0d3b4a 100%);
  
  --hero-text: #FFFFFF;
  --hero-tag-border: rgba(255,255,255,0.25);
  --hero-desc: rgba(255,255,255,0.9);
  
  --city-image: url('/images/city-night.svg');
  --city-opacity: 0.25;
  
  --callback-text: #FFFFFF;
  --callback-btn-bg: rgba(255,255,255,0.08);
  --callback-btn-border: rgba(255,255,255,0.12);
  --callback-btn-hover: rgba(255,255,255,0.16);
  
  --footer-bg: linear-gradient(135deg, #1a1a2e, #0d1f2a);
  --footer-text: #FFFFFF;
  --footer-copy: #9CA3AF;
  
  --social-border-color: #9CA3AF;
}

/* ---------- Базовые стили ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 36px;
  text-align: center;
  position: relative;
  color: var(--text-primary);
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #735AE6, #00C8FA);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #735AE6, #00C8FA);
  color: #fff;
  box-shadow: 0 4px 16px rgba(115, 90, 230, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(115, 90, 230, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #735AE6;
  border: 1px solid #735AE6;
}
.btn-secondary:hover {
  background: #735AE6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(115, 90, 230, 0.15);
}

/* ---------- Хедер ---------- */
.header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo a {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
}

/* ===== УВЕЛИЧЕННЫЙ ЛОГОТИП В ШАПКЕ ===== */
.logo-img {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  display: block;
  height: 70px;         /* Увеличено с 50px */
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Переключение светлого/тёмного логотипа в шапке */
.logo-light {
  display: block;
}
.logo-dark {
  display: none;
}
body.dark .logo-light {
  display: none;
}
body.dark .logo-dark {
  display: block;
}

/* ---------- Навигация ---------- */
.nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #735AE6;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #735AE6, #00C8FA);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #735AE6;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.3s ease, color 0.5s;
  padding: 4px 8px;
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ---------- ГЕРОЙ ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text);
  overflow: hidden;
  padding: 40px 0;
  text-align: center;
  background: var(--hero-gradient);
  background-size: 300% 300%;
  animation: gradientShift 12s ease-in-out infinite alternate;
  transition: background 0.5s ease;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--city-image);
  background-size: cover;
  background-position: bottom -10%;
  opacity: var(--city-opacity);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease, background-image 0.5s ease;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: floatParticle 15s infinite alternate ease-in-out;
}
.particle:nth-child(1) { width: 120px; height: 120px; top: 10%; left: 5%; animation-duration: 18s; }
.particle:nth-child(2) { width: 80px; height: 80px; bottom: 15%; right: 8%; animation-duration: 14s; animation-delay: 2s; }
.particle:nth-child(3) { width: 60px; height: 60px; top: 30%; right: 20%; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(4) { width: 100px; height: 100px; bottom: 30%; left: 15%; animation-duration: 20s; animation-delay: 1s; }

@keyframes floatParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(30px, -40px) scale(1.2); opacity: 0.6; }
  100% { transform: translate(-20px, 20px) scale(0.8); opacity: 0.2; }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-wrap {
  position: relative;
  z-index: 4;
  max-width: 820px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--hero-tag-border);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--hero-text);
}
.hero-title span {
  border-bottom: 3px solid rgba(115,90,230,0.3);
}

.hero-desc {
  font-size: 17px;
  color: var(--hero-desc);
  margin-bottom: 28px;
  max-width: 600px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-actions .btn-primary {
  background: #fff;
  color: #735AE6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hero-actions .btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.hero-phone {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  color: var(--hero-text);
}
.hero-phone i {
  font-size: 14px;
}
.hero-phone:hover {
  opacity: 0.7;
}

/* ---------- О КОМПАНИИ ---------- */
.about {
  padding: 80px 0;
  background: var(--bg-body);
  transition: background 0.5s ease;
}
.about-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-text strong {
  color: #735AE6;
}
.about-image {
  flex: 1;
}
.about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.4s ease;
}
.about-img:hover {
  transform: scale(1.02);
}

/* ---------- УСЛУГИ ---------- */
.services {
  padding: 80px 0;
  background: var(--bg-body);
  transition: background 0.5s ease;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--bg-body);
  padding: 36px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  border: 1px solid var(--header-border);
  transition: all 0.4s ease, background 0.5s ease, border-color 0.5s ease;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  opacity: 0;
  transform: translateY(40px) perspective(800px) rotateX(0deg) rotateY(0deg);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0) perspective(800px) rotateX(0deg) rotateY(0deg);
}
.service-card:hover {
  border-color: #735AE6;
  transform: perspective(800px) rotateX(2deg) rotateY(2deg) translateY(-6px);
  box-shadow: 0 16px 40px rgba(115,90,230,0.08);
}
.service-icon {
  font-size: 38px;
  background: linear-gradient(135deg, #735AE6, #00C8FA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- БЛОК СВЯЗИ ---------- */
.callback {
  position: relative;
  color: var(--callback-text);
  padding: 64px 0;
  overflow: hidden;
  text-align: center;
  background: var(--callback-gradient);
  background-size: 300% 300%;
  animation: gradientShift 12s ease-in-out infinite alternate;
  transition: background 0.5s ease, color 0.5s ease;
  z-index: 0;
}

.callback-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

.callback-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.callback-particles .particle {
  background: rgba(255,255,255,0.04);
}
.callback-particles .particle:nth-child(1) { width: 100px; height: 100px; top: 15%; right: 10%; animation-duration: 16s; }
.callback-particles .particle:nth-child(2) { width: 70px; height: 70px; bottom: 20%; left: 5%; animation-duration: 18s; animation-delay: 3s; }
.callback-particles .particle:nth-child(3) { width: 50px; height: 50px; top: 40%; left: 30%; animation-duration: 14s; animation-delay: 1s; }
.callback-particles .particle:nth-child(4) { width: 90px; height: 90px; bottom: 10%; right: 20%; animation-duration: 20s; animation-delay: 2s; }

.callback-wrap {
  position: relative;
  z-index: 3;
}

.callback-info h2 {
  font-size: 34px;
  margin-bottom: 4px;
  color: var(--callback-text);
}
.callback-info p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 17px;
  color: var(--callback-text);
}

.callback-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 4px;
  background: var(--callback-btn-bg);
  border: 1px solid var(--callback-btn-border);
  color: var(--callback-text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.contact-btn:hover {
  background: var(--callback-btn-hover);
  transform: translateY(-2px);
}
.contact-btn i {
  font-size: 16px;
}

.callback-features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  opacity: 0.85;
}
.callback-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.callback-features span::before {
  content: "✓";
  font-weight: bold;
}

/* ---------- КОНТАКТЫ ---------- */
.contacts {
  padding: 80px 0;
  background: var(--bg-body);
  transition: background 0.5s ease;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-item {
  background: var(--bg-body);
  padding: 28px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--header-border);
  transition: all 0.3s ease, background 0.5s, border-color 0.5s;
}
.contact-item:hover {
  border-color: #735AE6;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(115,90,230,0.06);
}
.contact-item i {
  font-size: 30px;
  background: linear-gradient(135deg, #735AE6, #00C8FA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.contact-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.contact-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.contact-item .sub {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ---------- ФУТЕР ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 28px;
  border-top: 1px solid var(--header-border);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== УВЕЛИЧЕННЫЙ ЛОГОТИП В ПОДВАЛЕ ===== */
.footer-logo {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  display: block;
  height: 60px;          /* Увеличено с 46px */
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Переключение логотипов в подвале */
.footer-logo.logo-light {
  display: block;
}
.footer-logo.logo-dark {
  display: none;
}
body.dark .footer-logo.logo-light {
  display: none;
}
body.dark .footer-logo.logo-dark {
  display: block;
}

.footer-copy {
  font-size: 12px;
  color: var(--footer-copy);
}
.footer-legal {
  font-size: 10px;
  color: var(--footer-copy);
  opacity: 0.6;
}

.footer-socials {
  display: flex;
  gap: 16px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--social-border-color);
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.footer-notice {
  font-size: 11px;
  color: var(--footer-copy);
  max-width: 360px;
  text-align: right;
}
.footer-notice a {
  color: #00C8FA;
  text-decoration: none;
}
.footer-notice a:hover {
  text-decoration: underline;
}

/* ---------- TOAST ---------- */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg-body);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid var(--header-border);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-notice {
    text-align: center;
  }
  .callback-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-desc {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 16px 24px;
    border-top: 1px solid var(--header-border);
  }
  .nav.active {
    display: flex;
  }
  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--header-border);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .burger {
    display: flex;
  }
  .hero-title {
    font-size: 28px;
  }
  .section-title {
    font-size: 26px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 60vh;
    padding: 40px 0;
  }
  .callback {
    padding: 48px 0;
  }
  .hero::before {
    opacity: calc(var(--city-opacity) * 0.7);
  }

  /* Уменьшаем логотипы на мобильных устройствах */
  .logo-img {
    height: 55px;
    max-width: 160px;
  }
  .footer-logo {
    height: 48px;
    max-width: 160px;
  }
}

/* ---------- ДОПОЛНИТЕЛЬНО: ПРАВИЛА ДЛЯ СТРАНИЦЫ ПОЛИТИКИ ---------- */
.privacy-header {
  padding: 60px 0 40px;
  background: var(--bg-body);
  text-align: center;
  border-bottom: 1px solid var(--header-border);
}
.privacy-header h1 {
  font-size: 36px;
  color: var(--text-primary);
}
.privacy-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.privacy-content {
  padding: 60px 0;
  background: var(--bg-body);
}
.privacy-block {
  max-width: 800px;
  margin: 0 auto 40px;
}
.privacy-block h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.privacy-block h3 {
  font-size: 20px;
  color: #735AE6;
  margin: 16px 0 8px;
}
.privacy-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.privacy-block ul {
  padding-left: 24px;
  margin: 12px 0;
}
.privacy-block li {
  color: var(--text-secondary);
  margin-bottom: 6px;
}