* { box-sizing: border-box; }
  html {
  background-image: url('/img/back1.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  height: 100%;
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: rgba(255, 255, 255, 0.452); 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}  


  a { color: #0078d7; text-decoration: none; }
  a:hover, button:hover { opacity: 0.8; }
  h1, h2, h3 { margin: 0 0 0.5em 0; }
  section { padding: 40px 20px; max-width: 1000px; margin: 0 auto; }   
  
  header {
    background: linear-gradient(135deg, #002850, #155596, #01317a9f);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .header-main-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
  }
  #logo {
  display: block;
  height: clamp(32px, 6vw, 40px);
  width: auto;
  max-width: 150px;
  min-width: 110px;
}

.logo-svg {
  height: 100%;
  width: 100%;
  overflow: visible;
}

.logo-text {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: 0.5px;
}

/* Оригинальная анимация */
.stroke {
  stroke-width: 1.8;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dash 4s linear infinite;
}

 @keyframes dash {
  to { stroke-dashoffset: 0; }
} 

/* Задержки для символов */
.stroke:nth-child(1) { animation-delay: 0.2s; } /* Цифра 2 */
.stroke:nth-child(2) { animation-delay: 0.4s; } /* masters */
 
/* Адаптация для мобильных */
@media (max-width: 768px) {
  /*.logo-text {
    font-size: clamp(16px, 4.5vw, 20px);
    letter-spacing: 0.3px;
  } */
  
  /*.stroke {
    stroke-width: 1.5;
    animation-duration: 1.5s;
  } */
}


   /*#logo {
    height: 40px;
    width: auto;
    max-width: 160px;
  } */


  
  #header-progress-bar {
   position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
}
#header-progress-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6600, #ffb300 80%);
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
 
  .header-contacts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.94rem;
    white-space: nowrap;
  }
   
  .header-contacts a, .header-contacts span {
    color: white;
    text-decoration: none;
  }

  .header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-contacts a:hover {
  opacity: 0.8;
  }
  .main-nav {
    display: flex;
    gap: 10px;
  }

  .main-nav a {
    color: white;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 0.97rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
  }

  .main-nav a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #ff6600;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 100%;
  }
  nav {
  display: flex;
  gap: 8px;
  }
  /* nav a {
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
  }*/
  nav a {
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
  }
  nav a.active, nav a:hover {
    /*background: #0066cc;*/
    background: none;
  }
  nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #ff6600;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  }
  nav a:hover::after,
  nav a.active::after {
    width: 100%;
  }
  .btn-primary {
    display: block;
    margin: 0 auto;
  background: linear-gradient(90deg, #ff6600 60%, #ff9300 100%);
  border: none;
  color: #fff;
  padding: 11px 22px;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-margin {
  margin-top: none;
}


.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ff9300 0%, #ff6600 100%);
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.20);
  transform: translateY(-1px) scale(1.04);
  outline: none;
}

  .open-category-modal {
    width: 100%;
  }  
  /* Стили для иконки телефона в хедере */
.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  filter: brightness(0) invert(1);
}

.phone {
  filter: brightness(0) invert(1);
}

.phone-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: transform 0.2s;
  
}

.phone-link:hover .phone-icon {
  transform: scale(1.1);
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001; /* Увеличиваем z-index */
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
}

/* Иконки бургера и крестика */
.burger-icon,
.close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Линии бургер-иконки */
.burger-icon .line {
    stroke: white;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

/* Крестик */
.close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.close-icon .cross {
    stroke: white;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

/* Состояния при активном меню */
.menu-toggle.active .burger-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.menu-toggle.active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Ховер эффекты */
.menu-toggle:hover .burger-icon .line {
    stroke: #ff6600;
}

.menu-toggle:hover .close-icon .cross {
    stroke: #ff6600;
}

/* Фиксированное меню */
.header-nav-wrapper {
    transition: transform 0.3s ease;
}

@media (max-width: 900px) {
    .header-nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #004080;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000; /* Высокий z-index */
        overflow-y: auto;
    }
    
    .header-nav-wrapper.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .header-nav-wrapper .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav-wrapper .main-nav a {
        color: white;
        padding: 12px 15px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .header-nav-wrapper .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .header-nav-wrapper .btn-primary {
        margin-top: 20px;
        width: 100%;
    }
    
    /* Фиксируем хедер на мобильных */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    /* Добавляем отступ для контента чтобы не перекрывался фиксированным хедером */
    body {
        padding-top: 80px; /* Высота вашего хедера */
    }
    
    /* Когда меню открыто - затемняем фон */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    body.menu-open::before {
        opacity: 1;
        pointer-events: auto;
    }
}

  

  #hero {
    background: url('/img/test1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
  }
  #hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(212, 200, 200, 0.247);
    z-index: 0;
  }
  #hero > * { position: relative; z-index: 1; }
  #hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
  #hero p { font-size: 1.2rem; margin-bottom: 30px; }
  #promo {
    background: #ffefd5;
    border-left: 6px solid #ff6600;
    padding: 10px 0;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  .marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  }

  .marquee__content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
  font-weight: 700;
  font-size: 1.3rem;
  color: #333;  
  }
  .marquee__content {
  padding-right: 100px; /* или padding-right: 100px; */
  }


  @keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
  }
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #000000;
  }
  #services .service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Выравниваем по высоте */
}

#services .service-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 300px; /* Более гибкая адаптация */
    text-align: center;
    box-sizing: border-box;
    max-width: 306px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Прижимаем кнопку к низу */
#services .service-item .btn-primary {
    margin-top: auto;
    align-self: center;
    width: 100%;
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Убираем лишние отступы */
.btn-margin {
    margin-top: auto !important;
}

/* Адаптация для разных экранов */

/* Большие планшеты и маленькие десктопы */
@media (max-width: 1100px) {
    #services .service-item {
        flex: 1 1 280px;
        min-height: 300px;
        padding: 18px;
    }
}

/* Планшеты - 2 в ряд */
@media (max-width: 900px) {
    #services .service-item {
        flex: 1 1 calc(50% - 15px);
        min-height: 300px;
        max-width: none;
    }
    
    #services .service-item .btn-primary {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* Средние мобильные */
@media (max-width: 768px) {
    #services .service-item {
        flex: 1 1 100%;
        min-height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    #services .service-list {
        gap: 15px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    #services .service-item {
        min-height: 280px;
        padding: 15px;
        margin: 0 10px;
    }
    
    #services .service-item h3 {
        font-size: 1.2rem;
    }
    
    #services .service-item p {
        font-size: 0.9rem;
    }
    
    #services .service-item .btn-primary {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: 44px;
    }
    
    /* Уменьшаем иконки на мобильных */
    #services .service-item svg {
        width: 80px;
        height: 80px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    #services .service-item {
        min-height: 300px;
        padding: 12px;
    }
    
    #services .service-item .btn-primary {
        font-size: 0.8rem;
    }
}

/* Убедимся, что текст в кнопках хорошо выглядит */
.btn-primary {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Адаптация иконок */
#services .service-item svg {
    width: 96px;
    height: 96px;
    margin: 10px auto;
}

@media (max-width: 768px) {
    #services .service-item svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    #services .service-item svg {
        width: 70px;
        height: 70px;
    }
}

  #services .service-item h3 { margin-bottom: 10px; color: #ff6600; }
  /* Анимация иконок */
  .icon-fridge {
    animation: breathe 2s ease-in-out infinite;
  }
 
  .fridge-indicator {
    animation: blink 1.2s ease-in-out infinite;
  }
  /*.icon-fridge:hover .fridge-indicator {
    animation: blink 1.2s ease-in-out infinite;
  }*/
  @keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
  .icon-boiler {
  position: relative;
  display: inline-block;
}

  .boiler-indicator {
  fill: #e63946;
  transform-origin: 24px 20px; /* Координаты центра круга */
  animation: boiler-pulse 2s ease-in-out infinite;
}
@keyframes boiler-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
    fill: #e63946;
  }
  50% { 
    transform: scale(1.3); /* Увеличиваем масштаб */
    opacity: 0.8;
    fill: #ff6b6b;
  }
}
   /*@keyframes pulse {
    0%, 100% { transform: scale(1); }
    70% { transform: scale(1.04); }
  }  /*
  /*.icon-boiler:hover .boiler-indicator {
    animation: pulse 1.5s ease-in-out infinite;
    fill: #e63946;
  }*/
  
  .icon-washer .washer-drum,
  .icon-washer .washer-drum-inner {
  animation: spin 3s linear infinite;
}
  .washer-drum, .washer-drum-inner {
    transform-origin: 24px 28px;
    transition: transform 0.6s ease;
  }
  /*.icon-washer:hover .washer-drum,
  .icon-washer:hover .washer-drum-inner {
    animation: spin 3s linear infinite;
  }*/
  @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
  }
  #faq details {
    max-width: 700px;
    margin: 0 auto 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 0.1);
    cursor: pointer;
  }
  #faq summary {
    font-weight: 700;
    font-size: 1.1rem;
  }  
  .contacts {
    max-width: 800px;
    margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

.contacts-info {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  font-size: 1.07rem;
  text-align: left;
}

.contacts-info p {
  margin: 8px 0;
}

.contacts-map {
  flex: 2 1 400px;
  min-width: 280px;
  max-width: 600px;
}

.contacts-map iframe {
  width: 100%;
  height: 320px;
  min-height: 200px;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* Адаптивность для мобильных */


  #call-master-form {
    max-width: 600px;
    margin: 20px auto 40px;
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  }
  #call-master-form h2 { text-align: center; margin-bottom: 20px; color: #000000; }
  #call-master-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
  }
  #call-master-form input,
  #call-master-form select,
  #call-master-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  #call-master-form textarea { resize: vertical; min-height: 80px; }
  #call-master-form button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
  }
.review-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.review-edit-form {
  max-width: none;
  margin: 0;
}

.review-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.review-form input,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.review-form textarea {
  resize: vertical;
  min-height: 80px;
}
.review-form button[type="submit"] {
  background: #ff6600;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}
.rating-group {
  display: flex;
  gap: 4px;
  font-size: 2rem;
  margin-bottom: 15px;
  user-select: none;
}
.rating-group .star {
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}
.rating-group .star.selected,
.rating-group .star.hovered {
  color: #ff6600;
}
.average-rating {
  color: #ff6600;
  font-size: 1.2rem;
  margin-left: 16px;
  font-weight: 600;
  vertical-align: middle;
}
.review-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#review-list {
  margin-top: 23px;
}
.review-item {
  
  background: white;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.review-item textarea,
.review-item input[type="text"] {
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 6px 8px;
  margin-bottom: 6px;
}


.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.review-name {
  font-weight: bold;
  color: #004080;
}
.review-date {
  font-size: 0.95em;
  color: #888;
}
.review-rating {
  color: #ff6600; /* Оранжевый для статичных отзывов */
  font-size: 1.2rem;
}
.review-rating .star {
  color: #ddd; /* Серый для невыбранных интерактивных звёзд */
  cursor: pointer;
  transition: color 0.2s;
}
.review-rating .star.selected,
.review-rating .star.hovered {
  color: #ff6600; /* Оранжевый для выбранных/наведённых */
}


.edit-btn, .save-btn, .cancel-btn {
  background: #ff6600;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 6px;
  align-self: flex-end;
}
.save-btn { background: #0078d7; }
.cancel-btn { background: #888; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.pagination button {
  background: #fff;
  border: 1px solid #ff6600;
  color: #ff6600;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.pagination button.active,
.pagination button:hover {
  background: #ff6600;
  color: #fff;
} 

#about {
  background: rgba(255,255,255,0.93);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  margin: 40px auto 0;
  padding: 40px 24px 36px;
  max-width: 950px;
}

.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-text {
  flex: 2 1 350px;
  min-width: 240px;
  font-size: 1.09rem;
  color: #222;
}

.about-text ul {
  margin: 18px 0 18px 18px;
  padding-left: 0;
  list-style: disc inside;
}

.about-text li {
  margin-bottom: 7px;
}

.about-img {
  flex: 1 1 200px;
  min-width: 170px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  object-fit: cover;
  background: #f6f8fa;
}

/* О нас, свг анимация */
.about-features {
  margin: 18px 0 18px 0;
  padding-left: 0;
  list-style: none;
}

.about-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.about-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Холодильник — дыхание */
.icon-fridge {
  animation: breathe 2.6s ease-in-out infinite;
}
.fridge-indicator {
  animation: blink 1.2s ease-in-out infinite;
}

/* Локация — пульсация */
.location-pulse {
  animation: pulse 1.8s infinite;
  transform-origin: 50% 50%;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Мультиметр */
.icon-multimeter .multimeter-led {
  animation: led-blink 1.3s infinite;
}
@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.icon-multimeter .multimeter-needle {
  transform-origin: 16px 13.5px;
  animation: needle-swing 2s infinite cubic-bezier(.4,0,.2,1);
}
@keyframes needle-swing {
  0%, 100% { transform: rotate(-18deg);}
  50% { transform: rotate(15deg);}
}


/* шестеренка */
.icon-gear {
  display: inline-block;
  vertical-align: middle;
}
.icon-gear .gear-cogs {
  transform-origin: 16px 16px;
  animation: gear-spin 2.5s linear infinite;
}
@keyframes gear-spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}


/* Гарантия — галочка появляется */
.guarantee-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: checkmark 2.3s infinite;
}
@keyframes checkmark {
  0% { stroke-dashoffset: 20; opacity: 0.3;}
  20% { stroke-dashoffset: 15; opacity: 1;}
  40% { stroke-dashoffset: 0; opacity: 1;}
  80% { stroke-dashoffset: 0; opacity: 1;}
  100% { stroke-dashoffset: 20; opacity: 0.3;}
}

.icon-megaphone {
  display: inline-block;
  vertical-align: middle;
}
.icon-megaphone .megaphone-wave {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: megaphone-wave 1.5s linear infinite;
}
@keyframes megaphone-wave {
  0% { stroke-dashoffset: 18; opacity: 0.2;}
  20% { stroke-dashoffset: 12; opacity: 0.6;}
  40% { stroke-dashoffset: 0; opacity: 1;}
  80% { stroke-dashoffset: 0; opacity: 1;}
  100% { stroke-dashoffset: 18; opacity: 0.2;}
}
.icon-megaphone .megaphone-btn {
  animation: megaphone-btn-blink 1.6s infinite;
}
@keyframes megaphone-btn-blink {
  0%, 100% { fill: #fff; }
  50% { fill: #ff6600; }
}

  #contact-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  
  #contact-widget a {
    width: 56px; height: 56px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
  }
   
  
  #contact-widget a:hover { transform: scale(1.1);}
  #contact-widget img { width: 40px; height: 40px; }
  
  #modal-overlay, #master-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  #modal, #master-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 30px;
    position: relative;
    box-shadow: 0 2px 20px rgba(0,0,0,0.22);
    animation: modalIn 0.3s;
  }
  .modal-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}
.modal-overlay[style*="display: flex"] {
  display: flex !important;
}
.modal-content {
  background: #fff;
  padding: 32px 18px;
  border-radius: 10px;
  min-width: 300px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: #ff6600;
}
  @keyframes modalIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  #modal h2, #master-modal h2 { margin-top: 0; color: #004080; text-align:center;}
  #modal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  #modal th, #modal td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
  }
  #modal th { background: #f0f0f0; }
  #modal button.close-btn, #master-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
  }
  #modal button.close-btn:hover, #master-modal-close:hover { color: #ff6600; }
  #modal button.call-master-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
  }
  #master-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
  }
  #master-modal input,
  #master-modal select,
  #master-modal textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  #master-modal textarea {
    resize: vertical;
    min-height: 80px;
  }
  #master-modal button[type="submit"] {
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
  }
  
   .steps-top-row, .steps-bottom-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.steps-bottom-row {
  margin-bottom: 0;
  margin-top: -12px; /* чуть ближе к верхнему ряду */
}
.steps-bottom-row {
  justify-content: center;
}
.steps-bottom-row .step-block {
  /* Для двух карточек по центру */
  margin-left: 0;
  margin-right: 0;
}
.step-block {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 22px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 180px;
  max-width: 220px;  
  position: relative;
}
.step-number {
  position: absolute;
  top: 12px;
  left: 16px;
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,102,0,0.12);
}
.step-icon {
  margin-bottom: 18px;
  margin-top: 12px;
  display: block;
}
.step-title {
  font-weight: 500;
  font-size: 1.05rem;
  
}

#scroll-to-top {
  position: fixed;
  left: 16px;
  bottom: 32px;
  z-index: 3100;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  display: none; /* Скрыто по умолчанию */
  padding: 0;
}
#scroll-to-top:hover {
  opacity: 1;
  transform: scale(1.08);
}
#scroll-to-top svg {
  display: block;
  margin: auto;
}
@media (max-width: 1250px) {
  .header-nav-wrapper .btn-primary {
    display: none;
  }
  .reviews {
    display: none;
  }
}
@media (max-width: 1100px) {
    /*#logo { width: 100%; height: 32px; } */
    .header-contacts { font-size: 0.87rem; }
    .btn-primary { padding: 9px 12px; font-size: 1rem; }
    nav a { font-size: 0.91rem; padding: 6px 7px; }  
  } 
  @media (max-width: 1024px) {
    .header-contacts {
      font-size: 0.85rem;
    }
  
    nav a {
      padding: 8px 10px;
      font-size: 0.9rem;
    }
  } 
 @media (max-width: 968px) {
  .btn-margin {
  margin-top: 33px;
}
}
 @media (max-width: 820px) {
  .header-nav-wrapper .btn-primary {
    display: block;
    
  }
 }


  
@media (max-width: 900px) {
  header { flex-wrap: wrap; }
  .header-main-left { width: 100%; justify-content: space-between; }
  .header-contacts { display: none; }  
    .menu-toggle {
    display: flex;
  }
  
    .header-nav-wrapper {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      max-width: none;
      height: 100vh;
      background: linear-gradient(135deg, #002850, #155596);
      flex-direction: column;
      justify-content: flex-start;
      padding: 80px 20px 20px;
      transition: right 0.35s cubic-bezier(.4,0,.2,1);
      z-index: 1000;
      box-shadow: -4px 0 16px rgba(0,0,0,0.2);
    }
     .header-nav-wrapper.active {
      right: 0;
    }
  
    .main-nav {
      flex-direction: column;
      gap: 15px;
      width: 100%;
      margin-bottom: 0;
    }
  
    .main-nav a {
      font-size: 1.2rem;
      padding: 12px;
      text-align: center;
    }
  
  
  
    header {
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }
    .header-main-left {
      width: 100%;
      justify-content: space-between;
    }
    .header-contacts {
      display: none;
    }
    
    .header-nav-wrapper.show {
      display: flex;
    }
    nav {
      flex-direction: column;
      width: 100%;
      padding: 10px 0;
    }
    nav a {
      padding: 15px 20px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      border-radius: 0;
    }
    nav a:last-child {
      border-bottom: none;
    }
    #open-form-btn-header {
      
      max-width: none;
      font-size: 1.1rem;
      padding: 12px;
    }
     .about-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .about-img {
    max-width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
  }
  #about {
    padding: 28px 5vw 24px;
  }
  .steps-top-row, .steps-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
  }
  .steps-bottom-row {
    margin-top: 0;
  }
  .step-block {
    max-width: 340px;
    width: 100%;
    height: 220px;
  }
  .steps-bottom-row .step-block {
    margin-left: 0;
    margin-right: 0;
  }  
  
}
@media (max-width: 880px) {
  header {
    padding: 10px 20px;
  }
  
  .header-nav-wrapper {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    z-index: 1000;
  }
  #logo {
    height: clamp(30px, 6vw, 36px); /* Меньше увеличение на мобильных */
    max-width: 140px;
  }  
  

  /*.logo-text {
    font-size: clamp(20px, 6vw, 24px);
    letter-spacing: 0;
  } */
  
  .stroke {
    stroke-width: 1.5;
  }
}
  
  /*#logo {
    height: 35px;
  } */

@media (max-width: 700px) {
  .contacts {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .contacts-map iframe {
    height: 200px;
  }
  .review-list {
    max-width: 98vw;
    gap: 12px;
  }
  .review-form {
    padding: 15px 5vw;
  }
}
@media (max-width: 600px) {
    #services .service-list {
      flex-direction: column;
      align-items: center;
    }
    nav {
      justify-content: center;
      width: 100%;
      margin-top: 10px;
    }
    header {
      flex-direction: column;
      align-items: flex-start;
    }
    #scroll-to-top {
    left: 20px;
    bottom: 36px;
    width: 38px;
    height: 38px;
  }
   .modal-content {
    min-width: 0;
    width: 96vw;
    padding: 16px 4vw;
    font-size: 1rem;
  }
  .modal-content table th, .modal-content table td {
    font-size: 0.98rem;
    padding: 6px 4px;
  }
   }
@media (max-width: 480px) {
  
  .header-container {
      padding: 0 15px;
    }

    /*#logo {
    min-width: 85px;
    height: 30px;
  } */
  
  .logo-text {
    font-size: 26px;
  }
    
    /*#logo {
      height: 35px;
    }
    #logo {
    height: 28px;
  } */
    
    .menu-toggle {
      width: 36px;
      height: 36px;
    }
    
    .menu-toggle .bar {
      width: 22px;
      height: 2.5px;
    }
  }  
  @keyframes dash { to { stroke-dashoffset: 0; } }

  

  /* Стили для страниц услуг */
.service-page {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

 /*.service-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #ff6600, #ff9300);
} */

.service-page h1 {
  color: #004080;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.service-page h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, #ff6600, #ffb300);
  border-radius: 2px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.price-table th, .price-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}

.price-table th {
  background-color: #f7f7f7;
  font-weight: 600;
  color: #333;
}

.price-table tr:nth-child(even) {
  background-color: #fafafa;
}

.price-table tr:hover {
  background-color: #f0f0f0;
}

.service-content {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-features {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  border-left: 4px solid #ff6600;
}
.service-features-center {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  border: 4px dashed #ff6600;
}
.service-features-center h3 {
  text-align: center;
  color: black;
}

.service-features-right {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  border-right: 4px solid #ff6600;
}

.service-features-right h3 {
  color: #004080;
  margin-top: 0;
}

.service-features h3 {
  color: #004080;
  margin-top: 0;
}

.call-master-section {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  
}

#price-modal-title {
  text-align: center;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .service-page {
    padding: 20px;
    margin: 20px auto;
  }
  
  .service-content {
    flex-direction: column;
  }
  
  .price-table th, .price-table td {
    padding: 8px 10px;
  }
}

.price-list table {
  margin: 0 auto;
}
.price-list h2 {
  text-align: center;
}

.service-image img {
  width: 100px;
  box-shadow: none;
}
.call-master {
  text-align: center;
}


/* Стили для системы отзывов */
.no-reviews {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 20px;
  color: #e63946;
  background: #ffe6e6;
  border-radius: 4px;
  margin: 10px 0;
}

.review-item {
  background: #f9f9f9;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  border-left: 4px solid #ff6600;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-name {
  font-weight: bold;
  color: #004080;
}

.review-date {
  color: #666;
  font-size: 0.9em;
}

.review-rating {
  color: #ff6600;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.review-text {
  line-height: 1.5;
  color: #333;
}

.edit-btn, .save-btn, .cancel-btn {
  background: #004080;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  font-size: 0.9em;
}

.save-btn {
  background: #4CAF50;
}

.cancel-btn {
  background: #666;
}

.edit-btn:hover, .save-btn:hover, .cancel-btn:hover {
  opacity: 0.9;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 20px 0;
}

.pagination button {
  padding: 5px 10px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button.active {
  background: #ff6600;
  color: white;
  border-color: #ff6600;
}

.pagination button:hover:not(.active) {
  background: #f0f0f0;
}


/* Стили для формы */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd; /* СЕРЫЕ рамки по умолчанию */
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #004080; /* Синие рамки при фокусе */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.3);
}

/* Красные рамки ТОЛЬКО при ошибке */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e63946;
}

.error-message {
    color: #e63946;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.required {
    color: #e63946;
}


/* Универсальные стили для всех форм */
#masterForm,
#masterModalForm {
    width: 100%;
}

#masterForm .form-group,
#masterModalForm .form-group {
    margin-bottom: 15px;
    text-align: left;
}

#masterForm label,
#masterModalForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#masterForm input,
#masterForm select,
#masterForm textarea,
#masterModalForm input,
#masterModalForm select,
#masterModalForm textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#masterForm input:focus,
#masterForm select:focus,
#masterForm textarea:focus,
#masterModalForm input:focus,
#masterModalForm select:focus,
#masterModalForm textarea:focus {
    border-color: #004080;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.3);
}

/* Стили ошибок для всех форм */
#masterForm input.error,
#masterForm select.error,
#masterForm textarea.error,
#masterModalForm input.error,
#masterModalForm select.error,
#masterModalForm textarea.error {
    border-color: #e63946;
}

#masterForm .error-message,
#masterModalForm .error-message {
    color: #e63946;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Стили для переключателя языка */
.language-switcher {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  margin-top: 5px;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.3s ease;
}

.lang-option:hover {
  background-color: #f5f5f5;
}

/* Модальное окно предложения языка */
.lang-suggestion-modal {
  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.lang-suggestion-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-suggestion-header {
  margin-bottom: 20px;
}

.ukraine-flag {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.lang-suggestion-header h3 {
  color: #333;
  margin: 0;
  font-size: 20px;
}

.lang-suggestion-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ukraine-btn {
  background: linear-gradient(135deg, #0057b7, #ffd700);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ukraine-btn:hover {
  transform: translateY(-2px);
}

.keep-russian-btn {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.keep-russian-btn:hover {
  background: #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
  .language-switcher {
    margin-left: 10px;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 50px;
    margin-right: 15px;
  }
  
  .lang-suggestion-content {
    padding: 20px;
    margin: 10px;
  }
}

/* Стили для модального окна внерабочего времени */
.after-hours-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.after-hours-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.after-hours-header {
  margin-bottom: 20px;
}

.time-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.after-hours-header h3 {
  color: #333;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #ff6600;
}

.after-hours-body p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 25px;
  font-size: 16px;
}

.after-hours-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.after-hours-btn {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.after-hours-btn.primary {
  background: linear-gradient(135deg, #ff6600, #ff9300);
  color: white;
}

.after-hours-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.after-hours-btn.secondary {
  background: none;
  border: 1px solid #ddd;
  color: #666;
}

.after-hours-btn.secondary:hover {
  background: #f5f5f5;
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Адаптация для мобильных */
@media (max-width: 480px) {
  .after-hours-content {
    padding: 25px 20px;
    margin: 20px;
  }
  
  .time-icon {
    font-size: 40px;
  }
  
  .after-hours-header h3 {
    font-size: 20px;
  }
  
  .after-hours-body p {
    font-size: 15px;
  }
  
  .after-hours-btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}




/* Стили для нового контента */
.service-cta {
    text-align: center;
    margin-bottom: 40px;
}

.service-cta h2 {
    color: #004080;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Сетка преимуществ */
.advantages-section {
    margin: 40px 0;
}

.advantages-section h3 {
    text-align: center;
    color: #004080;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.advantage-card {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6600;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card-right {
  background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 10px;
    border-right: 4px solid #ff6600;
    
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.advantage-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.advantage-content h4 {
    color: #004080;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.advantage-content p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

/* Предложение диагностики */
.diagnostic-offer {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid #2196f3;
}

.offer-header h3 {
    color: #004080;
    margin-bottom: 20px;
    text-align: center;
}

.offer-content p {
  text-align: justify;
}

.price-box {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 2px dashed #ff6600;
}

.price-label {
    font-weight: 600;
    color: #333;
}

.price-amount {
    font-weight: bold;
    color: #ff6600;
    font-size: 1.3rem;
    margin-left: 10px;
}

.important-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    position: relative;
}

.important-notice p {
  text-align: center;
}

.notice-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ff6600;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.free-offer {
    text-align: center;
    margin: 15px 0 0 0;
    font-size: 1.1rem;
}

.highlight {
    color: #ff6600;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Список услуг */
.services-list {
    margin: 40px 0;
}

.services-list h3 {
    color: #004080;
    text-align: center;
    margin-bottom: 30px;
}

.service-category {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-category h4 {
    color: #ff6600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-features {
    list-style: none;
    
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Финальный призыв */
.final-cta {
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    margin: 50px 0 30px 0;
}

.cta-content h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.phone-cta {
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 1.2rem;
}

.phone-icon {
    font-size: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        flex-direction: column;
        text-align: center;
    }
    
    .diagnostic-offer {
        padding: 20px 15px;
    }
    
    .final-cta {
        padding: 30px 20px;
    }
    
    .phone-cta {
        flex-direction: column;
        gap: 5px;
    }
}

.service-page h2 {
  text-align: center;
}



.diagnostic-offer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border-radius: 20px;
    padding: 35px 30px;
    margin: 40px 0;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    animation: borderRotate 3s linear infinite;
}

.diagnostic-offer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6600, #ff9300, #2196f3, #21cbf3);
    border-radius: 23px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

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

.price-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
    border: 2px solid #ff6600;
    backdrop-filter: blur(10px);
    /*animation: float 3s ease-in-out infinite;*/
    position: relative;
}

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

/*.price-box::after {
    content: '💰';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    animation: coinSpin 4s linear infinite;
}

@keyframes coinSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}*/

.important-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 3px solid #ffc107;
    border-radius: 15px;
    padding: 30px 25px;
    margin-top: 30px;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

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

.notice-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6600, #ff9300);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    animation: badgeBounce 2s infinite;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes badgeBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.free-offer {
    text-align: center;
    margin: 20px 0 0 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.highlight {
    color: #ff6600;
    font-weight: bold;
    font-size: 1.4rem;
    background: linear-gradient(45deg, #ff6600, #ff9300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 2s ease-in-out infinite;
    display: inline-block;
    padding: 0 5px;
}

@keyframes rainbow {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(45deg);
    }
}

/* Дополнительные декоративные элементы 
.diagnostic-offer::after {
    content: '⚡';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

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

/* Стили для слайдера проблем с бойлерами */
.boiler-problems-slider {
  margin: 50px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.boiler-problems-slider h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 30px;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 15px;
}

.boiler-problems-slider h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ff6600, #ffb300);
  border-radius: 2px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slides-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.slide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.problem-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.problem-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.problem-image:hover img {
  transform: scale(1.03);
}

.problem-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6600, #ff9300);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(255,102,0,0.3);
}

.problem-info {
  flex: 2;
  min-width: 300px;
}

.problem-info h3 {
  color: #004080;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.problem-info p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.problem-solution {
  background: rgba(255, 102, 0, 0.1);
  border-left: 4px solid #ff6600;
  padding: 12px 15px;
  border-radius: 0 6px 6px 0;
}

.solution-label {
  font-weight: 600;
  color: #ff6600;
  margin-right: 8px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

.slider-prev,
.slider-next {
  background: white;
  border: 2px solid #ff6600;
  color: #ff6600;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-prev:hover,
.slider-next:hover {
  background: #ff6600;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #ff6600;
  transform: scale(1.2);
}

.dot:hover {
  background: #ff9300;
}

/* Адаптивность */
@media (max-width: 768px) {
  .boiler-problems-slider {
    padding: 20px 15px;
    margin: 30px 0;
  }
  
  .slide-content {
    flex-direction: column;
    padding: 20px;
  }
  
  .problem-image,
  .problem-info {
    min-width: 100%;
  }
  
  .problem-image img {
    height: 200px;
  }
  
  .slider-controls {
    gap: 15px;
  }
}

/* Анимация появления слайдов */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide.active .slide-content {
  animation: slideIn 0.5s ease-out;
}

/* Стили для индикатора свайпа */
.swipe-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 15px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 25px;
  color: #ff6600;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Улучшенные стили для курсора при перетаскивании */
.slider-container {
  cursor: grab;
  user-select: none;
}

.slider-container:active {
  cursor: grabbing;
}

/* Визуальная обратная связь при свайпе */
.slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .swipe-indicator {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .swipe-indicator svg {
    width: 20px;
    height: 20px;
  }
}

/* Предотвращение выделения текста при свайпе */
.slider-container,
.slider-container * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slider-container:focus {
  outline: none;
}

/* Адаптивные классы */
.slider-container.mobile-view .slide-content {
  flex-direction: column;
}

.slider-container.desktop-view .slide-content {
  flex-direction: row;
}

/* Анимация появления слайдов */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide.active[data-direction="next"] {
  animation: slideInFromRight 0.3s ease-out;
}

.slide.active[data-direction="prev"] {
  animation: slideInFromLeft 0.3s ease-out;
}

/* Стили для плавающей кнопки телефона */
.floating-phone-container {
  position: relative;
  margin: 25px 0;
  text-align: center;
}

.floating-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff6600, #ff9300);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

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

.floating-phone-link:hover::before {
  left: 100%;
}

.floating-phone-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 102, 0, 0.4);
  gap: 15px;
}

.phone-icon-wrapper {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.floating-phone-link:hover .phone-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
}

.phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.call-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.phone-number {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Анимация пульсирующих колец */
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border: 2px solid #ff6600;
  border-radius: 50%;
  animation: pulse 2s linear infinite;
  opacity: 0;
  z-index: -1;
}

.ring-2 {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(2);
    opacity: 0;
  }
}

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

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .floating-phone-link {
    padding: 14px 20px;
    font-size: 1rem;
    gap: 10px;
  }
  
  .phone-icon-wrapper {
    width: 35px;
    height: 35px;
  }
  
  .phone-text {
    gap: 1px;
  }
  
  .call-text {
    font-size: 0.85rem;
  }
  
  .phone-number {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .floating-phone-link {
    
    max-width: 280px;
    justify-content: center;
    padding: 8px 16px;
  }
  
  .floating-phone-container {
    margin: 20px 0;
  }
}

/* Анимация появления */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-phone-container {
  animation: slideInUp 0.6s ease-out;
}

