/* Оптимизация изображений */

/* Lazy loading для изображений */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Оптимизация для слайдера */
.ls-bg {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
  .ls-bg {
    object-position: center 20%;
  }
  
  /* Уменьшаем размер изображений в футере на мобильных */
  .recent-posts img {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Плейсхолдер для изображений */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Оптимизация для изображений с srcset */
img[srcset] {
  max-width: 100%;
  height: auto;
}

/* Улучшение производительности для изображений */
img {
  image-rendering: -webkit-optimize-contrast;
  -webkit-font-smoothing: antialiased;
}

/* Оптимизация для WebP изображений */
img[src*=".webp"] {
  image-rendering: auto;
}

/* Скрытие изображений до загрузки */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Оптимизация для изображений в сетке */
.benefits img,
.widget img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Улучшение доступности */
img[alt] {
  border: 1px solid transparent;
}

img[alt]:focus {
  border-color: #007cba;
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Стили для слайдера */
#slider {
  position: relative;
  overflow: hidden;
  height: 600px;
}

/* Стили для страницы стоимости */
.price-section {
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #008FD5;
}

.price-category {
  color: #008FD5;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.price-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-section {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #008FD5 0%, #0066cc 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
}

.cta-section h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: white;
}

.cta-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.cta-step {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cta-step i {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
}

.cta-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: white;
}

.cta-step p {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.phone-link {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

.phone-link:hover {
  color: #FFA500;
  text-decoration: underline;
}

.guarantee-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
}

.guarantee-section h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: white;
}

.guarantee-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.guarantee-list li {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.guarantee-list i {
  color: #4CAF50;
  margin-right: 10px;
  font-size: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .price-section {
    padding: 15px;
    margin-bottom: 30px;
  }
  
  .price-category {
    font-size: 20px;
  }
  
  .cta-steps {
    flex-direction: column;
  }
  
  .cta-step {
    min-width: auto;
  }
  
  .guarantee-list {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 20px;
  }
  
  .cta-section h3 {
    font-size: 24px;
  }
}

/* Стили для таблиц цен */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-table thead {
  background: #008FD5;
  color: white;
}

.price-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}

.price-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.4;
}

.price-table tr:hover {
  background: #f8f9fa;
}

.price-table .price {
  font-weight: bold;
  color: #ff3300;
  font-size: 16px;
  text-align: right;
}

.price-table .service-name {
  color: #333;
  font-weight: 500;
}

/* Адаптивность таблиц */
@media (max-width: 768px) {
  .price-table {
    font-size: 12px;
  }
  
  .price-table th,
  .price-table td {
    padding: 8px 10px;
  }
  
  .price-table .price {
    font-size: 14px;
  }
}

/* Стили для SEO-контента */
.seo-content {
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.seo-content h3 {
  color: #008FD5;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.seo-content h4 {
  color: #333;
  font-size: 18px;
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.seo-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 16px;
}

.seo-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.seo-content li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 16px;
}

.seo-content a {
  color: #008FD5;
  text-decoration: none;
  font-weight: 500;
}

.seo-content a:hover {
  color: #0066cc;
  text-decoration: underline;
}

.seo-content strong {
  color: #333;
  font-weight: 600;
}

/* Адаптивность для SEO-контента */
@media (max-width: 768px) {
  .seo-content {
    padding: 20px;
    margin-top: 30px;
  }
  
  .seo-content h3 {
    font-size: 20px;
  }
  
  .seo-content h4 {
    font-size: 16px;
  }
  
  .seo-content p,
  .seo-content li {
    font-size: 14px;
  }
}
  width: 100%;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

#slider .ls-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  display: block;
}

#slider .ls-slide:first-child {
  opacity: 1 !important;
  z-index: 2 !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
}

/* Отключаем все анимации LayerSlider */
#slider .ls-slide[data-ls] {
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
}

#slider .intro[data-ls] {
  transform: translateY(-50%) !important;
  -webkit-transform: translateY(-50%) !important;
  -moz-transform: translateY(-50%) !important;
  -ms-transform: translateY(-50%) !important;
  -o-transform: translateY(-50%) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Убираем старые стили LayerSlider */
#slider .ls-slide[style*="display: none"] {
  display: block !important;
}

#slider .ls-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Переопределяем конфликтующие стили из styles.css */
.slider .intro,
#slider .intro,
.slider-wrapper .slider .intro,
.slider-wrapper #slider .intro {
  position: absolute !important;
  z-index: 10 !important;
  color: #333 !important;
  text-align: center !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  right: 5% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: auto !important;
  width: auto !important;
  max-width: 450px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  padding: 40px 30px !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  font-size: 15px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Переопределяем стили заголовков и параграфов */
.slider .intro h2,
.slider .intro h3,
#slider .intro h2,
#slider .intro h3,
.slider-wrapper .slider .intro h2,
.slider-wrapper .slider .intro h3,
.slider-wrapper #slider .intro h2,
.slider-wrapper #slider .intro h3 {
  margin: 0 0 20px 0 !important;
  font-size: 2.2em !important;
  font-weight: bold !important;
  color: #00537C !important;
  text-shadow: none !important;
  line-height: 1.2 !important;
}

.slider .intro p,
#slider .intro p,
.slider-wrapper .slider .intro p,
.slider-wrapper #slider .intro p {
  margin: 0 0 25px 0 !important;
  font-size: 1.1em !important;
  color: #333 !important;
  text-shadow: none !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

#slider .buttons {
  margin-top: 20px;
}

#slider .buttons a {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 8px !important;
  padding: 12px 20px !important;
  background: #007cba !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  border: 2px solid #007cba !important;
  font-size: 1em !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

#slider .buttons a:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

#slider .buttons a.button {
  background: #007cba !important;
  border-color: #007cba !important;
  font-weight: bold !important;
}

#slider .buttons a.button:hover {
  background: #005a87 !important;
  border-color: #005a87 !important;
}

/* Стили для кнопок навигации prev/next */
#slider .buttons a.prev,
#slider .buttons a.next {
  width: 35px !important;
  height: 35px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2em !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
}

#slider .buttons a.prev:hover,
#slider .buttons a.next:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Стили для иконки сердца */
.slider .intro .icon,
#slider .intro .icon {
  position: absolute !important;
  top: -20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 2.5em !important;
  color: #007cba !important;
  background: white !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  border: 3px solid #007cba !important;
}

/* Мобильная адаптация для слайдера */
@media (max-width: 768px) {
  #slider {
    height: 400px;
  }
  
  .slider .intro,
  #slider .intro,
  .slider-wrapper .slider .intro,
  .slider-wrapper #slider .intro {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90% !important;
    padding: 30px 20px !important;
    width: auto !important;
    right: auto !important;
  }
  
  .slider .intro .icon,
  #slider .intro .icon {
    top: -15px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 2em !important;
  }
  
  #slider .intro h2,
  #slider .intro h3 {
    font-size: 1.6em;
  }
  
  #slider .intro p {
    font-size: 1em;
  }
  
  #slider .buttons a {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* Стили для аккордеона */
dt {
  cursor: pointer;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 1px;
  transition: background 0.3s;
}

dt:hover {
  background: #e9e9e9;
}

dt.opened {
  background: #007cba;
  color: white;
}

dd {
  display: none;
  padding: 15px;
  border: 1px solid #ddd;
  border-top: none;
  background: white;
}

/* Компактный список цен */
.compact-pricing-list {
  margin: 10px 0;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
  color: #fff;
}

.service-name i {
  margin-right: 6px;
  color: #ffd700;
  font-size: 14px;
}

.service-details {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.service-price {
  font-weight: 700;
  font-size: 14px;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: 10px;
  white-space: nowrap;
}

/* Адаптивность для списка цен */
@media (max-width: 768px) {
  .pricing-item {
    padding: 6px 10px;
    margin-bottom: 5px;
  }
  
  .service-name {
    font-size: 12px;
  }
  
  .service-name i {
    font-size: 13px;
  }
  
  .service-details {
    font-size: 10px;
  }
  
  .service-price {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pricing-item {
    padding: 5px 8px;
    margin-bottom: 4px;
  }
  
  .service-name {
    font-size: 11px;
  }
  
  .service-name i {
    font-size: 12px;
  }
  
  .service-details {
    font-size: 9px;
  }
  
  .service-price {
    font-size: 12px;
  }
}

/* Улучшение читаемости ссылок в футере */
.page-footer a {
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-footer a:hover {
  color: #4db1e2 !important;
  text-decoration: underline;
}

/* Ссылки в виджете recent-posts */
.recent-posts p a {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.recent-posts p a:hover {
  color: #4db1e2 !important;
  text-decoration: underline;
}

/* Ссылки в виджете widget-sevices */
.widget-sevices a {
  color: #ffffff !important;
  font-weight: 500;
}

.widget-sevices a:hover {
  color: #4db1e2 !important;
  text-decoration: underline;
}

/* Ссылки в location виджете */
.location li a {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.location li a:hover {
  color: #4db1e2 !important;
  text-decoration: underline;
}

/* Социальные ссылки в location */
.location nav a {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.location nav a:hover {
  background: #4db1e2 !important;
  color: #ffffff !important;
}

/* Ссылка в copyright */
.copyrights a {
  color: #4db1e2 !important;
  font-weight: 600;
  text-decoration: none;
}

.copyrights a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Кнопка телефона в футере */
.widget-sevices .button.tel1 {
  color: #ffffff !important;
  background: #4db1e2 !important;
  border: 2px solid #4db1e2 !important;
  font-weight: 700;
  text-shadow: none;
}

.widget-sevices .button.tel1:hover {
  background: #ffffff !important;
  color: #4db1e2 !important;
  border-color: #ffffff !important;
}
