

/* Start:/local/templates/fluorite_v1/assets/css/mobile.css?177964485242928*/
/* ================================================================
   FLUORITE — Mobile Adaptation Layer
   Хирургические правки только поверх main.css / site-header.css.
   Анимации, дизайн и логика секций не затронуты.
   ================================================================ */

/* ----------------------------------------------------------------
   1. BODY — убираем жёсткий overflow:hidden + 100vh/100vw.
      На мобилях body должен быть прокручиваемым контейнером.
      На десктопе (>767px) main.css управляет этим как и прежде.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {

  body.fluorite-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100svh;   /* small viewport height — не прыгает от адресной строки */
    width: 100%;
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------
   2. SECTIONS CONTAINER — заменяем 100vh на 100dvh.
      dvh (dynamic) обновляется когда адресная строка скрывается.
      Уже частично исправлено в main.css @700px, дополняем до 767px.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  #sections-container {
    height: 100dvh;
    overflow: hidden;
  }
}

/* ----------------------------------------------------------------
   3. MENU WRAPPER — фиксированная обёртка меню.
      100vw вызывает горизонтальный скролл из-за скроллбара.
      100vh на iOS не учитывает адресную строку.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-staggered-menu-wrapper.fluorite-fixed-wrapper {
    width: 100%;
    height: 100dvh;
  }
}

/* ----------------------------------------------------------------
   4. BACKGROUND LAYERS — используем dvh вместо vh.
      position:fixed уже стоит, просто высоту исправляем.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-background-slider {
    height: 100dvh;
  }

  .fluorite-bg-text-wrapper {
    height: 100dvh;
  }
}

/* ----------------------------------------------------------------
   5. SEARCH — ограничиваем ширину на маленьких экранах.
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .fluorite-ref-search-wrap {
    max-width: 150px;
    min-width: 120px;
  }

  .fluorite-ref-search__input {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------
   6. TOUCHABLE TARGETS — min 44×44px для кнопок (WCAG 2.5.5).
      Не меняем внешний вид, только область нажатия.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-sm-toggle,
  .fluorite-ref-search__button,
  .fluorite-ref-action,
  .fluorite-ref-cart {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .fluorite-ref-actions .fluorite-ref-action {
    transform: translateX(12px);
  }
}

/* ----------------------------------------------------------------
   7. COOKIE BANNER — уже адаптирован в site-header.css,
      дополняем safe-area для вырезов экрана (iPhone notch).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-cookie-banner {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* ----------------------------------------------------------------
   8. TABLET (768–1024px) — dvh для wrapper и container.
   ---------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .fluorite-staggered-menu-wrapper.fluorite-fixed-wrapper {
    height: 100dvh;
  }

  #sections-container {
    height: 100dvh;
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 2 (2026-05-04)
   Страница /fluorite/#materials — конкретные баги
   ================================================================ */

/* ----------------------------------------------------------------
   9. HEADER — safe-area для плавающей шапки (iPhone notch/island).
      .fluorite-staggered-menu-header — position:absolute внутри fixed wrapper,
      top позиция считается от --fluorite-header-top (var CSS).
      Добавляем safe-area сверху.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --fluorite-header-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }
}

/* ----------------------------------------------------------------
   10. MATERIALS — .card: фиксированная ширина 360px шире 320px экрана.
       Без этого фикса карточка вылезает за viewport → горизонтальный
       скролл на узких устройствах (iPhone SE, Galaxy Fold).
   ---------------------------------------------------------------- */
@media (max-width: 430px) {
  .card {
    width: 100%;
    max-width: calc(100vw - 36px); /* учитываем padding: 0 18px */
    height: clamp(340px, 43dvh, 390px);
    box-sizing: border-box;
  }

  .fluorite-card-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------
   11. MATERIALS — .fluorite-info-block h1: слово «ГЛАЗУРИРОВАННОЕ» (15 симв.)
       в 44px ≈ 363px → шире 284px контейнера на 320px экране.
       overflow-wrap: normal (из main.css) запрещает разрыв внутри слова.
       Разрешаем безопасный перенос только на мобиле.
       Дизайн не меняется — просто строка переносится.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-info-block h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Дополнительное уменьшение на совсем узких (SE, Fold) */
@media (max-width: 374px) {
  .fluorite-info-block h1 {
    font-size: 36px;
  }
}

/* ----------------------------------------------------------------
   12. MATERIALS — .fluorite-controls: safe-area снизу.
       position:fixed; bottom:18px — без safe-area кнопки уходят
       под home indicator на iPhone X/11/12/13/14/15.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-controls {
    bottom: max(18px, env(safe-area-inset-bottom));
    /* Также ограничиваем от левого и правого выреза (landscape) */
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
  }
}

/* ----------------------------------------------------------------
   13. NEO HOME PAGE — min-height 100vh → 100dvh.
       neo-home-bitrix.css: body.fluorite-neo-home-page { min-height: 100vh }.
       На iOS Safari 100vh включает адресную строку → скачок.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  body.fluorite-neo-home-page {
    min-height: 100dvh;
  }
}

/* ----------------------------------------------------------------
   14. HOVER-ЗАЛИПАНИЕ НА ТАЧ: nav-btn, primary-btn.
       На тач-устройствах :hover залипает после тапа.
       Оборачиваем hover-правила в (hover: hover) — они уже есть
       в main.css, но без условия.
       Здесь добавляем :active как замену для тача.
   ---------------------------------------------------------------- */
@media (hover: none) {
  .fluorite-nav-btn:active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
  }

  .fluorite-primary-btn:active {
    background: #fff;
    color: #000;
    border-color: #fff;
  }
}

/* ----------------------------------------------------------------
   15. LANDSCAPE MOBILE — корректируем высоту секции и controls.
       При повороте на 90° высота экрана ≈ 375px — controls и card
       конкурируют за пространство.
   ---------------------------------------------------------------- */
@media (orientation: landscape) and (max-height: 500px) {
  #materials main {
    padding-top: 70px;
    padding-bottom: 110px;
    min-height: 100dvh;
  }

  .card {
    height: 200px;
    width: auto;
    max-width: none;
    aspect-ratio: 3 / 4;
  }

  .fluorite-controls {
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .fluorite-info-block {
    margin-top: 16px;
  }

  .fluorite-info-block h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .fluorite-info-block p {
    font-size: 12px;
    line-height: 1.4;
  }

  .fluorite-info-block .fluorite-cta {
    margin-top: 12px;
    margin-bottom: 10px;
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 3 (2026-05-04)
   Свайп вместо кнопок + корректировка размеров
   ================================================================ */

/* ----------------------------------------------------------------
   16. NAV BUTTONS — скрываем на мобиле, навигация через свайп.
       Прогресс-бар и счётчик остаются — визуальная обратная связь.
       Кнопки скрыты через visibility (остаются в DOM для click() из swipe JS).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-nav-btn {
    /* Визуально скрыты, но остаются в DOM — swipe JS вызывает .click() */
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    border: none;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;   /* не мешают тапам */
    flex: 0 0 0;
  }

  /* Счётчик подтягивается влево, прогресс-бар занимает всю ширину */
  .fluorite-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .fluorite-progress-bar {
    margin: 0;   /* убираем margin: 0 18px — теперь grid справится */
  }

  .fluorite-counter {
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

/* ----------------------------------------------------------------
   17. CARD HEIGHT на 431–767px (между большими мобилами).
       Блок 10 закрыл ≤430px (420px). Здесь — 431–767px.
       На 375px iPhone 13: 420px карточка отлично, дальше чуть больше.
   ---------------------------------------------------------------- */
@media (min-width: 431px) and (max-width: 767px) {
  .card {
    width: 100%;
    max-width: min(420px, calc(100vw - 36px));
    height: clamp(380px, 55vw, 460px);
  }

  .fluorite-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   18. INFO BLOCK — шрифты и отступы на мобиле.
       h1 уже фикснут в patch 2 (overflow-wrap, 36px на ≤374px).
       Здесь — точечные улучшения читаемости.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-info-block .category {
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 10px;
  }

  .fluorite-info-block p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* Подсказка «свайп» — появляется один раз при первом заходе */
  #materials-swipe-hint {
    position: absolute;
    bottom: 54px;
    z-index: 6;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    pointer-events: none;
    animation: hintFade 3s ease-out 1.5s forwards;
    opacity: 0;
  }

  @keyframes hintInStay {
    from { opacity: 0;   transform: translateX(-50%) translateY(4px); }
    to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  }

  @keyframes hintFade {
    0%   { opacity: 0; transform: translateX(-50%) translateY(4px); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    70%  { opacity: 1; }
    100% { opacity: 0; }
  }
}

/* Landscape — ещё немного компактнее */
@media (orientation: landscape) and (max-height: 500px) {
  .fluorite-nav-btn {
    width: 0; height: 0; border: none; padding: 0;
    overflow: hidden; opacity: 0; pointer-events: none; flex: 0 0 0;
  }
  .fluorite-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 4 (2026-05-04)
   ================================================================ */

/* ----------------------------------------------------------------
   19. #materials main padding-top — карточка уходила под header.
       Формула: safe-area-inset-top + 12px (header-top offset)
                + 48px (высота header) + 16px (отступ над фото)
              = safe-area-inset-top + 76px
       max(110px, ...) — на устройствах без notch остаётся 110px.
       Фото не обрезается — просто отступает ниже.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  #materials main {
    padding-top: max(110px, calc(env(safe-area-inset-top, 0px) + 76px));
  }
}

/* ----------------------------------------------------------------
   20. SWIPE HINT — скрыт на десктопе, виден только на тач-мобиле.
       По умолчанию display:none, включается через mobile media.
   ---------------------------------------------------------------- */
#materials-swipe-hint {
  display: none;
}

@media (max-width: 767px) and (hover: none) {
  #materials-swipe-hint {
    display: block;
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 5 (2026-05-04)
   Z-index fix — текст не должен лезть поверх меню
   ================================================================ */

/* ----------------------------------------------------------------
   21. Z-INDEX FIX — main.css на ≤700px ставит .fluorite-info-block: 10040,
       .fluorite-controls: 10020, .fluorite-primary-btn: 10041 — это ВЫШЕ меню (z 240).
       При открытии меню или при overlap текст info-block лезет
       поверх menu panel.
       Фикс: на мобиле снижаем эти значения так, чтобы было:
       — меню (240, 110, 120) > controls > info-block > bg-слои
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-portfolio-authors {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .fluorite-portfolio-authors__layout {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .fluorite-portfolio-authors__gallery {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    justify-content: space-between;
    overflow: hidden;
  }

  .fluorite-portfolio-authors__column {
    min-width: 0;
  }

  .fluorite-portfolio-authors__column--1 {
    width: 30%;
  }

  .fluorite-portfolio-authors__column--2 {
    width: 34%;
  }

  .fluorite-portfolio-authors__column--3 {
    width: 31%;
  }

  .fluorite-portfolio-authors__column--1 .fluorite-portfolio-authors__photo-card,
  .fluorite-portfolio-authors__column--2 .fluorite-portfolio-authors__photo-card,
  .fluorite-portfolio-authors__column--3 .fluorite-portfolio-authors__photo-card {
    width: 100%;
    height: auto;
    aspect-ratio: 0.91;
  }

  .fluorite-hotspots-layer,
  div[role="group"][aria-label="Hotspots"],
  div[role="group"][aria-label="Hotspots"] ul.hotspot-list,
  product-hotspot,
  product-hotspot button {
    pointer-events: auto;
  }

  product-hotspot [data-action="quick-add"] {
    display: none !important;
  }

  product-hotspot [data-action="open-hotspot"] {
    display: block !important;
  }

  product-hotspot dialog[open] {
    display: block !important;
  }

  product-hotspot dialog {
    min-width: 0;
    width: min(252px, calc(100vw - 40px));
    padding: 4px;
    white-space: normal;
  }

  product-hotspot dialog > div {
    gap: 8px;
    grid-template-columns: 78px 1fr;
  }

  product-hotspot dialog img {
    width: 78px;
    min-width: 78px;
  }

  product-hotspot dialog .product-info {
    gap: 3px;
    padding: 4px 8px 4px 0;
    min-width: 0;
  }

  product-hotspot dialog .product-info h2 {
    font-size: 13px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  product-hotspot dialog .product-info span {
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  product-hotspot dialog .product-info p,
  product-hotspot dialog .product-info a {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
    -webkit-tap-highlight-color: transparent;
  }
  product-hotspot dialog .product-info header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
  }
  product-hotspot dialog .product-info a:focus,
  product-hotspot dialog .product-info a:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .fluorite-overlay-close {
    top: 60px;
  }

  .fluorite-pdf-controls {
    bottom: 10px;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 22px;
  }

  .fluorite-pdf-btn {
    width: 24px;
    height: 24px;
  }

  .fluorite-pdf-btn svg {
    width: 14px;
    height: 14px;
  }

  .fluorite-pdf-page-num {
    font-size: 10px;
    letter-spacing: 1px;
  }

  body.fluorite-pdf-mobile-fullscreen-open {
    overflow: hidden;
  }

  .fluorite-custom-pdf-viewer.fluorite-is-mobile-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    aspect-ratio: auto;
    z-index: 999999;
    border-radius: 0;
    background: #000;
  }

  .fluorite-custom-pdf-viewer.fluorite-is-mobile-fullscreen .fluorite-pdf-controls {
    bottom: max(14px, env(safe-area-inset-bottom));
    opacity: 1;
  }

  .fluorite-info-block {
    z-index: 5;
  }

  /* CTA wrapper внутри info-block — поднимаем относительно info-block,
     но всё равно ниже меню (т.к. info-block z-index 5 создаёт stacking ctx) */
  .fluorite-info-block .fluorite-cta {
    z-index: 6;
  }

  /* primary-btn — внутри .fluorite-cta, остаётся на 7 в этом stacking контексте */
  .fluorite-cta .fluorite-primary-btn {
    z-index: 7;
  }

  /* Controls — fixed, ниже меню (240), но выше всего остального */
  .fluorite-controls {
    z-index: 100;
  }

  /* Swipe hint — внутри секции, не должен лезть на меню */
  #materials-swipe-hint {
    z-index: 50;
  }
}

/* MATERIALS_MOBILE_TIGHT_START — reversible 2026-05-05 */
@media (max-width: 767px) {
  #materials main {
    padding-top: max(96px, calc(env(safe-area-inset-top, 0px) + 72px));
    padding-bottom: 128px;
    overflow: hidden;
  }

  #materials .card {
    height: clamp(300px, 39dvh, 360px);
    background-color: #000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #materials .fluorite-info-block {
    margin-top: 22px;
  }

  #materials .fluorite-info-block .category {
    margin-bottom: 6px;
  }

  #materials .fluorite-info-block h1 {
    font-size: clamp(34px, 8.4vw, 42px);
    margin-bottom: 10px;
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  #materials .fluorite-info-block .fluorite-cta {
    margin-bottom: 12px;
  }

  #materials .fluorite-info-block p {
    margin-top: 0;
    line-height: 1.35;
    transform: none;
  }
}
/* MATERIALS_MOBILE_TIGHT_END */

/* ================================================================
   FLUORITE — Mobile Patch 6 (collections + product)
   /fluorite/collections/, /fluorite/collections/<mat>/,
   /fluorite/collections/<mat>/<sku>/
   ================================================================ */

/* ----------------------------------------------------------------
   22. HEADER PADDING — карточки/контент уходят под header pill.
       На 900px collections.css ставит padding-top: 90px, но при
       Dynamic Island (safe-area 59px + 12px + 48px = 119px) — мало.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-collections-page {
    padding-top: max(90px, calc(env(safe-area-inset-top, 0px) + 76px));
  }
}

/* ----------------------------------------------------------------
   23. HOVER STATES — на тач первый тап триггерит :hover, состояние
       залипает. Сбрасываем hover-эффекты, добавляем :active feedback.
   ---------------------------------------------------------------- */
@media (hover: none) {
  .fluorite-product-card:hover {
    background: transparent;
  }
  .fluorite-product-card:active {
    background: rgba(255, 255, 255, 0.04);
  }

  .fluorite-product-detail-thumb:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
  }
  .fluorite-product-detail-thumb.fluorite-is-active {
    border-color: rgba(255, 255, 255, 0.4);
  }

  .fluorite-product-detail-stage__nav:hover,
  .fluorite-product-detail-action:hover,
  .fluorite-product-detail-docs__item:hover,
  .fluorite-product-detail-specs__more:hover,
  .fluorite-collections-back-link:hover,
  .fluorite-collections-filter-btn:hover,
  .fluorite-product-showroom-stock__meta a:hover {
    background: inherit;
    color: inherit;
    transform: none;
    border-color: inherit;
  }

  .fluorite-product-detail-action:active {
    transform: scale(0.98);
  }
  .fluorite-product-detail-stage__nav:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
  }
  .fluorite-product-detail-docs__item:active {
    background: #101010;
    color: #fff;
  }
}

/* ----------------------------------------------------------------
   24. ДЛИННЫЕ НАЗВАНИЯ — "Люстра подвесная SACREMENT GOLD FL1181-30P"
       на 320px переполняет контейнер. Безопасный перенос.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-card__collection-name,
  .fluorite-product-card__article,
  .fluorite-product-detail-info__title,
  .fluorite-product-detail-info__article,
  .fluorite-product-detail-info__collection {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

@media (max-width: 374px) {
  .fluorite-product-detail-info__title {
    font-size: var(--fluorite-fs-2xl);
  }
}

/* ----------------------------------------------------------------
   25. TOUCH TARGETS — аккордеоны, миниатюры галереи, nav-кнопки.
       WCAG 2.5.5 минимум 44×44px.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-detail-panel__toggle {
    min-height: 56px;
    padding: 14px 4px;
  }

  .fluorite-product-detail-thumb {
    min-height: 64px;
    min-width: 64px;
  }

  .fluorite-product-detail-stage__nav {
    width: 48px;
    height: 48px;
  }
}

/* ----------------------------------------------------------------
   26. STICKY ADD-TO-CART — на длинной странице товара кнопка
       уезжает вниз. Делаем sticky с safe-area для home indicator.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0, var(--fluorite-bg-dark, #070707) 18px);
    padding-top: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ----------------------------------------------------------------
   27. LIGHTBOX + SPECS MODAL — safe-area для close-кнопки и nav.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-lightbox {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .fluorite-product-lightbox__close {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
  }

  .fluorite-product-lightbox__nav--prev {
    left: max(16px, env(safe-area-inset-left));
  }
  .fluorite-product-lightbox__nav--next {
    right: max(16px, env(safe-area-inset-right));
  }

  .fluorite-product-specs-modal {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* ----------------------------------------------------------------
   28. SPECS PRIMARY TABLE — на 320px ключ 120px съедает 38% экрана.
   ---------------------------------------------------------------- */
@media (max-width: 374px) {
  .fluorite-product-detail-specs--primary .fluorite-product-detail-specs__row {
    grid-template-columns: 96px minmax(0, 1fr);
    font-size: 13px;
  }
}

/* ----------------------------------------------------------------
   29. SHOWROOM STOCK — telephone link tap target.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-showroom-stock__meta a {
    display: inline-block;
    min-height: 32px;
    padding: 6px 0;
  }
}

/* ----------------------------------------------------------------
   30. (зарезервировано — z-index безопасность)
       Текущий аудит безопасен. Блок оставлен для будущих фиксов.
   ---------------------------------------------------------------- */

/* ================================================================
   FLUORITE ? Mobile Patch 7 (2026-05-07)
   ??????? ? ?????????? ??????
   ================================================================ */

/* ----------------------------------------------------------------
   31. TOAST ? ?????????? ??????????? ??????????? ?? ???????
       (add-to-cart fail, ???????? ? ???????).
       ??? media query ? ????? ? ?? ?????? ? ?? ????????.
   ---------------------------------------------------------------- */
.fluorite-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.fluorite-toast.fluorite-is-visible {
  opacity: 1;
}

/* ----------------------------------------------------------------
   32. CART PAGE ? safe-area ??? ??????? ??? ?????? ? cart-checkout.css.
       ????? ?????????: ?? ????? ????? ??????????? (320px) ?????
       ?? ?????? ??????????.
   ---------------------------------------------------------------- */
@media (max-width: 374px) {
  .fluorite-cart-summary__row--total strong {
    font-size: 26px;
  }

  .fluorite-cart-item__title {
    font-size: 22px;
  }

  .fluorite-cart-item__line-total {
    font-size: 22px;
  }
}

/* ----------------------------------------------------------------
   33. CHECKOUT ? ?????? ???????????? ?????? sticky ?? ??????.
       ??? ???????? ??????????? ?????????? viewport ???????? ?
       ?????? ?????? ?????????? ???????.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(to bottom, transparent 0, rgba(7, 7, 7, 0.97) 18px);
    padding-top: 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 8 (2026-05-07)
   /fluorite/#portfolio — карточки проектов на тач-устройствах
   ================================================================ */

/* ----------------------------------------------------------------
   34. PROJECT CARD TAP — снимаем 300ms-задержку и tap-highlight,
       чтобы клик срабатывал моментально.
   ---------------------------------------------------------------- */
.fluorite-project-card,
.fluorite-project-card * {
  -webkit-tap-highlight-color: transparent;
}

.fluorite-project-card[data-project] {
  touch-action: manipulation;
  cursor: pointer;
}

/* ----------------------------------------------------------------
   35. OVERLAY SPAN — текст «Открыть проект» поверх фото не должен
       перехватывать касание (на тач overlay получает opacity:1 и
       его span ловит клик первым).
   ---------------------------------------------------------------- */
.fluorite-project-card-overlay,
.fluorite-project-card-overlay * {
  pointer-events: none;
}

/* ----------------------------------------------------------------
   36. HOVER на тач — отключаем transform/scale, оставляем только
       :active feedback. Без этого карточка залипает приподнятой.
   ---------------------------------------------------------------- */
@media (hover: none) {
  .fluorite-project-card:hover {
    transform: none;
  }
  .fluorite-project-card:hover .fluorite-preview-img {
    transform: none;
  }
  .fluorite-project-card:hover .fluorite-project-card-overlay {
    opacity: 0;
  }
  .fluorite-project-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-out;
  }
}

/* ----------------------------------------------------------------
   37. PORTFOLIO GRID на мобиле — единая колонка, нормальные отступы.
       main.css даёт padding: 120px 5% 60px и minmax(450px, 1fr).
       На 375px 5% = 18px, но карточка хочет 450px → надо сжать.
       @ 1200px main.css уже ставит 1fr, но gap 40px и font-size
       project-info остаются десктопные → подгоняем.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  #portfolio {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fluorite-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 100%;
  }

  .fluorite-project-card {
    border-radius: 18px;
  }

  .fluorite-project-image-preview {
    aspect-ratio: 16 / 11;
  }

  .fluorite-project-info {
    padding: 18px 18px 22px;
  }

  .fluorite-project-info h3 {
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .fluorite-project-info p {
    font-size: 14px;
  }

  .fluorite-portfolio-header {
    margin-bottom: 32px;
  }

  .fluorite-portfolio-header .fluorite-section-tag {
    font-size: clamp(28px, 8.4vw, 44px);
    margin-top: 10px;
    margin-bottom: 14px;
  }
}

/* ----------------------------------------------------------------
   38. PROJECT OVERLAY на мобиле — safe-area для close-кнопки,
       отступы для нотча, корректное поведение overflow.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-project-overlay {
    padding-top: max(120px, calc(env(safe-area-inset-top, 0px) + 80px)) !important;
    padding-bottom: max(60px, env(safe-area-inset-bottom)) !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .fluorite-overlay-content {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .fluorite-overlay-image-wrapper {
    flex: none !important;
    max-height: none !important;
    width: 100% !important;
  }

  .fluorite-overlay-info {
    flex: none !important;
    width: 100% !important;
  }

  .fluorite-overlay-title {
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1 !important;
  }

  .fluorite-overlay-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .fluorite-overlay-close {
    top: max(18px, env(safe-area-inset-top)) !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10 !important;
  }
}


/* ================================================================
   FLUORITE — Mobile Patch 9 (2026-05-07)
   #brand — секция «О бренде»: padding, fluorite-brand-content, PDF-viewer
   ================================================================ */

/* ----------------------------------------------------------------
   39. #brand PADDING на мобиле — 120px top слишком много для
       header-pill высотой ~60px. Приводим к той же формуле что
       у других скролл-секций: safe-area + 64px запас.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  #brand {
    padding-top: max(80px, calc(env(safe-area-inset-top, 0px) + 64px));
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 40px;
  }
}

/* ----------------------------------------------------------------
   40. BRAND-CONTENT на мобиле — дочерние флекс-элементы в колонке
       могут иметь неверные flex-значения из строчной раскладки.
       Явно ставим flex: none + 100% ширину для чёткого стека.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-brand-content {
    width: 100%;
    gap: 24px;
  }
  .fluorite-brand-image-wrapper {
    flex: none;
    width: 100%;
  }
  .fluorite-brand-text-content {
    flex: none;
    width: 100%;
  }
  /* Выравниваем статы и описание по левому краю на мобиле */
  .fluorite-brand-text-content {
    align-items: flex-start;
    text-align: left;
  }
  .fluorite-brand-text-content .fluorite-brand-desc {
    margin-left: 0;
  }
  .fluorite-brand-text-content .fluorite-brand-stats {
    justify-content: flex-start;
  }
}

/* ----------------------------------------------------------------
   41. TABLET (768–1199px) — fluorite-brand-content в колонке, правильный
       padding для #brand и нормальная ширина компонентов.
   ---------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
  #brand {
    padding: max(100px, calc(env(safe-area-inset-top, 0px) + 80px)) 5% 48px;
  }
  .fluorite-brand-content {
    gap: 32px;
  }
  .fluorite-portfolio-certificates {
    margin-top: clamp(48px, 5vh, 64px);
  }
}

/* ----------------------------------------------------------------
   42. PDF-VIEWER — на тач-устройствах делаем контролы всегда видимыми.
       Уже есть в main.css (hover: none), но safe-area bottom мало.
       Добавляем явный bottom для мобила чтобы не перекрывалось
       home indicator.
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-brand-image-wrapper {
    border-radius: 16px;
  }
  .fluorite-custom-pdf-viewer {
    aspect-ratio: auto;
    min-height: 50vh;
  }
}

/* ================================================================
   FLUORITE — Mobile Patch 7 (2026-05-19)
   Регресс: MATERIALS_MOBILE_TIGHT вернул overflow-wrap:normal для
   #materials .fluorite-info-block h1 (выше специфичность, идёт позже файла),
   отменив фикс Patch-2 #11. Длинное «ГЛАЗУРИРОВАННОЕ» (15 симв.)
   на ≤360px шире контейнера → обрезается (#materials main
   overflow:hidden). Точечно возвращаем безопасный перенос +
   уменьшаем кегль ТОЛЬКО на узких экранах. Десктоп и 375px+ — без изменений.
   ================================================================ */
/* MATERIALS_NARROW_WRAP_START — reversible 2026-05-19 */
@media (max-width: 360px) {
  #materials .fluorite-info-block h1 {
    font-size: clamp(28px, 8.4vw, 34px);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
/* MATERIALS_NARROW_WRAP_END */

/* ================================================================
   FLUORITE — Mobile Patch 8 (2026-05-19)
   Текст #materials лез ПОВЕРХ виджета мессенджеров и бургер-меню.
   Причина: header.php грузит mobile.css (139) ДО main.css (157),
   Patch-5 #21 (.fluorite-info-block{z-index:5}) и main.css ≤700px
   (.fluorite-info-block{z-index:10040}) имеют одну специфичность (0,1,0) —
   побеждает позже-загруженный main.css → текст с z 10040 был выше
   .fluorite-side-nav (9999), чата (10000) и меню (site-header 240).
   Фикс: те же значения, но селектор #materials… (специфичность
   1,1,0) — бьёт main.css независимо от порядка файлов.
   Иерархия: меню(240)/виджет(9999) > controls(100) > info-block(5).
   Только ≤767px; десктоп не затронут.
   ================================================================ */
/* MATERIALS_ZFIX_START — reversible 2026-05-19 */
@media (max-width: 767px) {
  #materials .fluorite-info-block        { z-index: 5; }
  #materials .fluorite-info-block .fluorite-cta   { z-index: 6; }
  #materials .fluorite-cta .fluorite-primary-btn  { z-index: 7; }
  #materials .fluorite-controls          { z-index: 100; }
}
/* MATERIALS_ZFIX_END */

/* ----------------------------------------------------------------
   FONT-SIZE AUDIT (mobile): поля ввода <16px заставляют iOS/Android
   зумить вьюпорт при фокусе и текст уезжает за экран. Минимум 16px.
   .fluorite-ref-search__input база 14px (site-header.css:175),
   .chat-input база 14px (milana_style.css:370).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  /* спец. .wrap .input (0,2,0) перебивает базовое site-header.css
     .fluorite-ref-search__input 14px, т.к. site-header.css грузится
     ПОСЛЕ mobile.css (header.php:139 vs :140) при равной спецификации */
  .fluorite-ref-search-wrap .fluorite-ref-search__input { font-size: 16px; }
  .milana-chat-widget .chat-input { font-size: 16px; }
}


/* ----------------------------------------------------------------
   Галерея товара на мобиле: навигация свайпом (стрелки скрыты) +
   подсказка «← свайп →» (CSS-only, keyframe hintFade выше).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-detail-stage__nav { display: none; }
}
.fluorite-gallery-swipe-hint { display: none; }
@media (max-width: 767px) and (hover: none) {
  .fluorite-gallery-swipe-hint {
    display: block;
    position: absolute;
    bottom: 14px; left: 50%; transform: translateX(-50%);
    z-index: 5;
    font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    opacity: 0;
    animation: hintFade 3s ease-out 1.2s forwards;
  }
}


/* ----------------------------------------------------------------
   Лайтбокс (полноэкранный просмотр) на мобиле: скрыть стрелки ‹ ›,
   навигация свайпом (attachSwipe уже навешан) + та же подсказка
   .fluorite-gallery-swipe-hint (стиль/keyframe hintFade выше).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .fluorite-product-lightbox__nav { display: none; }
}

/* End */


/* Start:/local/templates/fluorite_v1/assets/css/site-header.css?177971282517497*/
:root {
  --fluorite-header-top: calc(var(--fluorite-bx-panel-offset, 0px) + 20px);
}

.fluorite-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fluorite-staggered-menu-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 240;
  pointer-events: none;
}

.fluorite-staggered-menu-wrapper.fluorite-fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 240;
  overflow: hidden;
}

.fluorite-staggered-menu-header {
  position: absolute;
  top: var(--fluorite-header-top);
  left: 50%;
  transform: translateX(-50%);
  width: calc(99% - 20px);
  max-width: 1800px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 10px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  pointer-events: auto;
  z-index: 20;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.fluorite-staggered-menu-header > * {
  pointer-events: auto;
}

.fluorite-sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #000000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #ffffff !important;
  font-weight: 500;
  line-height: 1;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fluorite-sm-toggle:hover {
  transform: scale(1.05);
  background-color: #1a1a1a;
}

.fluorite-sm-toggle:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

.fluorite-sm-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.35s ease;
}

.fluorite-sm-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin-left: -7px;
  margin-top: -1px;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.35s ease;
}

.fluorite-sm-icon-line-v {
  transform: rotate(90deg);
}

body.fluorite-menu-open .fluorite-sm-icon {
  transform: rotate(225deg);
}

.fluorite-ref-search-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 258px;
  pointer-events: auto;
  --fluorite-search-marquee-font: "Consolas", "SFMono-Regular", "Liberation Mono", "Courier New", monospace;
}

.fluorite-ref-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 16px;
  background: #111111;
  border: 1px solid rgba(0, 0, 0, 0.88);
  border-radius: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.fluorite-ref-search::before {
  content: "Поиск товаров ...";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(100% - 58px);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  font-family: var(--fluorite-search-marquee-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
  animation: fluoriteSearchMarquee 7s linear infinite;
}

.fluorite-ref-search__input {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fluorite-ref-search__input::placeholder {
  color: transparent;
}

.fluorite-ref-search__input::-webkit-search-cancel-button {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.fluorite-ref-search:has(.fluorite-ref-search__input:focus)::before,
.fluorite-ref-search:has(.fluorite-ref-search__input:not(:placeholder-shown))::before {
  display: none;
}

.fluorite-ref-search__button > .fluorite-ref-search__marquee {
  display: none;
}

.fluorite-ref-search__marquee {
  position: absolute;
  left: 16px;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.fluorite-ref-search__marquee-track {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  font-family: var(--fluorite-search-marquee-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fluoriteSearchMarquee 9s linear infinite;
}

.fluorite-ref-search__input:focus ~ .fluorite-ref-search__marquee,
.fluorite-ref-search__input:not(:placeholder-shown) ~ .fluorite-ref-search__marquee {
  display: none;
}

@keyframes fluoriteSearchMarquee {
  0% {
    transform: translate(0, -50%);
  }
  100% {
    transform: translate(-320px, -50%);
  }
}

.fluorite-ref-search__button {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.fluorite-ref-search__button svg {
  width: 18px;
  height: 18px;
}

.fluorite-search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.fluorite-search-suggest__state {
  padding: 12px 14px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.fluorite-search-suggest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow: auto;
}

.fluorite-search-suggest__item + .fluorite-search-suggest__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fluorite-search-suggest__link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #111111;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.fluorite-search-suggest__link:hover,
.fluorite-search-suggest__link.fluorite-is-active {
  background: rgba(0, 0, 0, 0.05);
}

.fluorite-search-suggest__thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #111111;
}

.fluorite-search-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fluorite-search-suggest__meta {
  min-width: 0;
}

.fluorite-search-suggest__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fluorite-search-suggest__subtitle,
.fluorite-search-suggest__article {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fluorite-search-suggest__subtitle {
  color: rgba(0, 0, 0, 0.6);
}

.fluorite-search-suggest__article {
  color: rgba(0, 0, 0, 0.86);
}

.fluorite-ref-toplinks {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: auto;
  margin-right: 50px;
}

.fluorite-ref-toplinks a,
.fluorite-ref-actions a,
.fluorite-ref-cart {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fluorite-ref-toplinks a:hover,
.fluorite-ref-actions a:hover,
.fluorite-ref-cart:hover {
  opacity: 0.6;
}

.fluorite-ref-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #000;
}

.fluorite-ref-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fluorite-ref-action svg,
.fluorite-ref-cart svg {
  width: 22px;
  height: 22px;
}

.fluorite-ref-cart {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.fluorite-sm-item-container {
  display: flex;
  flex-direction: column;
}

.fluorite-sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
  line-height: 1;
  width: 100%;
}

.fluorite-staggered-menu-panel {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 6em 1.5em 2em 1.5em;
  overflow-y: auto;
  z-index: 10;
  pointer-events: auto;
  transform: translateX(-100%);
  transition: transform 0.32s ease;
}

.fluorite-sm-prelayers {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  pointer-events: none;
  z-index: 5;
}

.fluorite-sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.fluorite-sm-prelayer:first-child {
  background: rgba(255, 255, 255, 0.4);
}

.fluorite-sm-prelayer:last-child {
  background: rgba(255, 255, 255, 0);
}

.fluorite-sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fluorite-sm-panel-list,
.fluorite-sm-subpanel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.fluorite-sm-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fluorite-sm-panel-item {
  position: relative;
  color: #000;
  font-weight: 600;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1.4;
  letter-spacing: -1px;
  text-transform: uppercase;
  transition: color 0.25s;
  text-decoration: none;
  display: block;
  width: 100%;
}

.fluorite-sm-panel-itemLabel {
  display: flex !important;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  transform-origin: 50% 100%;
}

.fluorite-sm-panel-item:hover,
.fluorite-sm-subpanel-link:hover {
  color: #000000;
}

.fluorite-sm-subpanel {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 320px;
  width: 300px;
  height: 100%;
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  padding: 6em 1.5em 2em 1.5em;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03);
  pointer-events: none;
  border-left: 1px solid #eee;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

body.fluorite-menu-open .fluorite-sm-subpanel.fluorite-is-visible {
  pointer-events: auto;
}

.fluorite-sm-subpanel-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s;
}

/* ── 3rd level: material → light-type dropdown ─────────────────────── */
/* Single click on the material toggles its type list, double click
   navigates to the collections page section (handled in neo-header.js). */
.fluorite-sm-subpanel-link--has-types {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.fluorite-sm-subpanel-link__label {
  flex: 1;
}

.fluorite-sm-subpanel-plus {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: #000;
  transition: transform 0.35s ease;
  pointer-events: none;
}

/* The hidden attribute MUST win over the grid display below, otherwise
   the dropdown is permanently expanded. */
.fluorite-sm-subpanel-sublist[hidden] {
  display: none !important;
}

.fluorite-sm-subpanel-sublist {
  list-style: none;
  margin: 10px 0 2px;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 9px;
  animation: fluoriteSubListReveal 0.32s ease-out;
}

@keyframes fluoriteSubListReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fluorite-sm-subpanel-sublink {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.fluorite-sm-subpanel-sublink:hover {
  color: #000;
}

.fluorite-sm-subpanel-sublink__count {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: #9a9a9a;
  font-variant-numeric: tabular-nums;
}

.fluorite-sm-subpanel-catalog {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin: 16px 0 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.72);
  background: #000;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.fluorite-sm-subpanel-catalog:hover {
  transform: translateY(-1px);
  background: transparent;
  color: #000;
}

.fluorite-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

body.fluorite-menu-open .fluorite-sm-prelayer,
body.fluorite-menu-open .fluorite-staggered-menu-panel {
  transform: translateX(0);
}

body.fluorite-menu-open .fluorite-sm-subpanel.fluorite-is-visible {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 1200px) {
  .fluorite-ref-toplinks {
    display: none;
  }
}

@media (max-width: 767px) {
  .fluorite-ref-actions {
    display: flex;
    gap: 12px;
  }

  .fluorite-ref-action span,
  .fluorite-ref-cart span {
    display: none;
  }
}

@media (max-width: 640px) {
  .fluorite-staggered-menu-panel,
  .fluorite-sm-prelayers {
    width: 54vw;
  }

  .fluorite-sm-subpanel {
    left: 54vw;
    width: 46vw;
    padding: 6em 1rem 1.5em 1rem;
  }

  .fluorite-sm-panel-item {
    font-size: 1.28rem;
  }

  .fluorite-sm-subpanel-link {
    font-size: 0.95rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .fluorite-ref-search-wrap {
    width: 210px;
  }
}

.fluorite-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10050;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.fluorite-cookie-banner__inner {
  position: relative;
  z-index: 10051;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 22px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.fluorite-cookie-banner__text {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.55;
}

.fluorite-cookie-banner__actions {
  position: relative;
  z-index: 10052;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fluorite-cookie-banner__link {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fluorite-cookie-banner__button {
  position: relative;
  z-index: 10053;
  min-width: 128px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.fluorite-cookie-banner__button:hover,
.fluorite-cookie-banner__link:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .fluorite-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .fluorite-cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .fluorite-cookie-banner__actions {
    justify-content: space-between;
  }
}


/* Возврат на главную — фирменный логотип-SVG (вордмарк Fluorite).
   Десктоп: вязь в шапке у toggle. Мобайл: та же вязь по центру вверху панели меню.
   База + media-оверрайды в ОДНОМ файле (load-order safe). */
.fluorite-sm-home {
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.2s ease;
}
.fluorite-sm-home img { height: 26px; width: auto; display: block; }
.fluorite-sm-home:hover { opacity: 0.6; }
.fluorite-sm-home:focus-visible { outline: 2px solid #000000; outline-offset: 4px; }

.fluorite-sm-panel-home {
  display: none;
  text-align: center;
  text-decoration: none;
  line-height: 0;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.fluorite-sm-panel-home img {
  height: 40px;
  width: auto;
  display: inline-block;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
}
.fluorite-sm-panel-home:active img { transform: scale(0.9); opacity: 0.75; }

@media (max-width: 767px) {
  .fluorite-sm-home { display: none; }
  .fluorite-sm-panel-home { display: block; }
}
@media (max-width: 400px) {
  .fluorite-sm-panel-home img { height: 34px; }
}

/* End */


/* Start:/local/templates/fluorite_v1/assets/css/account.css?177971671942871*/
.fluorite-page *, .fluorite-neo-home-page * {
  box-sizing: border-box;
}

.fluorite-account-page {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: #000;
  color: #fff;
  font-family: "Manrope", sans-serif;
}

.fluorite-account-page--login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #000;
}

.fluorite-account-shell {
  width: 100%;
  max-width: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fluorite-account-login {
  width: min(100%, 420px);
}

.fluorite-account-login__wrapper {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fff;
  padding: 60px 48px;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fluorite-account-login__wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.fluorite-account-login__message {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: #ff9e9e;
}

.fluorite-account-login__form {
  display: grid;
  gap: 0;
}

.fluorite-account-login__title {
  margin: 0 0 32px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fluorite-account-login__field {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  margin: 30px 0;
}

.fluorite-account-login__field input,
.fluorite-account-login__captcha input {
  width: 100%;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  padding: 0 52px 0 20px;
  transition: all 0.3s ease;
}

.fluorite-account-login__field input::placeholder,
.fluorite-account-login__captcha input::placeholder {
  color: #fff;
}

.fluorite-account-login__field input:focus,
.fluorite-account-login__captcha input:focus {
  border-color: rgba(255, 255, 255, 0.46);
}

.fluorite-account-login__icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 20px;
  height: 20px;
  color: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

.fluorite-account-login__icon svg {
  width: 100%;
  height: 100%;
}

.fluorite-account-login__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: -15px 0 15px;
  font-family: "Nunito", sans-serif;
  font-size: 14.5px;
}

.fluorite-account-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fluorite-account-login__remember input {
  accent-color: #fff;
}

.fluorite-account-login__meta a,
.fluorite-account-login__register a {
  color: #fff;
  text-decoration: none;
}

.fluorite-account-login__meta a:hover,
.fluorite-account-login__register a:hover {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.fluorite-account-login__meta a,
.fluorite-account-login__register p {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.fluorite-account-login__captcha {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.fluorite-account-login__captcha img {
  max-width: 100%;
  border-radius: 10px;
}

.fluorite-account-login__submit {
  width: 100%;
  height: 54px;
  border: 0;
  outline: none;
  border-radius: 12px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.fluorite-account-login__submit:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.fluorite-account-login__register {
  margin: 20px 0 15px;
  font-family: "Nunito", sans-serif;
  font-size: 14.5px;
  text-align: center;
}

.fluorite-account-login__register a {
  font-weight: 600;
}

.fluorite-account-card {
  width: min(100%, 540px);
  padding: 80px 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.fluorite-account-card__eyebrow {
  margin-bottom: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.fluorite-account-card__title {
  margin: 0 0 24px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.fluorite-account-card__text {
  margin: 0 0 48px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.6;
}

.fluorite-account-form {
  display: grid;
  gap: 16px;
}

.fluorite-account-form__row {
  display: grid;
  gap: 8px;
}

.fluorite-account-form__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.fluorite-account-form__field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font: inherit;
}

.fluorite-account-card input[type="text"],
.fluorite-account-card input[type="password"],
.fluorite-account-card input[type="email"],
.fluorite-account-card select,
.fluorite-account-card textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font: inherit;
}

.fluorite-account-card textarea {
  min-height: 120px;
  padding: 14px 16px;
}

.fluorite-account-card input[type="submit"],
.fluorite-account-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #fff;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.fluorite-account-form__field:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}

.fluorite-account-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.fluorite-account-inline-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  width: 100%;
  margin-top: 24px;
}

.fluorite-account-inline-actions form {
  display: contents !important;
}

.fluorite-account-inline-actions .fluorite-account-btn {
  width: 100% !important;
  margin: 0 !important;
}

.fluorite-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.fluorite-account-btn:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.fluorite-account-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.fluorite-account-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.fluorite-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 20px;
}

.fluorite-account-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
}

.fluorite-account-links a:hover {
  color: #fff;
}

.fluorite-account-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  line-height: 1.6;
}

.fluorite-account-grid {
  display: grid;
  gap: 28px;
}

.fluorite-account-grid .sale-personal-section-wrapper,
.fluorite-account-grid .basket-items-list-wrapper,
.fluorite-account-grid .sale-order-list-container,
.fluorite-account-grid .sale-personal-profile-list-container {
  color: #fff;
}

.fluorite-account-grid a {
  color: #fff;
}

@media (max-width: 700px) {
  .fluorite-account-page {
    padding-top: 110px;
  }

  .fluorite-account-page--login {
    min-height: 100vh;
    padding: 0 16px;
  }

  .fluorite-account-login__wrapper {
    padding: 24px 20px;
  }

  .fluorite-account-login__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .fluorite-account-card {
    padding: 24px 20px;
  }

  .fluorite-account-form__actions,
  .fluorite-account-inline-actions {
    flex-direction: column;
  }

  .fluorite-account-btn {
    width: 100%;
  }
}

/* ── main.register custom template (fluorite) ──────────────────────── */
.fluorite-account-reg {
  text-align: left;
}

.fluorite-account-card .fluorite-account-form {
  margin-top: 8px;
}

.fluorite-account-form__field::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.fluorite-account-card select.fluorite-account-form__field option {
  color: #000;
}

.fluorite-account-card .fluorite-account-form__submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.fluorite-account-card .fluorite-account-form__submit:hover {
  opacity: 0.85;
}

.fluorite-account-form__captcha img {
  display: block;
  margin: 4px 0 10px;
  border-radius: 6px;
}

.fluorite-account-form__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.fluorite-account-message {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #ff9e9e;
}

/* ── Social login block (bitrix:socserv.auth.form .default) ────────── */
.fluorite-account-social {
  margin-top: 28px;
}

.fluorite-account-social__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fluorite-account-social__divider::before,
.fluorite-account-social__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.fluorite-account-social .bx-auth-title,
.fluorite-account-social .bx-auth-note,
.fluorite-account-social .bx-auth-line {
  display: none;
}

.fluorite-account-social .bx-auth-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fluorite-account-social .bx-auth-services > div {
  display: flex;
}

.fluorite-account-social .bx-auth-services a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fluorite-account-social .bx-auth-services a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.fluorite-account-social .bx-auth-services a b {
  font-weight: 500;
}

.fluorite-account-social .bx-auth-services i.bx-ss-icon {
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .fluorite-account-social .bx-auth-services {
    grid-template-columns: 1fr;
  }
}

/* ── Privacy-policy consent (registration) ─────────────────────────── */
.fluorite-account-form__consent {
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 4px;
  text-align: left;
  line-height: 1.5;
}

.fluorite-account-form__consent input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #fff;
  cursor: pointer;
}

.fluorite-account-form__consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fluorite-account-form__consent a:hover {
  opacity: 0.8;
}

/* ── Native bitrix:main.userconsent.request inside the form ────────── */
.fluorite-account-form__consent .main-user-consent-request {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0;
  text-align: left;
  line-height: 1.5;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.fluorite-account-form__consent .main-user-consent-request input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #fff;
  cursor: pointer;
}

.fluorite-account-form__consent .main-user-consent-request-announce a,
.fluorite-account-form__consent .main-user-consent-request-announce-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.fluorite-account-form__consent .main-user-consent-request-announce-required {
  color: #ff9e9e;
}

/* consent agreement popup — keep readable on the dark theme */
.main-user-consent-request-popup-cont {
  color: #1c1c1c;
}

/* ── Personal dashboard (sale.personal.section index) ──────────────── */
.fluorite-account-dash {
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 140px 24px 90px;
}

.fluorite-account-dash .fluorite-account-shell {
  display: block;
  width: min(1200px, 100%);
  max-width: none;
  margin: 0 auto;
}

.fluorite-account-dash__head {
  margin-bottom: 48px;
}

.fluorite-account-dash__eyebrow {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.fluorite-account-dash__title {
  margin: 0 0 14px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.fluorite-account-dash__subtitle {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.fluorite-account-dash .fluorite-account-grid {
  display: block;
}

.fluorite-account-dash .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 0;
}

.fluorite-account-dash [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

.fluorite-account-dash .sale-personal-section-index-block,
.fluorite-account-dash .sale-personal-section-index-block.bx-green {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease, background 0.3s ease;
}

.fluorite-account-dash .sale-personal-section-index-block:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.fluorite-account-dash .sale-personal-section-index-block-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-height: 190px;
  padding: 30px 28px;
  color: #fff;
  text-decoration: none;
}

.fluorite-account-dash .sale-personal-section-index-block-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.fluorite-account-dash .sale-personal-section-index-block-ico i.fa {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.fluorite-account-dash .sale-personal-section-index-block-name {
  margin: auto 0 0;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

@media (max-width: 700px) {
  .fluorite-account-dash {
    padding: 116px 16px 64px;
  }

  .fluorite-account-dash__head {
    margin-bottom: 32px;
  }

  .fluorite-account-dash .row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fluorite-account-dash .sale-personal-section-index-block-link {
    min-height: 150px;
    padding: 22px 18px;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .fluorite-account-dash .row {
    grid-template-columns: 1fr;
  }
}

/* ── Personal subpages: scope tile grid to actual index blocks ─────── */
.fluorite-account-dash .row {
  display: block;
  margin: 0;
}

.fluorite-account-dash .row:has(.sale-personal-section-index-block) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* ── Default bitrix auth form (sale.personal.section guest view) ────── */
.fluorite-account-dash .row:has(.bx-authform),
.fluorite-account-dash .row:has(.alert) {
  max-width: 460px;
  margin: 0 auto;
}

.fluorite-account-dash .alert {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

.fluorite-account-dash .alert-danger {
  border-color: rgba(255, 120, 120, 0.3);
  background: rgba(255, 80, 80, 0.12);
  color: #ff9e9e;
}

.fluorite-account-dash .bx-authform {
  position: relative;
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  color: #fff;
}

.fluorite-account-dash .bx-title {
  margin: 0 0 28px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

/* legacy OpenID / socserv clutter — hide entirely */
.fluorite-account-dash .bx-authform-social,
.fluorite-account-dash .bx-authform hr.bxe-light {
  display: none !important;
}

.fluorite-account-dash .bx-authform-formgroup-container {
  margin: 0 0 18px;
}

.fluorite-account-dash .bx-authform-label-container {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.fluorite-account-dash .bx-authform-input-container input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease;
}

.fluorite-account-dash .bx-authform-input-container input:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.fluorite-account-dash .checkbox label,
.fluorite-account-dash .bx-filter-param-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.fluorite-account-dash .checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #fff;
}

.fluorite-account-dash .bx-authform .btn,
.fluorite-account-dash .bx-authform input[type="submit"] {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.fluorite-account-dash .bx-authform .btn:hover,
.fluorite-account-dash .bx-authform input[type="submit"]:hover {
  background: #e9e9e9;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.fluorite-account-dash .bx-authform-link-container {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.fluorite-account-dash .bx-authform-link-container a {
  color: #fff;
  text-decoration: none;
}

.fluorite-account-dash .bx-authform-link-container a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Authorized state: bootstrap_v4 lists / tables / forms ─────────── */
.fluorite-account-dash .sale-personal-section-wrapper,
.fluorite-account-dash .sale-paysystem-wrapper,
.fluorite-account-dash .sale-personal-profile-list-container,
.fluorite-account-dash .sale-order-list-container,
.fluorite-account-dash .sale-personal-account {
  color: rgba(255, 255, 255, 0.85);
}

.fluorite-account-dash table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}

.fluorite-account-dash table th,
.fluorite-account-dash table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
}

.fluorite-account-dash table th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.fluorite-account-dash table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.fluorite-account-dash .btn,
.fluorite-account-dash button[type="submit"],
.fluorite-account-dash input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
}

.fluorite-account-dash .btn-secondary,
.fluorite-account-dash .btn-default {
  background: transparent;
  color: #fff;
}

.fluorite-account-dash a {
  color: #fff;
}

@media (max-width: 700px) {
  .fluorite-account-dash .bx-authform {
    padding: 32px 22px;
  }

  .fluorite-account-dash .row:has(.bx-authform),
  .fluorite-account-dash .row:has(.alert) {
    max-width: none;
  }
}

/* ── Personal dashboard tiles (custom sale.personal.section/fluorite) ─ */
.fluorite-account-dash .fluorite-acc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}

.fluorite-acc-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-height: 196px;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s ease, background 0.3s ease;
}

.fluorite-acc-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 100%);
  color: #fff;
}

.fluorite-acc-tile__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.fluorite-acc-tile__ico svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.fluorite-acc-tile__name {
  margin-top: auto;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

@media (max-width: 700px) {
  .fluorite-account-dash .fluorite-acc-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fluorite-acc-tile {
    min-height: 152px;
    padding: 22px 18px;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .fluorite-account-dash .fluorite-acc-tiles {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Fluorite skin for nested Bitrix sale components (bootstrap_v4 markup)
   Scoped under .fluorite-account-dash — payment/order logic untouched.
   ════════════════════════════════════════════════════════════════════ */

/* ── bootstrap grid / spacing emulation (bootstrap CSS not loaded) ──── */
.fluorite-account-dash .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.fluorite-account-dash .row.align-items-center { align-items: center; }
.fluorite-account-dash [class^="col"],
.fluorite-account-dash [class*=" col"] {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}
.fluorite-account-dash .col-auto,
.fluorite-account-dash .col-sm-auto,
.fluorite-account-dash .col-md-auto { flex: 0 0 auto; }
.fluorite-account-dash .col-12 { flex: 0 0 100%; }
.fluorite-account-dash .col-6  { flex: 0 0 50%; }

.fluorite-account-dash .mb-1 { margin-bottom: 6px; }
.fluorite-account-dash .mb-2 { margin-bottom: 12px; }
.fluorite-account-dash .mb-3 { margin-bottom: 20px; }
.fluorite-account-dash .mb-5 { margin-bottom: 40px; }
.fluorite-account-dash .mt-1 { margin-top: 6px; }
.fluorite-account-dash .mt-3 { margin-top: 20px; }
.fluorite-account-dash .pt-3 { padding-top: 16px; }
.fluorite-account-dash .mr-4 { margin-right: 24px; }
.fluorite-account-dash .mx-0 { margin-left: 0; margin-right: 0; }

/* ── typography inside cabinet ─────────────────────────────────────── */
.fluorite-account-dash h2 {
  margin: 0 0 18px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.fluorite-account-dash h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* empty-state single heading (profiles / subscribe) */
.fluorite-account-dash .fluorite-account-grid > h3:only-child,
.fluorite-account-dash .fluorite-account-grid > p:only-child {
  margin: 40px 0;
  padding: 48px 28px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.fluorite-account-dash a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.fluorite-account-dash a:hover { border-color: #fff; }
.fluorite-account-dash a.btn,
.fluorite-account-dash a.sale-order-list-change-payment,
.fluorite-account-dash .fluorite-acc-tile { border-bottom: 0; }

.fluorite-account-dash hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

/* font-awesome not loaded — neutralize leftover decorative glyph boxes */
.fluorite-account-dash i.fa {
  font-style: normal;
  font-size: 0;
}
.fluorite-account-dash i.fa::before { font-size: 13px; }

/* ── buttons ───────────────────────────────────────────────────────── */
.fluorite-account-dash .btn,
.fluorite-account-dash .btn-primary,
.fluorite-account-dash button[type="submit"],
.fluorite-account-dash input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.fluorite-account-dash .btn:hover,
.fluorite-account-dash .btn-primary:hover,
.fluorite-account-dash button[type="submit"]:hover,
.fluorite-account-dash input[type="submit"]:hover {
  background: #ececec;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  color: #000;
}
.fluorite-account-dash .btn-default,
.fluorite-account-dash .btn-secondary,
.fluorite-account-dash .btn-link {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.fluorite-account-dash .btn-default:hover,
.fluorite-account-dash .btn-secondary:hover,
.fluorite-account-dash .btn-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ── forms (main.profile, accountpay, generic) ─────────────────────── */
.fluorite-account-dash .form-group.row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 10px 20px;
  align-items: center;
  margin: 0 0 16px;
}
.fluorite-account-dash .col-form-label,
.fluorite-account-dash .main-profile-form-label,
.fluorite-account-dash label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}
.fluorite-account-dash .form-control,
.fluorite-account-dash input[type="text"],
.fluorite-account-dash input[type="password"],
.fluorite-account-dash input[type="email"],
.fluorite-account-dash input[type="tel"],
.fluorite-account-dash input[type="number"],
.fluorite-account-dash select,
.fluorite-account-dash textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease;
}
.fluorite-account-dash textarea { min-height: 110px; padding: 12px 16px; }
.fluorite-account-dash .form-control:focus,
.fluorite-account-dash input:focus,
.fluorite-account-dash select:focus,
.fluorite-account-dash textarea:focus { border-color: rgba(255, 255, 255, 0.45); }
.fluorite-account-dash select option { color: #000; }
.fluorite-account-dash input[type="checkbox"],
.fluorite-account-dash input[type="radio"] {
  width: 16px; height: 16px; min-height: 0; accent-color: #fff;
}

.fluorite-account-dash .input-group { display: flex; align-items: stretch; }
.fluorite-account-dash .input-group .form-control { border-radius: 10px 0 0 10px; }
.fluorite-account-dash .input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.fluorite-account-dash .text-right { text-align: right; }

.fluorite-account-dash .errortext,
.fluorite-account-dash font.errortext {
  display: inline-block;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 120, 120, 0.3);
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.12);
  color: #ff9e9e;
  font-size: 13px;
}

/* ── order list (sale.personal.order.list) ─────────────────────────── */
.fluorite-account-dash .sale-order-list-title-container,
.fluorite-account-dash .sale-order-list-inner-container {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.fluorite-account-dash .sale-order-list-title-container {
  padding: 18px 24px;
  margin: 0 0 4px;
}
.fluorite-account-dash .sale-order-list-title-container h3 {
  margin: 0;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fluorite-account-dash .sale-order-list-inner-container { padding: 22px 24px; }
.fluorite-account-dash .sale-order-list-inner-title-line-item {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.fluorite-account-dash .sale-order-list-inner-title-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fluorite-account-dash .sale-order-list-payment-title,
.fluorite-account-dash .sale-order-list-payment-price { color: rgba(255, 255, 255, 0.85); }
.fluorite-account-dash .sale-order-list-payment-element,
.fluorite-account-dash .sale-order-list-payment-title-element { color: rgba(255, 255, 255, 0.55); }
.fluorite-account-dash .sale-order-list-payment-number { font-weight: 600; color: #fff; }
.fluorite-account-dash .sale-order-list-status-alert {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 80, 80, 0.16);
  border: 1px solid rgba(255, 120, 120, 0.3);
  color: #ff9e9e;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.fluorite-account-dash .sale-order-list-button-container { display: flex; align-items: center; }
.fluorite-account-dash .sale-order-list-change-payment,
.fluorite-account-dash .sale-order-list-cancel-payment {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}
.fluorite-account-dash .sale-order-list-change-payment:hover,
.fluorite-account-dash .sale-order-list-cancel-payment:hover { color: #fff; }

/* ── account top-up (sale.personal.account / accountpay) ───────────── */
.fluorite-account-dash .sale-personal-section-account-sub-header {
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fluorite-account-dash .sale-accountpay-fixedpay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.fluorite-account-dash .sale-accountpay-fixedpay-item {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.fluorite-account-dash .sale-accountpay-fixedpay-item:hover,
.fluorite-account-dash .sale-accountpay-fixedpay-item.bx-selected {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.fluorite-account-dash .sale-accountpay-pp {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fluorite-account-dash .sale-accountpay-pp-company {
  flex: 0 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.fluorite-account-dash .sale-accountpay-pp-company.bx-selected {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
}
.fluorite-account-dash .sale-accountpay-pp-company-image {
  width: 95px;
  height: 55px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ── profile (main.profile) ────────────────────────────────────────── */
.fluorite-account-dash .bx_profile,
.fluorite-account-dash .main-profile-block-shown {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 32px 30px;
}
.fluorite-account-dash .main-profile-block-date-info {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.fluorite-account-dash .main-profile-block-date-info strong { color: rgba(255, 255, 255, 0.75); font-weight: 500; }

@media (max-width: 700px) {
  .fluorite-account-dash .row { gap: 4px 0; }
  .fluorite-account-dash .form-group.row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .fluorite-account-dash .bx_profile,
  .fluorite-account-dash .sale-order-list-inner-container { padding: 20px 16px; }
}

/* ── Account top-up: payment-method picker (override raw skin) ──────── */
.fluorite-account-dash .sale-accountpay-pp {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.fluorite-account-dash .sale-accountpay-pp-company {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  max-width: 168px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.fluorite-account-dash .sale-accountpay-pp-company:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.fluorite-account-dash .sale-accountpay-pp-company.bx-selected,
.fluorite-account-dash .sale-accountpay-pp-company:has(.sale-accountpay-pp-company-checkbox:checked) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px #fff inset;
}

/* selected check badge */
.fluorite-account-dash .sale-accountpay-pp-company.bx-selected::after,
.fluorite-account-dash .sale-accountpay-pp-company:has(.sale-accountpay-pp-company-checkbox:checked)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* native checkbox hidden but kept in DOM (Bitrix JS toggles it) */
.fluorite-account-dash .sale-accountpay-pp-company-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.fluorite-account-dash .sale-accountpay-pp-company-graf-container {
  display: block;
}

/* logo on a light plate so brand colours read on the dark theme */
.fluorite-account-dash .sale-accountpay-pp-company-image {
  width: 100%;
  height: 56px;
  margin: 0 0 12px;
  border-radius: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 76% auto;
  filter: none;
}

.fluorite-account-dash .sale-accountpay-pp-company-smalltitle {
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

.fluorite-account-dash .sale-accountpay-pp-company.bx-selected .sale-accountpay-pp-company-smalltitle,
.fluorite-account-dash .sale-accountpay-pp-company:has(.sale-accountpay-pp-company-checkbox:checked) .sale-accountpay-pp-company-smalltitle {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 700px) {
  .fluorite-account-dash .sale-accountpay-pp-company {
    width: calc(50% - 7px);
    max-width: none;
  }
}

/* ── Order history: accomplished / canceled orders (Fluorite skin) ───
   Stock sale.personal.order.list/bootstrap_v4 style.css gives the
   accomplished title container #f2f2f2/#d6d6d6 — override to dark glass
   so the order title (white) is readable. Scoped 2 classes > stock. */
.fluorite-account-dash .sale-order-list-accomplished-title-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 4px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.fluorite-account-dash .sale-order-list-accomplished-title-container h3 {
  margin: 0;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.fluorite-account-dash .sale-order-list-accomplished-date,
.fluorite-account-dash .sale-order-list-accomplished-date-number {
  color: rgba(255, 255, 255, 0.55);
}

.fluorite-account-dash .sale-order-list-accomplished-date.canceled-order {
  color: #ff9e9e;
}

.fluorite-account-dash .sale-order-title {
  margin: 0 0 18px;
  font-family: var(--fluorite-font-editorial, "Oswald", sans-serif);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

/* stock light 1px separator -> subtle dark divider */
.fluorite-account-dash .sale-order-list-top-border {
  background: rgba(255, 255, 255, 0.1);
}

.fluorite-account-dash .sale-order-list-about-link,
.fluorite-account-dash .sale-order-list-cancel-link {
  color: #fff;
}


/* ЛК /personal/private/: блок соц-привязок (Bitrix .soc-serv-title) распирал мобайл */
@media (max-width: 767px) {
  .soc-serv-title,
  .bx-auth-serv-icons {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
    white-space: normal;
  }
}

/* End */


/* Start:/local/templates/fluorite_v1/assets/css/main.css?177989673775433*/
:root {
  --fluorite-accent: #FFFFFF;
  --fluorite-bg-dark: #070707;
  --fluorite-text-main: #FFFFFF;
  --fluorite-text-dim: #FFFFFFaa;
  --fluorite-font-editorial: "Manrope", sans-serif;
  --fluorite-font-body: "Manrope", sans-serif;

  /* Type scale — Manrope, base 16px, ratio major-third (1.25) */
  --fluorite-fs-eyebrow: 0.6875rem;   /* 11px — uppercase micro labels */
  --fluorite-fs-caption: 0.75rem;     /* 12px — meta, counter */
  --fluorite-fs-sm: 0.875rem;         /* 14px — secondary UI */
  --fluorite-fs-base: 1rem;           /* 16px — body */
  --fluorite-fs-md: 1.125rem;         /* 18px — large body / intro */
  --fluorite-fs-lg: 1.25rem;          /* 20px — subheads */
  --fluorite-fs-xl: 1.5rem;           /* 24px — section titles */
  --fluorite-fs-2xl: 1.875rem;        /* 30px — card / price */
  --fluorite-fs-3xl: 2.5rem;          /* 40px — page titles */
  --fluorite-fs-display: clamp(2.25rem, 4.5vw, 4.5rem); /* 36-72px — hero */

  /* Weights */
  --fluorite-fw-regular: 400;
  --fluorite-fw-medium: 500;
  --fluorite-fw-semibold: 600;
  --fluorite-fw-bold: 700;

  /* Letter-spacing */
  --fluorite-ls-eyebrow: 0.18em;
  --fluorite-ls-caption: 0.12em;
  --fluorite-ls-tight: -0.02em;
  --fluorite-ls-display: -0.03em;

  /* Line-heights */
  --fluorite-lh-display: 1.02;
  --fluorite-lh-heading: 1.15;
  --fluorite-lh-body: 1.6;
}

body.fluorite-page {
  margin: 0;
  padding: 0;
  background-color: var(--fluorite-bg-dark);
  color: var(--fluorite-text-main);
  font-family: var(--fluorite-font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Background Slider Area (Thematic Spaces) */
.fluorite-background-slider {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.fluorite-bg-slide {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.5) contrast(1.1); /* Меньше размытия, чтобы видеть пространство */
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
}

.fluorite-bg-slide.active {
  opacity: 1;
}

body.fluorite-dark-background-section .fluorite-background-slider {
  opacity: 0;
  transition-duration: 0.12s;
}

/* Слой для дополнительной глубины (легкий градиент поверх фона) */
.fluorite-background-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Background Text Layer */
.fluorite-bg-text-wrapper {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.fluorite-dark-background-section .fluorite-bg-text-wrapper {
  opacity: 0;
}

.fluorite-bg-text {
  position: absolute;
  font-family: var(--fluorite-font-editorial);
  /* было clamp(8rem, 20vw, 18rem) — длинные слова («ГЛАЗУРИРОВАННОЕ»)
     вылезали за viewport на широких экранах. Опустил потолок. */
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.04;
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translate(0, 30px);
  max-width: 100%;
}

#bg-text-next {
  opacity: 0;
}

/* Navigation */
.fluorite-fluorite-neo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 48px;
  mix-blend-mode: normal;
  color: #fff;
}

.fluorite-neo-desktop-nav {
  display: block;
  flex: 1 1 auto;
}

.fluorite-neo-logo-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
}

.fluorite-logo-area .logo {
  height: 56px;
  width: auto;
  display: block;
}

.fluorite-neo-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.fluorite-neo-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.fluorite-neo-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.24);
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.fluorite-neo-header-action:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.fluorite-neo-header-action__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fluorite-neo-header-action__icon svg {
  width: 100%;
  height: 100%;
}

.fluorite-neo-header-action__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: normal;
}

.fluorite-neo-menu .menu-item {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

.fluorite-neo-menu .menu-item,
.fluorite-neo-menu .menu-item:visited,
.fluorite-neo-menu .menu-item:active,
.fluorite-neo-menu .menu-item.active,
.fluorite-neo-menu .menu-item .menu-item-label {
  color: #fff !important;
}

.fluorite-neo-menu .menu-item-label,
.fluorite-neo-menu .menu-item-shadow {
  display: block;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.fluorite-neo-menu .menu-item-shadow {
  display: none;
}

.fluorite-neo-menu .menu-item:hover,
.fluorite-neo-menu .menu-item.active {
  opacity: 1;
}

.fluorite-neo-menu .menu-item:hover .menu-item-label {
  transform: translateY(-100%);
}


.fluorite-neo-mobile-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.fluorite-neo-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fluorite-neo-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.fluorite-neo-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.fluorite-neo-mobile-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.fluorite-neo-mobile-link--action {
  font-size: 18px;
  letter-spacing: 0.16em;
  opacity: 0.82;
}

.fluorite-neo-mobile-link {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.fluorite-page,
.fluorite-page * {
  cursor: default !important;
}

body.fluorite-neo-mobile-open .fluorite-neo-mobile-overlay {
  opacity: 1;
  visibility: visible;
}

body.fluorite-neo-mobile-open .fluorite-neo-mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.fluorite-neo-mobile-open .fluorite-neo-mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.fluorite-neo-mobile-open .fluorite-neo-mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections Container */
#sections-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.fluorite-side-section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.fluorite-side-section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Main Content (Slider) */
#materials main {
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 130px 10% 0;
  box-sizing: border-box;
}

.fluorite-slider-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1500px;
}

.fluorite-card-wrapper {
  flex: 0 0 500px;
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

.card {
  width: 420px;
  height: 580px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 60px 120px rgba(0,0,0,0.9), 0 0 30px rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.fluorite-info-block {
  flex: 1;
  /* было 100px — слишком большой отступ от изображения, текст уезжал вправо */
  padding-left: clamp(32px, 4vw, 72px);
  z-index: 10;
}

.fluorite-info-block .category {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--fluorite-accent);
  margin-bottom: 15px;
  font-weight: 600;
}

.fluorite-info-block h1 {
  font-family: var(--fluorite-font-editorial);
  /* Capped so the longest word («ГЛАЗУРИРОВАННОЕ», 15 chars) fits on one
     line in the right column — title wraps to 2 lines, never 3. */
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.02;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  /* Wrap on whitespace only — no in-word breaks or hyphens. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  max-width: 100%;
}

.fluorite-info-block p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--fluorite-text-dim);
  max-width: 550px;
  font-weight: 300;
}

.fluorite-info-block .fluorite-cta {
  margin-top: 60px;
}

.fluorite-primary-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 20px 50px;
  border-radius: 4px; /* Более строгие формы */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fluorite-primary-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Controls */
.fluorite-controls {
  position: fixed;
  bottom: 60px;
  left: 80px;
  right: 80px;
  display: flex;
  align-items: center;
  z-index: 10030;
}

/* Открытое меню должно быть ПОВЕРХ контролов карусели #materials:
   контролы fixed z-index 10030 / CTA 10040 иначе проступают сквозь меню (240). */
body.fluorite-menu-open .fluorite-controls,
body.fluorite-menu-open .fluorite-cta {
  z-index: 1;
}

.fluorite-cta {
  position: relative;
  z-index: 10040;
}

.fluorite-nav-btn {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.fluorite-nav-btn:hover {
  border-color: var(--fluorite-accent);
  background: rgba(255, 255, 255, 0.05);
}

.fluorite-nav-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--fluorite-text-dim);
}

.fluorite-nav-btn:hover svg {
  stroke: var(--fluorite-accent);
}

.fluorite-nav-btn.next { margin-left: -1px; } /* Соединение кнопок */

.fluorite-progress-bar {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 60px;
  position: relative;
}

.fluorite-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--fluorite-accent);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.fluorite-counter {
  font-family: var(--fluorite-font-editorial);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--fluorite-text-dim);
}

.fluorite-counter span#current-index {
  color: #fff;
  font-weight: 700;
}

/* Brand Section Styles */
.fluorite-brand-content {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 0;
}

/* Текстовая колонка раздела «О бренде» — выравнивание по центру */
.fluorite-brand-text-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* «ФИЛОСОФИЯ» внутри #brand становится главным заголовком —
   масштаб как у заголовка «СЕРТИФИКАТЫ И ПОДТВЕРЖДЕНИЯ». */
.fluorite-brand-text-content .fluorite-section-tag {
  font-family: var(--fluorite-font-editorial);
  font-size: clamp(28px, 3.2vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
  font-weight: 400;
}

/* Старый дублирующий h2 «ПРИРОДА В КАЖДОЙ ДЕТАЛИ» убираем —
   ФИЛОСОФИЯ теперь сама работает как заголовок раздела. */
.fluorite-brand-text-content h2.fluorite-reveal-text { display: none; }

/* Описание под PDF-блоком — центрируется заголовком, и сами цифры тоже */
.fluorite-brand-text-content .fluorite-brand-desc { margin-left: auto; margin-right: auto; }
.fluorite-brand-text-content .fluorite-brand-stats { justify-content: center; }

#brand {
  padding: 120px 5% 60px;
  overflow-y: auto;
  display: block;
}

.fluorite-brand-image-wrapper {
  flex: 1.6;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.fluorite-brand-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
}

.fluorite-brand-text-content {
  flex: 1;
}

.fluorite-section-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fluorite-accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.fluorite-brand-text-content h2 {
  font-family: var(--fluorite-font-editorial);
  /* clamp вместо фикса 55px — тянется на больших экранах,
     не лезет за блок на узких */
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 18ch;
}

.fluorite-brand-desc {
  /* было 15px — слишком мелко для основного текста под заголовком бренда */
  font-size: 17px;
  line-height: 1.65;
  color: var(--fluorite-text-dim);
  margin-bottom: 40px;
  max-width: 540px;
}

.fluorite-brand-stats {
  display: flex;
  gap: clamp(32px, 4vw, 60px);
}

.fluorite-stat-num {
  display: block;
  font-family: var(--fluorite-font-editorial);
  /* было 36px — мелковато для hero-статистики; растим под крупнее */
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.fluorite-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
}

/* Contacts Section Styles */
.fluorite-contacts-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.fluorite-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 80%;
  max-width: 1200px;
  z-index: 10;
}

.fluorite-contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  padding: 60px 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fluorite-contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.fluorite-contact-card h3 {
  font-size: 12px;
  letter-spacing: 4px;
  margin-bottom: 30px;
  opacity: 0.5;
}

.fluorite-contact-link {
  display: block;
  font-family: var(--fluorite-font-editorial);
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.fluorite-contact-link:hover {
  color: var(--fluorite-accent);
}

.fluorite-social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fluorite-social-links a {
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.fluorite-social-links a:hover {
  opacity: 1;
}

.fluorite-contacts-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.3;
}

.fluorite-contacts-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: none !important;
  background-color: #000;
  filter: blur(10px);
}

/* Animations Helper */
.fluorite-reveal-text, .fluorite-reveal-item {
  opacity: 0;
  transform: translateY(30px);
}

/* Portfolio Section Styles - Grid Layout */
#portfolio {
  padding: 120px 5% 60px;
  overflow-y: auto;
  display: block;
}

.fluorite-portfolio-header {
  margin-bottom: 60px;
  text-align: center;
}

.fluorite-portfolio-header .fluorite-section-tag {
  font-family: var(--fluorite-font-editorial);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-top: 18px;
  margin-bottom: 24px;
}

.fluorite-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.fluorite-project-card {
  position: relative;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.5s var(--fluorite-ease-out);
}

.fluorite-project-card:hover {
  transform: translateY(-10px);
}

.fluorite-project-image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.fluorite-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--fluorite-ease-out);
}

.fluorite-project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--fluorite-ease-out);
}

.fluorite-project-card-overlay span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 20px;
}

.fluorite-project-card:hover .fluorite-project-card-overlay {
  opacity: 1;
}

.fluorite-project-card:hover .fluorite-preview-img {
  transform: scale(1.05);
}

.fluorite-project-info {
  padding: 25px;
  text-align: left;
}

.fluorite-project-info h3 {
  font-family: var(--fluorite-font-editorial);
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.fluorite-project-info p {
  font-size: 13px;
  color: var(--fluorite-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fluorite-portfolio-authors {
  width: 100%;
  max-width: 1600px;
  margin: 88px auto 0;
  padding-top: 54px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.fluorite-portfolio-authors__intro {
  max-width: 1120px;
  margin: 0 auto 42px;
  text-align: center;
}

.fluorite-portfolio-authors__title {
  margin: 18px 0 0;
  font-family: var(--fluorite-font-editorial);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.fluorite-portfolio-authors__lead {
  margin: 18px 0 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.75;
}

.fluorite-portfolio-authors__layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 96px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  transform: translateX(40px);
}

.fluorite-portfolio-authors__gallery,
.fluorite-portfolio-authors__list {
  flex: 0 0 auto;
}

.fluorite-portfolio-authors__gallery {
  width: 520px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: flex-start;
}

.fluorite-portfolio-authors__list {
  width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-top: 8px;
}

.fluorite-portfolio-authors__column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fluorite-portfolio-authors__column--2 {
  margin-top: 72px;
}

.fluorite-portfolio-authors__column--3 {
  margin-top: 34px;
}

.fluorite-portfolio-authors__photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  outline: none;
}

.fluorite-portfolio-authors__column--1 .fluorite-portfolio-authors__photo-card {
  width: 156px;
  height: 168px;
}

.fluorite-portfolio-authors__column--2 .fluorite-portfolio-authors__photo-card {
  width: 174px;
  height: 186px;
}

.fluorite-portfolio-authors__column--3 .fluorite-portfolio-authors__photo-card {
  width: 162px;
  height: 174px;
}

.fluorite-portfolio-authors__photo-card:focus-visible,
.fluorite-portfolio-authors__row:focus-visible {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 0 0 6px rgba(255,255,255,0.08);
}

.fluorite-portfolio-authors__photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.78);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.fluorite-portfolio-authors__row {
  cursor: pointer;
  border-radius: 18px;
  padding: 8px 4px 8px 0;
  transition: opacity 0.28s ease;
  outline: none;
}

.fluorite-portfolio-authors__row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fluorite-portfolio-authors__row-marker {
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  transition: width 0.28s ease, background 0.28s ease;
}

.fluorite-portfolio-authors__row-name {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fluorite-portfolio-authors__socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fluorite-portfolio-authors__social-link {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fluorite-portfolio-authors__social-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.fluorite-portfolio-authors__social-link svg {
  width: 12px;
  height: 12px;
}

.fluorite-portfolio-authors__row-role {
  margin: 10px 0 0 29px;
  color: rgba(255,255,255,0.48);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
  line-height: 1.5;
}

.fluorite-portfolio-authors [data-team-member].fluorite-is-dimmed {
  opacity: 0.48;
}

.fluorite-portfolio-authors .fluorite-portfolio-authors__photo-card.fluorite-is-active {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.28);
}

.fluorite-portfolio-authors .fluorite-portfolio-authors__photo-card.fluorite-is-active .fluorite-portfolio-authors__photo-image {
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
}

.fluorite-portfolio-authors .fluorite-portfolio-authors__row.fluorite-is-active .fluorite-portfolio-authors__row-marker {
  width: 22px;
  background: #fff;
}

.fluorite-portfolio-authors .fluorite-portfolio-authors__row.fluorite-is-active .fluorite-portfolio-authors__socials {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.fluorite-portfolio-certificates {
  width: 100%;
  max-width: 1600px;
  margin: clamp(60px, 6vh, 80px) auto 0;
  padding: 58px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.fluorite-portfolio-certificates__intro {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
}

.fluorite-portfolio-certificates__title {
  margin: 16px 0 0;
  font-family: var(--fluorite-font-editorial);
  /* потолок снижен 62→52 — заголовок не доминирует над секцией */
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.fluorite-portfolio-certificates__lead {
  margin: 18px auto 0;
  max-width: 640px;
  color: rgba(255,255,255,0.7);
  /* было 15px — поднял до 17 для баланса с body-копией главной */
  font-size: 17px;
  line-height: 1.6;
}

.fluorite-portfolio-certificates__grid {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
  background: var(--fluorite-bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  overflow: clip;
}

.fluorite-cert-focus {
  --fluorite-bg: #080808;
  --fluorite-text-muted: #444;
  --fluorite-text-light: #e5e5e5;
  --fluorite-accent: #ffffff;
  timeline-scope: --fluorite-s1, --fluorite-s2, --fluorite-s3, --fluorite-s4, --fluorite-s5, --fluorite-s6;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  background: var(--fluorite-bg);
  color: var(--fluorite-text-light);
  -webkit-font-smoothing: antialiased;
}

.fluorite-portfolio-certificates__grid .fluorite-sticky-visual {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 50%;
  width: 50%;
  height: 100vh;
  display: grid;
  /* было place-items: center — карточка сертификата уезжала к середине,
     визуально опускалась ниже заголовка слева. Поднимаем её к верху
     блока с отступом ~12vh, чтобы шапка карточки совпадала с уровнем
     заголовка «Сертификат качества». */
  place-items: start center;
  padding-top: 12vh;
  z-index: 10;
  pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* fluorite-shape-container позиционирован absolute внутри fluorite-sticky-visual — нужно
   привязать его к верхнему padding, иначе он остаётся в центре. */
.fluorite-portfolio-certificates__grid .fluorite-shape-container {
  top: 12vh;
  bottom: auto;
}

.fluorite-portfolio-certificates__grid .fluorite-shape-container {
  position: absolute;
  width: min(70%, 440px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  opacity: 0;
  animation-name: shape-fade;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-range: cover 0% cover 100%;
}

.fluorite-portfolio-certificates__grid .fluorite-cert-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #101010;
}

.fluorite-portfolio-certificates__grid .fluorite-shape-1 { animation-timeline: --fluorite-s1; }
.fluorite-portfolio-certificates__grid .fluorite-shape-2 { animation-timeline: --fluorite-s2; }
.fluorite-portfolio-certificates__grid .fluorite-shape-3 { animation-timeline: --fluorite-s3; }
.fluorite-portfolio-certificates__grid .fluorite-shape-4 { animation-timeline: --fluorite-s4; }
.fluorite-portfolio-certificates__grid .fluorite-shape-5 { animation-timeline: --fluorite-s5; }
.fluorite-portfolio-certificates__grid .fluorite-shape-6 { animation-timeline: --fluorite-s6; }

.fluorite-portfolio-certificates__grid .content {
  width: 50%;
  padding-bottom: 6vh;
  position: relative;
  z-index: 20;
}

.fluorite-portfolio-certificates__grid .fluorite-scroll-section {
  /* было 55vh — текст оказывался в середине 55vh-блока, а sticky-картинка
     в середине 100vh viewport. Получался вертикальный сдвиг ~22vh.
     100vh выравнивает центр текста с центром картинки. */
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10vw;
  padding-right: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  view-timeline-axis: block;
}

.fluorite-portfolio-certificates__grid .s1 { view-timeline-name: --fluorite-s1; }
.fluorite-portfolio-certificates__grid .s2 { view-timeline-name: --fluorite-s2; }
.fluorite-portfolio-certificates__grid .s3 { view-timeline-name: --fluorite-s3; }
.fluorite-portfolio-certificates__grid .s4 { view-timeline-name: --fluorite-s4; }
.fluorite-portfolio-certificates__grid .s5 { view-timeline-name: --fluorite-s5; }
.fluorite-portfolio-certificates__grid .s6 { view-timeline-name: --fluorite-s6; }

.fluorite-portfolio-certificates__grid .fluorite-closing-section {
  height: 30vh;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding-left: 10vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4vh;
}

.fluorite-portfolio-certificates__grid .fluorite-certificate-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 1.4rem;
}

.fluorite-portfolio-certificates__grid .fluorite-focus-text {
  /* было 3.5rem (56px) — слишком крупно для подписи в узкой колонке;
     ставим плавный диапазон 28-44px */
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fluorite-text-muted);
  margin: 0;
  max-width: 500px;
  letter-spacing: -0.015em;
  animation: content-focus linear both;
  animation-timeline: view();
  animation-range: cover 0% cover 100%;
}

.fluorite-portfolio-certificates__grid .description {
  font-size: 1.1rem;
  color: #666;
  margin-top: 1.5rem;
  max-width: 420px;
  line-height: 1.7;
  font-weight: 300;
  border-left: 2px solid #ffffff;
  padding-left: 1.5rem;
  animation: content-focus linear both;
  animation-timeline: view();
  animation-range: cover 0% cover 100%;
}

.fluorite-portfolio-certificates__grid .closer {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--fluorite-text-muted);
}

.fluorite-portfolio-certificates__grid .closer strong {
  display: block;
  font-size: 2rem;
  color: var(--fluorite-text-light);
  margin-bottom: 1rem;
}

.fluorite-portfolio-certificates__grid .fluorite-circle-outline {
  width: 300px;
  height: 300px;
  border: 2px solid var(--fluorite-text-light);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
}

.fluorite-portfolio-certificates__grid .fluorite-stone-block {
  width: 250px;
  height: 350px;
  background: linear-gradient(135deg, #333, #111);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.fluorite-portfolio-certificates__grid .fluorite-stone-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.fluorite-portfolio-certificates__grid .fluorite-grid-lines {
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.fluorite-portfolio-certificates__grid .fluorite-grid-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fluorite-portfolio-certificates__grid .fluorite-grid-box:nth-child(1) {
  border-top: 0;
  border-left: 0;
}

.fluorite-portfolio-certificates__grid .fluorite-grid-box:nth-child(4) {
  border-bottom: 0;
  border-right: 0;
}

.fluorite-portfolio-certificates__grid .fluorite-balance {
  width: 300px;
  height: 300px;
  position: relative;
}

.fluorite-portfolio-certificates__grid .fluorite-b-circle {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  mix-blend-mode: exclusion;
}

.fluorite-portfolio-certificates__grid .fluorite-b-1 {
  background: #fff;
  top: 20%;
  left: 20%;
}

.fluorite-portfolio-certificates__grid .fluorite-b-2 {
  background: #666;
  bottom: 20%;
  right: 20%;
}

.fluorite-portfolio-certificates__grid .fluorite-light-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--fluorite-accent), transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
}

.fluorite-portfolio-certificates__grid .fluorite-end-line {
  width: 2px;
  height: 300px;
  background: var(--fluorite-text-light);
  position: relative;
}

.fluorite-portfolio-certificates__grid .fluorite-end-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 1px;
  background: var(--fluorite-text-light);
}

.fluorite-portfolio-certificates__grid .fluorite-desktop-progress {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffffff;
  transform-origin: top;
  transform: scaleY(0);
  animation: progress-grow linear;
  animation-timeline: scroll();
  z-index: 20;
}

.fluorite-portfolio-certificates__grid .fluorite-mobile-progress {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.fluorite-portfolio-certificates__grid .fluorite-mobile-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fluorite-portfolio-certificates__grid .progress-circle {
  fill: none;
  stroke: var(--fluorite-accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: circle-grow linear;
  animation-timeline: scroll();
}

.fluorite-portfolio-certificates__grid .fluorite-track-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

@keyframes shape-fade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  45%,
  55% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.1);
  }
}

@keyframes content-focus {
  0% {
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    border-color: transparent;
  }
  45%,
  55% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1) translateY(0);
    color: var(--fluorite-text-light);
    border-color: var(--fluorite-accent);
  }
  100% {
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.95) translateY(-40px);
    border-color: transparent;
  }
}

@keyframes progress-grow {
  to { transform: scaleY(1); }
}

@keyframes circle-grow {
  to { stroke-dashoffset: 0; }
}

/* Project Overlay - Expanded View */
.fluorite-project-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  padding: 120px 5% 60px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.project-overlay-open {
  overflow: hidden;
}

body.project-overlay-open #portfolio {
  overflow: hidden;
}

.fluorite-project-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fluorite-overlay-close {
  position: absolute;
  top: 120px;
  right: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

.fluorite-overlay-close:hover {
  background: #fff;
  color: #000;
}

.fluorite-overlay-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  gap: 80px;
}

.fluorite-overlay-image-wrapper {
  flex: 1.4;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.9);
  max-height: 75vh; /* Limit height to stay within viewport */
}

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

.fluorite-overlay-info {
  flex: 1;
  text-align: left;
}

.fluorite-overlay-title {
  font-family: var(--fluorite-font-editorial);
  font-size: 64px;
  margin: 20px 0 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.fluorite-overlay-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fluorite-text-dim);
}

/* Hotspots in Overlay */
.fluorite-hotspots-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

div[role="group"][aria-label="Hotspots"] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
}

div[role="group"][aria-label="Hotspots"] ul.hotspot-list {
  container-type: size;
  inset: 0;
  height: 100%;
  position: absolute;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

div[role="group"][aria-label="Hotspots"] ul.hotspot-list li {
  height: 0;
  position: relative;
}

@layer hotspots, motion, safety;

@layer safety {
  [data-usetriangle='true'] dialog::after {
    pointer-events: all;
  }
  product-hotspot [open] dialog {
    z-index: 10000;
  }
  product-hotspot dialog::after {
    content: '';
    position: absolute;
    background: repeating-linear-gradient(45deg, hsl(0 100% 50% / 0.2) 0 4px, hsl(0 100% 50%) 4px 5px), hsl(0 100% 50% / 0.3);
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.22s ease-out, translate 0.22s .1s ease-out;
    scale: var(--fluorite-scale-x, 1) var(--fluorite-scale-y, 1);
    z-index: -1;
  }
  [data-showtriangle='true'] dialog[open]::after {
    opacity: 1;
  }
  [data-usetriangle='true'][data-showtriangle='true'] dialog::after {
    background: repeating-linear-gradient(45deg, hsl(0 100% 50% / 0.2) 0 4px, hsl(140 80% 50%) 4px 5px), hsl(140 100% 50% / 0.4);
  }
  dialog[open]:has(div:hover)::after {
    transition: opacity 0s ease-out, translate 0s ease-out;
    background: repeating-linear-gradient(45deg, hsl(0 100% 50% / 0.2) 0 4px, hsl(0 100% 50%) 4px 5px);
    opacity: 0;
    translate: 0 100%;
    pointer-events: none;
  }
  [data-placement*='left'],[data-placement*='right'] {
    &::after {
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      width: calc(22px + var(--fluorite-hotspot-size) * 0.5);
    }
  }
  [data-placement*='right']::after {
    right: 100%;
    left: unset;
  }
  [data-placement*='left']::after {
    left: 100%;
    right: unset;
    --fluorite-scale-x: -1;
  }
  [data-placement*='top']::after {
    --fluorite-scale-y: -1;
  }
  [data-placement*='center']::after {
    height: calc(22px + var(--fluorite-hotspot-size) * 0.5);
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 50% calc(100% - var(--fluorite-hotspot-size) * 0.25));
    --fluorite-scale-x: 1;
    --fluorite-scale-y: 1;
  }
  [data-placement*='center'][data-placement*='bottom']::after {
    top: unset;
    bottom: 100%;
    --fluorite-scale-y: -1;
  }
  [data-placement*='center'][data-placement*='top']::after {
    top: 100%;
    bottom: unset;
  }
}

@layer motion {
  product-hotspot:has([open]) {
    z-index: 999999;
  }
  product-hotspot dialog {
    position: absolute;
    &[data-placement*='bottom'] {
      --fluorite-offset-y: 0px;
      --fluorite-origin-y: calc(var(--fluorite-hotspot-size) / 2);
      top: calc((44px - var(--fluorite-hotspot-size)) / 2);
      bottom: unset;
    }
    &[data-placement*='top'] {
      --fluorite-offset-y: 0px;
      --fluorite-origin-y: calc(100% - (var(--fluorite-hotspot-size) * 0.5));
      top: unset;
      bottom: calc((44px - var(--fluorite-hotspot-size)) * 0.5);
    }
    &[data-placement*='left'] {
      --fluorite-offset-x: calc((44px - var(--fluorite-hotspot-size)) * 0.5);
      --fluorite-origin-x: calc(100% - (var(--fluorite-hotspot-size) * 0.5));
      left: unset;
      right: 100%;
    }
    &[data-placement*='right'] {
      --fluorite-offset-x: calc((44px - var(--fluorite-hotspot-size)) * -0.5);
      --fluorite-origin-x: calc(var(--fluorite-hotspot-size) * 0.5);
      left: 100%;
      right: unset;
    }
    &[data-placement*='center'] {
      left: 50%;
      translate: -50% 0;
      right: unset;
    }
    &[data-placement*='center'][data-placement*='bottom'] {
      --fluorite-origin-y: calc(var(--fluorite-hotspot-size) * 0.5);
      --fluorite-origin-x: 50%;
      --fluorite-offset-y: calc((44px - var(--fluorite-hotspot-size)) * -0.5);
      --fluorite-offset-x: 0;
      top: 100%;
      bottom: unset;
      margin: 0;
    }
    &[data-placement*='center'][data-placement*='top'] {
      --fluorite-origin-y: calc(100% - (var(--fluorite-hotspot-size) * 0.5));
      --fluorite-origin-x: 50%;
      --fluorite-offset-y: calc((44px - var(--fluorite-hotspot-size)) * 0.5);
      --fluorite-offset-x: 0;
      bottom: 100%;
    }
  }

  product-hotspot button {
    z-index: 99999;
  }

  product-hotspot dialog {
    --fluorite-hotspot-blur: 4px;
    --fluorite-hotspot-scale: 0.8;
    --fluorite-hotspot-entry-duration: 0.5s;
    --fluorite-hotspot-exit-duration: 0.2s;

    &:is(:focus, :focus-visible) {
      outline: 1px solid rgba(255,255,255,0.2);
    }

    filter: blur(var(--fluorite-hotspot-blur));
    opacity: 0;
    transform: scale(var(--fluorite-hotspot-scale)) translate(0, 0);
    transition-property: display, opacity, filter, transform;
    transition-duration: var(--fluorite-hotspot-entry-duration);
    transition-timing-function: ease;
    
    &[data-showing='true'] {
      transition-behavior: allow-discrete;
    }
  }
  
  [data-details='true'] {
    product-hotspot dialog {
      transform: scale(var(--fluorite-hotspot-scale)) translate(var(--fluorite-offset-x), var(--fluorite-offset-y));
      transform-origin: var(--fluorite-origin-x) var(--fluorite-origin-y);
      transition-timing-function: cubic-bezier(0.65,-0.49, 0.35, 1.12);
      
      &[data-closing='true'] {
        transition-duration: var(--fluorite-hotspot-exit-duration);
        transition-timing-function: ease-out;
        transform: scale(1) translate(0, calc(var(--fluorite-hotspot-size) * 0.25));
      }
    }
  }
  product-hotspot dialog[open][data-showing='true'] {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    filter: blur(0px);
  }
  
  @starting-style {
    product-hotspot dialog[open][data-showing='true'] {
      opacity: 0;
      filter: blur(var(--fluorite-hotspot-blur));
      transform: scale(var(--fluorite-hotspot-scale)) translate(0, 0);
    }

    [data-details='true'] product-hotspot dialog[open][data-showing='true'] {
      transform: scale(var(--fluorite-hotspot-scale)) translate(var(--fluorite-offset-x), var(--fluorite-offset-y));
      transform-origin: var(--fluorite-origin-x) var(--fluorite-origin-y);
    }
  }
}

@layer hotspots {
  product-hotspot {
    --fluorite-hotspot-size: 24px;
    width: 44px;
    height: 44px;
    display: inline-block;
    position: absolute;
    left: calc(var(--fluorite-hotspot-x, 0) * 1cqi - 22px);
    top: calc(var(--fluorite-hotspot-y, 0) * 1cqb - 22px);

    [data-action="quick-add"] {
      position: absolute;
      inset: 0;
      display: none;

      @media (max-width: 750px) {
        display: grid;
      }
    }

    [data-action="open-hotspot"] {
      @media (max-width: 750px) {
        display: none;
      }
    }
    
    dialog {
      position: absolute;
      inset: unset;
      margin: 0;
      white-space: nowrap;
      padding: 0.25rem;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: #000;
      backdrop-filter: blur(25px);
      min-width: 260px;
      outline-width: 0;
      outline-color: #0000;
      color: #fff;

      @media (max-width: 750px) {
        display: none;
      }

      img {
        width: 120px;
        aspect-ratio: 1;
        border-radius: 8px;
        min-width: 120px;
        object-fit: contain;
      }

      & > div {
        display: grid;
        gap: 1rem;
        grid-template-columns: auto 1fr;
      }

      .product-info {
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        padding: 1rem 1rem 1rem 0;
        align-items: flex-start;
        justify-content: space-between;

        h2 {
          font-family: var(--fluorite-font-editorial);
          font-size: 1.2rem;
          font-weight: 400;
          margin: 0;
          letter-spacing: 1px;
        }

        span {
          font-size: .8rem;
          font-weight: 300;
          color: var(--fluorite-text-dim);
          text-transform: uppercase;
          letter-spacing: 1px;
        }

        s {
          opacity: 0.5;
          font-size: 1rem;
          font-weight: 300;
        }

        p,
        a {
          font-size: 1.1rem;
          font-weight: 500;
          margin: 0;
          color: inherit;
          text-decoration: none;
        }
      }
    }
    
    button[aria-label="Add to cart"] {
      position: absolute;
      bottom: 8px;
      right: 8px;
      aspect-ratio: 1;
      width: 32px;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
      border-radius: 6px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.1);
      color: #fff;

      &:is(:hover, :focus-visible) {
        background: #fff;
        color: #000;
        outline-color: #0000;
      }

      svg {
        width: 50%;
        opacity: 0.8;
      }
      &:is(:hover, :focus-visible) svg {
        opacity: 1;
      }
    }
    
    button[data-action="open-hotspot"] {
      width: 44px;
      aspect-ratio: 1;
      border-radius: 50%;
      border: 0;
      background: #0000;
      position: relative;
      cursor: pointer;
      outline-color: rgba(255,255,255,0.5);
      outline-offset: -8px;
      padding: 0;
      
      &::before, &::after {
        pointer-events: none;
      }
      
      &:is(:hover, :focus-visible) {
        &::after {
          scale: 1.15;
        }
      }
      
      &:has(+ [open])::after {
        scale: 1.5;
      }
      
      &::before {
        content: '';
        width: var(--fluorite-hotspot-size);
        aspect-ratio: 1;
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.5);
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
      }

      &::after {
        content: '';
        width: 30%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        transition: scale 0.12s ease-out;
      }
    }
  }
}

div.tp-dfwv {
  width: 260px;
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 999999999999 !important;
}

@media (max-width: 1200px) {
  .fluorite-overlay-content { flex-direction: column; gap: 40px; padding-top: 40px; }
  .fluorite-overlay-title { font-size: 40px; }
  .fluorite-portfolio-grid { grid-template-columns: 1fr; }
  .fluorite-portfolio-authors__layout { flex-direction: column; gap: 42px; }
  .fluorite-portfolio-authors__layout { transform: none; }
  .fluorite-portfolio-authors__gallery,
  .fluorite-portfolio-authors__list { width: 100%; }
  .fluorite-portfolio-authors__list { padding-top: 0; }
  .fluorite-portfolio-certificates__grid {
    border-radius: 24px;
  }
  .fluorite-portfolio-certificates__grid .fluorite-sticky-visual { width: 46%; }
  .fluorite-portfolio-certificates__grid .content { width: 54%; }
  .fluorite-portfolio-certificates__grid .fluorite-scroll-section,
  .fluorite-portfolio-certificates__grid .fluorite-closing-section { padding-left: 3rem; padding-right: 2.5rem; }
}

@media (max-width: 1200px) {
  .fluorite-portfolio-grid { grid-template-columns: 1fr; }
  .fluorite-brand-content { flex-direction: column; text-align: center; gap: 40px; }
  .fluorite-brand-image-wrapper { flex: none; width: 100%; max-width: 840px; margin: 0 auto; }
  .fluorite-brand-text-content { flex: none; width: 100%; }
  .fluorite-contacts-grid { grid-template-columns: 1fr; }
}

/* Mobile Adjustments */
@media (max-width: 1400px) {
  .fluorite-info-block h1 { font-size: 80px; }
  .card { width: 360px; height: 500px; }
}

@media (max-width: 1000px) {
    main { padding: 100px 40px; }
    .fluorite-slider-container { flex-direction: column; text-align: center; }
    .fluorite-info-block { padding-left: 0; margin-top: 60px; }
    .fluorite-info-block h1 { font-size: 60px; }
    .fluorite-card-wrapper { flex: none; width: 100%; }
    .fluorite-fluorite-neo-header { padding: 20px 32px; gap: 24px; align-items: flex-start; }
    .fluorite-neo-menu { gap: 18px; justify-content: flex-end; max-width: min(60vw, 520px); }
    .fluorite-neo-header-action__label { display: none; }
    .fluorite-neo-header-action { min-width: 44px; justify-content: center; padding: 0 12px; }
    .fluorite-logo-area .logo { height: 52px; }
    .fluorite-portfolio-authors__gallery {
      overflow-x: auto;
      padding-bottom: 10px;
      scrollbar-width: none;
    }
    .fluorite-portfolio-authors__gallery::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
    .fluorite-fluorite-neo-header { padding: 14px 18px; align-items: center; justify-content: space-between; gap: 14px; mix-blend-mode: normal; }
    .fluorite-neo-desktop-nav { display: none; }
    .fluorite-neo-header-actions { display: none; }
    .fluorite-neo-mobile-toggle { display: block; }
    .fluorite-logo-area .logo { height: 44px; display: block; }
    #sections-container { height: 100dvh; }
    #materials main { padding: 156px 18px 190px; height: auto; min-height: 100dvh; }
    .fluorite-controls {
      left: 18px;
      right: 18px;
      bottom: 18px;
      width: auto;
      z-index: 10020;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0;
      align-items: center;
    }
    .fluorite-nav-btn {
      width: 64px;
      height: 64px;
    }
    .fluorite-progress-bar {
      margin: 0 18px;
    }
    .fluorite-counter {
      font-size: 26px;
      letter-spacing: 2px;
    }
    .fluorite-info-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 42px;
      position: relative;
      z-index: 10040;
    }
    .fluorite-info-block .category {
      order: 1;
    }
    .fluorite-info-block h1 {
      order: 2;
      margin-bottom: 18px;
    }
    .fluorite-info-block .fluorite-cta {
      order: 3;
      margin-top: 0;
      margin-bottom: 18px;
      display: flex;
      justify-content: center;
      pointer-events: auto;
    }
    .fluorite-info-block p {
      order: 4;
      max-width: 100%;
      margin-top: 6px;
      margin-bottom: 0;
      transform: translateY(-8px);
    }
    .fluorite-cta .fluorite-primary-btn {
      min-width: 0;
      width: auto;
      padding: 14px 22px;
      font-size: 12px;
      letter-spacing: 0.22em;
      position: relative;
      z-index: 10041;
      pointer-events: auto;
    }
    .fluorite-info-block h1 { font-size: 43px; }
    .fluorite-info-block p { font-size: 14px; line-height: 1.45; }
    #portfolio { padding: 110px 18px 42px; }
    .fluorite-portfolio-authors { margin-top: 58px; padding-top: 36px; }
    .fluorite-portfolio-authors__title { line-height: 1.02; }
    .fluorite-portfolio-authors__lead { font-size: 14px; line-height: 1.7; }
    .fluorite-portfolio-authors__gallery { gap: 10px; }
    .fluorite-portfolio-authors__column { gap: 10px; }
    .fluorite-portfolio-authors__column--2 { margin-top: 48px; }
    .fluorite-portfolio-authors__column--3 { margin-top: 22px; }
    .fluorite-portfolio-authors__column--1 .fluorite-portfolio-authors__photo-card {
      width: 110px;
      height: 122px;
      border-radius: 16px;
    }
    .fluorite-portfolio-authors__column--2 .fluorite-portfolio-authors__photo-card {
      width: 124px;
      height: 136px;
      border-radius: 16px;
    }
    .fluorite-portfolio-authors__column--3 .fluorite-portfolio-authors__photo-card {
      width: 116px;
      height: 128px;
      border-radius: 16px;
    }
    .fluorite-portfolio-authors__list {
      gap: 14px;
      margin-top: 8px;
    }
    .fluorite-portfolio-authors__row-name { font-size: 18px; }
    .fluorite-portfolio-authors__row-role {
      font-size: 9px;
      letter-spacing: 0.2em;
      margin-left: 28px;
    }
    .fluorite-portfolio-certificates {
      margin-top: 74px;
      padding-top: 38px;
    }
    .fluorite-portfolio-certificates__intro { text-align: left; margin-bottom: 28px; }
    .fluorite-portfolio-certificates__lead {
      font-size: 14px;
      line-height: 1.7;
    }
    .fluorite-portfolio-certificates__grid {
      border-radius: 22px;
    }
    /* На мобильных fluorite-cert-focus раскладывается в колонку — иначе
       row-reverse + два 100% ребёнка выпихивают текстовую колонку
       за левый край экрана. Картинку-фон скрываем (на opacity 0.1
       она почти не видна, на мобиле занимает лишний экран). */
    .fluorite-cert-focus {
      flex-direction: column;
    }
    .fluorite-portfolio-certificates__grid .fluorite-sticky-visual {
      display: none;
    }
    .fluorite-portfolio-certificates__grid .content {
      width: 100%;
    }
    .fluorite-portfolio-certificates__grid .fluorite-scroll-section,
    .fluorite-portfolio-certificates__grid .fluorite-closing-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    .fluorite-portfolio-certificates__grid .fluorite-focus-text {
      font-size: 2rem;
    }
    .fluorite-portfolio-certificates__grid .fluorite-mobile-progress {
      display: block;
    }
    .fluorite-portfolio-certificates__grid .fluorite-desktop-progress {
      display: none;
    }
}

/* PDF Presentation Viewer */
.fluorite-custom-pdf-viewer {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fluorite-pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fluorite-pdf-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fluorite-custom-pdf-viewer:hover .fluorite-pdf-controls,
.fluorite-custom-pdf-viewer:focus-within .fluorite-pdf-controls {
  opacity: 1;
}

/* На устройствах без hover (тач) контролы всегда видимы — иначе на
   мобильном пользователь не может листать страницы PDF. */
@media (hover: none) {
  .fluorite-pdf-controls { opacity: 1; }
}

/* ── PDF Viewer: нативный fullscreen (Fullscreen API) ──────────────
   Без этих правил viewer остаётся маленьким внутри fullscreen-слоя. */
.fluorite-custom-pdf-viewer:-webkit-full-screen {
  width:  100vw   !important;
  height: 100vh   !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fluorite-custom-pdf-viewer:fullscreen {
  width:  100vw   !important;
  height: 100vh   !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fluorite-custom-pdf-viewer:-webkit-full-screen #fluorite-pdf-canvas,
.fluorite-custom-pdf-viewer:fullscreen #fluorite-pdf-canvas {
  max-width:  100%;
  max-height: 100%;
  object-fit: contain;
}
.fluorite-custom-pdf-viewer:-webkit-full-screen .fluorite-pdf-controls,
.fluorite-custom-pdf-viewer:fullscreen .fluorite-pdf-controls {
  opacity: 1;
  bottom: max(20px, env(safe-area-inset-bottom));
}

.fluorite-pdf-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
}

.fluorite-pdf-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.fluorite-pdf-btn svg {
  width: 18px;
  height: 18px;
}

.fluorite-pdf-page-num {
  color: #fff;
  font-family: var(--fluorite-font-primary);
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* ================================================================
   PDF FULLSCREEN OVERLAY (v2 — JS-driven orientation classes)
   ================================================================ */
#fluorite-pdf-fs-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483647 !important;
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#fluorite-pdf-fs-overlay.fluorite-is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
body.fluorite-pdf-fs-open { overflow: hidden !important; }

/* Rotate hint */
.fluorite-pdf-fs-rotate-hint {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  box-sizing: border-box;
  font-family: var(--fluorite-font-primary, system-ui, sans-serif);
}
#fluorite-pdf-fs-overlay.fluorite-is-portrait .fluorite-pdf-fs-rotate-hint { display: flex !important; }
#fluorite-pdf-fs-overlay.fluorite-is-landscape .fluorite-pdf-fs-rotate-hint { display: none !important; }

.fluorite-pdf-fs-rotate-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fluorite-pdf-fs-tilt 2.4s ease-in-out infinite;
  will-change: transform;
}
.fluorite-pdf-fs-rotate-icon svg { width: 100%; height: 100%; }
@keyframes fluorite-pdf-fs-tilt {
  0%, 30%   { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}
.fluorite-pdf-fs-rotate-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}
.fluorite-pdf-fs-rotate-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

/* PDF viewer */
.fluorite-pdf-fs-viewer {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#fluorite-pdf-fs-overlay.fluorite-is-landscape .fluorite-pdf-fs-viewer { display: flex !important; }
#fluorite-pdf-fs-overlay.fluorite-is-portrait  .fluorite-pdf-fs-viewer { display: none !important; }

#fluorite-pdf-fs-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.fluorite-pdf-fs-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.fluorite-pdf-fs-close:active { background: rgba(255,255,255,0.32); }

.fluorite-pdf-fs-close-portrait {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
#fluorite-pdf-fs-overlay.fluorite-is-portrait .fluorite-pdf-fs-close-portrait { display: flex !important; }

.fluorite-pdf-fs-nav {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(20,20,20,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  z-index: 10;
}
.fluorite-pdf-fs-btn {
  background: none;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  padding: 0;
}
.fluorite-pdf-fs-btn:active { background: rgba(255,255,255,0.18); }
.fluorite-pdf-fs-btn svg { width: 22px; height: 22px; }
.fluorite-pdf-fs-pagenum {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}


/* ===== FLUORITE LK — consolidated design layer (Modern Dark Premium) =====
   Single source, scoped .fluorite-account-page. NEVER override
   background/mask on inline-bg-image elements (thumbs, paysystem logos). */
.fluorite-account-page{--s:rgba(255,255,255,.045);--s2:rgba(255,255,255,.07);--bd:rgba(255,255,255,.09);--bd2:rgba(255,255,255,.20);--fg:#ededef;--mut:#8a8f98;--gold:#c9a227;--r:16px;--ez:cubic-bezier(.16,1,.3,1);}
.fluorite-account-page [class*="sale-order-"],.fluorite-account-page [class*="sale-personal-"],.fluorite-account-page [class*="sale-accountpay-"]{color:var(--fg);}
.fluorite-account-page [class*="sale-order-"] a{color:#fff;}
.fluorite-account-page h1,.fluorite-account-page h2,.fluorite-account-page h3,.fluorite-account-page h4,.fluorite-account-page h5{color:#fff;}
.fluorite-account-page .sale-order-detail [class*="col-"],.fluorite-account-page .sale-order-detail .col,.fluorite-account-page .sale-order-detail .row{border:0!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;background:transparent!important;}
.fluorite-account-page [class*="offset-"]{margin-left:0!important;}
.fluorite-account-page .sale-order-detail-card{background:var(--s)!important;border:1px solid var(--bd)!important;border-radius:var(--r);padding:22px 24px!important;margin-bottom:16px;animation:flk-rise .5s var(--ez) both;}
.fluorite-account-page .sale-order-detail-card-title,.fluorite-account-page .sale-order-detail-section-title,.fluorite-account-page .sale-order-detail-more-info-details-title{background:var(--s2)!important;border:0!important;border-left:3px solid var(--gold)!important;border-radius:0 8px 8px 0;padding:11px 18px!important;margin:0 0 16px!important;font-size:1rem;font-weight:700;color:#fff!important;letter-spacing:.02em;}
.fluorite-account-page .sale-order-detail-prop-name{color:var(--mut)!important;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;}
.fluorite-account-page .sale-order-detail-prop-value{color:#fff!important;font-size:.95rem;}
.fluorite-account-page .sale-order-detail-order-item-img-container{display:inline-block;width:64px;height:64px;border-radius:10px;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.fluorite-account-page .sale-accountpay-pp-company-image{background-color:#fff!important;border-radius:10px;padding:9px 12px;width:100%;max-width:172px;min-height:52px;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;}
.fluorite-account-page .sale-order-detail-payment-options-methods-image-element,.fluorite-account-page .sale-order-detail-payment-options-shipment-image-element{display:block;width:30px;height:30px;background:rgba(255,255,255,.5)!important;opacity:.7;-webkit-mask:var(--mi) center/contain no-repeat;mask:var(--mi) center/contain no-repeat;--mi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/></svg>");}
.fluorite-account-page .sale-order-detail-payment-options-shipment-image-element{--mi:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><path d='M3 7h11v8H3zM14 10h4l3 3v2h-7z'/><circle cx='7' cy='17' r='1.5'/><circle cx='17.5' cy='17' r='1.5'/></svg>");}
.fluorite-account-page table{width:100%;border-collapse:collapse;color:var(--fg);}
.fluorite-account-page thead th,.fluorite-account-page table caption{background:var(--s2)!important;color:#fff!important;text-align:left;font-weight:700;}
.fluorite-account-page th,.fluorite-account-page td{padding:11px 14px;border:1px solid var(--bd)!important;background:transparent!important;}
.fluorite-account-page .sale-order-list-status-alert,.fluorite-account-page [class*="info-title-status-alert"]{display:inline-flex;align-items:center;gap:.45em;padding:5px 12px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;background:rgba(201,162,39,.13)!important;color:#e8c766!important;border:1px solid rgba(201,162,39,.32)!important;}
.fluorite-account-page .sale-order-list-status-alert::before,.fluorite-account-page [class*="info-title-status-alert"]::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;}
.fluorite-account-page .sale-order-list-shipment-status{background:none!important;border:0!important;padding:0!important;color:var(--mut)!important;text-transform:none;letter-spacing:0;font-weight:600;}
.fluorite-account-page font.errortext,.fluorite-account-page .errortext{display:inline-flex;align-items:center;gap:.5em;border-radius:12px;padding:12px 18px;font-size:.9rem;background:rgba(201,162,39,.10)!important;border:1px solid rgba(201,162,39,.34)!important;color:#e8c766!important;}
.fluorite-account-page .sale-accountpay-fixedpay-list{display:flex;flex-wrap:wrap;gap:10px;}
.fluorite-account-page .sale-accountpay-fixedpay-item{min-width:72px;padding:12px 18px;border-radius:999px;cursor:pointer;font-weight:700;text-align:center;background:var(--s)!important;border:1px solid var(--bd)!important;color:var(--fg)!important;transition:all .2s var(--ez);}
.fluorite-account-page .sale-accountpay-fixedpay-item:hover{border-color:var(--gold)!important;color:#fff!important;transform:translateY(-2px);}
.fluorite-account-page .sale-accountpay-pp-company{background:var(--s)!important;border:1px solid var(--bd)!important;border-radius:var(--r)!important;padding:16px!important;cursor:pointer;display:flex!important;flex-direction:column;align-items:center;gap:10px;text-align:center;transition:border-color .25s var(--ez),transform .2s var(--ez),box-shadow .25s;}
.fluorite-account-page .sale-accountpay-pp-company:hover{transform:translateY(-3px);border-color:var(--bd2)!important;box-shadow:0 14px 36px -20px rgba(0,0,0,.85);}
.fluorite-account-page .sale-accountpay-pp-company.bx-selected{border-color:var(--gold)!important;box-shadow:0 0 0 1px var(--gold),0 10px 30px -16px rgba(201,162,39,.5);}
.fluorite-account-page .sale-accountpay-pp-company-smalltitle{color:var(--fg)!important;font-size:.82rem;font-weight:600;}
.fluorite-account-page .sale-accountpay-pp-company-checkbox{position:absolute;opacity:0;}
.fluorite-account-page .btn,.fluorite-account-page .btn-primary,.fluorite-account-page .btn-default,.fluorite-account-page .sale-account-pay-button,.fluorite-account-page button[type=submit],.fluorite-account-page input[type=submit]{display:inline-flex;align-items:center;gap:.5em;justify-content:center;padding:11px 22px;border:1px solid #fff!important;border-radius:var(--r)!important;background:#fff!important;color:#000!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,transform .15s,box-shadow .2s;}
.fluorite-account-page .btn:hover,.fluorite-account-page .btn-primary:hover,.fluorite-account-page .sale-account-pay-button:hover,.fluorite-account-page button[type=submit]:hover{background:transparent!important;color:#fff!important;box-shadow:0 10px 26px -12px rgba(255,255,255,.4)!important;}
.fluorite-account-page .btn:active{transform:scale(.97)!important;}
.fluorite-account-page .btn-link,.fluorite-account-page a[class*="-link"]{background:none!important;border:0!important;color:#fff!important;text-transform:none;padding:0;text-decoration:underline;text-underline-offset:3px;}
.fluorite-account-page .form-control,.fluorite-account-page input:not([type=submit]):not([type=checkbox]):not([type=radio]),.fluorite-account-page select,.fluorite-account-page textarea{background:var(--s)!important;border:1px solid var(--bd)!important;color:#fff!important;border-radius:10px;padding:12px 14px;}
.fluorite-account-page input:focus-visible,.fluorite-account-page a:focus-visible,.fluorite-account-page button:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.fluorite-account-page label,.fluorite-account-page .col-form-label{color:var(--mut)!important;}
@keyframes flk-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fluorite-account-page *{animation:none!important;transition:none!important}}

/* LK line-kill: remove Bitrix stepper vertical rail + stray left borders */
.fluorite-account-page .sale-order-detail,.fluorite-account-page .sale-order-detail *,.fluorite-account-page .sale-order-detail *::before,.fluorite-account-page .sale-order-detail *::after{border-left:0!important;box-shadow:none!important;}
.fluorite-account-page .sale-order-detail [class*="payment-options"]::before,.fluorite-account-page .sale-order-detail [class*="payment-options"]::after,.fluorite-account-page .sale-order-detail [class*="-template"]::before,.fluorite-account-page .sale-order-detail [class*="shipment"]::before,.fluorite-account-page .sale-order-detail [class*="methods"]::before{content:none!important;display:none!important;background:none!important;}
.fluorite-account-page .sale-order-detail-card-title,.fluorite-account-page .sale-order-detail-section-title,.fluorite-account-page .sale-order-detail-more-info-details-title{border-left:3px solid var(--gold)!important;}
.fluorite-account-page .sale-order-detail-card{box-shadow:none!important;}
/* /LK line-kill */

/* LK status semantics + yellow->white */
.fluorite-account-page{--gold:#ffffff;}
.fluorite-account-page .sale-order-list-payment-title .sale-order-list-status-alert,.fluorite-account-page .sale-order-list-shipment-title .sale-order-list-status-alert,.fluorite-account-page [class*=info-title-status-alert]{background:rgba(220,53,69,.14)!important;color:#ff6b78!important;border:1px solid rgba(220,53,69,.4)!important;}
.fluorite-account-page .sale-order-list-payment-title .sale-order-list-status-alert::before,.fluorite-account-page .sale-order-list-shipment-title .sale-order-list-status-alert::before,.fluorite-account-page [class*=info-title-status-alert]::before{background:currentColor;}
.fluorite-account-page [class*=payed] .sale-order-list-status-alert,.fluorite-account-page [class*=deducted] .sale-order-list-status-alert,.fluorite-account-page .sale-order-list-status-alert.is-ok,.fluorite-account-page .sale-order-list-shipment-status-block.shipped{background:rgba(40,167,69,.15)!important;color:#54d178!important;border:1px solid rgba(40,167,69,.4)!important;}
.fluorite-account-page .sale-order-list-shipment-status-block{background:rgba(255,255,255,.06)!important;color:#ededef!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:8px;padding:3px 10px;display:inline-block;font-weight:600;font-size:.8rem;}
.fluorite-account-page .sale-order-list-shipment-status,.fluorite-account-page .sale-order-list-shipment-status-item{color:#8a8f98!important;}
/* /LK status */

/* LK pay-button placement */
.fluorite-account-page [class*="payment-options-methods-button-container"],.fluorite-account-page [class*="payment-options-shipment-button-container"]{display:block!important;width:auto!important;margin:16px 0 4px!important;clear:both;}
.fluorite-account-page [class*="button-container"] .btn,.fluorite-account-page .btn.active-button{margin:6px 0 0!important;float:none!important;}
.fluorite-account-page .sale-order-detail-payment-options{align-items:flex-start!important;}
.fluorite-account-page .sale-order-detail-payment-options-methods-info-change-link,.fluorite-account-page a.sale-order-detail-payment-options-methods-info-change-link{display:inline-block;margin-bottom:8px;}
/* /LK pay-button */
/* ===== /FLUORITE LK consolidated ===== */


/* Fluorite s4: disabled "Документация" — у товаров без локальных PDF/3D файлов
   кнопка рендерится disabled (см. pages/collections/product.php). Серым + cursor=not-allowed. */
.fluorite-product-detail-action.fluorite-is-disabled,
.fluorite-product-detail-docs.fluorite-is-disabled .fluorite-product-detail-action {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* === Fluorite v1 watermark — DO NOT REMOVE (see LICENSE.md) === */
.fluorite-watermark-vendor-veo-2026 {
  /* Unique brand signature for proprietary copy detection.
     Searchable: fluorite-template-v1-licensed-to-fluorite-art-bx-veo-com-ru-2026 */
  position: absolute; width: 0; height: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
}


/* #materials мобила: убрать стрелки из grid-потока (свайп .click() работает и на display:none) */
@media (max-width: 700px) {
  .fluorite-nav-btn { display: none; }
}

/* End */


/* Start:/local/templates/fluorite_v1/assets/css/bitrix-admin.css?17792113981705*/
:root {
  --fluorite-bx-panel-offset: 0px;
}

body.bx-panel-active nav {
  top: var(--fluorite-bx-panel-offset);
}

body.bx-panel-active #sections-container {
  height: calc(100vh - var(--fluorite-bx-panel-offset));
  margin-top: var(--fluorite-bx-panel-offset);
}

body.bx-panel-active #materials main {
  height: calc(100vh - var(--fluorite-bx-panel-offset));
}

#panel:empty {
  display: none;
}

/* ----------------------------------------------------------------
   Мобильные правки для Bitrix admin panel
   ---------------------------------------------------------------- */

/* Admin panel всегда поверх контента на мобилях */
@media (max-width: 767px) {
  #panel {
    position: relative;
    z-index: 10100;
  }

  /* Меню и фон сдвигаются ниже admin panel */
  body.bx-panel-active .fluorite-staggered-menu-wrapper.fluorite-fixed-wrapper {
    top: var(--fluorite-bx-panel-offset, 0px);
    height: calc(100dvh - var(--fluorite-bx-panel-offset, 0px));
  }

  body.bx-panel-active #sections-container {
    height: calc(100dvh - var(--fluorite-bx-panel-offset, 0px));
    margin-top: var(--fluorite-bx-panel-offset, 0px);
  }

  body.bx-panel-active #materials main {
    height: calc(100dvh - var(--fluorite-bx-panel-offset, 0px));
  }

  body.bx-panel-active .fluorite-background-slider,
  body.bx-panel-active .fluorite-bg-text-wrapper {
    top: var(--fluorite-bx-panel-offset, 0px);
  }

  /* Скрываем текстовые подписи у кнопок admin panel на мобиле — слишком широко */
  #bx-panel .bx-panel-item-title,
  #bx-panel .bx-adm-head-menu-text {
    display: none;
  }
}

/* End */
/* /local/templates/fluorite_v1/assets/css/mobile.css?177964485242928 */
/* /local/templates/fluorite_v1/assets/css/site-header.css?177971282517497 */
/* /local/templates/fluorite_v1/assets/css/account.css?177971671942871 */
/* /local/templates/fluorite_v1/assets/css/main.css?177989673775433 */
/* /local/templates/fluorite_v1/assets/css/bitrix-admin.css?17792113981705 */
