/* Hero Section - Guide Profile */
.hero {
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Студийный вид - прямоугольное изображение вместо круглого аватара */
.hero.studio-mode {
  padding: 30px 0 40px;
  padding-top: calc(30px + 50px);
  min-height: auto;
}

.hero.studio-mode .guide-profile {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero.studio-mode .guide-profile > div:first-child {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero.studio-mode .guide-profile .modal-image-wrapper {
  border-radius: 24px !important;
  aspect-ratio: 16/9;
  max-width: 100%;
  max-height: 85vh;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 30px 80px rgba(6, 42, 51, 0.18),
    0 15px 40px rgba(6, 42, 51, 0.12),
    0 5px 15px rgba(6, 42, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero.studio-mode .guide-profile .modal-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(8, 145, 178, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.hero.studio-mode .guide-profile .modal-image-wrapper img,
.hero.studio-mode .guide-profile .modal-image-wrapper picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero.studio-mode .guide-profile .modal-image-wrapper::before {
  border-radius: 20px !important;
}

.hero.studio-mode .guide-profile .modal-image-wrapper picture,
.hero.studio-mode .guide-profile .modal-image-wrapper .modal-image,
.hero.studio-mode .guide-profile .modal-image-wrapper img {
  border-radius: 20px !important;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero.studio-mode .guide-profile .avatar-logo-overlay {
  border-radius: 24px !important;
}

.hero.studio-mode .guide-profile .shimmer-modal {
  border-radius: 20px !important;
}

.hero.studio-mode .guide-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero.studio-mode .guide-info h1 {
  text-align: center;
}

.hero.studio-mode .guide-info .subtitle {
  text-align: center;
}

.hero.studio-mode .guide-info .description {
  text-align: center;
  margin: 0 auto 30px;
}

.hero * {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.hero .shadow-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  max-width: 1400px;
  position: relative;
  z-index: 1;
}

.guide-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.guide-profile > div:first-child {
  animation-delay: 0.2s;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  /* Используем margin вместо padding, чтобы сохранить размер аватарки */
  margin-top: 20px;
  margin-bottom: 20px;
}

.guide-info {
  animation-delay: 0.4s;
}

.guide-profile .modal-image-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 20px auto; /* Отступ для тени */
  position: relative;
  aspect-ratio: 1; /* Сохраняем квадратную форму */
  /* Тень на внешнем контейнере */
  box-shadow: 
    0 25px 80px rgba(107, 114, 128, 0.35),
    0 10px 30px rgba(107, 114, 128, 0.25);
  border-radius: 50% !important; /* Круглая форма */
  padding: 0; /* Убираем padding */
  overflow: hidden !important; /* Обрезаем углы изображения */
}

/* Внутренний контейнер для изображения с бордером */
.guide-profile .modal-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 50% !important;
  z-index: 3;
  pointer-events: none;
}

.guide-profile .modal-image-wrapper .shimmer-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50% !important;
  overflow: hidden !important;
  z-index: 1;
  background: rgba(243, 244, 246, 0.9);
}

.guide-profile .modal-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  border-radius: 50% !important;
  overflow: hidden;
}

.guide-profile .modal-image-wrapper .modal-image,
.guide-profile .modal-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
  margin: 0;
  padding: 0;
}

.guide-profile .modal-image {
  border-radius: 50% !important;
}

/* Эффект наведения на аватарку с шиммером и логотипом */
.avatar-hover-wrapper {
  position: relative;
}

/* Текстовый контент для эффекта наведения */
.avatar-logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px !important;
  overflow: hidden;
  z-index: 5;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 30px 30px 30px 0;
}

.avatar-text-content {
  text-align: right;
  color: #ffffff;
  max-width: 100%;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-start;
  align-self: flex-end;
}

.avatar-text-title {
  font-family: 'Panda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Для русской версии используем TitleFont вместо Berry */
html[lang="ru"] .avatar-text-title,
html[lang="ru-RU"] .avatar-text-title {
  font-family: 'TitleFont', 'Berry', 'Panda', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  margin: 0;
  color: #ffffff;
  text-align: right;
  width: auto;
  max-width: 280px;
  align-self: flex-end;
}

.avatar-text-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: right;
  width: auto;
  max-width: 280px;
  align-self: flex-end;
}

.avatar-text-description {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-align: right;
  width: auto;
  max-width: 280px;
  align-self: flex-end;
}

.avatar-text-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  width: auto;
  max-width: 280px;
  margin: 0;
  align-self: flex-end;
}

.avatar-text-button:hover {
  background: var(--primary-gradient);
  filter: brightness(0.95) saturate(1.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Шиммер при наведении - убран, так как нет загрузки */
.avatar-hover-wrapper .shimmer-modal {
  display: none;
}

/* Плавное переливание между изображениями */
.avatar-image {
  transition: opacity 0.5s ease;
}

.avatar-hover-wrapper:hover .avatar-image {
  opacity: 0;
}

.avatar-hover-wrapper:hover .avatar-logo-overlay {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Возврат аватарки после отведения мыши */
.avatar-hover-wrapper:not(:hover) .avatar-image {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.avatar-hover-wrapper:not(:hover) .avatar-logo-overlay {
  opacity: 0;
  transition: opacity 0.5s ease;
}


/* Blinker эффект удален */

.guide-info {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.guide-info h1 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-info .subtitle {
  font-size: 21px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 20px;
}

.guide-info .description {
  font-size: 19px;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
  text-align: center;
}

.guide-info .book-btn-inline {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 18px 48px;
  font-size: 17px;
  font-weight: 400;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
  font-size: 15px;
}

.guide-info .book-btn-inline:hover {
  background: var(--primary-gradient);
  filter: brightness(0.95) saturate(1.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Desktop Layout - Avatar Right, Text Left with Right Alignment */
@media (min-width: 769px) {
  .hero .container {
    max-width: 1200px;
  }

  .guide-profile {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    text-align: right;
  }

  .guide-profile > div:first-child {
    margin: 0;
    flex-shrink: 0;
  }

  .guide-info {
    flex: 1;
    text-align: right;
    max-width: none;
    margin: 0;
  }

  .guide-info h1 {
    text-align: right;
  }

  .guide-info .subtitle {
    text-align: right;
  }

  .guide-info .description {
    margin: 0 auto 30px;
    max-width: 600px;
    text-align: center;
  }

  .guide-profile .modal-image-wrapper {
    margin: 0;
  }

  /* Студийный вид на десктопе */
  .hero.studio-mode {
    padding: 40px 0 50px;
  }

  .hero.studio-mode .guide-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .hero.studio-mode .guide-profile > div:first-child {
    max-width: 100%;
    width: 100%;
  }

  .hero.studio-mode .guide-profile .modal-image-wrapper {
    max-width: 100%;
    max-height: 85vh;
    aspect-ratio: 16/9;
  }

  .hero.studio-mode .guide-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }

  .hero.studio-mode .guide-info h1 {
    text-align: center;
  }

  .hero.studio-mode .guide-info .subtitle {
    text-align: center;
  }

  .hero.studio-mode .guide-info .description {
    text-align: center;
    margin: 0 auto 30px;
  }
}

/* Full Landing Image Section */
.full-landing-section {
  position: relative;
  width: 100%;
  margin: 50px 0;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .full-landing-section {
    margin: 30px 0;
    padding: 40px 0;
  }
}

.full-landing-section .shadow-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.full-landing-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.full-landing-section .modal-image-wrapper {
  border-radius: 30px;
}

.full-landing-section .modal-image-wrapper::after {
  border-radius: 30px;
}

.full-landing-section .modal-image {
  max-height: 600px;
  object-fit: cover;
}

/* Landing Carousel Styles - Slide Show */
.landing-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 280px; /* 400px * 0.7 = 280px */
  border-radius: 30px;
}

.landing-carousel .landing-slides-container {
  display: flex;
  width: 500%; /* 5 слайдов * 100% = 500% */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.landing-carousel .landing-slide {
  width: 20%; /* 100% / 5 = 20% */
  flex-shrink: 0;
  height: auto;
  object-fit: cover;
  max-height: 420px; /* 600px * 0.7 = 420px */
  display: block;
  border-radius: 30px;
}

.landing-carousel[data-slide="0"] .landing-slides-container {
  transform: translateX(0%);
}

.landing-carousel[data-slide="1"] .landing-slides-container {
  transform: translateX(-20%);
}

.landing-carousel[data-slide="2"] .landing-slides-container {
  transform: translateX(-40%);
}

.landing-carousel[data-slide="3"] .landing-slides-container {
  transform: translateX(-60%);
}

.landing-carousel[data-slide="4"] .landing-slides-container {
  transform: translateX(-80%);
}

.landing-pagination {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  border: 2px solid transparent;
}

.pagination-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.pagination-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.3s ease;
  color: #062a33 !important; /* Всегда темный цвет, не зависит от темы */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #0891b2 !important; /* Всегда темный акцентный цвет при hover */
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
  left: 20px;
}

.carousel-arrow-right {
  right: 20px;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .hero.studio-mode {
    padding: 20px 0 30px;
  }

  .hero.studio-mode .guide-profile {
    gap: 30px;
  }

  .hero.studio-mode .guide-profile .modal-image-wrapper {
    max-height: 60vh;
    border-radius: 16px !important;
    box-shadow: 
      0 20px 50px rgba(6, 42, 51, 0.18),
      0 10px 25px rgba(6, 42, 51, 0.12),
      0 3px 10px rgba(6, 42, 51, 0.08);
  }

  .hero.studio-mode .guide-profile .modal-image-wrapper::after {
    width: 70%;
    height: 30px;
    bottom: -15px;
    filter: blur(15px);
  }

  .guide-info h1 {
    font-size: 32px;
  }

  .guide-info .subtitle {
    font-size: 18px;
  }

  .guide-info .description {
    font-size: 16px;
  }

  .guide-profile > div:first-child {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .guide-profile .modal-image-wrapper {
    margin: 10px auto;
  }

  .full-landing-section .modal-image-wrapper {
    border-radius: 20px;
  }
  
  .full-landing-section .modal-image-wrapper::after {
    border-radius: 20px;
  }
  
  .full-landing-section .modal-image {
    max-height: 400px;
  }
  
  .full-landing-section .shimmer-modal {
    border-radius: 20px;
  }

  .landing-carousel .landing-slide {
    max-height: 280px; /* 400px * 0.7 = 280px */
  }

  .landing-carousel .landing-slides-container {
    width: 500%; /* 5 слайдов * 100% = 500% */
  }

  .landing-carousel {
    min-height: 210px; /* 300px * 0.7 = 210px */
    border-radius: 20px;
  }

  .landing-carousel .landing-slide {
    border-radius: 20px;
  }

  .landing-pagination {
    bottom: 15px;
    padding: 6px 12px;
    gap: 10px;
  }

  .pagination-dot {
    width: 10px;
    height: 10px;
  }

  .pagination-dot.active {
    transform: scale(1.2);
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .carousel-arrow-left {
    left: 10px;
  }

  .carousel-arrow-right {
    right: 10px;
  }
}

