* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial;
  background: #f5f5f5;
}
header {
  background: white;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box {
  width: 55px;
  height: 55px;
  background: #ffc107;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}

.logo-text h1 {
  font-size: 34px;
  line-height: 1;
}

.logo-text p {
  font-size: 18px;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: bold;
}

nav a:hover {
  color: #ffc107;
}

.phone {
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  font-size: 60px;
  margin-bottom: 50px;
}

h2 {
  text-align: center;
  font-size: 60px;
  margin-bottom: 50px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.gallery-page {
  padding: 50px 0;
}

.gallery img {
  width: 400px;
  height: 200px;
  border-radius: 20px;
  height: 300px;
  object-fit: cover;
}
.work-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}
.work-card:hover {
  transform: scale(1.05);
}

.work-card p {
  padding: 15px;
  font-weight: bold;
}
.site-title {
  font-size: 34px;
  font-weight: bold;
}
.call-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

/* Секция с работами */
.works-section {
  padding: 80px 0;
  background: #fafafa;
}

.section-title {
  text-align: center;
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #111;
}

.section-subtitle {
  text-align: center;
  font-size: 22px;
  color: #666;
  margin-bottom: 60px;
}

/* Сетка категорий */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Карточка категории */
.works-category {
  background: white;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.works-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
}

/* Заголовок категории */
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.category-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  background: #fff9e6;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

/* Список работ */
.works-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-list li {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: color 0.2s;
}

.works-list li:hover {
  color: #111;
}

/* Галочка */
.works-list .check {
  color: #ffc107;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #fff9e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Блок призыва к действию */
.works-cta {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.works-cta p {
  font-size: 22px;
  color: #444;
  margin-bottom: 25px;
}

.works-cta strong {
  color: #111;
}

.works-cta .btn {
  display: inline-block;
}

/* Секция FAQ */
.faq-section {
  padding: 60px 0;
  background: #fafafa;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* Элемент FAQ */
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

/* Вопрос */
.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #fff9e6;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  flex: 1;
}

/* Иконка + / × */
.faq-icon {
  font-size: 28px;
  font-weight: 300;
  color: #ffc107;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff9e6;
  border-radius: 50%;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #ffc107;
  color: white;
}

/* Ответ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  padding-top: 5px;
  border-top: 1px solid #f0f0f0;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ БУРГЕРА (скрыт на десктопе)
   ======================================== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  background: #ffc107;
  border-radius: 3px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   АДАПТАЦИЯ СТРАНИЦЫ SANTEHNIKA.HTML
   ======================================== */

/* ========================================
   ПЛАНШЕТЫ (до 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .gallery-page h1 {
    font-size: 36px;
    text-align: center;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px)
   ======================================== */
@media (max-width: 768px) {
  /* --- ЗАГОЛОВОК H1 --- */
  .gallery-page h1 {
    font-size: 28px;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  /* --- СЕКЦИИ С БЕЛЫМ ФОНОМ --- */
  .gallery-page section[style*="background: white"] {
    padding: 25px 20px !important;
    margin-bottom: 30px !important;
  }

  .gallery-page section[style*="background: white"] p {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  /* --- СЕКЦИЯ С ПРЕИМУЩЕСТВАМИ (желтый фон) --- */
  .gallery-page section[style*="background: #fff8e1"] {
    padding: 25px 20px !important;
    margin-bottom: 30px !important;
  }

  .gallery-page section[style*="background: #fff8e1"] h2 {
    font-size: 28px !important;
    text-align: center;
    margin-bottom: 20px !important;
  }

  .gallery-page
    section[style*="background: #fff8e1"]
    div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-top: 20px !important;
  }

  .gallery-page section[style*="background: #fff8e1"] div > div {
    font-size: 17px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 10px;
  }

  /* --- СЕКЦИЯ УСЛУГ (WORKS-SECTION) --- */
  .works-section {
    padding: 30px 0;
  }

  .works-section .section-title {
    font-size: 28px;
    text-align: center;
  }

  .works-section .section-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
  }

  .works-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .works-category {
    padding: 20px;
  }

  .category-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .category-icon {
    font-size: 28px;
  }

  .category-header h3 {
    font-size: 20px;
    margin: 0;
  }

  .works-list {
    padding-left: 0;
  }

  .works-list li {
    font-size: 16px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .works-list .check {
    font-size: 18px;
    flex-shrink: 0;
  }

  /* --- ПРИЗЫВ К ДЕЙСТВИЮ (WORKS-CTA) --- */
  .works-cta {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 15px;
  }

  .works-cta p {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .works-cta .btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
  }

  /* --- ГАЛЕРЕЯ РАБОТ --- */
  .gallery-page section[style*="margin-bottom: 60px"] h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
  }

  .gallery {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .work-card {
    padding: 15px;
  }

  .work-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .work-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* --- СЕКЦИЯ РАЙОНОВ --- */
  .gallery-page section[style*="background: white"] h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
  }

  /* --- FAQ СЕКЦИЯ --- */
  .faq-section {
    padding: 30px 0;
  }

  .faq-section .section-title {
    font-size: 26px;
    text-align: center;
  }

  .faq-section .section-subtitle {
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-item {
    border-radius: 12px;
  }

  .faq-question {
    padding: 15px 18px;
  }

  .faq-question h3 {
    font-size: 16px;
    line-height: 1.4;
    padding-right: 30px;
  }

  .faq-icon {
    font-size: 24px;
    top: 15px;
    right: 15px;
  }

  .faq-answer {
    padding: 0 18px 15px 18px;
  }

  .faq-answer p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* --- CTA СЕКЦИЯ (желтый фон) --- */
  .gallery-page section[style*="background: #ffc107"] {
    padding: 30px 20px !important;
    margin: 30px 0 !important;
  }

  .gallery-page section[style*="background: #ffc107"] h2 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
    line-height: 1.3;
  }

  .gallery-page section[style*="background: #ffc107"] p {
    font-size: 17px !important;
    margin-bottom: 20px !important;
  }

  .gallery-page section[style*="background: #ffc107"] a {
    display: block;
    padding: 16px 25px !important;
    font-size: 20px !important;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ========================================
   УЗКИЕ МОБИЛЬНЫЕ ЭКРАНЫ (до 480px)
   ======================================== */
@media (max-width: 480px) {
  .gallery-page h1 {
    font-size: 24px;
  }

  .gallery-page section[style*="background: white"] p {
    font-size: 16px !important;
  }

  .gallery-page section[style*="background: #fff8e1"] h2 {
    font-size: 24px !important;
  }

  .gallery-page section[style*="background: #fff8e1"] div > div {
    font-size: 16px;
  }

  .works-section .section-title {
    font-size: 24px;
  }

  .category-header h3 {
    font-size: 18px;
  }

  .works-list li {
    font-size: 15px;
  }

  .works-cta p {
    font-size: 16px;
  }

  .works-cta .btn {
    font-size: 16px;
    padding: 14px 18px;
  }

  .gallery-page section[style*="margin-bottom: 60px"] h2 {
    font-size: 22px;
  }

  .work-card p {
    font-size: 14px;
  }

  .faq-section .section-title {
    font-size: 22px;
  }

  .faq-question h3 {
    font-size: 15px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .gallery-page section[style*="background: #ffc107"] h2 {
    font-size: 20px !important;
  }

  .gallery-page section[style*="background: #ffc107"] p {
    font-size: 16px !important;
  }

  .gallery-page section[style*="background: #ffc107"] a {
    font-size: 18px !important;
    padding: 14px 20px !important;
  }
}
/* ========================================
   ИСПРАВЛЕНИЕ БУРГЕРА И FAQ ДЛЯ SANTEHNIKA.HTML
   ======================================== */

/* Бургер - принудительно показываем */
@media (max-width: 768px) {
  .burger {
    display: flex !important;
    width: 26px !important;
    height: 20px !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    position: relative !important;
  }

  .burger span {
    display: block !important;
    height: 2.5px !important;
    background: #ffc107 !important;
    border-radius: 3px !important;
    transition: all 0.3s !important;
    width: 100% !important;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
  }

  .burger.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }

  /* Мобильное меню */
  nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    height: 100vh !important;
    background: #1a1a1a !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    transition: right 0.3s !important;
    z-index: 1000 !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5) !important;
    padding: 60px 20px 20px !important;
  }

  nav.active {
    right: 0 !important;
  }

  nav a {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid #333 !important;
  }
}

/* FAQ аккордеон - исправление */
.faq-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.faq-item {
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.faq-question {
  padding: 18px 20px !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.faq-question h3 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  padding-right: 35px !important;
  flex: 1 !important;
}

.faq-icon {
  position: absolute !important;
  top: 18px !important;
  right: 20px !important;
  font-size: 28px !important;
  font-weight: bold !important;
  color: #ffc107 !important;
  transition: transform 0.3s !important;
  line-height: 1 !important;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg) !important;
}

.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.3s ease-out !important;
  padding: 0 20px !important;
}

.faq-item.active .faq-answer {
  max-height: 500px !important;
  padding: 0 20px 18px 20px !important;
}

.faq-answer p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #555 !important;
}

/* Мобильная версия FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 15px 18px !important;
  }

  .faq-question h3 {
    font-size: 16px !important;
    padding-right: 30px !important;
  }

  .faq-icon {
    top: 15px !important;
    right: 15px !important;
    font-size: 24px !important;
  }

  .faq-answer {
    padding: 0 18px !important;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 15px 18px !important;
  }

  .faq-answer p {
    font-size: 15px !important;
  }
}
