@import url("https://rsms.me/inter/inter-ui.css");

body {
  background-image: url('assets/black-stones-s.jpg');
  background-size: auto;
  background-attachment: fixed;
  background-repeat: repeat;
  background-position: top left;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-optical-sizing: auto;
  color: white;
}

body::before {
    display: none;
}

.container-header {
  max-width: 800px;
  position: relative;
  width: 95%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
  padding: 5px 20px 30px 20px;
  margin: auto;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 25px;
  margin-top: 25px;
}

.title-marvel {
  font-style: black;
  color: #de7700;
  letter-spacing: -6.7px;
  text-transform: uppercase;
  padding: 0 8 0 8px;
}

h1 {
  display: block;
  font-size: 60px;
  margin: 0 0 24px 0;
}

.container-body {
  max-width: 800px;
  position: relative;
  width: 95%;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  z-index: 2;
  padding: 5px 50px 30px 50px;
  margin: auto;
  box-sizing: border-box;
}

th {
  font-size: 17px;
  margin: 0 0 20px 0;
}

.loading-container {
  text-align: center;
  padding: 2rem;
  display: none; /* По умолчанию скрыт */
}
      
.spinner {
  --loading-spinner-bg: #000000;
  --loading-spinner-progress: #de7700;
  
  width: 40px;
  height: 40px;
  border: 4px solid var(--loading-spinner-bg);
  border-top: 4px solid var(--loading-spinner-progress);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
      
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cs {
  font-style: italic;
  color: #de7700;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pop-up {
  padding: 20px;
  border-radius: 10px;
  width: 500px;
  background-color: #37353E;
  font-family: "Montserrat", sans-serif;
  font-style: normal, sans-serif;
  color: white;
  margin: 0;
      }

  .dicl {
    max-width: 85%;
    border: 2px solid rgb(255, 255, 0);
    border-radius: 10px;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    }

/* General button style */
.btn {
  border: 1px solid #D3DAD9;
  font-size: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
  padding: 15px 40px;
  display: inline-block;
  margin: 7px 20px;
  letter-spacing: 1px;
  font-weight: 700;
  outline: none;
  position: relative;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.btn-pop-up {
  border: 1px solid #D3DAD9;
  color: inherit;
  background: none;
  cursor: pointer;
  padding: 15px 40px;
  display: inline-block;
  margin: 7px 20px;
  font-weight: 700;
  outline: none;
  position: relative;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

select option {
  background-color: black;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-optical-sizing: auto;
  color: white;
  margin: 0;
}

/* Отступ стрелочки select от правого края */
select#categorySelect {
  padding-right: 30px !important; /* Увеличиваем отступ */
  background-position: right 10px center !important; /* Позиция стрелочки */
}

select, .btn {
  padding-right: 20px !important; /* 10px отступ + 10px для стрелочки */
  background-position: right 10px center !important; /* Позиция стрелочки */
}

/* Пропорции колонок для таблиц (для 4 столбцов: Услуга, Описание, Tg, Телефон) */
.main-table th:nth-of-type(1),
.main-table th:nth-of-type(2),
.main-table th:nth-of-type(3),
.main-table th:nth-of-type(4) {
  display: table-cell;
}

.container-guide {
  max-width: 800px;
  position: relative;
  width: 95%;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: left;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  z-index: 2;
  padding: 5px 50px 30px 50px;
  margin: auto;
  box-sizing: border-box;
}

.container-guide ul {
  list-style: disc;
  padding-left: 20px;
}

.container-guide li {
  margin-bottom: 5px;
}

.container-guide a {
  text-decoration: none;
  color: #de7700;
}

.container-guide a:hover {
  text-decoration: underline;
}

@media (max-width: 500px) {
  h1 {
    font-size: 28px;
  }

  .title-marvel {
    letter-spacing: -1.5px;
  }

  .container-body {
    padding: 5px 10px 2px 10px;
	  font-size: 13px;
}
  table th:nth-child(1),
  table th:nth-child(2), 
  table th:nth-child(3),
  table th:nth-child(4) {
	font-size: 13px;
	}
  .pop-up {
    width: 90%
  }
}

@media (max-width: 385px) {
  h1 {
    font-size: 22px;
  }

   h3 {
    font-size: 15px;
  }

  .container-header {
    width: 99%;
    padding: 7px 0 2px 0;
    margin: 0 0;
	  font-size: 15px;
  }

  .header {
    width: 99%;
  }
  

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* justify-content: flex-start; */
    align-items: center;
    width: 100%;
    padding: 2rem;
    padding-top: 80px;
  }

  .nav-list a {
    padding: 1.5rem 0;
    font-size: 1.3rem;
    width: 100%;
    min-height: 44px;
    display: block;
    text-align: center;
    line-height: 1.4;
  }

  .title-marvel {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .container-body {
	  max-width: 99%;
    padding: 0.5rem auto;
    margin: 0 0;
    font-size: 13px;
  }

  .btn {
    padding: 10px 20px;
    margin: 5px 0;
    font-size: 13px;
    display: block;
    width: 100%;
    text-align: left;
  }
  
  select.btn {
    /* width: 75%;*/
    max-width: 80%;
  }
  
  .btn-pop-up {
    margin: 5px 10;
    font-size: 13px;
    display: block;
  }
    
  table th:nth-child(1){
	width: 60% !important;
	font-size: 12px;
	}
	table th:nth-child(2) {
    width: 40% !important;
    display: table-cell;
    font-size: 12px;
  }
  
  /* Скрываем столбец Tg на мобиле */
  .main-table th:nth-of-type(3),
  .main-table td:nth-of-type(3) {
    display: none;
  }

  .main-table th:nth-of-type(2) { width: 30%; }
  .main-table th:nth-of-type(4),
  .main-table td:nth-of-type(4) {
            display: none;
        }

  .pop-up {
    width: 85%;
	  font-size: 12px
  }

  .btn-pop-up {
    padding: 10px 20px;
    margin: 5px 0;
    font-size: 13px;
    display: block;
  }

  .container-guide {
    padding: 5px 1rem 1.2rem 1rem;
	  font-size: 14px;
}

.container-guide h2 {
    padding: 1.6rem auto 0.7rem auto;
    font-size: 18px;
}

.container-guide h3 {
    font-size: 16px;
}
}



/* button animations
.btn:after {
  content: '';
  position: absolute;
  z-index: -1;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.btn-1 {
  background: #37353E;
}

.btn button -1:hover {
  background: #44444E;
  color: white;
}

.btn-1:active {
  top: 2px;
}

.btn-1:before {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  line-height: 3;
  font-size: 140%;
  width: 60px;
}

.btn-1.active {
    color: darkslategray; /* цвет текста у выбранной (активной) кнопки
}*/

h2 {
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
}

h3 {
  font-weight: 600;
  margin: 30px 0 7px 0;
  font-size: 20px;
}

a {
  color: inherit;
}

.container-guide h2 {
  margin-top: 1.5rem;  
  padding: 1.6rem auto 0.7rem auto;
  font-size: 22px;
  font-weight: 700;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: center;
  gap: 10;
  margin-bottom: 10px;
}
.nav-link {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #de7700;
}
.nav-link.active {
  color: #de7700;
  background: transparent;
}

/* Новая навигация (layout.js) */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  position: relative;
}

.logo {
  display: none;
}

.nav-toggle {
  display: none;
}

/* Hamburger button (hidden by default, shown on mobile) */
.nav-toggle-label {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  width: auto;
  height: auto;
}

/* Hamburger icon */
.hamburger {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0.1rem;
  background-image: url('assets/menu.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
  position: relative;
}

/* Fallback: три полоски CSS если иконка не загружается
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #de7700;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger::before {
  top: 8px;
  box-shadow: 0 8px 0 #de7700;
}

.hamburger::after {
  bottom: 8px;
}
  */

/* Close button for mobile overlay */
.nav-close-button {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
  z-index: 1002;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.navigation {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.nav-list li {
  display: inline-block;
}

.nav-list a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #de7700;
}

.nav-list a.active {
  color: #de7700;
  background: transparent;
}

/* Navigation overlay for mobile (hidden by default) */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 767px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    right: 5px;
    top: 5px;
    transform: none;
    padding: 0px;
  }

  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .nav-close-button {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 2rem;
    padding-top: 80px;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
    position: relative;
  }

  /* Разделитель между пунктами */
  .nav-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1.5px;
    background-color: #de7700;
    opacity: 0.3;
  }

  .nav-list a {
    padding: 1.3rem 0;
    font-size: 1.3rem;
    width: 100%;
    min-height: 44px;
    display: block;
    text-align: center;
    line-height: 1.4;
  }

  .nav-overlay {
    display: block;
  }

  /* Показываем навигацию когда чекбокс активен */
  .nav-toggle:checked ~ .navigation {
    transform: translateX(0);
    z-index: 1000;
  }

  .nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
    z-index: 999;
  }

  /* Анимируем гамбургер в X когда меню открыто */
  .nav-toggle:checked + .nav-toggle-label .hamburger {
    opacity: 0;
  }

  /* Убедимся, что header остаётся выше контента */
  .container-header {
    z-index: 1001;
  }
  
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .container-guide ul {
    list-style: disc;
    padding-left: 20px;
  }

  section {
    padding: 40px 0;
    /* min-height: 100vh;*/
  }
}

.container {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  border-top: 1px solid rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.1rem;
  }
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  padding: 0 15px;
  margin: 0 auto;
  min-width: 0; /* позволяет сжиматься */
  max-width: 99%;
}

.footer-col-full {
  flex: 1 0 100%;
  padding: 0 auto;
}

@media (max-width: 768px) {
  .footer-col {
    flex: 1 0 100%;
    margin-bottom: 10px;
    padding: 0 0;
  }

  .footer-row {
  padding-top: 0.6rem;
  padding-bottom: 0.5rem;
}
}

.footer {
    position: relative;
    background-color: rgba(0, 0, 0, 0.95);
    /* width: 95%; */
    max-width: 840px;
    margin: auto;
    padding: 1.1rem 0px;
}
/*END FOOTER SOCIAL DESIGN*/

.single_footer {
  padding-top: 1rem;
}
@media only screen and (max-width:768px) { 
.single_footer{margin-bottom:5px;}
}
.single_footer h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
}

.single_footer p {
  color: #fff;
}

.single_footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.single_footer ul li a {
    color: #fff;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    line-height: 1.5rem;
    font-size: 13px;
    text-decoration: none;
}
.single_footer ul li a:hover { color: #de7700; }

.single_footer_address ul li { color: #fff; }
.single_footer_address ul li span {
    font-weight: 400;
    color: #fff;
    line-height: 28px;
}

.ps {
    width: 98%;
    margin: 1rem auto;
    padding: 1rem 0 0 0;
    color:#fff;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.4);
    text-align: center;
}

.ps a {
    text-decoration: none;
    color: #de7700;
  }

@media (max-width: 768px) {
  .ps {
    width: 95%;
    text-align: left;
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 1rem 0.7rem;
  }

  .single_footer {
  padding-top: 0.5rem;
}

.single_footer h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

}