/* ================================
   КАСТОМНЫЕ СТИЛИ — Benzoplanet
   Поверх Bulma
   ================================ */

@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");

/* --- Общий фон страницы --- */
html, body {
  background: #f0f0f0;
  min-height: 100%;
}
body {
  color: #777;
  font-family: Merriweather, Georgia, serif;
}

.page-wrapper {
  max-width: calc(960px + 16px + 32px);
  margin: 16px auto;
  background: #f7f7f7;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 16px;
}
@media screen and (min-width: 1216px) {
  .page-wrapper {
    max-width: calc(1152px + 16px + 32px);
  }
}

.page-wrapper > * {
  margin: 0 !important;
  box-sizing: border-box;
  border: 2px solid #F47E3E;
  border-radius: 4px;
}
.page-wrapper > * + * {
  margin-top: 16px !important;
}
.page-wrapper > .services-wrapper {
  border: none !important;
}
.page-wrapper > #slider {
  max-width: none !important;
  width: calc(100% + 1px);
}

/* --- Жирный текст — тёмный, чтобы был читаем на белом фоне --- */
.main strong,
.main b {
  color: #1E1E1E;
}

/* --- Заголовки --- */
h1, h2, h3, h4, h5, h6 {
  color: #1E1E1E;
  font-family: Merriweather, Georgia, serif;
}

/* --- Ссылки --- */
a {
  color: #F47E3E;
}
a:hover {
  color: #1E1E1E;
}

/* --- Карточки (header, main, footer) --- */
header.section,
.main,
.footer {
  background: #FFF;
  border-radius: 4px;
  margin: 0.75rem 8px;
}

/* --- Шапка (header) --- */
header.section {
  padding: 16px;
}

/* Логотип */
.header-logo-link {
  display: inline-block;
}

.header-logo {
  height: 84px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
  transform: translateY(0);
}

.header-logo:hover {
  transform: translateY(-4px);
}

.header-logo:active {
  transform: translateY(-1px);
}

@media screen and (min-width: 768px) {
  header.section,
  .main,
  .footer {
    margin: 0.75rem auto;
    max-width: calc(960px + 16px);
  }
}

@media screen and (min-width: 1216px) {
  header.section,
  .main,
  .footer {
    max-width: calc(1152px + 16px);
  }
}

/* --- Ряд меню --- */
.header-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Пункты меню */
header ul a {
  display: inline-block;
  background: #686e73;
  color: #F47E3E;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateY(0);
}
header ul a:hover {
  color: #F47E3E;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
header ul a:active {
  color: #F47E3E;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Контентная область (.main) --- */
.main {
  padding: 2rem 1.5rem;
  background: #FFF;
  border-radius: 4px;
}
.main h1 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #1E1E1E;
}
.main h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: #1E1E1E;
}
.main .content {
  margin-top: 0;
  color: #1E1E1E;
}

/* --- Единый межстрочный интервал для контента --- */
.content p,
.content ul,
.content ol,
.content li {
  margin: 0 !important;
}
.content ul,
.content ol {
  padding-left: 1.5em !important;
}
.content li {
  padding: 0 !important;
}

/* --- Таблицы --- */
.main table,
.main .content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.main table td,
.main .content table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.main table th,
.main .content table th {
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-weight: 700;
  color: #1E1E1E;
  padding: 8px 12px;
  text-align: left;
}

/* --- Кнопки (Bulma .button) --- */
.button.is-primary {
  background: #F47E3E;
}
.button.is-primary:hover {
  background: #1E1E1E;
}

/* --- Карточки услуг --- */
.services-wrapper {
  max-width: calc(960px + 16px);
  margin: 12px auto;
}
.services-row {
  display: flex;
  gap: 16px;
}
.service-card-wrap {
  flex: 1;
  min-width: 0;
}

@media screen and (min-width: 1216px) {
  .services-wrapper {
    max-width: calc(1152px + 16px);
  }
}

@media screen and (max-width: 768px) {
  .services-row {
    flex-direction: column;
  }
}

.service-card {
  position: relative;
  background: #FFF;
  border: 2px solid #F47E3E;
  border-radius: 4px;
  text-align: center;
  padding: 3rem 16px 64px;
  min-height: 260px;
}
.service-card__title {
  font-family: Merriweather, Georgia, serif;
  color: #1E1E1E;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card__text {
  color: #777;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}
.service-card__btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #686e73;
  color: #F47E3E;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateY(0);
}
.service-card__btn:hover {
  color: #F47E3E;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.service-card__btn:active {
  color: #F47E3E;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Контакты --- */
.contacts-section {
  background: #FFF;
  border-radius: 4px;
  padding: 2rem 1.5rem;
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.contacts-core p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.contacts-address {
  font-family: Merriweather, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1E1E1E;
}
.contacts-phones {
  font-size: 17px;
  color: #1E1E1E;
}
.contacts-phones a {
  color: #1E1E1E;
}
.contacts-phones a:hover {
  color: #F47E3E;
}
.contacts-sep {
  display: inline-block;
  padding: 0 10px;
  color: #F47E3E;
}
.contacts-hours {
  font-size: 17px;
  color: #1E1E1E;
  margin-bottom: 2px !important;
}
.contacts-desc {
  font-size: 16px;
  color: #F47E3E;
  margin-bottom: 16px !important;
}
.contacts-email {
  font-size: 17px;
  margin: 12px 0;
}
.contacts-email a {
  color: #F47E3E;
  text-decoration: none;
}
.contacts-email a:hover {
  color: #1E1E1E;
}

/* --- Яндекс Карта --- */
.map-section {
  background: #FFF;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.map-section iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

/* --- Подвал --- */
.footer {
  background: #FFF;
  color: #777;
  padding: 2rem 1.5rem;
}

/* ================================
   СЛАЙДЕР — на главной
   ================================ */

#slider {
  position: relative;
  background: #FFF;
  border-radius: 4px;
}

@media screen and (min-width: 768px) {
  #slider {
    width: 100%;
    max-width: calc(960px + 16px);
    margin: 0 auto;
  }
}
@media screen and (min-width: 1216px) {
  #slider {
    max-width: calc(1152px + 16px);
  }
}

#slider-core {
  position: relative;
  text-align: center;
}

#slider .rslides-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#slider .rslides-container {
  padding: 0;
}

#slider .slides,
#slider .rslides {
  margin: 0;
  aspect-ratio: 1837 / 856;
  overflow: hidden;
}

#slider .slides li,
#slider .rslides li {
  width: 100%;
  aspect-ratio: 1837 / 856;
  list-style: none;
}

#slider .slides img,
#slider .rslides img {
  width: 100%;
  height: 100%;
  display: block;
}

#slider .rslides-content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#slider .featured-title,
#slider .featured-excerpt {
  position: absolute;
}

#slider .featured-title span {
  display: inline-block;
  font-family: Merriweather, Georgia, serif;
  color: #FFF;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.4px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.72), 0 0 18px rgba(0,0,0,0.42);
}

#slider .featured-title span:first-child {
  color: #F47E3E;
}

#slider .featured-excerpt p {
  margin-bottom: 0;
}

#slider .featured-excerpt span {
  display: inline-block;
  font-family: Merriweather, Georgia, serif;
  color: #f2f2f2;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 0 14px rgba(0,0,0,0.4);
}

#slider .featured-excerpt strong {
  color: #F47E3E;
  font-weight: 700;
}

/* Стрелки */
#slider a.rslides_nav {
  text-align: center;
  width: 50px;
  height: 50px;
  margin: -25px 0 0;
  position: absolute;
  top: 50%;
  z-index: 99;
  color: #FFF;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  font-size: 28px;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}
#slider a.rslides_nav.prev {
  left: 10px;
}
#slider a.rslides_nav.next {
  right: 10px;
}
#slider a.rslides_nav:hover {
  background: rgba(0,0,0,0.8);
}

/* Точки */
#slider .rslides_tabs {
  position: absolute;
  z-index: 99;
  text-align: center;
  width: 100%;
  bottom: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#slider .rslides_tabs li {
  display: inline-block;
  margin: 0 4px;
}
#slider .rslides_tabs li a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  text-indent: -9999px;
  cursor: pointer;
}
#slider .rslides_tabs li a:hover,
#slider .rslides_tabs li.rslides_here a {
  background: #F47E3E;
}

/* Оранжевое выделение */
#slider .featured-title .accent,
#slider .featured-excerpt .accent {
  color: #F47E3E;
}

/* Анимация */
#slider .featured-title {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.65s ease;
}
#slider .featured-excerpt {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.65s ease;
}
#slider .rslides > [class*="_on"] .featured-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.0s;
}
#slider .rslides > [class*="_on"] .featured-excerpt {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.5s;
}

/* ================================
   АДАПТИВНОСТЬ — планшеты и телефоны
   ================================ */

@media screen and (max-width: 768px) {
  header .columns.is-mobile {
    flex-direction: column;
  }
  header .column.is-narrow {
    align-self: center;
  }
  .header-logo {
    height: 60px;
  }

  .header-menu {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .header-menu li {
    width: 100%;
  }
  header ul a {
    min-width: 0;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
  }
  nav.is-flex {
    width: 100%;
  }

  #slider .featured-title span {
    font-size: 13px;
  }
  #slider .featured-title {
    line-height: 1.0;
  }
  #slider .featured-excerpt span {
    font-size: 9px;
  }
  #slider .featured-excerpt {
    line-height: 1.2;
  }

  #slider .featured-title[style*="top:"] {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
  }
  #slider .featured-excerpt[style*="top:"] {
    top: 56px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    max-width: none !important;
  }
  #slider .featured-excerpt[style*="bottom:"] {
    top: auto !important;
    left: 8px !important;
    right: auto !important;
    bottom: 8px !important;
    max-width: none !important;
  }
  #slider .featured-title[style*="bottom:"] {
    top: auto !important;
    left: 8px !important;
    right: auto !important;
    bottom: 56px !important;
  }
}


