/* START_FILE: css/palcount.css */

.dresscode-section {
  background-color: #FAFAFA !important;
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 60px 0 !important;
  box-sizing: border-box !important;
}

/* Единая широкая десктопная подложка-витрина */
.desktop-dresscode-pages-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background-color: #F7F5F0 !important;
  background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px) !important;
  background-size: 4px 4px !important;
  padding: 50px 60px 40px 60px !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.dresscode-unified-header {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 50px !important;
  box-sizing: border-box !important;
}

.dresscode-unified-header .block-title {
  font-family: 'Great Vibes', cursive !important;
  font-size: 4.2rem !important;
  font-weight: 400 !important;
  letter-spacing: 0px !important;
  color: #4A4A4A !important;
}

.dresscode-unified-header .block-subtitle {
  font-family: 'Alexander', serif !important;
  font-size: 1.5rem !important;
  color: #4A4A4A !important;
  max-width: 1600px !important;
  margin: 15px auto 0 auto;
  line-height: 1.6 !important;
}

.dresscode-pages-columns-wrapper {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

.dresscode-page-column {
  width: 33.3333% !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  position: relative !important;
  padding: 0 !important;
  transition: z-index 0.1s step-end !important;
}

/* Базовый порядок наложения страниц для перекрытия встык (Схема 2-1-2) */
.dresscode-pages-columns-wrapper .dresscode-page-column:nth-child(1) { z-index: 12 !important; }
.dresscode-pages-columns-wrapper .dresscode-page-column:nth-child(2) { z-index: 10 !important; }
.dresscode-pages-columns-wrapper .dresscode-page-column:nth-child(3) { z-index: 12 !important; }

/* При работе ползунка активная колонка перебивает базовую схему и вырывается вперед */
.dresscode-page-column.column-focused {
  z-index: 50 !important;
}

.pantone-row {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  margin-bottom: 50px !important;
  padding: 0 1.75% !important;
}

.pantone-card {
  background: #FFFFFF !important;
  padding: 2% 2% 4% 2% !important; 
  width: 31% !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04) !important;
  border: 1px solid #EAEAEA !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: none !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.pantone-card:hover {
  transform: none !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04) !important;
}

.pantone-color-block {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background-color: var(--pantone-color) !important;
  box-sizing: border-box !important;
}

.pantone-meta {
  text-align: left !important;
  margin-top: 6% !important;
  padding-left: 2% !important;
}

.pantone-meta .p-brand, .pantone-meta .p-code, .pantone-meta .p-name {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.pantone-meta .p-brand { 
  font-size: 1.1rem !important; 
  font-weight: 900 !important; 
  color: #000000 !important; 
  margin-bottom: 4% !important;
  letter-spacing: -0.5px !important;
}

.pantone-meta .p-code { 
  font-size: 0.75rem !important; 
  font-weight: 700 !important; 
  color: #111111 !important; 
  margin-bottom: 2% !important; 
}

.pantone-meta .p-name { 
  font-size: 0.75rem !important; 
  font-weight: 500 !important; 
  color: #222222 !important; 
}

/* ==========================================================================
   МНОГОСЛОЙНЫЙ ВЕЕР ОБРАЗОВ
   ========================================================================= */
.look-images-multilayer-scene {
  width: 100% !important;
  height: 480px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-end !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.look-images-multilayer-scene .zoomable-look-img {
  height: 100% !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  position: absolute !important;
  opacity: 0.98 !important;
  pointer-events: none !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, filter 0.3s ease !important;
}

/* Накладываем благородный оттенок фона подложки и приглушаем неактивные силуэты */
.dresscode-pages-columns-wrapper.scene-is-dragging .zoomable-look-img {
  opacity: 0.35 !important;
  filter: sepia(25%) saturate(45%) brightness(104%) !important;
}

.look-images-multilayer-scene .zoomable-look-img:nth-child(1) { z-index: 4 !important; left: -8% !important; bottom: 0 !important; }
.look-images-multilayer-scene .zoomable-look-img:nth-child(2) { z-index: 2 !important; left: 13% !important; top: 50% !important; height: 90% !important; transform: translateY(-50%) !important; }
.look-images-multilayer-scene .zoomable-look-img:nth-child(3) { z-index: 5 !important; left: 50% !important; transform: translateX(-50%) !important; bottom: 0 !important; }
.look-images-multilayer-scene .zoomable-look-img:nth-child(4) { z-index: 1 !important; right: 13% !important; top: 50% !important; height: 90% !important; transform: translateY(-50%) !important; }
.look-images-multilayer-scene .zoomable-look-img:nth-child(5) { z-index: 3 !important; right: -8% !important; bottom: 0 !important; }

/* Обновленная трехслойная иерархия веера для Нюдовой страницы */
.look-images-inverted .zoomable-look-img:nth-child(1) { z-index: 2 !important; left: -8% !important; top: 50% !important; height: 90% !important; transform: translateY(-50%) !important; bottom: auto !important; transform-origin: center center !important; }
.look-images-inverted .zoomable-look-img:nth-child(5) { z-index: 2 !important; right: -8% !important; top: 50% !important; height: 90% !important; transform: translateY(-50%) !important; bottom: auto !important; transform-origin: center center !important; }

.look-images-inverted .zoomable-look-img:nth-child(2) { z-index: 4 !important; left: 13% !important; bottom: 0 !important; top: auto !important; height: 100% !important; transform: none !important; }
.look-images-inverted .zoomable-look-img:nth-child(4) { z-index: 3 !important; right: 13% !important; bottom: 0 !important; top: auto !important; height: 100% !important; transform: none !important; }

.look-images-inverted .zoomable-look-img:nth-child(3) { z-index: 5 !important; left: 50% !important; transform: translateX(-50%) !important; bottom: 0 !important; top: auto !important; height: 100% !important; }

/* ==========================================================================
   ЖЕСТКОЕ РАЗРЕДЕЛЕНИЕ TRANSFORM И МАСШТАБИРОВАНИЕ СТРОГО ПО ЦЕНТРУ ЭЛЕМЕНТОВ
   ========================================================================== */
.dresscode-pages-columns-wrapper .zoomable-look-img.look-focused {
  opacity: 1 !important;
  z-index: 999999 !important;
  filter: none !important;
}

/* СТРАНИЦЫ 1 И 3 (ШОКОЛАД / ГОЛУБОЙ): РАВНОМЕРНЫЙ ЗУМ ОТ ЦЕНТРА */
.look-images-multilayer-scene:not(.look-images-inverted) .zoomable-look-img:nth-child(1).look-focused,
.look-images-multilayer-scene:not(.look-images-inverted) .zoomable-look-img:nth-child(5).look-focused {
  transform: scale(1.15) !important;
  transform-origin: center center !important; 
}
.look-images-multilayer-scene:not(.look-images-inverted) .zoomable-look-img:nth-child(3).look-focused {
  transform: translateX(-50%) scale(1.15) !important;
  transform-origin: center center !important; 
}
.look-images-multilayer-scene:not(.look-images-inverted) .zoomable-look-img:nth-child(2).look-focused,
.look-images-multilayer-scene:not(.look-images-inverted) .zoomable-look-img:nth-child(4).look-focused {
  transform: translateY(-50%) scale(1.28) !important;
  transform-origin: center center !important;
}

/* СТРАНИЦА 2 (ЛЬНЯНОЙ НЮД): РАВНОМЕРНЫЙ ЗУМ ОТ ЦЕНТРА */
.look-images-inverted .zoomable-look-img:nth-child(1).look-focused,
.look-images-inverted .zoomable-look-img:nth-child(5).look-focused {
  transform: translateY(-50%) scale(1.28) !important;
  transform-origin: center center !important;
}
.look-images-inverted .zoomable-look-img:nth-child(2).look-focused,
.look-images-inverted .zoomable-look-img:nth-child(4).look-focused {
  transform: scale(1.15) !important;
  transform-origin: center center !important; 
}
.look-images-inverted .zoomable-look-img:nth-child(3).look-focused {
  transform: translateX(-50%) scale(1.15) !important;
  transform-origin: center center !important; 
}

.look-images-multilayer-scene .zoomable-look-img:hover,
.look-images-multilayer-scene:hover .zoomable-look-img,
.look-images-multilayer-scene:hover .zoomable-look-img:not(:hover) {
  filter: none !important;
  opacity: 0.98 !important;
}

/* ==========================================================================
   ИНТЕРАКТИВНЫЙ ПОЛЗУНОК (ДЕСКТОП)
   ========================================================================== */
.dresscode-slider-container {
  width: 100% !important;
  padding: 0 !important;
  margin: 50px -2.666% 20px -2.666% !important;
  width: calc(100% + 5.332%) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.dresscode-slider-track-wrapper {
  width: 100% !important;
  height: 44px !important;
  background-color: #F3EFE9 !important;
  border: 1px solid rgba(131, 110, 100, 0.15) !important;
  border-radius: 22px !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03) !important;
}

.dresscode-slider-track {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.slider-stop-tick {
  position: absolute !important;
  top: 0 !important;
  width: 1px !important;
  height: 100% !important;
  background-color: rgba(131, 110, 100, 0.12) !important;
  pointer-events: none !important;
}

.slider-vagon-handle {
  position: absolute !important;
  top: 50% !important;
  left: 46.6662%;
  transform: translateY(-50%) !important;
  width: 6.6666% !important;
  height: 32px !important;
  background-color: #836E64 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  cursor: grab !important;
  z-index: 10 !important;
  transition: transform 0.1s ease, left 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-sizing: border-box !important;
}

.slider-vagon-handle:active {
  cursor: grabbing !important;
  background-color: #4C3C32 !important;
}

/* ==========================================================================
   КОРРЕКЦИЯ ШРИФТОВ PANTONE ДЛЯ ПЛАНШЕТОВ ПО ТЗ (769px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .dresscode-section { 
    padding: 50px 0 !important; 
  }
  .desktop-dresscode-pages-container { 
    padding: 40px 30px !important; 
  }
  
  .pantone-row {
    padding: 0 2.5% !important;
  }
  .pantone-card { 
    width: 29.5% !important; 
    padding: 2.5% 2% 4.5% 2% !important; 
  }
  
  .pantone-meta {
    margin-top: 8% !important;
    padding-left: 2% !important;
  }
  .pantone-meta .p-brand {
    font-size: 0.85rem !important; 
    letter-spacing: -0.4px !important; 
    margin-bottom: 3% !important;
  }
  .pantone-meta .p-code {
    font-size: 0.62rem !important; 
    letter-spacing: -0.1px !important;
    margin-bottom: 2% !important;
  }
  .pantone-meta .p-name {
    font-size: 0.62rem !important; 
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
  }

  .look-images-multilayer-scene { 
    height: 380px !important; 
  }
}

/* ==========================================================================
   ИЗОЛИРОВАННАЯ МОБИЛЬНАЯ ВЕРСИЯ ПО СИСТЕМНОМУ БРЕЙКПОИНТУ ПРОЕКТА (ДО 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .dresscode-section {
    padding: 30px 0 !important;
  }

  .dresscode-unified-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 30px auto !important;
    padding: 0 15px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  .dresscode-unified-header .block-title {
    font-family: 'Great Vibes', cursive !important;
    font-size: 2.8rem !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }
  
  .dresscode-unified-header .block-subtitle {
    font-family: 'Alexander', serif !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .desktop-dresscode-pages-container {
    margin-top: 0 !important; /* Сброс зазора */
    background-color: #F7F5F0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 0 50px 0 !important;
    display: block !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .desktop-dresscode-pages-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .dresscode-slider-container {
    display: none !important;
  }

  /* Ширина 1500px применяется СТРОГО только к обертке панорамы людей */
  .dresscode-pages-columns-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 1500px !important;
    padding-left: 45vw !important;
    padding-right: 45vw !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .dresscode-page-column {
    width: 33.3333% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    padding: 0 !important;
    margin-right: 0 !important;
  }

  .pantone-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin-bottom: 50px !important;
    padding: 0 1.75% !important; 
    gap: 0 !important;
  }

  .pantone-card {
    background: #FFFFFF !important;
    padding: 2% 2% 4% 2% !important; 
    width: 29% !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04) !important;
    border: 1px solid #EAEAEA !important;
    box-sizing: border-box !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .pantone-color-block {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
  }

  .pantone-meta {
    text-align: left !important;
    margin-top: 6% !important;
    padding-left: 2% !important;
  }
  .pantone-meta .p-brand { 
    font-size: 0.75rem !important;
    font-weight: 900 !important; 
    margin-bottom: 4% !important;
    letter-spacing: -0.3px !important;
  }
  .pantone-meta .p-code { 
    font-size: 0.55rem !important;
    font-weight: 700 !important; 
    margin-bottom: 2% !important; 
  }
  .pantone-meta .p-name { 
    font-size: 0.55rem !important;
    font-weight: 500 !important; 
  }

  .look-images-multilayer-scene {
    width: 100% !important;
    height: 480px !important;
    overflow: visible !important;
  }

  .dresscode-pages-columns-wrapper.scene-is-dragging .zoomable-look-img {
    opacity: 0.35 !important;
    filter: sepia(25%) saturate(45%) brightness(104%) !important;
  }

  .dresscode-pages-columns-wrapper .zoomable-look-img.look-focused {
    opacity: 1 !important;
    z-index: 999999 !important;
    filter: none !important;
  }

  /* ==========================================================================
     ТАЙМЕР: УСИЛЕННЫЕ СЕЛЕКТОРЫ ПРОБОЯ КАСКАДА НА ЧЕСТНЫЕ 2.5rem И РАЗРЫВ КАРТ
     ========================================================================== */
  .countdown-section {
    padding: 50px 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: 65% center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .countdown-section .block-title {
    font-size: 2.5rem !important;
    padding: 0 15px !important;
    white-space: nowrap !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .countdown-container { 
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;        /* Запрет переноса секунд вниз */
    justify-content: center !important;  /* Горизонтальное центрирование */
    align-items: flex-start !important;
    gap: 12px !important;                /* Возвращаем аккуратные раздельные зазоры между картами */
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin: 15px auto 0 auto !important;
    box-sizing: border-box !important;
  }
  
  .countdown-item {
    width: 60px !important;              /* Контейнер под ширину карточки */
    max-width: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  
  /* УСИЛЕННЫЙ ТРОЙНОЙ СЕЛЕКТОР: Сбивает десктопные 3.5rem и фиксирует честные 2.5rem */
  .countdown-section .countdown-container .time-number { 
    font-size: 2.5rem !important;        /* Кегль шрифта жестко зажат в 2.5rem */
    font-weight: 700 !important;
    letter-spacing: -1px !important;     /* Уплотняем цифры, чтобы они встали в рамку */
    width: 54px !important;              /* Уменьшенная компактная ширина карточки */
    height: 56px !important;             /* Пропорциональная аккуратная высота карточки */
    min-width: 54px !important;
    max-width: 54px !important;
    padding: 0 !important;
    display: flex !important;            /* Флекс-контекст для выравнивания */
    align-items: center !important;      /* Выравнивание чисел идеально по центру Y */
    justify-content: center !important;   /* Выравнивание чисел идеально по центру X */
    line-height: 1 !important;           /* Сброс десктопного сдвига line-height */
    border-radius: 7px !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
  }
  
  .time-label {
    font-size: 0.65rem !important;       /* Компактные подписи */
    margin-top: 10px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }
}

/* ==========================================================================
   СЧЁТЧИК В СТИЛЕ СТАРИННЫХ ПЕРЕКИДНЫХ ЧАСОВ (ХРОНОМЕТР) — БАЗОВЫЙ ОРИГИНАЛ
   ========================================================================== */
.countdown-section {
  background-image: url('../images/bg-block-7.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  width: 100%;
}

.countdown-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 25px !important;
  margin-top: 40px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.countdown-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
}

.time-number {
  font-family: 'Inter', sans-serif !important;
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  background: linear-gradient(to bottom, #2C2C2C 0%, #1A1A1A 50%, #111111 50%, #000000 100%) !important;
  padding: 15px 18px !important;
  border-radius: 8px !important;
  min-width: 90px !important;
  text-align: center !important;
  display: inline-block !important;
  line-height: 1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid #333333 !important;
  position: relative !important;
  text-shadow: none !important;
}

.time-number::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 1px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  z-index: 3 !important;
}
/* END_FILE: css/palcount.css */