﻿:root {
  --bg: #ffffff;
  --accent: #6d4c41; /* нейтральный теплый коричневый */
  --accent-dark: #5d4037; /* более темный коричневый для hover */
  --accent-light: #8d6e63; /* более светлый коричневый */
  --text: #3e2723; /* теплый темно-коричневый для текста */
  --muted: #795548; /* нейтральный коричневый для второстепенного текста */
  --panel-bg-alpha: 0.6; /* можно менять прозрачность блоков */
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image: url('../img/logos/IMG_7967.JPG'); /* исправлен путь */
  background-size: cover;       /* замостить */
  background-position: center top;  /* выравниваем по верху */
  background-repeat: repeat;     /* повторяем изображение */
  background-attachment: scroll;    /* фон скроллится вместе с текстом */
  min-height: 100vh;
  background-color: #e8dede;           /* запасной цвет пока картинка грузится */
}




/* Оверлей для читаемости текста (опционально) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.22); /* регулируй прозрачность оверлея */
  pointer-events: none;
  z-index: 0;
}

/* Контент поверх фона */
main, .site-header, .section {
  position: relative;
  z-index: 1;
}

/* --- шапка и меню --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(247,247,247,0.5); /* полупрозрачная шапка */
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.05) blur(6px); /* опционально */
}
.brand { font-weight: 700; font-size: 18px }

/* --- логотип в header --- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .logo {
    width: 28px;
    height: 28px;
  }
  .logo-container {
    gap: 8px;
  }
}

/* --- десктопное меню --- */
.desktop-nav {
  display: none; /* по умолчанию скрыто на мобильных */
}

@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
    gap: 24px;
    margin: 0 20px;
  }
  
  .desktop-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .desktop-nav a:hover {
    color: var(--accent);
  }
  
  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-dark);
    transition: width 0.3s ease;
  }
  
  .desktop-nav a:hover::after {
    width: 100%;
  }
  
    /* Скрываем бургер на десктопе */
  .hamburger {
    display: none;
  }
}

/* Улучшения для мобильного меню */
@media (max-width: 768px) {
  /* Улучшаем панель мобильного меню */
  .mobile-panel {
    width: 100%;
    max-width: 320px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
  }
  
  /* Улучшаем отступы для ссылок */
  .mobile-content nav a {
    padding: 16px 20px;
    font-size: 18px;
  }
  
    /* Улучшаем кнопку закрытия */
  #mobile-close {
    font-size: 28px;
    padding: 12px;
  }
  
  /* Адаптация логотипа в мобильном меню */
  .mobile-logo-container {
    gap: 10px;
  }
  
  .mobile-logo {
    width: 28px;
    height: 28px;
  }
  
  .mobile-brand {
    font-size: 15px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.cta {
  display: inline-block;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta:hover {
  background: var(--accent-dark);
}

/* --- бургер --- */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger .bar {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hamburger.open .bar:nth-child(1){transform:translateY(6px) rotate(45deg)}
.hamburger.open .bar:nth-child(2){opacity:0}
.hamburger.open .bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.mobile-menu{
  position:fixed; inset:0; background:rgba(0,0,0,0.4);
  z-index: 1000; opacity:0; pointer-events:none;
  transition: opacity 0.3s ease;
}
.mobile-menu.show{opacity:1; pointer-events:auto;}
.mobile-panel{
  background: rgba(255,255,255,0.95); width:280px; height:100vh;
  transform:translateX(-100%);
  transition:transform 0.3s ease;
  overflow-y:auto;
}
.mobile-menu.show .mobile-panel{transform:translateX(0);}
.panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: rgba(255,255,255,0.98);
}

/* Логотип в мобильном меню */
.mobile-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-brand {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
#mobile-close{background:none; border:0; font-size:22px; cursor:pointer;}

.mobile-content{padding:20px;}
.mobile-content nav{display:flex; flex-direction:column; gap:12px;}

/* Стили для ссылок в мобильном меню */
.mobile-content nav a {
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(247,247,247,0.7);
}

.mobile-content nav a:hover,
.mobile-content nav a:focus {
  background: var(--accent);
  color: white;
  transform: translateX(4px);
}

/* Улучшаем кнопку закрытия */
#mobile-close {
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: color 0.3s ease;
}

#mobile-close:hover {
  color: var(--accent-dark);
}

/* --- секции --- */
.header, .section {
  padding: 40px;
  max-width: 900px;
  margin: 20px auto;
  background: rgba(255,255,255,var(--panel-bg-alpha)); /* полупрозрачные блоки */
  border-radius: 8px;
}

/* Стили для главной секции */
.header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--text);
  text-align: center;
}

.intro-text {
  line-height: 1.6;
}

.greeting {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--muted);
}

.services-highlight,
.approach,
.conditions {
  margin-bottom: 35px;
  padding: 20px;
  background: rgba(247,247,247,0.4);
  border-radius: 8px;
  border-left: 4px solid var(--accent-light);
}

.services-highlight h2,
.approach h2,
.conditions h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
}

.services-highlight ul,
.conditions ul {
  padding-left: 20px;
  margin: 0;
}

.services-highlight li,
.conditions li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.approach p {
  margin-bottom: 15px;
}

.cta-container {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  border: 2px solid var(--accent-light);
}

.cta-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.cta-subtext {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .greeting {
    font-size: 1.1rem;
  }
  
  .services-highlight,
  .approach,
  .conditions {
    padding: 15px;
  }
  
  .services-highlight h2,
  .approach h2,
  .conditions h2 {
    font-size: 1.о2rem;
  }
  
  .cta-container {
    padding: 20px 15px;
  }
  
  .cta-text {
    font-size: 1.1rem;
  }
}

/* --- отзывы --- */
.reviews { display:grid; gap:20px }
.review { background: rgba(247,247,247,0.6); padding:15px; border-radius:6px }

/* --- раскрывающиеся блоки --- */
.toggle-block { margin: 16px 0; }
.toggle-button {
  background:none; border:none; font-size:16px; font-weight:600;
  color:var(--text); cursor:pointer; padding:8px 0; text-align:left; width:100%;
}
.toggle-button[aria-expanded="true"]::before { content:"− "; }
.toggle-button[aria-expanded="false"]::before { content:"+ "; }

.toggle-content {
  margin-top:8px;
  background: rgba(247,247,247,0.55);
  border-radius:6px;
  overflow:hidden; height:0; padding:0 12px;
  transition:height 0.35s ease, padding 0.25s ease;
}

/* --- контакты --- */
.contact-buttons {
  display:flex; flex-wrap:wrap; gap:12px; margin-top:16px;
}
.contact-btn {
  flex:1 1 200px; text-align:center; padding:12px;
  background:var(--accent); color:#fff; border-radius:6px;
  text-decoration:none; font-weight:600;
  transition:background 0.3s ease;
}
.contact-btn:hover { background: var(--accent-dark); }

/* Вертикальная форма обратной связи — применимо только к секции #feedback */
#feedback form {
  display: flex;
  flex-direction: column;
  gap: 12px;            /* расстояние между полями */
  max-width: 720px;     /* опционально: ограничение ширины формы */
  width: 100%;
  margin: 0 auto;       /* центрирование формы внутри секции */
}

#feedback input[type="text"],
#feedback input[type="email"],
#feedback textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.3;
  background: #fff;
  box-sizing: border-box;
}

/* Кнопка отправки */
#feedback button[type="submit"] {
  align-self: flex-start; /* кнопка слева; можно поставить stretch для ширины */
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
#feedback button[type="submit"]:hover {
  background: var(--accent-dark);
}

/* Мобильная адаптация (если нужно) */
@media (max-width: 768px) {
  /* отключаем heavy backdrop-filter на слабых устройствах */
  .site-header { backdrop-filter: none; }
    /* можно подгружать меньшую картинку для ускорения */
  body { background-image: url('../img/logos/IMG_7967-small.jpg'); background-size: 100% auto; background-repeat: no-repeat; }
}

@media (max-width: 480px) {
  #feedback form { gap: 10px; padding: 0 12px; }
  #feedback button[type="submit"] { width: 100%; align-self: stretch; }
}

/* Стили для блока Стоимость услуг */
.pricing-container {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-category {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-category h3 {
  color: var(--text);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 10px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0;
}

.duration {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 15px;
}

.description {
  line-height: 1.6;
  color: var(--text);
  margin-top: 15px;
  padding: 15px;
  background: rgba(247, 247, 247, 0.6);
  border-radius: 8px;
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(247, 247, 247, 0.5);
  border-radius: 6px;
  border-left: 3px solid var(--accent-light);
  transition: all 0.3s ease;
}

.option:hover {
  background: rgba(247, 247, 247, 0.9);
  transform: translateX(5px);
}

.option-name {
  font-weight: 500;
  color: var(--text);
}

.option-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.option-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-notes {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 25px;
  margin-top: 30px;
  border: 2px solid var(--accent-light);
}

.pricing-notes h4 {
  color: var(--text);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.pricing-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-notes li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: rgba(247, 247, 247, 0.6);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .pricing-category {
    padding: 20px;
  }
  
  .price {
    font-size: 1.7rem;
  }
  
  .option {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
    .option-price {
    align-self: flex-end;
  }
}

/* Стили для кнопки скрытия pricing */
.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.toggle-pricing-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toggle-pricing-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.toggle-pricing-btn:active {
  transform: translateY(0);
}

.pricing-content {
  transition: height 0.35s ease, padding 0.25s ease;
  overflow: hidden;
  height: auto;
}

.pricing-content.hidden {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- Модальное окно для увеличения изображений --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: color 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--accent-dark);
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
}

  .modal-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }
  
  .modal-img.zoomed {
    /* transform управляется JavaScript */
    max-width: 90vw;
    max-height: 90vh;
    cursor: grab;
    touch-action: none; /* Отключает стандартные жесты браузера для перетаскивания */
  }

.modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.modal-nav {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.modal-nav:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.modal-nav svg {
  width: 24px;
  height: 24px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
}

.modal-caption {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

/* Скрытые элементы для доступности */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Курсор-указатель для изображений сертификатов */
.certificate-img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.certificate-img:hover {
  transform: scale(1.03);
}

/* Адаптация модального окна для мобильных */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-height: 85vh;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-img {
    max-height: 50vh;
  }
  
  .modal-nav {
    width: 40px;
    height: 40px;
  }
  
  .modal-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98vw;
    max-height: 80vh;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-img {
    max-height: 40vh;
  }
  
  .modal-nav {
    width: 36px;
    height: 36px;
  }
  
   .modal-footer {
     padding: 10px 15px;
   }
 }


/* --- карусель отзывов --- */
.reviews-carousel {
  max-width: 800px;
  margin: 30px auto;
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 500px; /* Высота карусели */
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--accent-light);
  transform: scale(1.1);
}

.carousel-counter {
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.current-slide {
  color: var(--accent);
  font-weight: 600;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .carousel-track {
    height: 400px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn-prev {
    left: 10px;
  }
  
  .carousel-btn-next {
    right: 10px;
  }
  
  .carousel-slide {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .carousel-track {
    height: 300px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* --- Сетка сертификатов --- */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  max-height: 250px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
