/* ============================================
   Компоненты интерфейса
   ============================================ */

/* Хедер */
.header {
  background-color: var(--color-black);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 0;
}

/* Бургер-меню для мобильной навигации */
.burger {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
}

.logo img {
  height: 80px;
  max-height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-right: 15px;
}

.logo img.logo-mobile {
  display: none;
}

.logo-secondary {
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-left: 12px;
}

/* Текстовый логотип - мобильная версия (отдельный стиль) */
.logo-secondary-mobile {
  display: none;
}

.logo-text {
  line-height: 1.1;
}

.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;

}
.header-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 18px;
}

.header-phone-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 18px;
}

/* Дополнительное меню (якорное) */
.sub-nav {
  background-color: var(--color-bg-dark);
  padding: 15px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
}

.sub-nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}

.sub-nav-list::-webkit-scrollbar {
  height: 4px;
}

.sub-nav-list a {
  color: var(--color-white);
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.sub-nav-list a i {
  margin-right: 6px;
  font-size: 14px;
}

.sub-nav-list a:hover,
.sub-nav-list a.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Hero секция */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(212,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Преимущества */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.advantage-card {
  text-align: center;
  padding: 40px 20px;
}

.advantage-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 1;
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: var(--color-white);
}

/* Цвет текста внутри карточек услуг */
.service-card-content h3 {
  color: #ffffff;
}

.service-card-content p {
  color: #f5f5f5;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card:hover::before {
  background: linear-gradient(to top, rgba(212,0,0,0.9) 0%, rgba(212,0,0,0.5) 100%);
}

/* Проекты - видео-превью (горизонтальная лента) */
.projects-video-grid {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.projects-video-grid::-webkit-scrollbar {
  height: 6px;
}

.projects-video-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.projects-video-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.project-video-item {
  position: relative;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.project-video-card {
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-video-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 соотношение */
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.project-video-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-play-btn:hover {
  background-color: rgba(0,0,0,0.3);
}

.video-play-icon {
  position: absolute;
  z-index: 2;
  transition: var(--transition);
}

.video-play-btn:hover .video-play-icon {
  transform: scale(1.1);
}

.project-video-info {
  padding: 20px;
  display: block;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}

.project-video-info:hover {
  color: var(--color-primary);
}

.project-video-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-video-date {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* Отзывы */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-author {
  margin-top: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Ссылки на внешние отзывы под блоком отзывов */
.reviews-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.reviews-links-title {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  color: var(--color-text-light);
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0;
}

.reviews-link img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.reviews-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.05);
}

.reviews-link--avito:hover {
  background: linear-gradient(135deg, #ffffff, #ffffff);
}

.reviews-link--avito:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.reviews-link--yandex:hover {
  background-color: #ffffff;
}

.reviews-link--yandex:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.reviews-link--vk:hover {
  background-color: #ffffff;
}

.reviews-link--vk:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Партнёры */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo {
  height: 60px;
  object-fit: contain;
  transition: var(--transition);
}

.partners:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo:hover {
  transform: scale(1.1);
}

/* Формы */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.1);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Карта */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Форма заявки - компактный вид без скролла */
#request-form .card,
#map .card {
  padding: 20px;
}

/* Футер */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  display: block;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

/* Соцсети в футере */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  transition: var(--transition);
  font-size: 20px;
  text-decoration: none;
  margin-right: 10px;
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-link i {
  font-size: 20px;
  color: #ffffff;
  transition: var(--transition);
}

.footer-social-link--vk:hover i {
  filter: brightness(0) saturate(100%) invert(40%) sepia(100%) saturate(2000%) hue-rotate(200deg);
}

.footer-social-link--tg:hover i {
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(2000%) hue-rotate(180deg);
}

.footer-social-link--yt:hover i {
  filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(0deg);
}

.footer-social-link--wa:hover i {
  filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(100deg);
}

/* Плавающая панель соцсетей справа */
.socials-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 950;
}

.socials-floating.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(20px);
}

.socials-floating a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
  text-decoration: none;
}

.socials-floating a:hover {
  transform: translateX(-3px);
}

.socials-floating i {
  font-size: 22px;
  color: #ffffff;
  transition: var(--transition);
}

.socials-floating a.social-vk:hover i {
  filter: brightness(0) saturate(100%) invert(40%) sepia(100%) saturate(2000%) hue-rotate(200deg);
}

.socials-floating a.social-tg:hover i {
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(2000%) hue-rotate(180deg);
}

.socials-floating a.social-yt:hover i {
  filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(2000%) hue-rotate(0deg);
}

.socials-floating a.social-wa:hover i {
  filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(100deg);
}

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Отдельный логотип для мобильной версии */
  .logo img.logo-desktop {
    display: none;
  }

  .logo img.logo-mobile {
    display: block;
    height: 50px;
    max-height: 50px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    margin-right: 0;
  }

  .socials-floating {
    display: none;
  }

  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-actions .btn.btn-primary {
    display: none;
  }

  /* Нижняя панель навигации */
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 61px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    z-index: 950;
  }

  .bottom-nav__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }

  .bottom-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    color: var(--color-text-light);
    gap: 4px;
  }

  .bottom-nav__link i {
    font-size: 18px;
    color: var(--color-text-light);
  }

  .bottom-nav__link--active,
  .bottom-nav__link--active i {
    color: var(--color-primary);
  }

  body {
    padding-bottom: 70px;
  }

  .logo-secondary {
    /* десктопный текстовый логотип скрываем на мобиле */
    display: none;
  }

  .logo-secondary-mobile {
    display: block;
    height: 1px;
    max-height: 1px;
    width: auto;
    max-width: 1px;
    object-fit: contain;
    margin-left: 4px;
  }
}

/* Каталог - фильтры */
.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: var(--color-text);
  margin-right: 5px;
}

.filter-tag {
  padding: 8px 20px;
  background-color: var(--color-bg-light);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.filter-tag:hover,
.filter-tag.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Каталог - карточки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Подсветка выбранных товаров в каталоге */
.product-card.selected {
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
  position: relative;
}

.product-card.selected::before {
  content: 'Выбрано';
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--color-bg-light);
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-black);
}

.product-specs {
  list-style: none;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-specs li {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 5px;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* FAQ - аккордеон */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  background-color: #ff0000;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #3c3c3c;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 20px 20px;
  color:#ffffff;
}

/* FAQ в тёмных секциях */
.section-dark .faq-answer-content {
  color: #ffffff;
}

/* Фото в блоках услуг на странице сервиса */
.service-photo {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* Карточки оборудования с изображением на весь фон */
.equipment-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 300px;
}

.equipment-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.equipment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipment-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

.equipment-content h3 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.equipment-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

/* Суб-меню без горизонтального скролла на широких экранах */
@media (min-width: 992px) {
  .sub-nav-list {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Адаптивность компонентов */
@media (max-width: 768px) {
  /* Упрощаем мобильную шапку: без бургера и выпадающего меню */
  .main-nav {
    display: none;
  }

  .burger {
    display: none;
  }

  .hero {
    min-height: 500px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .sub-nav {
    top: 60px;
  }
  
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Страница лодки (карточка товара)
   ============================================ */

.breadcrumbs {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 14px;
  color: #777;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Hero блок лодки */

.boat-hero {
  padding: 50px 0 30px;
}

.boat-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.boat-gallery {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.boat-gallery-stage {
  position: relative;
}

.boat-gallery img,
.boat-gallery-main {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.boat-gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: var(--color-white);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.boat-gallery-control:hover {
  background: rgba(212, 0, 0, 0.9);
}

.boat-gallery-control--prev {
  left: 16px;
}

.boat-gallery-control--next {
  right: 16px;
}

.boat-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.boat-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.boat-gallery-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(212, 0, 0, 0.08);
}

.boat-gallery-thumb img {
  display: block;
  min-height: 90px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.boat-summary {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.boat-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(212, 0, 0, 0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.boat-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.boat-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.boat-variant-switcher {
  margin-bottom: 22px;
}

.boat-variant-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.boat-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boat-variant-tab {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-light);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.boat-variant-tab:hover {
  border-color: rgba(212, 0, 0, 0.35);
  color: var(--color-primary);
}

.boat-variant-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 18px 32px rgba(212, 0, 0, 0.18);
}

.boat-variant-features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.boat-variant-features li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text);
}

.boat-variant-features li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* таблица характеристик */

.spec-table {
  display: grid;
  gap: 12px;
}

.spec-table--stacked {
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-name {
  font-weight: 600;
}

.spec-category {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.spec-table--stacked .spec-category:first-child {
  margin-top: 0;
}

/* карточки описания */

.boat-section-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.boat-note {
  background: rgba(212,0,0,0.06);
  border-left: 4px solid var(--color-primary);
  padding: 16px 18px;
  border-radius: 6px;
  margin-top: 20px;
}

.boat-list {
  padding-left: 20px;
}

.boat-list li {
  margin-bottom: 10px;
}

.boat-list--compact li {
  margin-bottom: 12px;
}

.boat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.boat-section-head {
  margin-bottom: 28px;
}

.boat-section-head p {
  margin: 0;
  color: var(--color-text-light);
}

.boat-detail-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.boat-detail-group {
  padding: 24px;
  border-radius: 20px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
}

.boat-detail-group h3 {
  margin-bottom: 16px;
}

.boat-section-card--light {
  height: 100%;
  color: var(--color-text);
}

.boat-section-card--light h2,
.boat-section-card--light h3,
.boat-section-card--light p,
.boat-section-card--light li {
  color: var(--color-text);
}

.boat-section-card--light .boat-card-note {
  color: var(--color-text-light);
}

.boat-card-note {
  margin-top: 20px;
  color: var(--color-text-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--color-primary);
  font-weight: 600;
}

/* адаптив */

@media (max-width: 992px) {

  .boat-layout {
    grid-template-columns: 1fr;
  }

  .boat-detail-groups {
    grid-template-columns: 1fr;
  }

  .boat-gallery img {
    min-height: 300px;
  }

}

@media (max-width: 768px) {

  .boat-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .boat-gallery-grid img {
    min-height: 110px;
  }

  .boat-gallery-control {
    width: 40px;
    height: 40px;
  }

  .boat-actions {
    grid-template-columns: 1fr;
  }

  .boat-summary,
  .boat-section-card,
  .boat-detail-group {
    padding: 22px;
  }

  .boat-variant-tab {
    width: 100%;
    text-align: left;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ============================================
   Посадочная страница Lord River - акция
   ============================================ */
.catalog-promo-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: var(--border-radius);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 48%, rgba(212,0,0,0.72) 100%),
    url('../img/catalog-lord-river-49.JPG') center/cover no-repeat;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.catalog-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 30%);
  pointer-events: none;
}

.catalog-promo-card__content,
.catalog-promo-card__price {
  position: relative;
  z-index: 1;
}

.catalog-promo-card__badge,
.lr-sale-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.catalog-promo-card h3 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.catalog-promo-card p {
  color: rgba(255,255,255,0.86);
  max-width: 680px;
}

.catalog-promo-card__price {
  min-width: 260px;
  padding: 22px;
  border-radius: var(--border-radius);
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: right;
}

.catalog-promo-card__price span {
  display: block;
  color: rgba(255,255,255,0.72);
  margin-bottom: 8px;
}

.catalog-promo-card__price strong {
  color: var(--color-white);
  font-size: 28px;
}

.lr-sale-hero {
  position: relative;
  padding: 90px 0;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.86), rgba(0,0,0,0.62)),
    url('../img/catalog-lord-river-49.JPG') center/cover no-repeat;
  overflow: hidden;
}

.lr-sale-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% auto;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(212,0,0,0.38), transparent 64%);
  pointer-events: none;
}

.lr-sale-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lr-sale-hero h1 {
  color: var(--color-white);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.lr-sale-lead {
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  max-width: 780px;
}

.lr-sale-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.lr-sale-hero__banner {
  position: relative;
  min-height: 340px;
  padding: 34px;
  border: 1px dashed rgba(255,255,255,0.48);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lr-sale-hero__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.72));
  z-index: 1;
}

.lr-sale-hero__banner-image {
  position: absolute;
  inset: 0;
}

.lr-sale-hero__banner-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lr-sale-hero__banner span,
.lr-sale-hero__banner strong,
.lr-sale-hero__banner p {
  position: relative;
  z-index: 2;
}

.lr-sale-hero__banner span {
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.lr-sale-hero__banner strong {
  color: var(--color-white);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.lr-sale-hero__banner p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 0;
}

.lr-sale-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lr-stock-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 34px;
}

.lr-stock-card__image {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f5f5f6 46%, #e8e8ec 100%);
  cursor: pointer;
  overflow: hidden;
}

.lr-stock-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,0.18));
  transition: opacity 0.28s ease;
}

.lr-stock-card__slide.is-active {
  opacity: 1;
}

.lr-stock-card__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  cursor: pointer;
  transition: var(--transition);
}

.lr-stock-card__nav:hover,
.lr-stock-card__nav:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  outline: none;
}

.lr-stock-card__nav--prev {
  left: 18px;
}

.lr-stock-card__nav--next {
  right: 18px;
}

.lr-stock-card__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 30px 34px 34px;
}

.lr-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0,0,0,0.9);
}

.lr-gallery-modal.is-open {
  display: flex;
}

.lr-gallery-modal__dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(78vh, 760px);
}

.lr-gallery-modal__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050505;
}

.lr-gallery-modal__close,
.lr-gallery-modal__nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 50%;
  background: rgba(0,0,0,0.58);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lr-gallery-modal__close {
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
}

.lr-gallery-modal__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
}

.lr-gallery-modal__nav:hover,
.lr-gallery-modal__close:hover {
  background: rgba(212,0,0,0.86);
}

.lr-gallery-modal__nav--prev {
  left: 18px;
}

.lr-gallery-modal__nav--next {
  right: 18px;
}

.lr-gallery-modal__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-weight: 600;
}

.lr-stock-card__content h3 {
  color: var(--color-text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.lr-stock-card__color {
  font-weight: 600;
  color: var(--color-text);
}

.lr-price {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.lr-stock-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.lr-stock-card__actions .btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.lr-price__old {
  color: #8a8a8a;
  font-size: 22px;
  font-weight: 700;
  text-decoration: line-through;
}

.lr-price__new {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.lr-equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}

.lr-equipment-grid h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.lr-equipment-grid ul {
  padding-left: 18px;
}

.lr-equipment-grid li {
  margin-bottom: 8px;
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .catalog-promo-card,
  .lr-sale-hero__grid,
  .lr-stock-card,
  .lr-equipment-grid,
  .lr-sale-benefits__grid {
    grid-template-columns: 1fr;
  }

  .catalog-promo-card__price {
    text-align: left;
    min-width: 0;
  }

  .lr-sale-hero {
    padding: 64px 0;
  }

  .lr-sale-hero__banner {
    min-height: 240px;
  }

  .lr-stock-card__image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .lr-stock-card__content {
    padding: 24px;
  }

  .lr-stock-card__actions,
  .lr-equipment-grid {
    grid-template-columns: 1fr;
  }

  .lr-stock-card__nav {
    width: 40px;
    height: 40px;
  }
}
