﻿/* Add here all your CSS customizations */

/* Убираем универсальное правило скругления углов */
* {
  /* border-radius: inherit !important;
  -webkit-border-radius: inherit !important; */
  -moz-border-radius: inherit !important;
}
.blog .caption-tag{
  border-radius: 14px !important;
  -webkit-border-radius: 14px !important;
  -moz-border-radius: 14px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Стили для кнопок */
.btn {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для полей ввода */
.form-control {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(232, 63, 51, 0.2) !important;
  border-color: #E83F33 !important;
}

/* Стили для карточек и панелей */
.thumbnail, .portfolio-item, .price-box {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.thumbnail:hover, .portfolio-item:hover, .price-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Стили для изображений */
.portfolio-item img, .blog-image img, .team-image img, .modal-image img {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  transition: transform 0.3s ease !important;
}

/* Removed image scaling on hover for portfolio, blog, and team images */

/* Стили для модальных окон */
.modal-content {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Стили для панелей */
.panel {
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
}

/* Стили для прогресс-баров */
.progress, .progress-bar {
  border-radius: 10px !important;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
}

.progress {
  background-color: #f0f0f0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для информационных блоков */
.info-box-1, .info-box-2 {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  padding: 20px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.info-box-1:hover, .info-box-2:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Стили для вкладок */
.tab-content {
  border-radius: 0 8px 8px 8px !important;
  -webkit-border-radius: 0 8px 8px 8px !important;
  -moz-border-radius: 0 8px 8px 8px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для обложек */
.cover {
  /* border-radius: 8px !important;
  -webkit-border-radius: 8px !important; */
  /* -moz-border-radius: 8px !important; */
  overflow: hidden !important;
}

/* Стили для кнопки прокрутки наверх */
.scrolltotop {
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.scrolltotop:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Стили для элементов аккордеона */
.panel-group .panel {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  margin-bottom: 8px !important;
}

/* Стили для навигационного меню */
.navbar-brand {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
}

/* Стили для Owl Carousel */
.owl-theme .owl-controls .owl-page span {
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

.owl-theme .owl-controls.clickable .owl-buttons div:hover {
  opacity: 0.8 !important;
}

/* Стили для значков в информационных блоках */
.info-box-1.square-icon .info-box-icon,
.info-box-2.square-icon .info-box-heading .info-box-icon {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

/* Стили для ценовых блоков */
.prices .price-box-featured .panel {
  border-radius: 15px !important;
  -webkit-border-radius: 15px !important;
  -moz-border-radius: 15px !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Стили для выделенного текстового блока с именем и должностью */
.heading.text-center.text-white {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.heading.text-center.text-white h1,
.heading.text-center.text-white h2 {
  margin: 5px 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.heading.text-center.text-white h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.heading.text-center.text-white h2 {
  font-size: 1.5rem;
  font-weight: normal;
  color: white;
}

/* Стили для класса text-main внутри выделенного блока */
.heading.text-center.text-white .text-main {
  color: #E83F33; /* Основной цвет темы */
  font-weight: bold;
  display: inline-block;
}

/* Добавляем отступы для элементов внутри блока */
.heading.text-center.text-white br,
.heading.text-center.text-white .more-space-l {
  display: block;
  margin: 10px 0;
}

/* Специфические стили для целевого блока из выбранного кода */
div[class*="heading"][class*="text-center"][class*="text-white"]:has(h1:contains("Николай Перваков")) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 15px !important;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin: 20px auto;
}

/* Альтернативный селектор для поддержки браузеров без :has() */
.heading.nikolay-block {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 15px !important;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin: 20px auto;
}

/* Enhanced centering for the container from lines 153-199 */
.container .heading.text-center.text-white {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.container .heading.text-center.text-white .row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container .heading.text-center.text-white .fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* СТРЕЛКИ НА КАРУСЕЛИ */
/* ===== Owl Carousel — стрелки навигации ===== */

.owl-custom-wrap {
  position: relative;
  /* место под ряд кнопок + отступ как .more-space-m (20px) */
  padding-bottom: 58px;
}

.owl-custom-prev,
.owl-custom-next {
  position: absolute;
  top: auto;
  bottom: 20px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* пара по центру под каруселью: 38px + 12px зазор + 38px */
.owl-custom-prev {
  left: calc(50% - 44px);
  right: auto;
}
.owl-custom-next {
  left: calc(50% + 6px);
  right: auto;
}

.owl-custom-prev:hover,
.owl-custom-next:hover {
  border-color: #E83F33;
  color: #E83F33;
  background: #fff;
  box-shadow: 0 3px 10px rgba(232, 63, 51, 0.18) !important;
}

.owl-custom-prev:active,
.owl-custom-next:active {
  transform: scale(0.9);
}

/* На мобильных прячем, чтобы не мешали свайпу */
@media only screen and (max-width: 767px) {
  .owl-custom-prev,
  .owl-custom-next {
    display: none !important;
  }
}

/* Чтобы добавить стрелки ещё к одной карусели — 
достаточно дописать её ID в массив owlTargets в custom.js, 
например '#owl-intro-text'. Убрать — удалить строку из массива. */

/* ///СТРЕЛКИ НА КАРУСЕЛИ */
/* Фикс typed.js: резерв высоты h2 на 3 строки */
.featured-box h2 {
    min-height: 3.3em;
}
