/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ============================================ */

:root {
  --primary: #0066B3;  /* Синий Газпром */
  --secondary: #004B87;  /* Темно-синий Газпром */
  --accent: #0052A3;  /* Средний синий для акцентов */
  --light: #f5f5f5;
  --text: #000000;  /* Черный текст */
  --gray: #666;
  --border: #ddd;
  --shadow: 0 10px 30px rgba(0, 102, 179, 0.1);
  --shadow-heavy: 0 20 px 50px rgba(0, 102, 179, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-contacts {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.top-phone, .top-address, .top-hours {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-phone:hover {
  color: var(--primary);
}

.top-phone span, .top-address span, .top-hours span {
  font-size: 16px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 45px;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-close {
  display: none;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.cta-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
  border-radius: 2px;
}

.hamburger:hover {
  background: #f6f8fb;
  border-color: rgba(0, 0, 0, 0.12);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

.modx-region {
  width: 100%;
}

.breadcrumbs {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--gray);
}

.header-cta {
  display: flex;
  align-items: center;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 135px;
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--text);
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hero-feature-icon {
  flex-shrink: 0;
}

.hero-feature-icon svg {
  width: 64px;
  height: 64px;
}

.hero-feature p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  padding-top: 10px;
}

.hero-messengers {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.messenger-btn.telegram {
  background: #0088cc;
}

.messenger-btn.telegram:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.messenger-btn.whatsapp {
  background: #25D366;
}

.messenger-btn.whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.hero-content p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 35px;
}

.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 102, 179, 0.15);
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.hero-image img,
.hero-image picture {
  width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
  border-radius: 12px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   ABOUT EXPERT SECTION
   ============================================ */

.about-expert-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-expert-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.about-expert-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 102, 179, 0.15);
}

.about-expert-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-expert-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-expert-content p {
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-expert-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-button-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

/* ============================================
   SERVICES SLIDER SECTION
   ============================================ */

.services-slider-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.slider-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 0;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 102, 179, 0.15);
}

.slider-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  background: white;
  min-height: 500px;
}

.slider-slide.active {
  display: grid;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.slide-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.slide-content p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

.slide-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.slide-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.slide-btn.primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.slide-btn.primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

.slide-btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.slide-btn.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

.slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-radius: 12px;
  padding: 40px;
  min-height: 380px;
}

.slide-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 179, 0.2);
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.3);
}

.slider-prev {
  left: -25px;
}

.slider-next {
  right: -25px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: #a0a0a0;
  transform: scale(1.2);
}

.slider-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* ============================================
   FLOATING MESSENGER BUTTONS
   ============================================ */

.floating-messengers {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.messenger-btn span {
  display: inline-block;
}

.telegram-btn {
  background: #0088cc;
}

.telegram-btn:hover {
  background: #006fa6;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 179, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 82, 163, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
}

.hero h1 span {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 15px;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 102, 179, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 102, 179, 0.4);
  background: var(--secondary);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ============================================
   FEATURES/SERVICES SECTION
   ============================================ */

section {
  padding: 90px 0;
  position: relative;
}

.section-title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.service-card {
  padding: 35px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 250px;
}

@media (max-width: 768px) {
  .service-card {
    padding: 28px;
    min-height: 220px;
  }
}

@media (max-width: 576px) {
  .service-card {
    padding: 24px;
    min-height: 200px;
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: white;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.4;
  font-weight: 600;
}

.service-card p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 16px;
}

/* ============================================
   CASES/PORTFOLIO SECTION
   ============================================ */

.cases-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.case-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .case-card {
    margin: 0 auto;
    max-width: 100%;
  }
}

.case-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-heavy);
}

.case-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(255, 107, 53, 0.85)), 
              url('https://images.unsplash.com/photo-1565008576549-57569a49371d?w=800&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60px;
  overflow: hidden;
  position: relative;
}

/* Specific case images */
.case-1 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?w=800&q=80') center/cover;
}

.case-2 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=800&q=80') center/cover;
}

.case-3 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?w=800&q=80') center/cover;
}

.case-4 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1577724468160-b0e4257e438d?w=800&q=80') center/cover;
}

.case-5 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1541804-1551622727-fef8beda7e4c?w=800&q=80') center/cover;
}

.case-6 .case-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800&q=80') center/cover;
}

.case-image::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
  opacity: 1;
}

.case-content {
  padding: 30px;
}

.case-tag {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary);
}

.case-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.blog-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85)),
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 50px;
}

/* Specific blog images */
.blog-1 .blog-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.5)),
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&q=80') center/cover;
}

.blog-2 .blog-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.5)),
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&q=80') center/cover;
}

.blog-3 .blog-image {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 0, 0, 0.5)),
              url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=800&q=80') center/cover;
}

.blog-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--gray);
}

.blog-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
  font-weight: 600;
}

.blog-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: var(--accent);
  transform: translateX(5px);
  display: inline-block;
}

.case-card,
.blog-card,
.featured-news,
.calculator-card,
.news-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.news-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.featured-news {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(255, 107, 53, 0.8)),
              url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?w=1200&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 80px;
}

.featured-content {
  padding: 35px;
}

.featured-date {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.featured-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--primary);
}

.featured-content p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 25px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.news-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.news-item .date {
  font-size: 12px;
  color: var(--gray);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: 10px;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.stat-text {
  font-size: 14px;
  color: var(--gray);
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 102, 179, 0.15);
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.contact-form-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-form-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.3;
}

.contact-form-info p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: start;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 5px;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 102, 179, 0.1);
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  color: #1a1a1a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
}

.form-submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

.form-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-privacy {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: -10px;
}

.form-privacy a {
  color: var(--primary);
  text-decoration: underline;
}

.form-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-message.active {
  display: block;
}

.form-message svg {
  margin-bottom: 20px;
}

.form-message h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.form-message p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.form-message.success {
  color: #28a745;
}

.form-message.error {
  color: #dc3545;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-section a:hover {
  color: white;
}

.footer-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
}

.footer-cta-btn {
  background: #ff6b35;
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-cta-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Social Icons in Footer */
.footer-social-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255, 107, 53, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.social-icon svg {
  fill: currentColor;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: white;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, #333 100%);
  color: white;
  padding: 100px 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Dark section form styles - for future dark backgrounds */
.dark-section .form-group {
  margin-bottom: 20px;
}

.dark-section .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-section .form-group input,
.dark-section .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dark-section .form-group input::placeholder,
.dark-section .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dark-section .form-group input:focus,
.dark-section .form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--secondary) 0%, #0052A3 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0052A3 0%, var(--secondary) 100%);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--primary);
}

.modal p {
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.7;
}

/* ============================================
   UTILITIES & RESPONSIVE
   ============================================ */

.mt-40 {
  margin-top: 40px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--gray);
}

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 30px;
  }

  .hero {
    padding: 70px 0;
  }

  section {
    padding: 70px 0;
  }

  .services-grid,
  .cases-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-image {
    order: -1;
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-image img,
  .hero-image picture {
    max-height: 450px;
    width: 100%;
    height: auto;
  }

  .about-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .about-image img {
    max-height: 550px;
    min-height: 280px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .section-title {
    font-size: 36px;
  }

  .slider-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
    min-height: auto;
  }

  .slide-image {
    order: -1;
    min-height: 280px;
  }

  .slide-content h3 {
    font-size: 24px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .about-expert-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-expert-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    padding: 15px 0;
  }
}

/* Medium Tablets */
@media (max-width: 992px) {
  .top-bar {
    padding: 10px 0;
  }

  .top-contacts {
    gap: 15px;
    font-size: 13px;
  }

  .top-hours {
    display: none;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 60px 0;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .blog-image {
    height: 200px;
  }

  .featured-image {
    height: 300px;
  }

  .slider-slide {
    padding: 30px;
  }

  .slide-content h3 {
    font-size: 22px;
  }

  .slide-buttons {
    flex-direction: column;
  }

  .slide-btn {
    width: 100%;
  }

  .about-expert-content h2 {
    font-size: 28px;
  }

  .about-expert-content p {
    font-size: 16px;
  }

  .contact-form-info h2 {
    font-size: 28px;
  }

  .contact-form-container {
    padding: 30px;
  }

  .floating-messengers {
    bottom: 20px;
    right: 20px;
  }

  .messenger-btn span {
    display: none;
  }

  .messenger-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .top-bar {
    display: none;
  }

  header {
    top: 0;
  }

  .hero {
    padding: 50px 0 35px;
    margin-top: 75px;
  }

  .hero-content h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 25px;
    text-align: center;
  }

  .hero-content p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
  }

  .hero-feature p {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-feature-icon svg {
    width: 56px;
    height: 56px;
  }

  .hero-image img,
  .hero-image picture {
    max-height: 380px;
  }

  .about-image img {
    max-height: 420px;
    min-height: 240px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-messengers {
    display: none;
  }

  .btn {
    text-align: center;
    width: 100%;
  }

  .services-slider-section {
    padding: 60px 0;
  }

  .slider-slide {
    padding: 25px;
    min-height: auto;
  }

  .slide-content h3 {
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
  }

  .slide-content p {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
  }

  .slide-image {
    min-height: 220px;
    padding: 30px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: 5px;
  }

  .slider-next {
    right: 5px;
  }

  .about-expert-section {
    padding: 60px 0;
  }

  .about-expert-content h2 {
    font-size: 24px;
  }

  .about-expert-buttons {
    flex-direction: column;
  }

  .contact-form-section {
    padding: 60px 0;
  }

  .contact-form-container {
    padding: 25px;
  }

  .services-grid,
  .cases-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    text-align: center;
  }

  section {
    padding: 50px 0;
  }

  .blog-image {
    height: 190px;
  }

  .featured-image {
    height: 270px;
  }

  .logo {
    font-size: 18px;
  }

  .logo span {
    font-size: 11px;
  }

  .cta-button {
    width: 200px;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 30px 20px;
    max-width: 90%;
  }
}

/* Mobile Phones */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 16px;
  }

  .logo span {
    font-size: 10px;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero-content h1 {
    font-size: 27px;
    line-height: 1.25;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-feature p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-feature-icon svg {
    width: 52px;
    height: 52px;
  }

  .hero-image img,
  .hero-image picture {
    max-height: 320px;
  }

  .about-image img {
    max-height: 380px;
    min-height: 220px;
  }

  .hero-buttons {
    gap: 15px;
  }

  .btn {
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
  }

  .nav-links {
    gap: 20px;
    padding-top: 40px;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
  }

  .section-title {
    font-size: 27px;
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 30px;
    text-align: center;
  }

  section {
    padding: 45px 0;
  }

  .services-grid,
  .cases-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card,
  .case-card,
  .blog-card {
    padding: 22px;
  }

  .service-card h3,
  .case-card h3,
  .blog-card h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
  }

  .service-card p,
  .case-card p,
  .blog-card p {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
  }

  .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .blog-image {
    height: 180px;
  }

  .floating-messengers {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .messenger-btn {
    width: 50px;
    height: 50px;
  }

  .messenger-btn svg {
    width: 24px;
    height: 24px;
  }

  .news-container {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 20px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat {
    padding: 18px;
  }

  .stat-number {
    font-size: 34px;
    margin-bottom: 8px;
    font-weight: 700;
  }

  .stat-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-about h3,
  .footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
  }

  .footer-about p,
  .footer-section p,
  .footer-section ul li a {
    font-size: 14px;
    line-height: 1.7;
  }

  .footer-about p {
    text-align: center;
  }

  .footer-section ul {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom p {
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
  }

  .contact-form-section,
  .about-expert-section {
    padding: 45px 0;
  }

  .contact-form-info h2,
  .about-expert-content h2 {
    font-size: 26px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 16px;
  }

  .contact-form-info p,
  .about-expert-content p {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
  }

  .featured-content,
  .modal-content {
    padding: 20px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .case-image {
    height: 180px;
  }

  .blog-image {
    height: 180px;
  }

  .featured-image {
    height: 250px;
  }

  .news-item h4 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .news-item .date {
    font-size: 12px;
  }

  .featured-news h2 {
    font-size: 24px;
    line-height: 1.3;
    text-align: center;
  }

  .featured-content p {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .service-icon {
    font-size: 32px;
  }

  .stat-number {
    font-size: 30px;
  }
}

/* Minimum Width Devices (320px) */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .logo {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .service-card h3,
  .case-card h3,
  .blog-card h3 {
    font-size: 16px;
  }

  .service-icon {
    font-size: 28px;
  }

  .stat-number {
    font-size: 26px;
  }

  .hamburger {
    width: 28px;
    height: 24px;
  }

  .hamburger span {
    height: 2px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 8px 6px;
  }
}

/* Hamburger Menu Responsive */
@media (max-width: 1024px) {
  .search-box {
    display: none;
  }

  nav {
    flex-wrap: wrap;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1100;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 24px 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left: 1px solid #e6eef7;
    overflow-y: auto;
    z-index: 1200;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    font-size: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid #eef1f6;
    justify-content: space-between;
  }

  .nav-links .cta-button {
    width: 100%;
    justify-content: center;
    border-bottom: none;
  }

  .nav-close {
    display: flex;
    justify-content: flex-end;
    border-bottom: none;
  }

  body.menu-open .nav-links {
    display: flex;
  }
}

/* ============================================
   SEARCH STYLES
   ============================================ */

.search-box {
  position: relative;
  margin-left: 20px;
  display: flex;
  align-items: center;
}

#searchInput {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-size: 14px;
  width: 200px;
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(0, 102, 179, 0.3);
  width: 250px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 400px;
  overflow-y: auto;
  width: 250px;
  display: none;
  z-index: 2000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: var(--light);
  padding-left: 20px;
}

.search-result-item a {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.search-result-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
  font-size: 14px;
}

.search-result-type {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.search-result-excerpt {
  font-size: 12px;
  color: var(--gray);
  margin-top: 3px;
  line-height: 1.4;
}

.search-no-results {
  padding: 20px 15px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

@media (max-width: 768px) {
  .search-box {
    margin-left: 10px;
  }

  #searchInput {
    width: 150px;
  }

  #searchInput:focus {
    width: 180px;
  }

  .search-results {
    width: 180px;
  }
}

/* ============================================
   SIDEBAR & TWO-COLUMN LAYOUT
   ============================================ */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  padding: 100px 0;
}

.main-content {
  max-width: 100%;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
}

.sidebar-section {
  background: #f9f9f9;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.sidebar-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section ul li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-section ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-section ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: block;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.sidebar-section ul li a:hover {
  color: var(--primary);
}

.sidebar-section .date {
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
  display: block;
}

.sidebar-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
}

.sidebar-contact h3 {
  color: white;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
  font-size: 18px;
}

.sidebar-contact p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.sidebar-contact .btn {
  background: white;
  color: var(--primary);
  width: 100%;
  text-align: center;
  font-weight: 600;
}

.sidebar-contact .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* Responsive sidebar */
@media (max-width: 992px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .sidebar-section {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .content-with-sidebar {
    padding: 60px 0;
  }
}

@media (max-width: 320px) {
  .sidebar-section {
    padding: 20px;
  }
  
  .sidebar-section h3 {
    font-size: 16px;
  }
}

/* ===========================================
   ARTICLE PAGE STYLES
   =========================================== */

.article-hero {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  margin-top: 80px;
  position: relative;
  aspect-ratio: 16 / 9;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.article-content {
  max-width: 800px;
}

.article-header {
  margin-bottom: 40px;
}

.article-date {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}

.article-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-excerpt {
  font-size: 20px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 30px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.share-buttons span {
  font-size: 14px;
  color: var(--gray);
  margin-right: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.share-btn.vk {
  background: #4680C2;
}

.share-btn.vk:hover {
  background: #3b6ba8;
  transform: translateY(-2px);
}

.share-btn.ok {
  background: #EE8208;
}

.share-btn.ok:hover {
  background: #d47407;
  transform: translateY(-2px);
}

.share-btn.tg {
  background: #0088cc;
}

.share-btn.tg:hover {
  background: #006699;
  transform: translateY(-2px);
}

.article-body {
  color: #666;
  line-height: 1.9;
  font-size: 18px;
}

.article-body p {
  margin-bottom: 25px;
}

.article-body h2 {
  color: var(--primary);
  margin: 50px 0 25px;
  font-size: 32px;
  font-weight: 700;
}

.article-body h3 {
  color: var(--text);
  margin: 40px 0 20px;
  font-size: 24px;
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin-bottom: 30px;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 12px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-callout {
  padding: 25px;
  margin: 40px 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.article-callout.info {
  background: #f0f9ff;
  border-color: var(--primary);
}

.article-callout.warning {
  background: #fff3cd;
  border-color: #ffc107;
}

.article-callout.success {
  background: #d4edda;
  border-color: #28a745;
}

.article-callout h4 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 600;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text);
}

.sidebar-news-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.sidebar-news-item:hover {
  transform: translateX(5px);
}

.sidebar-news-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-news-content {
  flex: 1;
}

.sidebar-news-date {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.sidebar-news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.sidebar-contact-widget {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.sidebar-contact-widget h3 {
  color: white;
  margin-bottom: 15px;
}

.sidebar-contact-widget p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.sidebar-contact-widget .btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-contact-widget .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .article-hero {
    height: auto;
    min-height: 300px;
    max-height: 500px;
    aspect-ratio: 16 / 9;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .article-excerpt {
    font-size: 18px;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .article-body h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .article-hero {
    height: auto;
    min-height: 250px;
    max-height: 400px;
    aspect-ratio: 16 / 9;
    margin-top: 70px;
  }
  
  .article-layout {
    padding: 40px 15px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-excerpt {
    font-size: 16px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
  
  .article-body {
    font-size: 16px;
  }
  
  .article-body h2 {
    font-size: 24px;
    margin: 35px 0 20px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}

/* ============================================
   MOBILE FIRST - VERY SMALL SCREENS
   ============================================ */

@media (max-width: 480px) {
  .hero {
    padding: 35px 0 25px;
  }

  .hero-content h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: -0.02em;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .hero-feature p {
    font-size: 14px;
    line-height: 1.7;
    padding-top: 0;
  }

  .hero-feature-icon svg {
    width: 48px;
    height: 48px;
  }

  .hero-image {
    max-width: 100%;
    margin: 20px 0;
    width: 100%;
  }

  .hero-image img,
  .hero-image picture {
    max-height: 280px;
    width: 100%;
    height: auto;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .about-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    min-height: 180px;
    aspect-ratio: 4 / 5;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
  }

  section {
    padding: 40px 0;
  }

  .blog-image {
    height: 160px;
  }

  .featured-image {
    height: 220px;
  }

  .article-hero img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }

  .service-card,
  .case-card,
  .blog-card {
    padding: 18px;
  }

  .service-card h3,
  .case-card h3,
  .blog-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
  }

  .service-card p,
  .case-card p,
  .blog-card p {
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }

  .sidebar-news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

/* ============================================
   CONTACT FORM - RESPONSIVE LAYOUT
   ============================================ */

/* Tablet and below - switch to single column */
@media (max-width: 768px) {
  .contact-form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 11px 14px;
    font-size: 13px;
  }
  
  .submit-btn {
    padding: 12px;
    font-size: 15px;
    margin-top: 5px;
  }
}

/* Mobile small - optimize spacing */
@media (max-width: 480px) {
  .contact-form > div[style*="grid-template-columns"] {
    gap: 12px !important;
  }
  
  .form-group {
    margin-bottom: 0;
  }
  
  .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 5px;
  }
  
  .form-group textarea {
    min-height: 80px;
  }
  
  .submit-btn {
    padding: 11px;
    font-size: 14px;
    border-radius: 5px;
  }
  
  .contact-form-section {
    padding: 40px 0;
  }
}

/* ============================================
   TEAM CARDS - ADAPTIVE IMAGE HEIGHTS
   ============================================ */

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  div[style*="background: linear-gradient"][style*="aspect-ratio"] {
    height: 160px;
    min-height: 160px;
  }
}

/* Tablet Small (576px - 768px) */
@media (max-width: 768px) {
  div[style*="background: linear-gradient"][style*="aspect-ratio"] {
    height: 140px;
    min-height: 140px;
  }
}

/* Mobile (320px - 576px) */
@media (max-width: 576px) {
  div[style*="background: linear-gradient"][style*="aspect-ratio"] {
    height: 120px;
    min-height: 120px;
    aspect-ratio: 16 / 10 !important;
  }
}
/* ============================================
   IMAGE OPTIMIZATION - LAZY LOADING & PERFORMANCE
   ============================================ */

/* Оптимизация фоновых изображений */
[style*="background"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Оптимизация всех изображений */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Улучшение производительности фоновых изображений */
.case-image,
[class*="-image"],
section[style*="background"] {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Плавная загрузка изображений */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* WebP fallback support */
.webp-supported .case-image,
.webp-supported [style*="background"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Оптимизация для retina дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  [style*="background"] {
    background-size: contain !important;
  }
}

/* Сжатие качества изображений на медленном соединении */
@media (prefers-reduced-data: reduce) {
  [style*="background"] {
    background-image: none !important;
    background-color: var(--primary) !important;
  }
  
  img {
    filter: grayscale(0.3);
  }
}

/* Плавный переход при загрузке фона */
[style*="background"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}