:root {
  /* Премиум цветовая палитра */
  --primary-color: #1a1d29;
  --secondary-color: #D4AF37;
  --accent-color: #C9A961;
  --accent-light: #E5D5A1;
  --text-color: #FFFFFF;
  --text-secondary: #B8BCC8;
  --light-color: #F8F9FA;
  --dark-color: #0F1117;
  --background-color: #1a1d29;
  --background-secondary: #252936;
  --card-color: rgba(37, 41, 54, 0.95);
  --card-hover: rgba(45, 49, 64, 0.98);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #D4AF37 0%, #C9A961 100%);
  --gradient-dark: linear-gradient(135deg, #1a1d29 0%, #252936 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
  
  /* Тени - премиум качество */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.25);
  
  /* Анимации */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-color: rgba(212, 175, 55, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background: var(--gradient-dark);
  background-attachment: fixed;
  position: relative;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100vw;
  height: auto;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* Добавим Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* Премиум scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
  border: 2px solid var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Selection styling */
::selection {
  background: var(--secondary-color);
  color: var(--dark-color);
  text-shadow: none;
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--dark-color);
  text-shadow: none;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Премиум анимация для секций */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

/* Убираем желтую полосу у секции workflow */
.workflow::before {
  display: none;
}

/* Контейнер для всего контента кроме header и hero */
.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .content-wrapper {
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .content-wrapper {
    padding: 0 15px;
  }
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.header .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1100px;
    padding: 0 40px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-badge {
    font-size: 1rem;
    padding: 10px 22px;
    gap: 12px;
    border-radius: 50px;
  }
  
  .hero-logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .hero-badge-sparkle {
    width: 18px;
    height: 18px;
  }
  
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .hero-feature {
    padding: 11px 13px;
  }
  
  .feature-icon {
    font-size: 1.4rem;
    width: 30px;
  }
  
  .feature-text strong {
    font-size: 0.95rem;
  }
  
  .feature-text span {
    font-size: 0.75rem;
  }
  
  .hero-info {
    gap: 9px;
  }
  
  .hero-info p {
    font-size: 0.95rem;
  }
  
  .header-logo {
    padding: 10px 18px;
    gap: 14px;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-top {
    font-size: 0.9rem;
  }
  
  .logo-building {
    font-size: 1.2rem;
  }
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
}

/* Премиум фоновые эффекты - удалены */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #E5C76B 0%, #D4AF37 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn > * {
  position: relative;
  z-index: 1;
}

/* Secondary button */
.btn.secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  box-shadow: var(--shadow-gold);
}

/* Декоративные элементы (картинки по краям) */
.decor {
  position: absolute;
  width: 400px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  opacity: 0.2;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
}
/* Индивидуальные настройки для каждой секции */
.hero .decor {
  background-image: url('main_img/project.webp');
  transform: rotate(180deg);
}

/* projects */
.our-projects .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 40%;
  left: -150px;
}
.our-projects .decor-right-top {
  background-image: url('main_img/project.webp');
    top: 10%;
  right: -150px;
  transform: rotate(270deg);
}
.our-projects .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 10%;
  right: -150px;
  transform: rotate(180deg);
}

/* about */
.about {
  background: linear-gradient(to bottom,
    var(--background-color) 0%,
    rgba(22, 24, 34, 0.98) 5%,
    rgba(22, 24, 34, 0.98) 95%,
    var(--background-color) 100%
  );
  padding: 60px 0 !important;
  position: relative;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Вступительный текст about */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.team-intro-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 30px auto 40px;
  max-width: 800px;
  font-style: italic;
  opacity: 0.9;
}

.about-btn-wrapper {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
}

.about-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.about-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.about-more-btn i:last-child {
  transition: transform 0.3s ease;
}

.about-more-btn:hover i:last-child {
  transform: translateX(5px);
}

.about-intro .section-description {
  text-align: left;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid var(--secondary-color);
  border-radius: 8px;
}

/* Управление видимостью текста "Познакомьтесь с людьми..." */
.team-intro-text-desktop {
  display: inline;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-style: italic;
}

.team-intro-text-mobile {
  display: none !important;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  margin-top: 12px;
}

.about .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 0;
  left: -150px;
  transform: rotate(180deg);
}
.about .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: -25%;
  left: -150px;
  transform: rotate(270deg);
}
.about .decor-right-top {
  background-image: url('main_img/project.webp');
    top: 0;
  right: -150px;
  transform: rotate(270deg);
}
.about .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: -10%;
  right: -10px;
  transform: rotate(180deg);
}

/* Дополнительные декоративные элементы для About - рандомные позиции */
.about .decor-left-middle-1 {
  background-image: url('main_img/project.webp');
  top: 18%;
  left: -150px;
  transform: rotate(45deg);
}

.about .decor-left-middle-2 {
  background-image: url('main_img/project.webp');
  top: 52%;
  left: -150px;
  transform: rotate(135deg);
}

.about .decor-right-middle-1 {
  background-image: url('main_img/project.webp');
  top: 28%;
  right: -150px;
  transform: rotate(225deg);
}

.about .decor-right-middle-2 {
  background-image: url('main_img/project.webp');
  top: 65%;
  right: 150px;
  transform: rotate(315deg);
}

/* Дополнительные декоративные элементы для About */
.about .decor-left-middle-1 {
  background-image: url('main_img/project.webp');
  top: 25%;
  left: -150px;
  transform: rotate(45deg);
}

.about .decor-left-middle-2 {
  background-image: url('main_img/project.webp');
  top: 60%;
  left: -150px;
  transform: rotate(135deg);
}

.about .decor-right-middle-1 {
  background-image: url('main_img/project.webp');
  top: 35%;
  right: -150px;
  transform: rotate(225deg);
}

.about .decor-right-middle-2 {
  background-image: url('main_img/project.webp');
  top: 70%;
  right: -150px;
  transform: rotate(315deg);
}

/* services */
.services .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 10%;
  left: -150px;
}
.services .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: 0;
  left: -150px;
  transform: rotate(90deg);
}
.services .decor-right-top {
  background-image: url('main_img/project.webp');
    top: 0;
  right: -150px;
  transform: rotate(180deg);
}
.services .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 0;
  right: -150px;
  transform: rotate(90deg);
}

/* workFlow */
.workflow .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 0;
  left: -150px;
}
.workflow .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: 0;
  left: -150px;
  transform: rotate(180deg);
}
.workflow .decor-right-top {
  background-image: url('main_img/project.webp');
  top: 0;
  right: -150px;
}
.workflow .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 0;
  right: -150px;
  transform: rotate(180deg);
}

/* contact */
.contact .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 20%;
  left: -150px;
}
.contact .decor-right-top {
  background-image: url('main_img/project.webp');
  top: 0;
  right: -150px;
}
.contact .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 0;
  right: -150px;
  transform: rotate(180deg);
}


/* Адаптация для мобильных */
@media (max-width: 768px) {
  .decor {
    display: block !important;
    width: 280px;
    height: 280px;
    opacity: 0.2;
    visibility: visible !important;
    z-index: 1;
  }
  
  /* About секция */
  .about .decor-left-top {
    top: 5%;
    left: -50px;
  }
  
  .about .decor-left-bottom {
    bottom: -5%;
    left: -50px;
  }
  
  .about .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  .about .decor-right-bottom {
    bottom: -5%;
    right: -50px;
  }
  
  /* Projects секция */
  .our-projects .decor-left-top {
    top: 20%;
    left: -50px;
  }
  
  .our-projects .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  .our-projects .decor-right-bottom {
    bottom: 5%;
    right: -50px;
  }
  
  /* Workflow секция */
  .workflow .decor-left-top {
    top: 5%;
    left: -50px;
  }
  
  .workflow .decor-left-bottom {
    bottom: 5%;
    left: -50px;
  }
  
  .workflow .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  .workflow .decor-right-bottom {
    bottom: 5%;
    right: -50px;
  }
  
  /* Contact секция */
  .contact .decor-left-top {
    top: 10%;
    left: -50px;
  }
  
  .contact .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  .contact .decor-right-bottom {
    bottom: 5%;
    right: -50px;
  }
  
  /* Tour секция */
  .tour-section .decor-left-bottom {
    bottom: 5%;
    left: -50px;
  }
  
  .tour-section .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  /* Testimonials секция */
  .testimonials-section .decor-left-top {
    top: 5%;
    left: -50px;
  }
  
  .testimonials-section .decor-left-bottom {
    bottom: 5%;
    left: -50px;
  }
  
  .testimonials-section .decor-right-top {
    top: 5%;
    right: -50px;
  }
  
  .testimonials-section .decor-right-bottom {
    bottom: 5%;
    right: -50px;
  }
  
  /* Yandex Map секция */
  .yandex-map .decor-left-bottom {
    bottom: 10%;
    left: -50px;
  }
  
  .yandex-map .decor-right-top {
    top: 10%;
    right: -50px;
  }
  
  .yandex-map .decor-left-middle-1 {
    top: 35%;
    left: -50px;
  }
  
  .yandex-map .decor-right-middle-1 {
    top: 30%;
    right: -50px;
  }
  
  /* About дополнительные элементы */
  .about .decor-left-middle-1 {
    top: 15%;
    left: -50px;
  }
  
  .about .decor-left-middle-2 {
    top: 45%;
    left: -50px;
  }
  
  .about .decor-right-middle-1 {
    top: 25%;
    right: -50px;
  }
  
  .about .decor-right-middle-2 {
    top: 55%;
    right: -50px;
  }
  
  /* Projects дополнительные элементы */
  .our-projects .decor-left-middle-1 {
    top: 50%;
    left: -50px;
  }
  
  .our-projects .decor-right-middle-1 {
    top: 25%;
    right: -50px;
  }
  
  .our-projects .decor-right-middle-2 {
    top: 60%;
    right: -50px;
  }
  
  /* Workflow дополнительные элементы */
  .workflow .decor-left-middle-1 {
    top: 20%;
    left: -50px;
  }
  
  .workflow .decor-left-middle-2 {
    top: 50%;
    left: -50px;
  }
  
  .workflow .decor-right-middle-1 {
    top: 30%;
    right: -50px;
  }
  
  .workflow .decor-right-middle-2 {
    top: 60%;
    right: -50px;
  }
  
  /* Contact дополнительные элементы */
  .contact .decor-left-middle-1 {
    top: 35%;
    left: -50px;
  }
  
  .contact .decor-right-middle-1 {
    top: 25%;
    right: -50px;
  }
}

@media (max-width: 576px) {
  .decor {
    display: block !important;
    width: 220px;
    height: 220px;
    opacity: 0.18;
    visibility: visible !important;
    z-index: 1;
  }
  
  /* About секция */
  .about .decor-left-top {
    left: -40px;
  }
  
  .about .decor-left-bottom {
    left: -40px;
  }
  
  .about .decor-right-top {
    right: -40px;
  }
  
  .about .decor-right-bottom {
    right: -40px;
  }
  
  /* Projects секция */
  .our-projects .decor-left-top {
    left: -40px;
  }
  
  .our-projects .decor-right-top {
    right: -40px;
  }
  
  .our-projects .decor-right-bottom {
    right: -40px;
  }
  
  /* Workflow секция */
  .workflow .decor-left-top {
    left: -40px;
  }
  
  .workflow .decor-left-bottom {
    left: -40px;
  }
  
  .workflow .decor-right-top {
    right: -40px;
  }
  
  .workflow .decor-right-bottom {
    right: -40px;
  }
  
  /* Contact секция */
  .contact .decor-left-top {
    left: -40px;
  }
  
  .contact .decor-right-top {
    right: -40px;
  }
  
  .contact .decor-right-bottom {
    right: -40px;
  }
  
  /* Tour секция */
  .tour-section .decor-left-bottom {
    left: -40px;
  }
  
  .tour-section .decor-right-top {
    right: -40px;
  }
  
  /* Testimonials секция */
  .testimonials-section .decor-left-top {
    left: -40px;
  }
  
  .testimonials-section .decor-left-bottom {
    left: -40px;
  }
  
  .testimonials-section .decor-right-top {
    right: -40px;
  }
  
  .testimonials-section .decor-right-bottom {
    right: -40px;
  }
  
  /* Yandex Map секция */
  .yandex-map .decor-left-bottom {
    left: -40px;
  }
  
  .yandex-map .decor-right-top {
    right: -40px;
  }
  
  .yandex-map .decor-left-middle-1 {
    top: 35%;
    left: -40px;
  }
  
  .yandex-map .decor-right-middle-1 {
    top: 30%;
    right: -40px;
  }
  
  /* About дополнительные элементы */
  .about .decor-left-middle-1 {
    left: -40px;
  }
  
  .about .decor-left-middle-2 {
    left: -40px;
  }
  
  .about .decor-right-middle-1 {
    right: -40px;
  }
  
  .about .decor-right-middle-2 {
    right: -40px;
  }
  
  /* Projects дополнительные элементы */
  .our-projects .decor-left-middle-1 {
    left: -40px;
  }
  
  .our-projects .decor-right-middle-1 {
    right: -40px;
  }
  
  .our-projects .decor-right-middle-2 {
    right: -40px;
  }
  
  /* Workflow дополнительные элементы */
  .workflow .decor-left-middle-1 {
    left: -40px;
  }
  
  .workflow .decor-left-middle-2 {
    left: -40px;
  }
  
  .workflow .decor-right-middle-1 {
    right: -40px;
  }
  
  .workflow .decor-right-middle-2 {
    right: -40px;
  }
  
  /* Contact дополнительные элементы */
  .contact .decor-left-middle-1 {
    left: -40px;
  }
  
  .contact .decor-right-middle-1 {
    right: -40px;
  }
}

/* Header - Премиум навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(90deg, 
    rgba(22, 24, 34, 0.95) 0%, 
    rgba(20, 22, 31, 0.95) 50%, 
    rgba(18, 20, 28, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 1200;
  transition: all 0.3s ease;
  overflow: visible;
  min-height: 60px;
}

.header.scrolled {
  background: linear-gradient(90deg, 
    rgb(15, 17, 25) 0%, 
    rgb(13, 15, 23) 50%, 
    rgb(12, 14, 22) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* .header::before - убрано */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  position: relative;
  min-height: 60px;
}

@media (min-width: 1400px) {
  .nav {
    padding: 5px 40px;
  }
}

/* Nav left - обертка для логотипа */
.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}

/* Логотип в header */
.logo-link {
  text-decoration: none;
  flex-shrink: 0;
  padding-left: 0;
  margin-left: 0;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.header-logo::after {
  display: none;
}

.header-logo:hover {
  transform: none;
}

.header-logo:hover .logo-icon {
  color: var(--secondary-color);
  transform: scale(1.05);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.logo-top {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.logo-building {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

/* Nav menu обертка */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
  order: 2;
  max-width: calc(100% - 300px); /* Защита от перекрытия логотипа и контактов */
}

.nav-menu > a, 
.nav-menu > ul {
  margin: 0 2px;
  position: relative;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 12px;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.3px;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  text-align: center;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav a::after {
  display: none;
}

.nav > a:hover, 
.nav li:hover > a {
  color: var(--secondary-color);
  background: transparent;
}

.nav a:hover::before {
  transform: scaleX(1);
}

.nav a:hover::after {
  display: none;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.nav > ul {
  display: inline-block;
}

.nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: rgba(26, 29, 41, 0.98);
  backdrop-filter: blur(10px);
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav ul li:hover > ul {
  display: block;
}

.nav ul ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0;
}

.nav ul ul li:last-child {
  border-bottom: none;
}

.nav ul ul a {
  padding: 14px 20px;
  display: block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  min-width: auto;
  text-align: left;
  font-size: 0.95rem;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav ul ul a::before {
  display: none;
}

.nav ul ul a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  padding-left: 24px;
}

/* Стиль для активной вкладки - Премиум */
.nav-menu > a.active,
.nav-menu > ul > li.active > a {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

.nav-menu > a.active::before,
.nav-menu > ul > li.active > a::before {
  transform: scaleX(1);
}

.nav-menu > a.active::after,
.nav-menu > ul > li.active > a::after {
  display: none;
}

/* Для выпадающего меню */
.nav ul ul li.active > a {
  color: var(--secondary-color) !important;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
}

/* Бургер меню (скрыто на десктопе, показывается когда меню не помещается) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  order: 1;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Центральный логотип (скрыт на десктопе) */
.nav-logo-center {
  display: none;
}

/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu {
  display: block;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-height: 0;
  background: rgba(15, 17, 25, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  overflow: hidden;
  padding: 0 20px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  max-height: calc(100vh - 60px);
  transform: translateY(0);
  opacity: 1;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 10px;
}

.mobile-menu-link {
  display: block;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  padding-left: 30px;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* Фикс для мобильных устройств */
@media (max-width: 768px) {
  /* Фиксируем высоту хедера на мобильных */
  .header {
    height: 60px;
  }
  
  .header .container {
    height: 100%;
  }
  
  /* Скрываем выпадающие списки на мобильных */
  .nav ul ul {
    display: none !important;
  }
  
  /* Перестраиваем хедер: бургер | лого | контакты */
  .nav {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    position: relative;
    height: 100%;
  }
  
  /* Показываем бургер */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Показываем центральный логотип */
  .nav-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Скрываем старый логотип слева */
  .nav-left {
    display: none;
  }
  
  /* Скрываем десктопное меню */
  .nav-menu {
    display: none !important;
  }
  
  /* Стилизуем логотип в центре */
  .nav-logo-center .header-logo {
    padding: 4px 8px;
    gap: 8px;
  }
  
  .nav-logo-center .logo-icon {
    width: 24px;
    height: 24px;
  }
  
  .nav-logo-center .logo-top {
    font-size: 0.65rem;
  }
  
  .nav-logo-center .logo-building {
    font-size: 0.85rem;
  }
  
  /* Кнопка контактов на мобильных */
  .contact-toggle-btn {
    padding: 8px;
    font-size: 0.75rem;
    gap: 0;
    position: static;
    transform: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .contact-toggle-btn .contact-btn-text {
    display: none;
  }
  
  .contact-toggle-btn i {
    font-size: 1.1rem;
    margin: 0;
  }
  
  /* Мобильное меню уже настроено выше */
}

/* Родительские контейнеры для sticky */
.maklknknin-content-wrapper,
.main {
  overflow: visible;
  height: auto;
}

/* Hero Section с видео-фоном */
.hero {
  padding: 100px 0 30px 0;
  color: white;
  position: relative;
  overflow: visible !important;
  height: auto;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

.hero > .container {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
}

/* Видео-фон */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Мобильная версия — показываем Plan_Architecture_mobile */
.hero-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }
}

/* Затемнение видео */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-video-overlay {
    background: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 576px) {
  .hero-video-overlay {
    background: rgba(0, 0, 0, 0.75);
  }
}

/* Контент поверх видео */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  flex: 0 0 auto;
}

/* Левая часть Hero */
.hero-left {
  text-align: left;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: calc(100vh - 200px);
  padding-top: 0;
}

@media (max-width: 768px) {
  .hero-left {
    min-height: auto;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hero-left {
    min-height: auto;
    gap: 15px;
  }
}

/* Кнопка контактов в header */
.contact-toggle-btn {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  order: 3;
  margin-left: auto;
}

.contact-toggle-btn i {
  font-size: 1rem;
}

.contact-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #E5C76B 0%, #D4AF37 100%);
}

/* Адаптация хедера для средних экранов - меню переносится на вторую строку */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-menu {
    max-width: calc(100% - 250px);
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    max-width: calc(100% - 200px);
  }
}

@media (max-width: 1000px) {
  .nav-menu {
    max-width: calc(100% - 180px);
  }
}

@media (max-width: 900px) {
  .nav-menu {
    max-width: calc(100% - 160px);
  }
}

/* Когда меню точно не помещается - показываем бургер */
@media (max-width: 850px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  .nav-left {
    display: none;
  }
  
  .nav-logo-center {
    display: flex;
    order: 2;
    justify-content: center;
    flex: 1;
  }
  
  .contact-toggle-btn {
    order: 3;
  }
}

/* Сайдбар контактов (скрыт по умолчанию) */
.hero-sidebar {
  position: fixed;
  top: 0;
  right: -500px;
  bottom: 0;
  width: 420px;
  z-index: 1250;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  padding: 20px;
  overflow: hidden;
}

.hero-sidebar.active {
  right: 0;
}

/* Контактная карточка справа */
.hero-contact-card {
  background: rgba(26, 29, 41, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 40px);
}

.hero-contact-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Кнопка закрытия сайдбара */
.sidebar-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sidebar-close-btn:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  border-color: var(--secondary-color);
  transform: rotate(90deg);
}

/* Кастомный скроллбар для сайдбара */
.hero-contact-card::-webkit-scrollbar {
  width: 6px;
}

.hero-contact-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.hero-contact-card::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 3px;
}

.hero-contact-card::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}


.hero-contact-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-contact-card .ceo-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-contact-card .advantage-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-contact-card .advantage-description strong {
  color: var(--secondary-color);
}

/* Контактные кнопки */
.hero-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}


.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn i {
  font-size: 1.2rem;
}

.primary-contact {
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  box-shadow: var(--shadow-gold);
}

.primary-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.secondary-contact {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.secondary-contact:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

/* Мессенджеры */
.messenger-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Большая кнопка "Назад" внизу сайдбара */
.sidebar-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  position: relative;
  z-index: 1;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #E5C76B 0%, #D4AF37 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.sidebar-back-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

.sidebar-back-btn:hover::before {
  opacity: 1;
}

.sidebar-back-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.sidebar-back-btn i {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.sidebar-back-btn:hover i {
  transform: translateX(-5px);
}

.sidebar-back-btn span {
  position: relative;
  z-index: 1;
}

.messenger-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.messenger-btn i {
  font-size: 1.6rem;
}

.messenger-btn span {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: white;
}

.telegram:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.viber {
  background: linear-gradient(135deg, #7360f2 0%, #5d4fc9 100%);
  color: white;
}

.viber:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(115, 96, 242, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
  color: white;
}

.whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Футер контактной карточки */
.contact-info-footer {
  padding-top: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.contact-info-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-info-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 4px 0;
}

.contact-info-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-info-footer a:hover {
  color: var(--secondary-color);
  transform: scale(1.05);
}

.contact-info-footer a:hover::after {
  transform: scaleX(1);
}

.contact-info-footer a:active {
  transform: scale(0.98);
}

.contact-info-footer i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Бейдж компании - Премиум логотип */
.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(201, 169, 97, 0.1) 100%);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: badgePulse 3s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  max-width: 100%;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(212, 175, 55, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 32px rgba(212, 175, 55, 0.5),
      0 0 40px rgba(212, 175, 55, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Иконка дома в логотипе */
.hero-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
  animation: iconFloat 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Текст логотипа */
.hero-badge-text {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero-badge-highlight {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

/* Звездочка-блик */
.hero-badge-sparkle {
  width: 16px;
  height: 16px;
  color: var(--secondary-color);
  animation: sparkle 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes sparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

/* Hover эффект для логотипа */
.hero-badge:hover {
  transform: scale(1.05);
  border-color: #E5C76B;
  box-shadow: 
    0 12px 40px rgba(212, 175, 55, 0.5),
    0 0 60px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-badge:hover .hero-logo-icon {
  animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-2px);
  }
  75% {
    transform: translateY(-4px);
  }
}

/* Заголовок */
.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: #fff;
}

.hero-title .highlight {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  animation: glow 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 300;
  line-height: 1.5;
}

/* USP Features с счетчиками */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  column-gap: 8px;
  row-gap: 8px;
  margin-bottom: 40px;
  justify-content: start;
}

.hero-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
}

.hero-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
}

.hero-feature:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 1.3rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  position: relative;
  z-index: 1;
}

.feature-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1px;
}

.feature-text span {
  font-size: 0.75rem;
  opacity: 0.85;
  color: #fff;
  line-height: 1.25;
}

/* Анимированный счетчик */
.counter {
  display: inline-block;
  font-weight: 700;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

/* Старые стили hero-social-proof удалены, используется hero-contact-card */

/* CEO Highlight */
.ceo-highlight {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.ceo-avatar {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.ceo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.online-badge i {
  font-size: 0.75rem;
  color: #4CAF50;
  animation: pulse 2s ease-in-out infinite;
}

.ceo-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ceo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ceo-title {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Старые стили advantage-text удалены, используются стили в hero-contact-card */

/* Старые стили hero-cta удалены, кнопки теперь в hero-contact-card */

/* Дополнительная информация */
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.hero-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  opacity: 0.9;
  margin: 0;
  transition: all 0.3s ease;
  text-align: left;
  line-height: 1.5;
}

.hero-info p:hover {
  opacity: 1;
  transform: translateX(3px);
}

.hero-info p:hover i {
  transform: scale(1.1);
}

.hero-info i {
  color: var(--secondary-color);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  width: 16px;
  text-align: center;
  margin-top: 2px;
}

.hero-info p span {
  flex: 1;
  text-align: left;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(212, 175, 55, 0.4),
      0 0 0 4px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 32px rgba(212, 175, 55, 0.6),
      0 0 0 8px rgba(212, 175, 55, 0.15);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 232, 72, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 232, 72, 0.8), 0 0 30px rgba(255, 232, 72, 0.6);
  }
}

 /* Стили для модального окна */
    .project-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1300;
        padding-top: 80px;
    }
    
    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        
    }
    
    .modal-content {
        position: relative;
        max-width: 90%;
        max-height: calc(90vh - 80px);
        margin: 0 auto;
        background: white;
        border-radius: 10px;
        overflow: hidden;
        z-index: 1301;
        background-color: var(--card-color);
    }
    
    .modal-header {
        padding: 20px;
        background-color: #1A1D25;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid var(--accent-color);
        position: relative;
    }
    
    .modal-header h3 {
        margin: 0;
        color: var(--text-color);
        font-size: 1.5rem;
        text-align: center;
        flex: 1;
    }
    
    .modal-tabs {
        display: flex;
        gap: 10px;
    
    }
    
    .modal-tab {
        padding: 8px 16px;
  background: var(--background-color);
  border: 1px solid var(--accent-color);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--accent-color);
    }
    
  .modal-tab.active, 
.modal-tab:hover {
  background: var(--accent-color);
  color: var(--dark-color);
}
    
    .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    
    .modal-body {
        padding: 20px;
        height: 70vh;
        overflow: hidden;
    }
    
    .modal-slider {
        display: none;
        height: 100%;
        position: relative;
    }
    
    .modal-slider.active {
        display: block;
    }
    
    .slider-container {
        display: flex;
        height: calc(100% - 40px);
        overflow: hidden;
        scroll-behavior: smooth;
    }
    
    .slider-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .slider-prev, .slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .slider-prev:hover, .slider-next:hover {
        background: var(--gradient-primary);
        border: 2px solid var(--secondary-color);
        color: var(--dark-color);
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    }
    
    .slider-prev:active, .slider-next:active {
        transform: translateY(-50%) scale(1.05);
    }
    
    .slider-prev {
        left: 20px;
    }
    
    .slider-next {
        right: 20px;
    }
    
    /* Стили для мобильной версии - стрелки ниже фото с желтым border-radius */
    @media (max-width: 768px) {
        .slider-prev, .slider-next {
            top: auto !important;
            bottom: 20px !important;
            background: rgba(0, 0, 0, 0.7);
            border: 2px solid var(--secondary-color);
            border-radius: 12px;
            width: 45px;
            height: 45px;
            font-size: 18px;
            backdrop-filter: blur(10px);
            position: absolute !important;
        }
        
        .slider-prev:hover, .slider-next:hover {
            background: var(--gradient-primary);
            transform: scale(1.1) !important;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
        }
        
        .slider-prev:active, .slider-next:active {
            transform: scale(1.05) !important;
        }
        
        .slider-prev {
            left: calc(50% - 60px) !important;
            right: auto !important;
            transform: none !important;
        }
        
        .slider-prev:hover {
            transform: scale(1.1) !important;
        }
        
        .slider-prev:active {
            transform: scale(1.05) !important;
        }
        
        .slider-next {
            right: calc(50% - 60px) !important;
            left: auto !important;
            transform: none !important;
        }
        
        .slider-next:hover {
            transform: scale(1.1) !important;
        }
        
        .slider-next:active {
            transform: scale(1.05) !important;
        }
    }
    
    @media (max-width: 576px) {
        .slider-prev, .slider-next {
            bottom: 15px !important;
            width: 40px;
            height: 40px;
            font-size: 16px;
            border-radius: 10px;
        }
        
        .slider-prev {
            left: calc(50% - 50px) !important;
            right: auto !important;
            transform: none !important;
        }
        
        .slider-prev:hover {
            transform: scale(1.1) !important;
        }
        
        .slider-prev:active {
            transform: scale(1.05) !important;
        }
        
        .slider-next {
            right: calc(50% - 50px) !important;
            left: auto !important;
            transform: none !important;
        }
        
        .slider-next:hover {
            transform: scale(1.1) !important;
        }
        
        .slider-next:active {
            transform: scale(1.05) !important;
        }
    }

/* Большая кнопка "Назад" в модальном окне */
.modal-header .modal-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    left: 20px;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.modal-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-back-btn:hover {
    transform: translateX(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
}

.modal-back-btn:hover::before {
    opacity: 1;
}

.modal-back-btn:active {
    transform: translateX(-1px) scale(1.02);
}

.modal-back-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.modal-back-btn:hover i {
    transform: translateX(-5px);
}

.modal-back-btn span {
    position: relative;
    z-index: 1;
}

/* Кнопка закрытия модального окна (крестик) */
.modal-close-btn {
    position: absolute;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.modal-close-btn:active {
    transform: rotate(90deg) scale(1.05);
}

.modal-close-btn i {
    transition: transform 0.3s ease;
}

/* Полноэкранный просмотр изображения */
.image-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-fullscreen img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.fullscreen-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.fullscreen-close-btn:hover {
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
    transform: rotate(90deg) scale(1.2);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.fullscreen-close-btn i {
    transition: transform 0.3s ease;
}

/* Адаптивность для кнопок в header */
@media (max-width: 768px) {
    .modal-header .modal-back-btn {
        position: static;
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .modal-close-btn {
        position: static;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-left: 10px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Projects Section */
.our-projects {
  padding: 40px 0 80px 0;
  background: linear-gradient(to bottom,
    var(--background-color) 0%,
    rgba(22, 24, 34, 0.98) 5%,
    rgba(22, 24, 34, 0.98) 95%,
    var(--background-color) 100%
  );
  position: relative;
  overflow: visible;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 15px;
  color: var(--text-color);
  position: relative;
  z-index: 5;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 40px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
  color: var(--text-color);
  position: relative;
  z-index: 5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 100%;
  width: 100%;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.project-card {
  background: var(--card-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  cursor: pointer;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
  z-index: 2;
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-gold);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-info h3 {
  margin: 0 0 15px;
  font-size: 1.375rem;
  color: var(--text-color);
  min-height: 50px;
  display: flex;
  align-items: center;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 5px;
  min-height: 80px;
}

.project-features li {
  margin-bottom: 8px;
  color: var(--text-color);
  opacity: 0.8;
}

.project-features i {
  margin-right: 8px;
  color: var(--text-color);
  width: 20px;
  text-align: center;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 5px;
}

.project-price {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.btn-details {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 6px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.75rem;
}

.btn-details:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Team Section */
.section-about{
position: relative;
}

.team-section {
   margin-top: 40px;
}

.team-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.team-tab {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.team-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 0;
}

.team-tab > * {
  position: relative;
  z-index: 1;
}

.team-tab:hover {
  border-color: var(--secondary-color);
  color: #000000 !important;
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
}

.team-tab:hover::before {
  display: none;
}

.team-tab.active::before {
  display: none;
}

.team-tab.active {
  color: #000000 !important;
  font-weight: 700;
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%) !important;
  border-color: var(--secondary-color);
  text-shadow: none !important;
}

.team-tab.active > * {
  color: #000000 !important;
  text-shadow: none !important;
}

.team-cards {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 30px;
  max-width: 100%;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.team-cards.active {
  display: grid;
}


.team-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}


.team-name {
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 2px solid var(--secondary-color);
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.team-photo a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Кнопка контактов в карточке команды */
.team-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.team-contact-btn i {
  font-size: 0.9rem;
}

.team-contact-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-shrink: 0;
}

.team-social a {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.team-social a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.team-position {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.team-description {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 0;
  flex-grow: 0;
}

/* Прижимаем кнопку к тексту в карточке руководителя */
.team-card .team-description + .team-contact-btn {
  margin-top: 8px;
}

/* Заполнитель для карточек без кнопки контактов - убираем, так как больше не нужен */
.team-card-spacer {
  display: none;
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.team-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-social-links a:hover {
  background: var(--gradient-primary);
  color: var(--dark-color);
  transform: translateY(-2px);
}

.team-social-links a i {
  font-size: 1.1rem;
}

/* Убеждаемся, что все карточки имеют одинаковую высоту */
.team-card {
  justify-content: flex-start;
}

/* Tour Section */
.tour-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: visible;
}

.tour-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.tour-text {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.tour-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start;
}

.tour-videos {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 10px;
}

.tour-videos h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3rem;
}

.video-container {
  margin-bottom: 25px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: background 0.3s ease;
  pointer-events: none;
}

.video-thumbnail:hover .play-button-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(231, 76, 60, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.video-thumbnail:hover .play-icon-large {
  transform: scale(1.1);
  background: rgba(231, 76, 60, 1);
}

.google-drive-video {
  position: relative;
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: 8px;
}

.video-wrapper p {
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* Старые стили для плейсхолдеров (если понадобятся) */
.video-placeholder {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  transform: translateY(-5px);
}

.video-placeholder img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(231, 76, 60, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.video-placeholder p {
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

.tour-form-wrapper {
  position: sticky;
  top: 20px;
}

.tour-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-form h3 {
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-color);
  background: rgba(26, 29, 41, 0.6);
  backdrop-filter: blur(10px);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(26, 29, 41, 0.8);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.tour-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-top: 10px;
  background: var(--accent-color);
  border: none;
  color: var(--dark-color);
}

.tour-form .btn:hover {
  background: #c0392b;
  color: white;
}


/* Стили для секции "Процесс строительства дома" */
.workflow {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(to bottom,
      var(--background-color) 0%,
      rgba(22, 24, 34, 0.98) 5%,
      rgba(22, 24, 34, 0.98) 95%,
      var(--background-color) 100%
    );
    color: #fff;
    overflow: visible;
    overflow: hidden;
}

.workflow-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #ccd6f6;
}

/* Кнопки переключения этапов */
.workflow-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    padding: 0 20px;
}

.workflow-tabs::-webkit-scrollbar {
    display: none;
}

.workflow-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 55px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Увеличиваем z-index для первой и последней кнопки, чтобы иконки не обрезались */
.workflow-tab:first-child,
.workflow-tab:last-child {
    z-index: 10;
    overflow: visible;
}

/* Дополнительная защита для иконок первой и последней кнопки */
.workflow-tab:first-child i,
.workflow-tab:last-child i {
    position: relative;
    z-index: 15;
    overflow: visible;
}

/* Убеждаемся, что иконки не обрезаются */
.workflow-tab i {
    font-size: 0.75rem;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.workflow-tab span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.workflow-tab:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.workflow-tab.active {
    color: var(--secondary-color);
}

/* Слайдер этапов */
.workflow-slider {
    position: relative;
    min-height: 400px;
}

/* Стрелки навигации */
.workflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.workflow-arrow:hover {
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.workflow-arrow-prev {
    left: -60px;
}

.workflow-arrow-next {
    right: -60px;
}

.workflow-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.workflow-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.workflow-step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.workflow-slide.active {
    display: grid;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-slide-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.workflow-slide-image img,
.workflow-slide-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-slide-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.workflow-slide-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0;
}

.workflow-slide-time-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.workflow-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.workflow-slide-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.workflow-slide-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.workflow-slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workflow-slide-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.workflow-slide-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.workflow-slide-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    width: fit-content;
}

.workflow-slide-time i {
    font-size: 1.1rem;
}

/* Адаптивность для workflow */
@media (max-width: 992px) {
    .workflow-slide {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    
    .workflow-slide-image {
        height: 250px;
    }
    
    .workflow-arrow-prev {
        left: 10px;
    }
    
    .workflow-arrow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    /* Скрываем табы полностью на мобильных */
    .workflow-tabs {
        display: none !important;
    }
    
    .workflow-tab {
        min-width: auto;
        padding: 8px 6px;
        width: 100%;
    }
    
    /* Скрываем иконки на мобильных */
    .workflow-tab i {
        display: none !important;
    }
    
    .workflow-tab span {
        font-size: 0.7rem;
    }
    
    /* Скрываем стрелки навигации на мобильных */
    .workflow-arrow {
        display: none !important;
    }
    
    /* Вертикальный layout для карточек на мобильных */
    .workflow-slider {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden;
        overflow-y: visible;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        align-items: stretch;
    }
    
    /* Показываем все карточки в колонку */
    .workflow-slide {
        display: flex !important;
        flex-direction: column;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: auto;
        flex-shrink: 0;
        margin-right: 0;
        margin-left: 0;
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 15px;
        justify-content: space-between;
    }
    
    /* Убираем специальные отступы для первой и последней карточки */
    .workflow-slide:first-child {
        margin-left: 0;
    }
    
    .workflow-slide:last-child {
        margin-right: 0;
    }
    
    .workflow-slide-image {
        height: 200px;
        flex-shrink: 0;
    }
    
    .workflow-slide-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: space-between;
        gap: 15px;
    }
    
    .workflow-slide-title {
        font-size: 1.25rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .workflow-slide-text {
        font-size: 1rem;
        flex: 1;
        margin: 0;
    }
    
    .workflow-slide-list {
        flex: 1;
        margin: 0;
    }
    
    .workflow-slide-time-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .workflow-slide-btn {
        padding: 6px 16px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .workflow-slide-list li {
        font-size: 1rem;
    }
    
    .workflow-step-number {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 180px);
    gap: 20px;
    height: 800px;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.workflow-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.6);
    display: none;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #fff;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.card-description ul {
    padding-left: 20px;
    margin: 10px 0;
}

.card-description li {
    margin-bottom: 5px;
    position: relative;
}

.card-description li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: #64ffda;
}

.card-time {
    font-size: 0.9rem;
    color: #64ffda;
    font-weight: bold;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Расположение и размеры карточек */
.card-consultation {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
    background-color: #1a365d;
}

.card-design {
    grid-column: 5 / span 4;
    grid-row: 1 / span 1;
    background-color: #2c3e50;
}

.card-contract {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
    background-color: #4a235a;
}

.card-preparation {
    grid-column: 1 / span 3;
    grid-row: 3 / span 2;
    background-color: #1b4f72;
}

.card-foundation {
    grid-column: 4 / span 5;
    grid-row: 3 / span 1;
    background-color: #5d4037;
}

.card-walls {
    grid-column: 4 / span 5;
    grid-row: 4 / span 1;
    background-color: #e65100;
}

.card-engineering {
    grid-column: 9 / span 2;
    grid-row: 3 / span 2;
    background-color: #006064;
}

.card-finishing {
    grid-column: 11 / span 2;
    grid-row: 3 / span 1;
    background-color: #1b5e20;
}

.card-movein {
    grid-column: 11 / span 2;
    grid-row: 4 / span 1;
    background-color: #3e2723;
}

/* Фоновые изображения для карточек - ОТКЛЮЧЕНЫ */
/* .card-consultation .card-bg {
    background-image: url('main_img/workFlow/consyltacion.jpg');
}

.card-design .card-bg {
    background-image: url('main_img/workFlow/projects.jpg');
}

.card-contract .card-bg {
    background-image: url('main_img/workFlow/dogovor.jpg');
}

.card-preparation .card-bg {
    background-image: url('main_img/workFlow/buldozer.jpg');
}

.card-foundation .card-bg {
    background-image: url('main_img/workFlow/fundament.jpg');
}

.card-walls .card-bg {
    background-image: url('main_img/workFlow/steny_krisha.jpg');
}

.card-engineering .card-bg {
    background-image: url('main_img/workFlow/inzheniria.jpg');
}

.card-finishing .card-bg {
    background-image: url('https://images.unsplash.com/photo-1600121848594-d8644e57abab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
} */



/* Адаптивность */
@media (max-width: 1200px) {
    .workflow-grid {
        grid-template-rows: repeat(5, 150px);
        height: 900px;
    }
    
    .card-consultation {
        grid-column: 1 / span 6;
    }
    
    .card-design {
        grid-column: 7 / span 6;
    }
    
    .card-contract {
        grid-column: 1 / span 6;
        grid-row: 2 / span 1;
    }
    
    .card-preparation {
        grid-column: 7 / span 6;
        grid-row: 2 / span 1;
    }
    
    .card-foundation {
        grid-column: 1 / span 4;
        grid-row: 3 / span 1;
    }
    
    .card-walls {
        grid-column: 5 / span 4;
        grid-row: 3 / span 1;
    }
    
    .card-engineering {
        grid-column: 9 / span 4;
        grid-row: 3 / span 1;
    }
    
    .card-finishing {
        grid-column: 1 / span 3;
        grid-row: 4 / span 1;
    }
    
    .card-movein {
        grid-column: 4 / span 3;
        grid-row: 4 / span 1;
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .workflow-card {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Font Awesome для иконок */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Yandex Map Section */
.yandex-map {
  padding: 60px 0;
  background: linear-gradient(to bottom,
    var(--background-color) 0%,
    rgba(22, 24, 34, 0.98) 5%,
    rgba(22, 24, 34, 0.98) 95%,
    var(--background-color) 100%
  );
  position: relative;
  overflow: visible;
}

/* Декоративные элементы для секции карты */
.yandex-map .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: 15%;
  left: -150px;
  transform: rotate(180deg);
}

.yandex-map .decor-right-top {
  background-image: url('main_img/project.webp');
  top: 15%;
  right: -150px;
  transform: rotate(0deg);
}

/* Дополнительные декоративные элементы для Yandex Map - рандомные позиции */
.yandex-map .decor-left-middle-1 {
  background-image: url('main_img/project.webp');
  top: 45%;
  left: -150px;
  transform: rotate(45deg);
}

.yandex-map .decor-right-middle-1 {
  background-image: url('main_img/project.webp');
  top: 38%;
  right: -150px;
  transform: rotate(225deg);
}

/* Tour Section декоративные элементы */
.tour-section .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 12%;
  left: -150px;
  transform: rotate(90deg);
}

.tour-section .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: 8%;
  left: -150px;
  transform: rotate(180deg);
}

.tour-section .decor-right-top {
  background-image: url('main_img/project.webp');
  top: 8%;
  right: -150px;
  transform: rotate(270deg);
}

.tour-section .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 15%;
  right: -150px;
  transform: rotate(0deg);
}

/* Дополнительные декоративные элементы для Tour Section - рандомные позиции */
.tour-section .decor-left-middle-1 {
  background-image: url('main_img/project.webp');
  top: 35%;
  left: -150px;
  transform: rotate(45deg);
}

.tour-section .decor-left-middle-2 {
  background-image: url('main_img/project.webp');
  top: 58%;
  left: -150px;
  transform: rotate(135deg);
}

.tour-section .decor-right-middle-1 {
  background-image: url('main_img/project.webp');
  top: 42%;
  right: -150px;
  transform: rotate(225deg);
}

.tour-section .decor-right-middle-2 {
  background-image: url('main_img/project.webp');
  top: 65%;
  right: -150px;
  transform: rotate(315deg);
}

.yandex-map h2 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
  font-size: 2rem;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dev-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 12px 24px;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.7;
}

.dev-notice i {
  font-size: 1rem;
}

/* Стили для балунов Яндекс.Карт */
[class*="ymaps"][class*="balloon"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

[class*="ymaps"][class*="balloon__content"],
[class*="ymaps"][class*="balloon__layout"],
[class*="ymaps"][class*="balloon-content"],
[class*="ymaps"][class*="balloon__panel"] {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

[class*="ymaps"][class*="balloon__content-wrapper"] {
  background: transparent !important;
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Убираем все возможные обёртки */
[class*="balloon"] > div,
[class*="balloon"] > ymaps,
[class*="balloon__"] > div {
  background: transparent !important;
  border: none !important;
}

/* Универсальный селектор для всех элементов Яндекса */
[class*="ymaps"] [class*="balloon"] *:not([style*="background: linear-gradient"]) {
  background: transparent !important;
  border: none !important;
}

/* Прямой родитель нашего контента */
[class*="balloon"] > div[style] {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Стили для кнопки закрытия в балуне */
[class*="balloon"] button:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.map-balloon-custom {
  background: linear-gradient(135deg, #1a1d25 0%, #2c2f38 100%);
  border-radius: 15px;
  overflow: hidden;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.map-balloon-header {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.map-balloon-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.map-balloon-body {
  padding: 15px 20px;
}

.map-balloon-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.map-balloon-address {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.map-balloon-address i {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.map-balloon-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-balloon-photos::-webkit-scrollbar {
  height: 4px;
}

.map-balloon-photos::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.map-balloon-photos::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 2px;
}

.map-balloon-photo {
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-balloon-photo:hover {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.map-balloon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer - Премиум дизайн */
.footer {
  background: linear-gradient(90deg, 
    rgba(22, 24, 34, 0.95) 0%, 
    rgba(20, 22, 31, 0.95) 50%, 
    rgba(18, 20, 28, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 30px 0 0;
  border-top: 1px solid var(--border-color);
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.footer-logo .logo-icon {
  width: 22px;
  height: 22px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.footer-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo .logo-top {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
  font-family: 'Playfair Display', serif;
}

.footer-logo .logo-building {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 1.2px;
  margin-top: 1px;
  font-family: 'Inter', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
  max-width: 100%;
  width: 100%;
}

.footer-col {
  margin-bottom: 0;
}

.footer-col p {
  opacity: 0.85;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-col h4 {
  color: white;
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
  margin-top: 0;
}

/* Контакты прижаты максимально вверх - последняя колонка */
.footer-col:last-child h4 {
  margin-top: 0;
  margin-bottom: 4px;
  padding-bottom: 2px;
}

.footer-col:last-child address {
  margin-top: 0;
}

.footer-col:last-child address p:first-child {
  margin-top: 0;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-menu,
.footer-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li,
.footer-services li {
  margin-bottom: 4px;
}

.footer-menu a,
.footer-services a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-menu a:hover,
.footer-services a:hover {
  color: white;
  padding-left: 5px;
}

address p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-style: normal;
  opacity: 0.8;
  font-size: 0.9rem;
}

address p i {
  font-size: 0.85rem;
}

address a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

address a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.social-icon i {
  position: relative;
  z-index: 1;
}

.social-icon:hover {
  border-color: var(--secondary-color);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: var(--shadow-gold);
}

.social-icon:hover::before {
  transform: scale(1);
}

.social-icon:hover i {
  color: var(--dark-color);
}

.footer-btn {
  width: 100%;
  padding: 8px 16px;
  background: var(--gradient-primary);
  border: none;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.footer-btn i {
  font-size: 0.85rem;
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
  
  .background-side-image {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 20px;
  }
  
  .hero-features {
    gap: 15px;
  }
  
  .hero-feature {
    padding: 12px 20px;
    min-width: 120px;
  }
  
  .feature-icon {
    font-size: 1.5rem;
  }
  
  .ceo-avatar {
    width: 55px;
    height: 55px;
  }
  
  .ceo-name {
    font-size: 0.95rem;
  }
  
  .tour-content {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .footer-container {
    padding: 0 30px;
  }
  
  .footer {
    padding: 25px 0 0;
  }
  
  .footer-logo .logo-top {
    font-size: 0.85rem;
  }
  
  .footer-logo .logo-building {
    font-size: 0.68rem;
  }
}

@media (max-width: 1400px) {
  .hero-sidebar {
    width: 380px;
  }
}

@media (max-width: 1200px) {
  .hero-sidebar {
    width: 360px;
  }
  
  .hero-contact-card {
    padding: 24px;
  }
  
  .contact-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .messenger-btn {
    padding: 12px 8px;
  }
  
  .messenger-btn i {
    font-size: 1.6rem;
  }
  
  .messenger-btn span {
    font-size: 0.7rem;
  }
}

@media (max-width: 992px) {
  .contact-toggle-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    right: 15px;
  }
  
  .hero-sidebar {
    width: 90%;
    max-width: 400px;
    right: -100%;
    padding: 15px;
  }
  
  .hero-sidebar.active {
    right: 0;
  }
  
  .hero-left {
    text-align: center;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
  }
  
  .hero-feature {
    padding: 12px 15px;
    gap: 10px;
    max-width: 100%;
  }
  
  .feature-icon {
    font-size: 1.4rem;
    width: 28px;
  }
  
  .feature-text strong {
    font-size: 1rem;
  }
  
  .feature-text span {
    font-size: 0.85rem;
  }
  
  .hero-info {
    gap: 7px;
  }
  
  .hero-contact-card {
    height: 100%;
    padding: 24px;
  }
  
  .messenger-buttons {
    grid-template-columns: 1fr;
  }
  
  .messenger-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 20px;
  }
  
  .messenger-btn i {
    font-size: 1.5rem;
  }
  
  .messenger-btn span {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Секция "О нас" - горизонтальный скролл для карточек */
  .about-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .about-intro .section-description {
    padding: 18px;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .about-btn-wrapper {
    margin-top: 30px;
    padding-top: 25px;
  }
  
  .about-more-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  /* Размеры шрифтов для секций на мобильных */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .section-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Размеры шрифтов для карточек команды */
  .team-name {
    font-size: 1.125rem;
  }
  
  .team-position {
    font-size: 0.95rem;
  }
  
  .team-description {
    font-size: 1rem;
  }
  
  .team-contact-btn {
    font-size: 1rem;
  }
  
  /* Управление видимостью текста "Познакомьтесь..." */
  .team-intro-text-desktop {
    display: none !important;
  }
  
  .team-intro-text-mobile {
    display: block !important;
  }
  
  /* Горизонтальный скролл для карточек команды на мобильных */
  .about {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  
  .about .container {
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 0;
  }
  
  .about .content-wrapper {
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-left: 20px;
    padding-right: 0;
    max-width: 100%;
  }
  
  .team-section {
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100vw;
    margin-left: calc(-20px - 15px);
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    padding-top: 0;
  }
  
  .team-cards {
    display: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;
    gap: 20px;
    padding: 0 15px 20px 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(255, 255, 255, 0.05);
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  .team-cards.active {
    display: flex !important;
    scroll-behavior: auto !important;
    justify-content: flex-start !important;
  }
  
  .team-card {
    scroll-snap-align: start;
  }
  
  .team-cards::-webkit-scrollbar {
    height: 8px;
  }
  
  .team-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  
  .team-cards::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
  }
  
  .team-cards::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
  }
  
  .team-card {
    flex-shrink: 0 !important;
    min-width: 250px !important;
    max-width: 250px !important;
    width: 250px !important;
    min-height: 450px;
    height: auto;
  }
  
  /* Первая карточка должна быть видна полностью */
  .team-cards .team-card:first-child {
    margin-left: 15px;
    scroll-margin-left: 0;
  }
  
  /* Последняя карточка должна быть видна полностью */
  .team-cards .team-card:last-child {
    margin-right: 0;
  }
  
  /* Принудительно устанавливаем начальную позицию скролла через JavaScript */
  
  /* Размеры шрифтов для проектов */
  .project-info h3 {
    font-size: 1.25rem;
  }
  
  .project-price {
    font-size: 1.125rem;
  }
  
  .btn-details {
    font-size: 0.875rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    padding: 80px 0 30px 0;
  }
  
  .hero > .container {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .hero-content-wrapper {
    gap: 30px;
  }
  
  .hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 1;
    color: #fff;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  .hero-feature {
    padding: 14px 16px;
    gap: 12px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .feature-icon {
    font-size: 1.4rem;
    width: 28px;
  }
  
  .feature-text strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .feature-text span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 1;
  }
  
  .hero-info p {
    font-size: 1.125rem;
    color: #fff;
    opacity: 1;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-info i {
    font-size: 1.125rem;
  }
  
  /* Стили кнопки контактов наследуются из основного медиа-запроса выше */
  
  .hero-sidebar {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }
  
  .hero-contact-card {
    padding: 20px;
  }
  
  .contact-info-footer a {
    font-size: 1.2rem;
  }
  
  .contact-info-footer i {
    font-size: 1rem;
  }
  
  .hero-info {
    margin-top: 8px;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 18px;
    margin-bottom: 20px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 8px;
  }
  
  .hero-feature {
    padding: 10px 8px;
  }
  
  .ceo-avatar {
    width: 60px;
    height: 60px;
  }
  
  
  .hero-info {
    gap: 7px;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav > a, 
  .nav > ul {
    margin: 5px 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .mortgage-consultation {
    flex-direction: column;
  }
  
  .consultation-image {
    height: 200px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  
  /* Вертикальное отображение карточек команды на маленьких экранах */
  .about {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  
  .about .container {
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 0;
  }
  
  .about .content-wrapper {
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-left: 15px;
    padding-right: 0;
    max-width: 100%;
  }
  
  .team-section {
    width: 100vw;
    margin-left: calc(-15px - 12px);
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-y: visible !important;
    margin-top: 0;
    padding-top: 0;
  }
  
  .team-cards {
    padding: 0 12px 20px 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
    gap: 18px;
    overflow-y: visible;
    align-items: flex-start !important;
  }
  
  .team-card {
    min-width: 230px !important;
    max-width: 230px !important;
    width: 230px !important;
    min-height: 450px;
  }
  
  /* Первая карточка должна быть видна полностью */
  .team-cards .team-card:first-child {
    margin-left: 12px;
  }
  
  /* Последняя карточка должна быть видна полностью */
  .team-cards .team-card:last-child {
    margin-right: 0;
  }
  
  .about-intro .section-description {
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .about-more-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
  
  /* Размеры шрифтов для секций на маленьких экранах */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  
  .section-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Размеры шрифтов для карточек команды */
  .team-name {
    font-size: 1.125rem;
  }
  
  .team-position {
    font-size: 0.95rem;
  }
  
  .team-description {
    font-size: 1rem;
  }
  
  .team-contact-btn {
    font-size: 1rem;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    padding: 70px 0 30px 0;
  }
  
  .hero > .container {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    color: #fff;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 18px;
    opacity: 1;
    color: #fff;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 18px;
  }
  
  .hero-feature {
    max-width: 100%;
    padding: 12px 14px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .feature-icon {
    font-size: 1.3rem;
    width: 26px;
  }
  
  .feature-text strong {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .feature-text span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 1;
  }
  
  .hero-info {
    margin-top: 10px;
    gap: 10px;
  }
  
  .hero-info p {
    font-size: 1.0625rem;
    color: #fff;
    opacity: 1;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-info i {
    font-size: 1.0625rem;
  }
  
  /* Стили кнопки контактов наследуются из @media (max-width: 768px) */
  
  .hero-sidebar {
    width: 100%;
    padding: 10px;
  }
  
  .hero-contact-card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .contact-info-footer a {
    font-size: 1.15rem;
  }
  
  .contact-info-footer i {
    font-size: 0.95rem;
  }
  
  .sidebar-back-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .sidebar-back-btn i {
    font-size: 1.2rem;
  }
  
  .header-logo {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  
  .logo-top {
    font-size: 0.7rem;
  }
  
  .logo-building {
    font-size: 0.95rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 7px 16px;
    gap: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    border-radius: 50px;
  }
  
  .hero-logo-icon {
    width: 18px;
    height: 18px;
  }
  
  .hero-badge-sparkle {
    width: 12px;
    height: 12px;
  }
  
  .hero-badge-text,
  .hero-badge-highlight {
    letter-spacing: 2px;
  }
  
  .hero-title {
    font-size: 1.875rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
  }
  
  .hero-subtitle {
    font-size: 1.0625rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
  }
  
  .hero-features {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .hero-feature {
    padding: 12px 14px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .feature-icon {
    font-size: 1.2rem;
    width: 24px;
  }
  
  .feature-text strong {
    font-size: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .feature-text span {
    font-size: 0.9375rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-info {
    margin-top: 10px;
    gap: 8px;
  }
  
  .hero-info p {
    font-size: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-info i {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .team-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .construction-options {
    flex-direction: column;
  }
}

  /* Стили для карты и балунов */
/* Стили для карты и балунов */
#map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ymaps-balloon {
    max-width: 400px !important;
    padding: 0 !important;
}

.ymaps-balloon__content {
    padding: 15px !important;
    margin: 0 !important;
}

.map-balloon {
    padding: 10px;
    font-family: Arial, sans-serif;
}

.map-balloon-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.map-photos {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    max-width: 380px;
    padding-bottom: 5px;
}

.map-photo {
    flex: 0 0 auto;
}

.map-photo img {
    max-height: 150px;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.map-photo img:hover {
    transform: scale(1.05);
}

.map-description {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* Кастомный скроллбар для фотографий */
.map-photos::-webkit-scrollbar {
    height: 5px;
}

.map-photos::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.map-photos::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.map-photos::-webkit-scrollbar-thumb:hover {
    background: #1F6B8A;
}

@media (max-width: 768px) {
    .ymaps-balloon {
        max-width: 300px !important;
    }
    
    .map-photos {
        max-width: 280px;
    }
}


/* ============================================
   СЕКЦИЯ: ОТЗЫВЫ КЛИЕНТОВ (СЛАЙДЕР)
   ============================================ */
.testimonials-section {
  background: linear-gradient(to bottom,
    var(--background-color) 0%,
    rgba(22, 24, 34, 0.98) 5%,
    rgba(22, 24, 34, 0.98) 95%,
    var(--background-color) 100%
  );
  position: relative;
  overflow: visible;
  padding: 3rem 0;
}


/* Декоративные элементы для секции отзывов */
.testimonials-section .decor-left-top {
  background-image: url('main_img/project.webp');
  top: 10%;
  left: -150px;
  transform: rotate(90deg);
}

.testimonials-section .decor-left-bottom {
  background-image: url('main_img/project.webp');
  bottom: 10%;
  left: -150px;
  transform: rotate(180deg);
}

.testimonials-section .decor-right-top {
  background-image: url('main_img/project.webp');
  top: 10%;
  right: -150px;
  transform: rotate(0deg);
}

.testimonials-section .decor-right-bottom {
  background-image: url('main_img/project.webp');
  bottom: 10%;
  right: -150px;
  transform: rotate(270deg);
}

/* Заголовок секции */
.testimonials-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Статистика отзывов */
.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px auto;
  max-width: 1000px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 40px;
  background: var(--card-color);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  min-width: 280px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  background: var(--card-hover);
  transform: translateY(-5px) scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-gold);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================
   СЛАЙДЕР ОТЗЫВОВ
   ============================================ */
.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 40px 0;
  padding: 0 80px;
}

.testimonials-slider-container {
  position: relative;
}

.testimonials-slider {
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius-lg);
}

.testimonials-slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.testimonial-slide {
  min-width: 33.333%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Карточка отзыва в слайдере */
.testimonial-card-slider {
  background: var(--card-color);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}

.testimonial-card-slider:hover {
  /* Никаких изменений карточки при наведении */
  transform: none;
}

/* Изображение отзыва */
.testimonial-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.testimonial-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Бейдж "Оригинал" */
.testimonial-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Оверлей при наведении */
.testimonial-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 29, 37, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.testimonial-card-slider:hover .testimonial-hover-overlay {
  opacity: 1;
}

.testimonial-hover-overlay i {
  font-size: 5rem;
  color: var(--secondary-color);
}

.testimonial-hover-overlay span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Контент карточки */
.testimonial-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-card-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.testimonial-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px 0;
  flex: 1;
  line-height: 1.5;
}

.testimonial-info {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonial-info i {
  color: var(--secondary-color);
}

/* Стрелки навигации слайдера */
.testimonials-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 60px;
  height: 60px;
  border: none;
  background: var(--card-color);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.testimonials-slider-arrow:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-gold);
}

.testimonials-slider-prev {
  left: -80px;
}

.testimonials-slider-next {
  right: -80px;
}

/* Точечная навигация */
.testimonials-slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(212, 175, 55, 0.5);
  transform: scale(1.2);
}

.slider-dot.active {
  background: var(--secondary-color);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}


/* Модальное окно для просмотра документов */
.testimonial-document-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.document-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.document-modal-content {
  position: relative;
  z-index: 1;
  max-width: 98vw;
  width: 98vw;
  max-height: 98vh;
  background: var(--card-color);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.document-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(26, 29, 37, 0.9);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
}

.document-modal-close:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  transform: rotate(90deg);
}

.document-modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.document-modal-prev,
.document-modal-next {
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(26, 29, 37, 0.9);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  pointer-events: all;
}

.document-modal-prev:hover,
.document-modal-next:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  transform: scale(1.1);
}

.document-modal-body {
  max-height: calc(98vh - 80px);
  overflow-y: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-modal-body img {
  width: 100%;
  max-height: calc(98vh - 100px);
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.document-modal-info {
  padding: 15px 25px;
  background: rgba(37, 41, 54, 0.7);
  border-top: 1px solid var(--border-color);
}

.document-modal-info h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 4px 0;
}

.document-modal-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ СЕКЦИИ ОТЗЫВОВ (СЛАЙДЕР)
   ============================================ */

/* Планшеты */
@media (max-width: 1024px) {
  .testimonial-slide {
    min-width: 50%; /* 2 карточки */
  }
  
  .testimonials-slider-wrapper {
    padding: 0 60px;
  }
  
  .testimonials-slider-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .testimonials-slider-prev {
    left: -60px;
  }
  
  .testimonials-slider-next {
    right: -60px;
  }
  
  .testimonial-image-wrapper {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .testimonials-stats {
    gap: 25px;
  }
  
  .stat-item {
    min-width: 240px;
    padding: 25px 30px;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 2rem;
  }
  
  .testimonials-stats {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 350px;
    min-width: auto;
    padding: 20px;
    flex-direction: row;
    text-align: left;
  }
  
  .stat-icon {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Слайдер на мобильных */
  .testimonial-slide {
    min-width: 100%; /* 1 карточка */
  }
  
  .testimonials-slider-wrapper {
    padding: 0 50px;
    margin: 30px 0;
  }
  
  .testimonials-slider-arrow {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .testimonials-slider-prev {
    left: 0;
  }
  
  .testimonials-slider-next {
    right: 0;
  }
  
  .testimonial-image-wrapper {
    height: 400px;
  }
  
  .testimonial-badge {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  .testimonials-slider-dots {
    margin-top: 25px;
    gap: 10px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  
  /* Модальное окно */
  .document-modal-content {
    max-width: 95%;
  }
  
  .document-modal-body {
    padding: 20px;
  }
  
  .document-modal-info {
    padding: 20px;
  }
  
  .document-modal-nav {
    padding: 0 10px;
  }
  
  .document-modal-prev,
  .document-modal-next {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .testimonials-slider-wrapper {
    padding: 0 45px;
  }
  
  .testimonials-slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .testimonials-slider-prev {
    left: 0;
  }
  
  .testimonials-slider-next {
    right: 0;
  }
  
  .testimonial-image-wrapper {
    height: 350px;
  }
  
  .stat-item {
    padding: 15px 20px;
  }
  
  .stat-icon {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* Логотип и контакты занимают всю ширину */
  .footer-col:first-child,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  
  .footer {
    padding: 30px 0 0;
  }
  
  .footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
    width: 100%;
  }
  
  .footer-col {
    text-align: center;
  }
  
  /* Меню выравнивается по левому краю */
  .footer-col:nth-child(2) {
    text-align: left;
  }
  
  /* Услуги выравниваются по правому краю */
  .footer-col:nth-child(3) {
    text-align: right;
  }
  
  /* Контакты центрируются */
  .footer-col:last-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    margin-top: 0;
    line-height: 1.3;
    font-weight: 700;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
  }
  
  /* Декоративная линия для меню (слева) */
  .footer-col:nth-child(2) h4::after {
    left: 0;
    transform: none;
  }
  
  /* Декоративная линия для услуг (справа) */
  .footer-col:nth-child(3) h4::after {
    left: auto;
    right: 0;
    transform: none;
  }
  
  .footer-col p,
  .footer-menu a,
  .footer-services a {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  
  address p {
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 10px;
    gap: 8px;
    line-height: 1.5;
  }
  
  address p i {
    font-size: 1rem;
  }
  
  .footer-social {
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    gap: 8px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .footer-copyright,
  .footer-links a {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .footer-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    gap: 8px;
    line-height: 1.4;
    margin-top: 10px;
  }
  
  .footer-btn i {
    font-size: 1rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .footer-logo .logo-icon {
    width: 24px;
    height: 24px;
  }
  
  .footer-logo .logo-top {
    font-size: 1rem;
  }
  
  .footer-logo .logo-building {
    font-size: 0.9rem;
  }
  
  .footer-menu li,
  .footer-services li {
    margin-bottom: 8px;
  }
}

@media (max-width: 576px) {
  .client-avatar {
    width: 50px;
    height: 50px;
  }
  
  .client-name {
    font-size: 1rem;
  }
  
  .client-location {
    font-size: 0.85rem;
  }
  
  .testimonial-content p {
    font-size: 0.95rem;
  }
  
  .testimonials-btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-container {
    padding: 0 12px;
  }
  
  .footer {
    padding: 25px 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  /* Логотип и контакты занимают всю ширину */
  .footer-col:first-child,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  
  /* Первая колонка (логотип) центрируется */
  .footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
    width: 100%;
  }
  
  .footer-logo .logo-icon {
    width: 22px;
    height: 22px;
  }
  
  .footer-logo .logo-top {
    font-size: 0.95rem;
  }
  
  .footer-logo .logo-building {
    font-size: 0.85rem;
  }
  
  .footer-col {
    text-align: center;
  }
  
  /* Меню выравнивается по левому краю */
  .footer-col:nth-child(2) {
    text-align: left;
  }
  
  /* Услуги выравниваются по правому краю */
  .footer-col:nth-child(3) {
    text-align: right;
  }
  
  /* Контакты центрируются */
  .footer-col:last-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.3;
    font-weight: 700;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
  }
  
  /* Декоративная линия для меню (слева) */
  .footer-col:nth-child(2) h4::after {
    left: 0;
    transform: none;
  }
  
  /* Декоративная линия для услуг (справа) */
  .footer-col:nth-child(3) h4::after {
    left: auto;
    right: 0;
    transform: none;
  }
  
  /* Контакты прижаты максимально вверх на мобильных */
  .footer-col:last-child h4 {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  
  .footer-col:last-child address {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-col:last-child address p {
    justify-content: center;
  }
  
  .footer-col:last-child address p:first-child {
    margin-top: 0;
  }
  
  .footer-col p,
  .footer-menu a,
  .footer-services a,
  address p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .footer-menu li,
  .footer-services li {
    margin-bottom: 6px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .footer-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    gap: 6px;
    line-height: 1.4;
  }
  
  .footer-btn i {
    font-size: 0.95rem;
  }
  
  .footer-bottom {
    padding: 12px 0;
  }
  
  .footer-copyright,
  .footer-links a {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ЗАКАЗА ЗВОНКА + TELEGRAM
   ============================================ */

.callback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.callback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.callback-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1d29 0%, #252936 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: modalSlideIn 0.3s ease;
  z-index: 10001;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.callback-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.callback-modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  transform: rotate(90deg);
}

.callback-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.callback-modal-header i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  animation: pulseScale 2s infinite;
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.callback-modal-header h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.callback-modal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callback-form .form-group {
  position: relative;
}

.callback-form input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.callback-form input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.callback-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.callback-submit-btn {
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.callback-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.callback-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.callback-message {
  margin-top: 15px;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.callback-message.success {
  display: flex;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.callback-message.error {
  display: flex;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #F44336;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
  .callback-modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .callback-modal-header h3 {
    font-size: 1.5rem;
  }
  
  .callback-modal-header i {
    font-size: 2.5rem;
  }
  
  .callback-modal-header p {
    font-size: 0.9rem;
  }
  
  .callback-form input {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .callback-submit-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}


/* ===== Стили для YouTube секции ===== */
.youtube-section {
  background: linear-gradient(to bottom, 
    var(--background-color) 0%,
    rgba(22, 24, 34, 0.98) 5%,
    rgba(22, 24, 34, 0.98) 95%,
    var(--background-color) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.youtube-section .decor {
  background-image: url('main_img/project.webp');
  opacity: 0.2;
  z-index: 2;
}

.youtube-section .decor-left-top {
  top: 20%;
  left: -120px;
  transform: rotate(-15deg);
}

.youtube-section .decor-right-bottom {
  bottom: 20%;
  right: -120px;
  transform: rotate(165deg);
}

.youtube-section .content-wrapper {
  position: relative;
  z-index: 5;
}

.youtube-top {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.youtube-top .youtube-card-centered {
  max-width: 640px;
  width: 100%;
}

.youtube-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0 30px;
  align-items: start;
}

.youtube-left .youtube-grid,
.youtube-right .youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0 30px;
}

.youtube-cta-wrapper {
  text-align: center;
}

.youtube-card {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--card-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.youtube-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-gold);
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--dark-color);
  overflow: hidden;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-section .youtube-title {
  padding: 20px 24px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.youtube-cta-wrapper .about-more-btn i:first-child {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .youtube-top {
    margin-bottom: 24px;
  }

  .youtube-top .youtube-card-centered {
    max-width: 100%;
  }

  .youtube-split {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 24px;
  }

  .youtube-left .youtube-grid,
  .youtube-right .youtube-grid {
    grid-template-columns: 1fr;
  }

  .youtube-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 24px;
  }
  
  .youtube-section .decor {
    width: 280px;
    height: 280px;
  }
  
  .youtube-title {
    font-size: 1rem;
    padding: 16px 20px;
  }
}

@media (max-width: 576px) {
  .youtube-section .decor {
    width: 220px;
    height: 220px;
  }
}