/* Base Styles */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.6;
  color: #333;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
}

.hero-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Interactive Elements */
button, .btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Contact and Info Elements */
.contact-label, .contact-value {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
}

.social-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
}


.business-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            font-size: 18px;
            color: #666;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


/* ========== Demo theme: first row — высота 50px, тёмный фон ========== */
.main-menu {
  z-index: 4;
  background: #404040 !important;
  border-bottom: none !important;
  padding: 0 20px;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  min-height: 50px;
  height: 50px;
}

.main-menu .menu-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 50px;
}

/* Логотип вписан в полосу 50px */
.main-menu .menu-logo-container {
  width: 40px;
  height: 40px;
  margin-top: 0;
}

.main-menu .menu-logo,
.main-menu .menu-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-menu .menu-logo-placeholder {
  font-size: 20px;
}

/* ========== Вторая строка навигации: оболочка на всю ширину, пункты внутри 1200px ========== */
.demo-nav-row-wrap {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 50px;
  z-index: 5;
}

.demo-nav-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 20px;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
  border-bottom: none;
  box-shadow: none;
}

.demo-nav-row a {
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.demo-nav-row a:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

/* ========== Hero: full width ========== */
.page {
  max-width: none;
  width: 100%;
  box-shadow: none;
}

.demo-hero {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.demo-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

.demo-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.demo-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.demo-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.95;
  margin: 0 0 28px 0;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
}

.demo-hero .demo-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c62828;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.demo-hero .demo-hero-btn:hover {
  background: #8d1a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ========== Две колонки: сайдбар (О нас, часы) + меню; контакты — под сайдбаром слева, на мобильных внизу ========== */
/* Первая строка — по высоте сайдбара (auto), вторая — остальное; контакты не «уезжают» после загрузки меню */
.demo-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  row-gap: 8px;
  align-items: start;
  align-content: start;
}

.demo-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.demo-main {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* Блок контактов: на десктопе — левая колонка сразу под сайдбаром; номера сверху, карта снизу */
.demo-layout-contacts {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.demo-sidebar .section {
  padding: 0;
  margin-bottom: 0;
}

.demo-sidebar .section-title {
  text-align: left;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

/* График работы: на мобильных — аккордеон (свёрнут по умолчанию), на десктопе — всегда открыт (JS) */
.demo-hours-accordion {
  border: none;
  padding: 0;
  margin: 0;
}

.demo-hours-accordion-summary {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
  cursor: pointer;
  list-style: none;
  display: block;
}

.demo-hours-accordion-summary::-webkit-details-marker,
.demo-hours-accordion-summary::marker {
  display: none;
}

.demo-hours-accordion-summary::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.demo-hours-accordion[open] .demo-hours-accordion-summary::after {
  transform: rotate(-135deg);
}

@media (min-width: 901px) {
  .demo-hours-accordion-summary {
    cursor: default;
  }
  .demo-hours-accordion-summary::after {
    display: none;
  }
}

.demo-main .section-title {
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

/* Колонка меню: не растягиваться под контент (строка навигации по группам) */
.demo-main {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}
.demo-main .section {
  padding: 0;
  margin-bottom: 0;
}
.demo-main .section.services {
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
}

/* Sidebar: contacts single column, compact map */
.demo-sidebar .contacts-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.demo-sidebar .map-container {
  height: 220px;
}

/* ========== Gallery inside About block: one photo + carousel ========== */
.demo-about-gallery {
  display: none;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.demo-about-gallery-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-about-gallery-slide {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.demo-about-gallery .gallery-grid {
  display: flex;
  gap: 0;
  transition: transform 0.3s ease;
}

.demo-about-gallery .gallery-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  cursor: pointer;
  border-radius: 0;
}

.demo-about-gallery .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.demo-about-gallery .gallery-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-about-gallery .gallery-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .demo-about-gallery .gallery-item img {
    height: 160px;
  }
}

/* Hero Section (fallback when no image) */
.hero {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #c62828 0%, #8d1a1a 100%);
  color: white;
  margin-bottom: 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
}

.hero-sub {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

/* Section Styles */
.section {
  padding: 30px 20px;
  margin-bottom: 20px;
  
}

.section.gallery {
  padding: 0;
  margin-bottom: 20px;
  border-bottom: none;
}

.section.about {
  border-bottom: none;

}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-align: center;
  /* border-bottom: 2px solid #727272; */
}

.section-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Секция меню: min-width для ограничения ширины, без overflow чтобы страница скроллилась */
.demo-main .section.services .section-body {
  min-width: 0;
}

/* Contacts Layout */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* На десктопе в блоке контактов (под сайдбаром): одна колонка — телефоны сверху, карта снизу */
@media (min-width: 901px) {
  .demo-layout-contacts .contacts-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px;
  
  
  
  
}


.contact-icon {
  width: 40px;
  height: 40px;
  background: #4f4f4f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  color: #555;
  font-size: 1rem;
}

.contact-value a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Social Media Grid */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.social-label {
  font-weight: 500;
  font-size: 1rem;
}

/* Map Section */
.map-section {
  margin-top: 0;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 300px;
}



/* Gallery Styles */
#gallery-section {
  display: none;
}

.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:disabled {
  background: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  transform: translateY(-50%);
}

.gallery-nav-prev {
  left: 10px;
}

.gallery-nav-next {
  right: 10px;
}

.gallery-grid {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-item img {
    width: 220px;
    height: 160px;
  }
}

@media (max-width: 560px) {

  .section.services {
    padding: 0;
  }
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .contact-label {
    
    margin-bottom: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .gallery-nav-prev {
    left: 5px;
  }
  
  .gallery-nav-next {
    right: 5px;
  }
  
  .gallery-item img {
    width: 300px;
    height: 220px;
  }
}

/* Working Hours Styles */
.hours-section {
  margin: 20px 0;
}

.hours-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.hours-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row span:first-child {
  font-weight: 500;
  color: #333;
}

.hours-row .muted {
  color: #6c757d;
  font-size: 14px;
}

/* Map Styles */
.map-container iframe {
  border: 0;
  border-radius: 8px;
}

/* Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-nav {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-modal-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.image-modal-counter {
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 15px;
}

/* Responsive Design */
/* Demo: две колонки → одна; на мобильных порядок: О нас/часы → Меню → Контакты внизу */
@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 24px 16px;
    gap: 28px;
  }

  .demo-sidebar,
  .demo-main,
  .demo-layout-contacts {
    grid-column: auto;
    grid-row: auto;
  }

  .demo-sidebar {
    position: static;
  }

  .demo-hero {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 0;
  }

  .main-menu {
    padding: 0 16px;
    min-height: 50px;
    height: 50px;
  }

  .main-menu .menu-logo-container {
    width: 36px;
    height: 36px;
  }

  .main-menu .menu-logo,
  .main-menu .menu-logo-placeholder {
    width: 36px;
    height: 36px;
  }

  .main-menu .menu-logo-placeholder {
    font-size: 18px;
  }

  .demo-nav-row {
    padding: 6px 16px;
  }

  .demo-nav-row a {
    padding: 8px 14px;
    font-size: 15px;
  }
  
  .hero {
    padding: 40px 20px;
    margin-bottom: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contacts-grid {
    gap: 6px;
    flex-direction: column;
    flex-wrap: wrap;
  }
  
  .contact-item {
    padding: 10px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 10px;
  }
  
  .map-container {
    height: 250px;
  }
  
  .socials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .social-link {
    padding: 12px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 10px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0;
  }

  .section.services {
    padding: 0;
  }
  
  .hero {
    padding: 30px 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .contacts-layout {
    gap: 20px;
  }

  #services-container {
    padding: 0;
    
  }
  
  .contact-item {
    flex-direction: row;
    text-align: left;
    padding: 6px;
    gap: 12px;

  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .map-container {
    height: 200px;
  }
  
  .social-link {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .social-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
}