/* ==========================================================================
   APLIKE / SOLO SUBTHEME - CUSTOM STYLES
   ==========================================================================

   БЫСТРЫЙ ПОИСК ПО ФАЙЛУ

   [00] SOLO REFERENCE          - справка по переменным и регионам темы Solo
   [01] GENERAL / VIEWS         - заголовки, текстовые ссылки, Views и якорные переходы
   [02] PAGE TOC                - интерактивное оглавление страниц
   [03] FAQ                     - семантическая серверная разметка и базовый вид
   [04] PRICE CARD              - карточка цены, срок и ссылка на прайс
   [05] CONTACTS CARD           - компактная карточка контактов в сайдбаре
   [06] CONTACTS PAGE           - полноширинный блок страницы контактов
   [07] SERVICE LINKS           - крупные ссылки на услуги
   [08] SIDEBAR MENU STATES     - цвета активных пунктов правого меню
   [09] STICKY RIGHT SIDEBAR   - sticky-панель, карточки и scrollbar
   [10] FAQ COLLAPSE           - progressive enhancement без jQuery UI
   [11] SERVICES EXTENDED BODY - дополнительный текст услуг в раскрывающемся блоке

   Для поиска нужного блока используйте метки [01]...[10].
   ========================================================================== */

/* ==========================================================================
   [00] SOLO REFERENCE
   Справка из исходного solo-subtheme-style.css. Это комментарии темы, не рабочие правила.
   ========================================================================== */

/* Add your css code here */
/*
Variable Definitions:
  --r-bg: Region background color. Sets the overall background color of the region wrapper.
  --r-tx: Region text color. Sets the default text color for all paragraph and inline text within the region.
  --r-h1: Region heading color. Specifically sets the color for headings (h1, h2, h3) within the region, allowing heading color control independently from body text.
  --r-lk: Region link color. Sets the color for anchor (<a>) links within the region in their normal (non-hover) state.
  --r-lk-h: Region link hover color. Sets the color of links within the region when hovered or focused, providing clear interactive feedback.
  --r-br: Region border color. Sets the border color for the region, useful for visual separation of sections.
  --r-bg-fr: Form background color within the region. Sets the background color specifically for input forms (e.g., login forms, search bars) within the region, enabling clear visual separation of form areas.
  --r-tx-lk: Menu link text color within the region. Sets the text color for menu links in navigation blocks or region-based menus, ensuring consistency with your theme’s navigation design.
  --r-tx-lk-h: Menu link hover text color within the region. Sets the hover or focus color for menu link text, aiding in clear navigation feedback for users.
  --r-bg-lk: Menu link background color within the region. Sets the background color of menu links in their normal state within the region for better menu styling control.
  --r-bg-lk-h: Menu link background hover color within the region. Sets the background color for menu links on hover/focus, ensuring clear user interaction indication.
  --r-tx-bt:  Button text color within the region. Sets the text color for buttons within the region (e.g., call-to-action buttons, form submit buttons).
  --r-tx-bt-h: Button text hover color within the region. Sets the text color for buttons when hovered/focused, providing interactive feedback.
  --r-bg-bt: Button background color within the region. Sets the background color for buttons in their normal state, aligning them visually with your design system.
  --r-bg-bt-h:  Button background hover color within the region. Sets the background color for buttons on hover/focus, improving interactivity and user experience.
*/

/*
Regions Names, each region has an ID and a Class with the same name.
You can use .page-wrapper or #page-wrapper
#page-wrapper {}
#primary-sidebar-menu {}
#fixed-search-block {}
#popup-login-block {}
#header {}
#primary-menu {}
#welcome-text {}

#top-container {}
#top-box-first {}
#top-box-second {}
#top-box-third {}

#system-messages {}
#breadcrumb {}
#page-title {}

#main-container {}
#sidebar-box-first {}
#sidebar-box-main {}
#sidebar-box-second {}

#bottom-container {}
#bottom-box-first {}
#bottom-box-second {}
#bottom-box-third {}
#bottom-box-fourth {}

#footer-container {}
#footer-box-first {}
#footer-box-second {}
#footer-box-third {}

#footer-menu {}
#copyright {}

Examples:

#page-wrapper {
  background-color: var(--r-bg);
  color: var(--r-tx);
  border-color: var(--r-br);
}

h1, h2, h3 {
  color: var(--r-h1);
}

a:not(li.nav__menu-item a) {
  color: var(--r-lk);
  color: var(--r-lk-h);
}

input:not(.button) {
  background-color: var(--r-bg-fr);
}

li.nav__menu-item a {
  color: var(--r-tx-lk);
  background-color: var(--r-bg-lk);
}

li.nav__menu-item a:hover {
  color: var(--r-tx-lk-h);
  background-color: var(--r-bg-lk-h);
}

button:not(li.nav__menu-item button) {
  color: var(--r-tx-bt);
  background-color: var(--r-bg-bt);
}

button:not(li.nav__menu-item button):hover {
  color: var(--r-tx-bt-h);
  background-color: var(--r-bg-bt-h);
}
https://www.drupal.org/docs/extending-drupal/themes/contributed-themes/solo/instructions-for-developers-on-using-colors-in-solo-theme
*/

/* ==========================================================================
   [01] GENERAL / VIEWS
   Центрирование заголовков Views и отступ для переходов к H2/H3/H4 по якорям.
   ========================================================================== */

.views-field-title {
  text-align: center;
}

/* ===== ЯКОРНЫЕ ПЕРЕХОДЫ ===== */

h2[id],
h3[id],
h4[id] {
  scroll-margin-top: 100px;
}


/* ===== ЗАГОЛОВКИ В ОСНОВНОМ КОНТЕНТЕ ===== */

/*
 * H2 по всему контенту сайта центрируются.
 * H3 остаются выровненными по левому краю.
 *
 * Скоуп .node__content не затрагивает меню Drupal,
 * служебные заголовки регионов и административный интерфейс.
 */
.node__content h2 {
  text-align: center;
}

.node__content h3 {
  text-align: left;
}


/* ===== ИКОНКА У ТЕКСТОВЫХ ССЫЛОК ===== */

/*
 * Добавляет к обычным ссылкам внутри текста и списков
 * иконку Font Awesome "fa-arrow-up-right-from-square".
 *
 * Иконка встроена как CSS mask, поэтому не требует
 * дополнительного JS или загрузки Font Awesome Webfont.
 *
 * Не затрагиваются:
 * - меню сайта (они находятся вне .node__content);
 * - оглавление .page-toc;
 * - крупные ссылки услуг .aplike-service-links;
 * - кнопки и CTA.
 */
.node__content :is(
  p,
  li,
  dd,
  dt,
  blockquote,
  figcaption
) a[href]:not(
  .page-toc__link,
  .contact-btn,
  .phone-number,
  .button,
  .btn
)::after {
  content: "";

  display: inline-block;

  width: 0.72em;
  height: 0.72em;

  margin-left: 0.32em;

  vertical-align: 0.03em;

  background-color: currentColor;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 297.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 141.3V224c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM80 64C35.8 64 0 99.8 0 144V432c0 44.2 35.8 80 80 80H368c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 297.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 141.3V224c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM80 64C35.8 64 0 99.8 0 144V432c0 44.2 35.8 80 80 80H368c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.node__content :is(
  p,
  li,
  dd,
  dt,
  blockquote,
  figcaption
) a[href]:not(
  .page-toc__link,
  .contact-btn,
  .phone-number,
  .button,
  .btn
):hover::after {
  transform: translate(1px, -1px);
}


/*
 * Ссылки блока услуг уже имеют собственную визуальную
 * иконку/оформление - второй значок им не добавляем.
 */
.node__content .aplike-service-links a[href]::after {
  content: none;
  display: none;
}

/* ==========================================================================
   [02] PAGE TOC
   Оглавление: рамка, анимации, свертывание всего блока и вложенных подразделов. JS находится в solo-subtheme-script.js.
   ========================================================================== */

/* =========================================================
   PAGE TOC
   Оглавление страницы
   ========================================================= */

.page-toc {
  --toc-border: #FFD700;
  --toc-red: #ff0000;
  --toc-text: #ffffff;
  --toc-muted: rgba(255, 255, 255, 0.72);
  --toc-bg: rgba(255, 255, 255, 0.025);

  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  margin: 32px 0;
  padding: 0;

  border: 2px solid var(--toc-border);
  border-radius: 10px;

  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.09), transparent 35%),
    var(--toc-bg);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  text-align: left;

  animation: pageTocAppear 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.page-toc:hover {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.17),
    0 0 14px rgba(255, 215, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.page-toc::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 215, 0, 0.08),
      rgba(255, 215, 0, 0) 70%
    );

  pointer-events: none;
}

/* =========================================================
   Заголовок "Оглавление"
   ========================================================= */

.page-toc__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 22px 24px;
  text-align: left;
  transition: padding 0.25s ease;
}

.page-toc__main-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--toc-red);
  font: inherit;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.page-toc__title::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: calc(100% - 48px);
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 215, 0, 0.65),
      rgba(255, 215, 0, 0.08)
    );

  transform-origin: left center;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* =========================================================
   Главная кнопка раскрытия - #FFD700
   ========================================================= */

.page-toc__main-icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--toc-border);
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.04);

  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 0, 0.03);

  transition:
    width 0.2s ease,
    height 0.2s ease,
    flex-basis 0.2s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.25s ease;
}

.page-toc__main-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--toc-border);
  border-bottom: 2px solid var(--toc-border);
  transform: translate(-50%, -65%) rotate(45deg);
}

.page-toc__main-toggle:hover .page-toc__main-icon {
  background: rgba(255, 215, 0, 0.12);

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.18),
    inset 0 0 0 1px rgba(255, 215, 0, 0.05);
}

/* =========================================================
   Закрытое состояние всего оглавления
   ========================================================= */

.page-toc.is-collapsed {
  min-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.page-toc.is-collapsed .page-toc__title {
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-toc.is-collapsed .page-toc__title::after {
  opacity: 0;
  transform: scaleX(0.7);
}

.page-toc.is-collapsed .page-toc__main-icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  transform: rotate(-90deg);
}

/* =========================================================
   Обёртка всего списка
   ========================================================= */

.page-toc__body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;

  transition:
    grid-template-rows 0.28s ease,
    opacity 0.2s ease;
}

.page-toc.is-collapsed .page-toc__body {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* =========================================================
   Основной список
   ========================================================= */

.page-toc__list {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 20px 24px 24px;
  list-style: none;

  transition:
    padding-top 0.25s ease,
    padding-bottom 0.25s ease;
}

.page-toc.is-collapsed .page-toc__list {
  padding-top: 0;
  padding-bottom: 0;
}

/* =========================================================
   Основные пункты
   ========================================================= */

.page-toc__item {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc__item + .page-toc__item {
  margin-top: 10px;
}

.page-toc__item > br {
  display: none;
}

/* =========================================================
   Основные ссылки
   ========================================================= */

.page-toc__link {
  position: relative;
  display: inline-block;
  padding: 4px 0 4px 18px;
  color: var(--toc-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;

  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.page-toc__item > .page-toc__link::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--toc-border);

  transition:
    width 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.page-toc__item > .page-toc__link:hover {
  color: var(--toc-border);
  transform: translateX(3px);
}

.page-toc__item > .page-toc__link:hover::before {
  width: 12px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* =========================================================
   Пункты с подпунктами
   ========================================================= */

.page-toc__item--has-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
}

.page-toc__item--has-children > .page-toc__link {
  grid-column: 1;
  color: var(--toc-red);
}

.page-toc__item--has-children > .page-toc__link::before {
  background: var(--toc-red);
}

.page-toc__item--has-children > .page-toc__link:hover {
  color: var(--toc-red);
}

.page-toc__item--has-children > .page-toc__link:hover::before {
  background: var(--toc-red);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.32);
}

/* =========================================================
   Красная кнопка раскрытия подпунктов
   ========================================================= */

.page-toc__subtoggle {
  position: relative;
  grid-column: 2;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--toc-red);
  border-radius: 6px;
  background: rgba(255, 0, 0, 0.035);
  color: var(--toc-red);
  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.page-toc__subtoggle:hover {
  color: var(--toc-red);
  border-color: var(--toc-red);
  background: rgba(255, 0, 0, 0.11);
  box-shadow: 0 0 9px rgba(255, 0, 0, 0.16);
}

.page-toc__subtoggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.22s ease;
}

.page-toc__item--sub-open .page-toc__subtoggle::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

.page-toc__item--sub-open .page-toc__subtoggle {
  background: rgba(255, 0, 0, 0.11);
  box-shadow: 0 0 9px rgba(255, 0, 0, 0.11);
}

/* =========================================================
   Анимация вложенного списка
   ========================================================= */

.page-toc__subbody {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-3px);

  transition:
    grid-template-rows 0.25s ease,
    opacity 0.18s ease,
    transform 0.25s ease;
}

.page-toc__item--sub-open .page-toc__subbody {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Вложенный список
   ========================================================= */

.page-toc__sublist {
  min-height: 0;
  overflow: hidden;
  margin: 6px 0 2px 18px;
  padding: 4px 0 4px 17px;
  border-left: 1px solid rgba(255, 0, 0, 0.45);
  list-style: none;
}

/* =========================================================
   Вложенные пункты
   ========================================================= */

.page-toc__subitem {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc__subitem + .page-toc__subitem {
  margin-top: 3px;
}

.page-toc__link--sub {
  padding: 3px 0 3px 13px;
  color: var(--toc-muted);
  font-size: 0.93rem;
  font-weight: 400;

  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.page-toc__link--sub::before {
  content: "";
  position: absolute;
  top: 0.84em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.75);

  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.page-toc__link--sub:hover {
  color: var(--toc-red);
  transform: translateX(3px);
}

.page-toc__link--sub:hover::before {
  transform: scale(1.4);
  background: var(--toc-red);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

/* =========================================================
   Focus / клавиатура
   ========================================================= */

.page-toc__main-toggle:focus-visible {
  outline: 2px solid var(--toc-border);
  outline-offset: 3px;
}

.page-toc__subtoggle:focus-visible {
  outline: 2px solid var(--toc-red);
  outline-offset: 3px;
}

.page-toc__link:focus-visible {
  outline: 2px solid var(--toc-border);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Появление оглавления при загрузке
   ========================================================= */

@keyframes pageTocAppear {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   Мобильные устройства
   ========================================================= */

@media (max-width: 767px) {
  .page-toc {
    margin: 24px 0;
    border-radius: 8px;
  }

  .page-toc__title {
    padding: 18px;
  }

  .page-toc.is-collapsed .page-toc__title {
    padding: 12px 16px;
  }

  .page-toc__title::after {
    left: 18px;
    width: calc(100% - 36px);
  }

  .page-toc__main-toggle {
    gap: 12px;
    font-size: 1.4rem;
  }

  .page-toc__main-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .page-toc.is-collapsed .page-toc__main-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .page-toc__list {
    padding: 17px 18px 20px;
  }

  .page-toc.is-collapsed .page-toc__list {
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-toc__link {
    font-size: 0.96rem;
  }

  .page-toc__link--sub {
    font-size: 0.9rem;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .page-toc,
  .page-toc *,
  .page-toc *::before,
  .page-toc *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   [03] FAQ
   Семантическая серверная версия без зависимости от jQuery UI.

   Без JavaScript:
   - заголовок раздела уже H2;
   - вопросы уже H3;
   - ответы видимы и читаемы.

   JavaScript из [04] только добавляет collapse-поведение.
   ========================================================= */

.field--name-field-faq {
  --faq-border: #FFD700;
  --faq-red: #ff0000;
  --faq-text: #ffffff;
  --faq-muted: rgba(255, 255, 255, 0.76);

  position: relative;
  overflow: hidden;

  width: 100%;
  box-sizing: border-box;

  margin: 32px 0;
  padding: 22px 24px 24px;

  border: 2px solid var(--faq-border);
  border-radius: 10px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 215, 0, 0.09),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.025);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  text-align: left;

  animation:
    faqAppear 0.45s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.field--name-field-faq:hover {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.17),
    0 0 14px rgba(255, 215, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}


.field--name-field-faq::before {
  content: "";

  position: absolute;
  top: -90px;
  right: -90px;

  width: 200px;
  height: 200px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 215, 0, 0.08),
      rgba(255, 215, 0, 0) 70%
    );

  pointer-events: none;
}


/* Настоящий H2 раздела FAQ. */

.field--name-field-faq > .field__label {
  position: relative;
  z-index: 1;

  display: block;

  margin: 0 0 20px;
  padding: 0 0 18px;

  color: var(--faq-red) !important;

  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;

  text-align: left;
}


.field--name-field-faq > .field__label::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 215, 0, 0.65),
      rgba(255, 215, 0, 0.08)
    );
}


.field--name-field-faq > .field__items {
  position: relative;
  z-index: 1;
}


/* Серверный fallback вопросов до инициализации JS. */

.field--name-field-faq .aplike-faq__question {
  box-sizing: border-box;

  margin: 0 0 0 !important;
  padding: 14px 16px !important;

  border:
    1px solid rgba(255, 0, 0, 0.70) !important;

  border-radius:
    7px 7px 0 0 !important;

  background:
    rgba(255, 0, 0, 0.035) !important;

  color:
    var(--faq-text) !important;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;

  text-align: left;
}


.field--name-field-faq .aplike-faq__answer {
  box-sizing: border-box;

  margin: 0 0 10px !important;
  padding: 16px 18px 17px !important;

  border:
    1px solid rgba(255, 0, 0, 0.32) !important;

  border-top: 0 !important;
  border-radius: 0 0 7px 7px !important;

  background:
    rgba(255, 255, 255, 0.025) !important;

  color:
    var(--faq-muted) !important;

  box-shadow:
    inset 3px 0 0 rgba(255, 0, 0, 0.55) !important;

  font-size: 0.96rem;
  line-height: 1.65;

  text-align: left;
}


.field--name-field-faq .aplike-faq__answer p {
  margin: 0 0 10px;
  color: var(--faq-muted);
}


.field--name-field-faq .aplike-faq__answer p:last-child {
  margin-bottom: 0;
}


.field--name-field-faq .aplike-faq__answer a {
  color: var(--faq-border) !important;
  text-decoration: none;

  border-bottom:
    1px solid rgba(255, 215, 0, 0.4);

  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}


.field--name-field-faq .aplike-faq__answer a:hover {
  color: var(--faq-red) !important;
  border-bottom-color: var(--faq-red);
}


@keyframes faqAppear {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@media (max-width: 767px) {
  .field--name-field-faq {
    margin: 24px 0;
    padding: 18px 16px;
    border-radius: 8px;
  }

  .field--name-field-faq > .field__label {
    margin-bottom: 16px;
    padding-bottom: 15px;
    font-size: 1.4rem;
  }

  .field--name-field-faq .aplike-faq__question {
    padding: 12px 14px !important;
    font-size: 0.95rem;
  }

  .field--name-field-faq .aplike-faq__answer {
    padding: 14px !important;
    font-size: 0.93rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .field--name-field-faq,
  .field--name-field-faq *,
  .field--name-field-faq *::before,
  .field--name-field-faq *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   [04] PRICE CARD
   Карточка стоимости, срок выполнения, анимации и ссылка на прайс-лист.
   ========================================================================== */

/* ===== СТИЛИ ДЛЯ БЛОКА ЦЕНЫ (КРАСНАЯ ПОЛОСА МИГАЕТ ЖЁЛТЫМ + ПОКАЧИВАНИЕ) ===== */

/* Основной блок */
.price-card {
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 24px;
  background: #1a1a1a;
  border-radius: 16px;
  border-left: 5px solid #e31e24;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.2s ease;

  /* Анимация мигания полосы: красный → жёлтый → красный */
  animation: borderRedToYellow 1.5s infinite ease-in-out;
}

/* Эффект при наведении на карточку: лёгкий подъём */
.price-card:hover {
  transform: translateY(-2px);
}

/* Анимация мигания границы */
@keyframes borderRedToYellow {
  0% {
    border-left-color: #e31e24;
  }

  50% {
    border-left-color: #FFD700;
  }

  100% {
    border-left-color: #e31e24;
  }
}

/* Основная строка с ценой */
.price-main {
  white-space: nowrap;
}

/* Метка "Стоимость:" */
.price-label {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0a0;
  opacity: 0.9;
  display: inline-block;
  margin-right: 6px;
}

/* Значение цены */
.price-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

/* Покачивание только элементов цены */
.price-card:hover .price-value {
  animation: shake 0.4s ease-in-out;
}

/* Ключевые кадры для покачивания */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-3px);
  }

  40% {
    transform: translateX(3px);
  }

  60% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }
}

/* Слово "от" */
.price-from {
  color: #e31e24;
  font-weight: 600;
  margin-right: 8px;
  font-size: 1.8rem;
}

/* Символ валюты */
.currency {
  color: #FFD700;
  font-weight: 500;
  margin-left: 6px;
  margin-right: 2px;
  font-size: 2rem;
  white-space: nowrap;
}

/* ===== СРОК ВЫПОЛНЕНИЯ ===== */

.price-term {
  margin-top: 10px;
  line-height: 1.3;
  text-align: left;
}

/* Метка "Срок:" */
.price-term-label {
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #a0a0a0;
  margin-right: 6px;
}

/* Значение срока */
.price-term-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

/* ===== ССЫЛКА НА ПРАЙС-ЛИСТ ===== */

.price-list-prompt {
  display: table;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: #cccccc;
  text-align: left;
  border-top: 1px solid #333;
  padding-top: 20px;
  width: auto;
  max-width: 500px;
}

.price-list-prompt a {
  color: #e31e24;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.price-list-prompt a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #e31e24;
  transition: width 0.3s ease;
}

.price-list-prompt a:hover {
  color: #ff4d4d;
}

.price-list-prompt a:hover::after {
  width: 100%;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 480px) {
  .price-card {
    padding: 14px 18px;
    border-left-width: 4px;
    border-radius: 12px;
  }

  .price-label {
    font-size: 1.1rem;
    margin-right: 4px;
  }

  .price-value {
    font-size: 1.8rem;
  }

  .price-from {
    font-size: 1.5rem;
    margin-right: 6px;
  }

  .currency {
    font-size: 1.6rem;
    margin-left: 4px;
  }

  .price-term {
    margin-top: 8px;
  }

  .price-term-label {
    font-size: 0.9rem;
  }

  .price-term-value {
    font-size: 1rem;
  }

  .price-list-prompt {
    font-size: 1rem;
    margin-top: 20px;
    padding-top: 15px;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   [05] CONTACTS CARD
   Компактная карточка контактов: мессенджеры, телефон, часы работы и мобильная адаптация.
   ========================================================================== */

/* ===== БЛОК КОНТАКТОВ ===== */
/* Блок контактов — центрированный, компактный, с адаптацией текста */
.contacts-card {
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  border-left: 4px solid #e31e24;
  animation: borderPulse 2s infinite ease-in-out;
  text-align: center;
}

/* (общая анимация бордера) */
@keyframes borderPulse {
  0%, 100% { border-left-color: #e31e24; }
  50% { border-left-color: #FFD700; }
}

.contacts-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFD700 !important; /* жёлтый */
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.contacts-subtitle {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0 0 24px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subtitle-full {
  display: inline;
}

.subtitle-mobile {
  display: none;
}

.messengers-grid {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 20px;
}

/* ===== КНОПКИ (карточка) — ДЕЛАЕМ БЕЛЫМИ ===== */
/* ВАЖНО: если “Контакты” и телефон подкрашиваются внешними стилями, форсим !important */
.contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 8px;

  /* Белая кнопка */
  background: #ffffff !important;
  color: #111111 !important;

  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;

  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ffffff !important;
  text-align: center;

  min-height: 48px;
  touch-action: manipulation;
}

/* Если внутри есть span/svg с цветом — наследуем от кнопки */
.contact-btn *,
.contact-btn *::before,
.contact-btn *::after {
  color: inherit !important;
  fill: currentColor;
}

.contact-btn:hover {
  transform: translateY(-2px);
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.18);
}

/* На ховере можно слегка затемнять белую кнопку (чтобы визуально ощущалась интерактивность) */
.contact-btn:active {
  transform: translateY(0);
  background: #f2f2f2 !important;
}

/* Если у кнопок есть брендовые hover-фоны — оставляем, но делаем текст белым для контраста */
.contact-btn.btn-max:hover {
  background: #8A2BE2 !important;
  color: #ffffff !important;
  border-color: #8A2BE2 !important;
}

.contact-btn.btn-telegram:hover {
  background: #0077b5 !important; /* контрастнее, чем #0088cc */
  color: #ffffff !important;
  border-color: #0077b5 !important;
}

.contact-btn.btn-whatsapp:hover {
  background: #198754 !important; /* контрастнее, чем #25D366 */
  color: #ffffff !important;
  border-color: #198754 !important;
}

.phone-block {
  margin-bottom: 20px;
}

.phone-label {
  font-size: 0.8rem;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ===== ТЕЛЕФОН (карточка) — ДЕЛАЕМ БЕЛОЙ “КНОПКОЙ” ===== */
.phone-number {
  display: block;
  padding: 12px 16px;

  /* Белая кнопка */
  background: #ffffff !important;
  color: #111111 !important;

  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;

  border: 1px solid #ffffff !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;

  min-height: 48px;
  touch-action: manipulation;
}

/* Если внутри телефона есть вложенные элементы — наследуем */
.phone-number *,
.phone-number *::before,
.phone-number *::after {
  color: inherit !important;
}

.phone-number:hover {
  background: #f2f2f2 !important;
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.18);
}

.phone-number:active {
  background: #e31e24 !important;
  border-color: #e31e24 !important;
  color: #ffffff !important;
}

/* Фокус для доступности */
.contact-btn:focus-visible,
.phone-number:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.work-hours {
  border-top: 1px solid #333;
  padding-top: 16px;
  color: #FFD700;
  font-size: 0.85rem;
  text-align: center;
}

.work-hours-text,
.work-hours-time {
  display: inline;
}

.work-hours-separator {
  display: inline;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
  .contacts-card {
    padding: 20px;
    max-width: 100%;
    border-left: none;        /* убираем левую рамку */
    animation: none;          /* отключаем анимацию */
  }

  .contacts-title {
    font-size: 1.4rem;
  }

  .messengers-grid {
    flex-direction: column;
  }

  .contact-btn {
    padding: 12px 14px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .phone-number {
    font-size: 1.1rem;
    padding: 12px 14px;
    min-height: 48px;
  }

  .work-hours-separator {
    display: none;
  }

  .work-hours-time {
    display: block;
    margin-top: 4px;
  }

  .subtitle-full {
    display: none;
  }

  .subtitle-mobile {
    display: inline;
  }
}

/* ==========================================================================
   [06] CONTACTS PAGE
   Полноширинный блок страницы контактов, карта, расписание и кнопки.
   ========================================================================== */

/* ===== БЛОК КОНТАКТОВ (НА ВСЮ ШИРИНУ) ===== */
/* Блок контактов — full width */
.contacts-block {
  width: 100%;
  background: #1a1a1a;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  border-left: 5px solid #e31e24;
  animation: borderPulse 2s infinite ease-in-out;
  text-align: left;
  color: #ffffff;
  border-radius: 0; /* full-width */
  box-sizing: border-box;
}

.contacts-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFD700;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.contacts-subheading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 32px 0 16px 0;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}

/* Контактные данные */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 1.1rem;
  color: #cccccc;
}

.contact-label {
  min-width: 110px;  /* фиксированная ширина для выравнивания */
  color: #a0a0a0;
  font-weight: 500;
  flex-shrink: 0;
}

.contact-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
  word-break: break-word;
}

.contact-link:hover {
  color: #e31e24;
  border-bottom-color: #e31e24;
}

.office-address {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 8px 0 0;
}

.map-wrapper {
  width: 100%;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
}

.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* Расписание работы — новая структура */
.work-schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  font-size: 1.1rem;
  color: #cccccc;
}

.schedule-days {
  white-space: nowrap;
  color: #a0a0a0;
}

.schedule-time {
  white-space: nowrap;
  color: #FFD700;
  font-weight: 500;
}

.schedule-time strong {
  color: #FFD700;
  font-weight: 600;
}

/* ===== КНОПКА "КОНТАКТЫ" (страница Контакты) — ДЕЛАЕМ БЕЛОЙ ===== */
/* На всякий случай перекрываем самые частые варианты классов кнопок */
.contacts-block .btn,
.contacts-block a.btn,
.contacts-block button.btn,
.contacts-block .button,
.contacts-block a.button,
.contacts-block button,
.contacts-block input[type="button"],
.contacts-block input[type="submit"] {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #ffffff !important;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  min-height: 48px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

/* Вложенные элементы кнопки — наследуют цвет */
.contacts-block .btn *,
.contacts-block .button *,
.contacts-block button *,
.contacts-block a.btn *,
.contacts-block a.button * {
  color: inherit !important;
  fill: currentColor;
}

.contacts-block .btn:hover,
.contacts-block a.btn:hover,
.contacts-block button.btn:hover,
.contacts-block .button:hover,
.contacts-block a.button:hover,
.contacts-block button:hover,
.contacts-block input[type="button"]:hover,
.contacts-block input[type="submit"]:hover {
  background: #f2f2f2 !important;
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.18);
  transform: translateY(-1px);
}

.contacts-block .btn:active,
.contacts-block a.btn:active,
.contacts-block button.btn:active,
.contacts-block .button:active,
.contacts-block a.button:active,
.contacts-block button:active,
.contacts-block input[type="button"]:active,
.contacts-block input[type="submit"]:active {
  background: #e31e24 !important;
  border-color: #e31e24 !important;
  color: #ffffff !important;
  transform: translateY(0);
}

.contacts-block .btn:focus-visible,
.contacts-block a.btn:focus-visible,
.contacts-block button.btn:focus-visible,
.contacts-block .button:focus-visible,
.contacts-block a.button:focus-visible,
.contacts-block button:focus-visible,
.contacts-block input[type="button"]:focus-visible,
.contacts-block input[type="submit"]:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 600px) {
  .contacts-block {
    padding: 24px;
  }
  .contacts-heading {
    font-size: 1.8rem;
  }
  .contacts-subheading {
    font-size: 1.2rem;
  }

  .contact-item {
    font-size: 1rem;
  }
  .contact-label {
    min-width: 100px;
  }

  .schedule-row {
    font-size: 0.95rem;
  }

  .map-wrapper iframe {
    height: 250px;
  }
}

/* На очень узких экранах убираем левую полосу */
@media (max-width: 480px) {
  .contacts-block {
    border-left: none;
    animation: none;
  }
}

/* ==========================================================================
   [07] SERVICE LINKS
   Оформление крупных ссылок на услуги и описаний под ними.
   ========================================================================== */

/* ===== СТИЛИ ДЛЯ ЛИНКОВ ДЛЯ УСЛУГ ===== */
.aplike-service-links {
    margin: 24px 0;
    padding-left: 22px;
}

.aplike-service-links li {
    margin-bottom: 22px;
}

.aplike-service-links li:last-child {
    margin-bottom: 0;
}

.aplike-service-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;

    color: #FFD700 !important;
    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

/* ВАЖНО: hover */
.aplike-service-links a:hover,
.aplike-service-links a:focus,
.aplike-service-links a:active {
    color: #ff0000 !important;
    text-decoration: underline;
}

.aplike-service-links a i {
    font-size: 15px;

    transition:
        color .2s ease,
        transform .2s ease;
}

.aplike-service-links a:hover i,
.aplike-service-links a:focus i,
.aplike-service-links a:active i {
    color: #ff0000 !important;
    transform: translate(2px,-2px);
}

.aplike-service-links span {
    display: block;

    margin-top: 6px;

    font-size: 15px;
    line-height: 1.6;

    color: #FFD700;
}

@media (max-width: 768px) {

    .aplike-service-links a {
        font-size: 19px;
    }

    .aplike-service-links span {
        font-size: 14px;
    }
}

/* ==========================================================================
   [08] SIDEBAR MENU STATES
   Цвет промежуточного активного пункта и текущей страницы в правом меню.
   ========================================================================== */

/* Текущий конечный пункт — на любом уровне */
#block-menu-right .navigation-sidebar a.nav__menu-link[aria-current="page"],
#block-menu-right .navigation-sidebar a.nav__menu-link[aria-current="page"] > span {
  color: #FFD700 !important;
}

/* ==========================================================================
   [09] STICKY RIGHT SIDEBAR

   Правая колонка:
   - остаётся видимой при прокрутке;
   - при переполнении прокручивается внутри;
   - каждый Drupal-блок является отдельной карточкой;
   - между блоками есть настоящий промежуток;
   - меню Solo сохраняет штатную механику раскрытия;
   - будущие Drupal-блоки автоматически отделяются.
   ========================================================================== */


/* =========================================================
   [09.1] Основной контейнер правой панели
   ========================================================= */

#sidebar-box-second {
  align-self: start;

  position: sticky;

  top: calc(
    var(--drupal-displace-offset-top, 0px)
    + 16px
  );

  height: fit-content;
  min-height: 0;

  background: transparent !important;
}


/* =========================================================
   [09.2] Внутренний контейнер
   ========================================================= */

#sidebar-box-second
.sidebar-box-second-inner {
  display: flex;
  flex-direction: column;

  gap: 24px;

  height: auto;
  min-height: 0;

  max-height: calc(
    100vh
    - var(--drupal-displace-offset-top, 0px)
    - 32px
  );

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-gutter: stable;

  background: transparent !important;

  padding-right: 8px;
}


/* =========================================================
   [09.3] Все Drupal-блоки - отдельные карточки
   ========================================================= */

#sidebar-box-second
.sidebar-box-second-inner
> [id^="block-"] {
  flex: 0 0 auto;

  width: 100%;
  box-sizing: border-box;

  margin: 0 !important;

  background: #1A1A1A;

  border-radius: 16px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  /*
   * ВАЖНО:
   * overflow не скрываем.
   * Это необходимо для раскрывающихся элементов Solo.
   */
  overflow: visible;
}


/* =========================================================
   [09.4] Контакты
   ========================================================= */

/*
 * У contacts-card уже есть собственные padding,
 * фон и оформление.
 */

#sidebar-box-second #block-contacts {
  padding: 0 !important;
}


#sidebar-box-second
#block-contacts
.contacts-card {
  width: 100%;
  max-width: none;

  box-sizing: border-box;

  margin: 0;
}


/* =========================================================
   [09.5] Блоки цены
   ========================================================= */

/*
 * Price-блок уже имеет собственное внутреннее оформление.
 *
 * Сверху оставляем дополнительный внутренний отступ,
 * чтобы price-card не касался верхней границы Drupal-блока.
 *
 * Слева, справа и снизу дополнительный padding не нужен:
 * внутренние элементы цены уже имеют собственные отступы.
 *
 * Работает с:
 * block-seo-optimization-price
 * block-create-sites-landing-price
 * и аналогичными.
 */

#sidebar-box-second
.sidebar-box-second-inner
> [id$="-price"] {
  padding: 18px 0 0 !important;
}


/* =========================================================
   [09.6] Правое меню - карточка
   ========================================================= */

#sidebar-box-second #block-menu-right {
  padding: 18px !important;

  background: #1A1A1A !important;
  background-image: none !important;

  border: 0 !important;
  border-left: 4px solid #FFD700 !important;
  border-radius: 16px !important;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);

  overflow: visible !important;

  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


/* =========================================================
   [09.7] Внутренние поверхности Solo
   ========================================================= */

/*
 * У меню Solo несколько собственных фоновых слоёв.
 *
 * Делаем их прозрачными, чтобы везде был виден
 * единый фон карточки #1A1A1A.
 *
 * ВАЖНО:
 * здесь меняется ТОЛЬКО background.
 * Механика меню не затрагивается.
 */

#sidebar-box-second
#block-menu-right
.navigation-sidebar,

#sidebar-box-second
#block-menu-right
.navigation-sidebar-template,

#sidebar-box-second
#block-menu-right
.navigation__menubar,

#sidebar-box-second
#block-menu-right
.navigation__sidebar,

#sidebar-box-second
#block-menu-right
.navigation__sidebar__template,

#sidebar-box-second
#block-menu-right
.sub__menu,

#sidebar-box-second
#block-menu-right
.nav__menu-item,

#sidebar-box-second
#block-menu-right
.nav__menu-link,

#sidebar-box-second
#block-menu-right
.dropdown-toggler {
  background-color: transparent !important;
  background-image: none !important;
}


/* =========================================================
   [09.8] Hover
   ========================================================= */

/*
 * Возвращаем только лёгкую подсветку пункта.
 * Она не меняет основной цвет карточки.
 */

#sidebar-box-second
#block-menu-right
.nav__menu-link:hover,

#sidebar-box-second
#block-menu-right
.dropdown-toggler:hover {
  background-color:
    rgba(255, 215, 0, 0.06) !important;
}


/* =========================================================
   [09.9] Hover всей карточки
   ========================================================= */

#sidebar-box-second #block-menu-right:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 215, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}


/* =========================================================
   [09.10] Остальные будущие Drupal-блоки
   ========================================================= */

/*
 * Любой новый блок автоматически становится карточкой
 * и получает стандартный внутренний отступ.
 *
 * Контакты, меню и price-блоки исключены,
 * поскольку имеют собственное оформление.
 */

#sidebar-box-second
.sidebar-box-second-inner
> [id^="block-"]:not(#block-contacts):not(#block-menu-right):not([id$="-price"]) {
  padding: 18px;
}


/* =========================================================
   [09.11] Scrollbar
   ========================================================= */

/* Firefox */

#sidebar-box-second
.sidebar-box-second-inner {
  scrollbar-width: thin;

  scrollbar-color:
    rgba(255, 215, 0, 0.55)
    transparent;
}


/* Chromium / Safari */

#sidebar-box-second
.sidebar-box-second-inner::-webkit-scrollbar {
  width: 6px;
}


#sidebar-box-second
.sidebar-box-second-inner::-webkit-scrollbar-track {
  background: transparent;
}


#sidebar-box-second
.sidebar-box-second-inner::-webkit-scrollbar-thumb {
  background:
    rgba(255, 215, 0, 0.45);

  border-radius: 10px;
}


#sidebar-box-second
.sidebar-box-second-inner::-webkit-scrollbar-thumb:hover {
  background:
    rgba(255, 215, 0, 0.75);
}


/* =========================================================
   [09.12] Mobile
   ========================================================= */

@media (max-width: 767px) {

  #sidebar-box-second {
    position: static;

    top: auto;

    height: auto;
    min-height: 0;
  }


  #sidebar-box-second
  .sidebar-box-second-inner {
    gap: 20px;

    max-height: none;

    overflow: visible;

    padding-right: 0;

    scrollbar-gutter: auto;
  }


  #sidebar-box-second #block-menu-right {
    padding: 16px !important;

    border-radius: 14px !important;
  }


  #sidebar-box-second
  .sidebar-box-second-inner
  > [id^="block-"]:not(#block-contacts):not(#block-menu-right):not([id$="-price"]) {
    padding: 16px;
  }

}


/* =========================================================
   [09.13] Отключаем Solo fade только для sticky sidebar
   ========================================================= */

/*
 * Solo добавляет .fade-inner правой колонке и управляет её
 * opacity через scroll / IntersectionObserver.
 *
 * Для обычных регионов это нормально, но sticky sidebar
 * постоянно меняет своё положение относительно viewport.
 * В результате Solo может начать затухание всей правой панели
 * при прокрутке страницы вверх.
 *
 * Сам sticky и внутренний scroll оставляем без изменений.
 * Отключаем только fade-эффект внешней темы для этой панели.
 */

#sidebar-box-second
.sidebar-box-second-inner.fade-inner {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;

  animation: none !important;
  transition: none !important;

  will-change: auto !important;
}

/* ==========================================================================
   [10] FAQ COLLAPSE
   Progressive enhancement поверх семантического H2/H3 FAQ.

   Здесь нет селекторов jQuery UI и старых accordion-* классов.
   ========================================================================== */

.field--name-field-faq.aplike-faq--enhanced {
  padding: 0;
}


/* =========================================================
   [10.1] H2 + кнопка раскрытия всего FAQ
   ========================================================= */

.field--name-field-faq.aplike-faq--enhanced
> .aplike-faq__title {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  box-sizing: border-box;

  margin: 0;
  padding: 22px 24px;

  text-align: left;

  transition:
    padding 0.25s ease;
}


.field--name-field-faq.aplike-faq--enhanced
> .aplike-faq__title::after {
  content: "";

  position: absolute;
  left: 24px;
  bottom: 0;

  width: calc(100% - 48px);
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 215, 0, 0.65),
      rgba(255, 215, 0, 0.08)
    );

  transform-origin: left center;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.field--name-field-faq.aplike-faq--enhanced
.aplike-faq__main-toggle {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    34px;

  align-items: center;
  gap: 20px;

  width: 100%;
  min-width: 0;

  min-height: 34px;

  margin: 0;
  padding: 0;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: inherit !important;
  font: inherit;

  text-align: left;
  cursor: pointer;
}


.aplike-faq__main-text {
  min-width: 0;

  color: var(--faq-red);

  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;

  text-align: left;

  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;

  white-space: normal;
  word-break: normal;
}


.aplike-faq__main-icon {
  position: relative;

  justify-self: end;

  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;

  box-sizing: border-box;

  border:
    1px solid var(--faq-border);

  border-radius: 50%;

  background:
    rgba(255, 215, 0, 0.04);

  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 0, 0.03);

  pointer-events: none;

  transition:
    width 0.2s ease,
    height 0.2s ease,
    min-width 0.2s ease,
    min-height 0.2s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.25s ease;
}


.aplike-faq__main-icon::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  width: 8px;
  height: 8px;

  border-right: 2px solid var(--faq-border);
  border-bottom: 2px solid var(--faq-border);

  transform:
    translate(-50%, -65%)
    rotate(45deg);
}


.aplike-faq__main-toggle:hover
.aplike-faq__main-icon {
  background:
    rgba(255, 215, 0, 0.12);

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.18),
    inset 0 0 0 1px rgba(255, 215, 0, 0.05);
}


.aplike-faq__main-toggle:focus-visible,
.aplike-faq__question-toggle:focus-visible {
  outline:
    2px solid var(--faq-border);

  outline-offset: 3px;
}


/* =========================================================
   [10.2] Закрытое состояние всего FAQ
   ========================================================= */

.field--name-field-faq.aplike-faq--enhanced.is-collapsed {
  min-height: 0;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.12);
}


.field--name-field-faq.aplike-faq--enhanced.is-collapsed
> .aplike-faq__title {
  padding-top: 14px;
  padding-bottom: 14px;
}


.field--name-field-faq.aplike-faq--enhanced.is-collapsed
> .aplike-faq__title::after {
  opacity: 0;
  transform: scaleX(0.7);
}


.field--name-field-faq.aplike-faq--enhanced.is-collapsed
.aplike-faq__main-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;

  transform: rotate(-90deg);
}


.field--name-field-faq.aplike-faq--enhanced:not(.is-collapsed)
.aplike-faq__main-icon {
  transform: rotate(0deg);
}


/* =========================================================
   [10.3] Плавное раскрытие всего списка
   ========================================================= */

.aplike-faq__body {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-rows: 1fr;

  opacity: 1;

  transition:
    grid-template-rows 0.30s ease,
    opacity 0.22s ease;
}


.field--name-field-faq.aplike-faq--enhanced.is-collapsed
> .aplike-faq__body {
  grid-template-rows: 0fr;
  opacity: 0;
}


.aplike-faq__body-inner {
  min-height: 0;
  overflow: hidden;

  padding: 20px 24px 24px;

  transition:
    padding-top 0.25s ease,
    padding-bottom 0.25s ease;
}


.field--name-field-faq.aplike-faq--enhanced.is-collapsed
.aplike-faq__body-inner {
  padding-top: 0;
  padding-bottom: 0;
}


/* =========================================================
   [10.4] H3 одного вопроса
   ========================================================= */

.field--name-field-faq.aplike-faq--custom
.aplike-faq__question {
  position: relative;

  box-sizing: border-box;

  margin: 0 0 8px !important;
  padding: 0 !important;

  border:
    1px solid rgba(255, 0, 0, 0.70) !important;

  border-radius: 7px !important;

  background:
    rgba(255, 0, 0, 0.035) !important;

  box-shadow: none !important;

  overflow: hidden;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}


.field--name-field-faq.aplike-faq--custom
.aplike-faq__question.is-open {
  margin-bottom: 0 !important;

  border-color:
    var(--faq-border) !important;

  border-radius:
    7px 7px 0 0 !important;

  background:
    rgba(255, 215, 0, 0.075) !important;

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.08) !important;
}


.field--name-field-faq.aplike-faq--custom
.aplike-faq__question:hover {
  border-color:
    var(--faq-border) !important;

  background:
    rgba(255, 215, 0, 0.055) !important;
}


/* =========================================================
   [10.5] Кнопка вопроса
   ========================================================= */

.aplike-faq__question-toggle {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    28px;

  align-items: center;
  gap: 14px;

  width: 100%;
  box-sizing: border-box;

  margin: 0;
  padding: 14px 14px 14px 16px;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: var(--faq-text) !important;

  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;

  text-align: left;
  cursor: pointer;

  transition:
    color 0.18s ease;
}


.aplike-faq__question-text {
  min-width: 0;

  color: inherit;

  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;

  white-space: normal;
  word-break: normal;
}


.field--name-field-faq.aplike-faq--custom
.aplike-faq__question:hover
.aplike-faq__question-toggle,
.field--name-field-faq.aplike-faq--custom
.aplike-faq__question.is-open
.aplike-faq__question-toggle {
  color:
    var(--faq-border) !important;
}


/* =========================================================
   [10.6] Стрелка вопроса
   ========================================================= */

.aplike-faq__question-icon {
  position: relative;

  display: block;

  width: 28px;
  height: 28px;

  box-sizing: border-box;

  border:
    1px solid var(--faq-red);

  border-radius: 6px;

  background:
    rgba(255, 0, 0, 0.04);

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}


.aplike-faq__question-icon::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  width: 7px;
  height: 7px;

  border-right:
    1.5px solid var(--faq-red);

  border-bottom:
    1.5px solid var(--faq-red);

  transform:
    translate(-50%, -70%)
    rotate(45deg);

  transition:
    transform 0.22s ease,
    border-color 0.18s ease;
}


.aplike-faq__question.is-open
.aplike-faq__question-icon {
  border-color:
    var(--faq-border);

  background:
    rgba(255, 215, 0, 0.10);

  box-shadow:
    0 0 9px rgba(255, 215, 0, 0.12);
}


.aplike-faq__question.is-open
.aplike-faq__question-icon::before {
  border-right-color:
    var(--faq-border);

  border-bottom-color:
    var(--faq-border);

  transform:
    translate(-50%, -30%)
    rotate(225deg);
}


/* =========================================================
   [10.7] Плавный ответ
   ========================================================= */

.field--name-field-faq.aplike-faq--custom
.aplike-faq__answer {
  display: grid !important;
  grid-template-rows: 0fr;

  opacity: 0;

  box-sizing: border-box;

  margin: 0 !important;
  padding: 0 !important;

  border:
    0 solid rgba(255, 215, 0, 0) !important;

  border-top: 0 !important;
  border-radius: 0 0 7px 7px !important;

  background:
    rgba(255, 255, 255, 0.025) !important;

  box-shadow: none !important;

  overflow: hidden;

  transition:
    grid-template-rows 0.28s ease,
    opacity 0.20s ease,
    border-color 0.20s ease,
    margin-bottom 0.20s ease;
}


.field--name-field-faq.aplike-faq--custom
.aplike-faq__question.is-open
+ .aplike-faq__answer {
  grid-template-rows: 1fr;
  opacity: 1;

  margin-bottom: 10px !important;

  border:
    1px solid rgba(255, 215, 0, 0.34) !important;

  border-top: 0 !important;

  box-shadow:
    inset 3px 0 0 rgba(255, 215, 0, 0.72) !important;
}


.aplike-faq__answer-inner {
  min-height: 0;
  overflow: hidden;

  padding: 0 18px;

  color: var(--faq-muted);

  font-size: 0.96rem;
  line-height: 1.65;

  text-align: left;

  transition:
    padding-top 0.25s ease,
    padding-bottom 0.25s ease;
}


.field--name-field-faq.aplike-faq--custom
.aplike-faq__question.is-open
+ .aplike-faq__answer
.aplike-faq__answer-inner {
  padding-top: 16px;
  padding-bottom: 17px;
}


/* =========================================================
   [10.8] Mobile
   ========================================================= */

@media (max-width: 767px) {

  .field--name-field-faq.aplike-faq--enhanced
  > .aplike-faq__title {
    padding: 18px;
  }


  .field--name-field-faq.aplike-faq--enhanced.is-collapsed
  > .aplike-faq__title {
    padding: 12px 16px;
  }


  .field--name-field-faq.aplike-faq--enhanced
  > .aplike-faq__title::after {
    left: 18px;
    width: calc(100% - 36px);
  }


  .field--name-field-faq.aplike-faq--enhanced
  .aplike-faq__main-toggle {
    grid-template-columns:
      minmax(0, 1fr)
      30px;

    gap: 12px;
    min-height: 30px;
  }


  .aplike-faq__main-text {
    font-size: 1.4rem;
  }


  .field--name-field-faq.aplike-faq--enhanced
  .aplike-faq__main-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }


  .field--name-field-faq.aplike-faq--enhanced.is-collapsed
  .aplike-faq__main-toggle {
    grid-template-columns:
      minmax(0, 1fr)
      28px;

    min-height: 28px;
  }


  .field--name-field-faq.aplike-faq--enhanced.is-collapsed
  .aplike-faq__main-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }


  .aplike-faq__body-inner {
    padding: 17px 16px 18px;
  }


  .field--name-field-faq.aplike-faq--enhanced.is-collapsed
  .aplike-faq__body-inner {
    padding-top: 0;
    padding-bottom: 0;
  }


  .aplike-faq__question-toggle {
    grid-template-columns:
      minmax(0, 1fr)
      26px;

    gap: 10px;
    padding: 12px 12px 12px 14px;

    font-size: 0.95rem;
  }


  .aplike-faq__question-icon {
    width: 26px;
    height: 26px;
  }


  /* На мобильном не анимируем физическую высоту всего длинного FAQ. */

  .field--name-field-faq.aplike-faq--enhanced
  > .aplike-faq__body {
    display: block;
    grid-template-rows: none;
    opacity: 1;
    transition: none;
  }


  .field--name-field-faq.aplike-faq--enhanced.is-collapsed
  > .aplike-faq__body {
    display: none;
    opacity: 0;
  }


  .field--name-field-faq.aplike-faq--enhanced:not(.is-collapsed)
  > .aplike-faq__body
  > .aplike-faq__body-inner {
    animation:
      aplikeFaqMobileReveal
      0.16s
      ease-out
      both;
  }


  .field--name-field-faq.aplike-faq--enhanced
  .aplike-faq__body-inner,
  .field--name-field-faq.aplike-faq--custom
  .aplike-faq__answer-inner {
    transition: none;
  }


  .field--name-field-faq.aplike-faq--custom
  .aplike-faq__answer,
  .field--name-field-faq.aplike-faq--custom
  .aplike-faq__question.is-open
  + .aplike-faq__answer {
    transition:
      grid-template-rows 0.20s ease,
      opacity 0.14s ease;
  }


  /* Компактный стык основного контента и mobile sidebar. */

  .page-node-type-services
  .field--name-field-faq {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }


  .page-node-type-services
  #sidebar-box-main
  .node__content
  > .field--name-body {
    margin-bottom: 0 !important;
  }


  .page-node-type-services
  #sidebar-box-main
  .node__content
  > .field--name-body
  > :last-child {
    margin-bottom: 0 !important;
  }


  .page-node-type-services
  #sidebar-box-main,
  .page-node-type-services
  #sidebar-box-main
  > .sidebar-box-main-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }


  .page-node-type-services
  #sidebar-box-second,
  .page-node-type-services
  #sidebar-box-second
  > .sidebar-box-second-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }


  .page-node-type-services
  #main-container-inner {
    row-gap: 8px !important;
  }
}


@keyframes aplikeFaqMobileReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   [10.9] Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .field--name-field-faq.aplike-faq--enhanced,
  .field--name-field-faq.aplike-faq--enhanced *,
  .field--name-field-faq.aplike-faq--enhanced *::before,
  .field--name-field-faq.aplike-faq--enhanced *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   SERVICE CONTENT SPACING + FAQ ANCHOR
   Компактный стык: основное тело -> Дополнительная информация
   -> FAQ -> следующий регион.
   ========================================================= */

.page-node-type-services
#sidebar-box-main
.node__content
> .field--name-body {
  margin-bottom: 0 !important;
}

.page-node-type-services
#sidebar-box-main
.node__content
> .field--name-body
> :last-child {
  margin-bottom: 0 !important;
}

.page-node-type-services
.field--name-field-faq {
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .page-node-type-services
  .field--name-field-faq {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }
}

.page-node-type-services
#sidebar-box-main,
.page-node-type-services
#sidebar-box-main
> .sidebar-box-main-inner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* ==========================================================================
   [11] SERVICES EXTENDED BODY
   Дополнительный текст на страницах services.

   Принцип:
   - пустое поле удаляется JS;
   - непустое поле свёрнуто по умолчанию;
   - внешнее раскрытие повторяет механику PAGE TOC:
     grid-template-rows + opacity + плавные внутренние отступы;
   - единственный декоративный элемент контейнера - жёлтая рамка;
   - раскрытый контент выглядит как обычное продолжение страницы;
   - поле выводится обычным formatter-ом без внутреннего jQuery UI accordion.
   ========================================================================== */


/* =========================================================
   [11.1] Внешний контейнер
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions {
  --extended-border: #FFD700;
  --extended-red: #ff0000;

  position: relative;
  overflow: hidden;

  width: 100%;
  box-sizing: border-box;

  margin: 16px 0;
  padding: 0;

  border: 2px solid var(--extended-border);
  border-radius: 10px;

  background: transparent;
  box-shadow: none;

  color: inherit;
}


/* =========================================================
   [11.2] Заголовок / кнопка
   Открытое состояние повторяет размеры PAGE TOC.
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
> .aplike-extended__title {
  position: relative;
  z-index: 1;

  margin: 0;
  padding: 22px 24px;

  text-align: left;

  transition:
    padding 0.25s ease;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  width: 100%;

  margin: 0;
  padding: 0;

  border: 0 !important;
  border-radius: 0;

  background: transparent !important;
  box-shadow: none !important;

  color: var(--extended-red) !important;

  font: inherit;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;

  text-align: left;

  cursor: pointer;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__toggle:hover,
.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__toggle:active {
  background: transparent !important;
  color: var(--extended-red) !important;
  box-shadow: none !important;
  transform: none;
}


/* =========================================================
   [11.3] Жёлтый индикатор как у PAGE TOC
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__icon {
  position: relative;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  box-sizing: border-box;

  border: 1px solid var(--extended-border);
  border-radius: 50%;

  background: rgba(255, 215, 0, 0.04);

  transition:
    width 0.2s ease,
    height 0.2s ease,
    flex-basis 0.2s ease,
    background-color 0.18s ease,
    transform 0.25s ease;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__icon::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 8px;
  height: 8px;

  border-right: 2px solid var(--extended-border);
  border-bottom: 2px solid var(--extended-border);

  transform:
    translate(-50%, -65%)
    rotate(45deg);
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__toggle:hover
.aplike-extended__icon {
  background:
    rgba(255, 215, 0, 0.12);
}


/* =========================================================
   [11.4] Свёрнутое состояние
   Здесь повторяется механика PAGE TOC.
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
> .aplike-extended__title {
  padding-top: 14px;
  padding-bottom: 14px;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
.aplike-extended__icon {
  flex-basis: 30px;

  width: 30px;
  height: 30px;

  transform:
    rotate(-90deg);
}


/* =========================================================
   [11.5] Плавное раскрытие содержимого
   Тот же принцип, что у .page-toc__body.
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
> .aplike-extended__body {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-rows: 1fr;

  opacity: 1;

  transition:
    grid-template-rows 0.28s ease,
    opacity 0.2s ease;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
> .aplike-extended__body {
  grid-template-rows: 0fr;

  opacity: 0;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__body-inner {
  min-height: 0;

  overflow: hidden;

  padding:
    10px 24px
    24px;

  transition:
    padding-top 0.25s ease,
    padding-bottom 0.25s ease;
}


.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
.aplike-extended__body-inner {
  padding-top: 0;
  padding-bottom: 0;
}


/*
 * Сам Drupal field__items больше не управляет раскрытием.
 * Он всегда присутствует внутри анимируемой обёртки.
 */
.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__body-inner
> .field__items {
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;

  color: inherit;
  font: inherit;
}


/*
 * Само текстовое поле Paragraph не получает отдельного оформления.
 */
.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.field--name-field-extended-body.field--type-text-with-summary {
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;

  color: inherit;
}


/* =========================================================
   [11.6] Focus
   ========================================================= */

.page-node-type-services
.field--name-field-extended-body.field--type-entity-reference-revisions
.aplike-extended__toggle:focus-visible {
  outline: 2px solid var(--extended-border);
  outline-offset: 3px;
}


/* =========================================================
   [11.7] Mobile
   ========================================================= */

@media (max-width: 767px) {

  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions {
    margin: 8px 0;
    border-radius: 8px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions
  > .aplike-extended__title {
    padding: 18px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
  > .aplike-extended__title {
    padding: 12px 16px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions
  .aplike-extended__toggle {
    gap: 12px;
    font-size: 1.4rem;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions
  .aplike-extended__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
  .aplike-extended__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions
  .aplike-extended__body-inner {
    padding:
      8px 16px
      18px;
  }


  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions.is-collapsed
  .aplike-extended__body-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

}


/* =========================================================
   [11.8] Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions,
  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions *,
  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions *::before,
  .page-node-type-services
  .field--name-field-extended-body.field--type-entity-reference-revisions *::after {
    animation: none !important;
    transition: none !important;
  }

}

/* ==========================================================================
   [12] INFO BANNER - без нижней полосы + небольшой отступ до контента

   Alert расположен отдельным блоком непосредственно перед
   #block-solo-subtheme-content, внутри которого первым идёт изображение услуги.

   Убираем нижнюю границу alert и добавляем небольшой зазор 8px
   между alert и следующим контентным блоком.
   ========================================================================== */

.block-info-banner-block {
  border-bottom:
    0 !important;
}


.block-info-banner-block
.info-banner {
  border-bottom:
    0 !important;
}


/*
 * Отступ только в том случае, когда сразу после alert идёт
 * основной контент страницы услуги.
 */
.block-info-banner-block
+ #block-solo-subtheme-content {
  padding-top:
    8px !important;
}

/* ==========================================================================
   [13] RATING WIDGET
   Компактный Rate / Fivestar в стиле ApLike.
   ========================================================================== */

.page-node-type-services .rate-widget.fivestar {
  --rating-border: #FFD700;
  --rating-text: #ffffff;
  --rating-muted: rgba(255, 255, 255, 0.68);
  --rating-bg: rgba(255, 255, 255, 0.025);

  width: 100%;
  box-sizing: border-box;

  margin: 32px 0;
}


/* =========================================================
   Основная карточка
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.vote-form {
  position: relative;
  overflow: hidden;

  width: 100%;
  box-sizing: border-box;

  border: 2px solid var(--rating-border);
  border-radius: 10px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 215, 0, 0.09),
      transparent 35%
    ),
    var(--rating-bg);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.page-node-type-services
.rate-widget.fivestar
.vote-form:hover {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.17),
    0 0 14px rgba(255, 215, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}


/* =========================================================
   Убираем табличное оформление Rate
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.rating-table {
  display: block;

  width: 100%;

  margin: 0;
  padding: 0;

  border: 0;
  border-collapse: collapse;
}


.page-node-type-services
.rate-widget.fivestar
.rating-table
tbody {
  display: block;
  width: 100%;
}


.page-node-type-services
.rate-widget.fivestar
.rating-table-tr {
  display: block;
  width: 100%;
}


.page-node-type-services
.rate-widget.fivestar
.rating-table-td {
  box-sizing: border-box;

  border: 0 !important;

  color: var(--rating-text);
}


/* =========================================================
   Заголовок
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.rating-table-tr:first-child
.rating-table-td {
  display: block;

  width: 100%;

  padding: 18px 22px 14px;

  border-bottom:
    1px solid rgba(255, 215, 0, 0.20) !important;

  color: #ffffff;

  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;

  text-align: left;
}


/* =========================================================
   Основная строка:
   звёзды + кнопка | текущий рейтинг
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.rating-table-tr:nth-child(2) {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 28px;

  box-sizing: border-box;

  padding: 20px 22px 12px;
}


.page-node-type-services
.rate-widget.fivestar
.rating-table-tr:nth-child(2)
> td:first-child {
  display: flex;

  flex: 1 1 auto;

  align-items: center;
  flex-wrap: wrap;

  gap: 16px;

  min-width: 0;

  padding: 0 !important;
}


.page-node-type-services
.rate-widget.fivestar
.rating-table-tr:nth-child(2)
> td:last-child {
  flex: 0 0 auto;

  padding: 0 !important;
}


/* =========================================================
   ЗВЁЗДЫ
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-wrapper {
  display: flex !important;

  flex-direction: row !important;
  flex-wrap: nowrap !important;

  align-items: center !important;

  gap: 7px !important;

  width: auto !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}


/*
 * Важно:
 * Solo / Rate задают оформление .form-item.
 * Именно его жёстко превращаем в компактный элемент
 * горизонтальной строки.
 */
.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-wrapper
> .form-item {
  display: block !important;

  flex: 0 0 46px !important;

  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;

  height: 46px !important;

  margin: 0 !important;
  padding: 0 !important;

  float: none !important;
  clear: none !important;
}


/* Последний wrapper содержит ещё технический result */
.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-wrapper
> .form-item:last-child {
  position: relative;
}


/* Сама звезда */
.page-node-type-services
.rate-widget.fivestar
.rating-label {
  position: relative;

  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 46px !important;
  height: 46px !important;

  box-sizing: border-box;

  margin: 0 !important;
  padding: 0 !important;

  border:
    1px solid rgba(255, 215, 0, 0.28);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.045);

  cursor: pointer;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}


/* Символ звезды */
.page-node-type-services
.rate-widget.fivestar
.rating-label::before {
  content: "★";

  display: block;

  color:
    rgba(255, 255, 255, 0.25);

  font-size: 1.85rem;
  line-height: 1;

  transition:
    color 0.18s ease,
    text-shadow 0.18s ease,
    transform 0.18s ease;
}


/*
 * Цифры 1,2,3,4,5 больше не рисуем.
 */
.page-node-type-services
.rate-widget.fivestar
.rating-label::after {
  content: none !important;
  display: none !important;
}


/* Настоящий radio остаётся кликабельным */
.page-node-type-services
.rate-widget.fivestar
.rating-label
input[type="radio"] {
  position: absolute;

  inset: 0;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;

  opacity: 0;

  cursor: pointer;
}


/* Hover */
.page-node-type-services
.rate-widget.fivestar
.rating-label:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(255, 215, 0, 0.8);

  background:
    rgba(255, 215, 0, 0.10);

  box-shadow:
    0 0 13px rgba(255, 215, 0, 0.12);
}


.page-node-type-services
.rate-widget.fivestar
.rating-label:hover::before {
  color: #FFD700;

  transform:
    scale(1.05);

  text-shadow:
    0 0 15px rgba(255, 215, 0, 0.28);
}


/* Подсветка диапазона при наведении */
.page-node-type-services
.rate-widget.fivestar
.rating-label.is-hover {
  border-color:
    rgba(255, 215, 0, 0.72);

  background:
    rgba(255, 215, 0, 0.09);
}


.page-node-type-services
.rate-widget.fivestar
.rating-label.is-hover::before {
  color: #FFD700;
}


/* Выбранная оценка */
.page-node-type-services
.rate-widget.fivestar
.rating-label.is-active {
  border-color:
    rgba(255, 215, 0, 0.88);

  background:
    rgba(255, 215, 0, 0.12);

  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.09);
}


.page-node-type-services
.rate-widget.fivestar
.rating-label.is-active::before {
  color: #FFD700;

  text-shadow:
    0 0 15px rgba(255, 215, 0, 0.25);
}


/*
 * Служебный результат самого Rate,
 * который сейчас выводит "0".
 */
.page-node-type-services
.rate-widget.fivestar
.rating-option-result {
  display: none !important;
}


/* =========================================================
   Кнопка
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-submit {
  width: auto !important;
  min-width: 0 !important;

  margin: 0 !important;

  padding:
    10px 16px !important;

  border:
    1px solid #FFD700 !important;

  border-radius:
    8px !important;

  background:
    #FFD700 !important;

  color:
    #111111 !important;

  font-size:
    0.94rem !important;

  font-weight:
    700 !important;

  line-height:
    1.2 !important;

  cursor: pointer;

  box-shadow: none !important;

  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}


.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-submit:hover,
.page-node-type-services
.rate-widget.fivestar
.fivestar-rating-submit:focus {
  transform:
    translateY(-1px);

  background:
    #f5b342 !important;

  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.10) !important;
}


/* =========================================================
   КОМПАКТНЫЙ РЕЗУЛЬТАТ

   Вместо:
   [ 15 голосов со средней оценкой 4.6. ]

   Получаем:
   ★ 4.6 · 15 голосов
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.vote-result {
  display: flex !important;

  align-items: center;
  justify-content: flex-end;

  gap: 7px;

  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: none !important;

  box-shadow: none !important;

  color: var(--rating-text);

  white-space: nowrap;

  text-align: right;
}


/* Золотая звезда */
.page-node-type-services
.rate-widget.fivestar
.aplike-rating-summary-star {
  color: #FFD700;

  font-size: 1.4rem;
  line-height: 1;
}


/* Средняя оценка */
.page-node-type-services
.rate-widget.fivestar
.aplike-rating-summary-value {
  color: #ffffff;

  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}


/* Разделитель */
.page-node-type-services
.rate-widget.fivestar
.aplike-rating-summary-separator {
  color:
    rgba(255, 215, 0, 0.62);

  font-size: 1rem;
}


/* Количество голосов */
.page-node-type-services
.rate-widget.fivestar
.aplike-rating-summary-count {
  color: var(--rating-muted);

  font-size: 0.94rem;
  line-height: 1.2;
}


/* =========================================================
   Нижняя подпись
   ========================================================= */

.page-node-type-services
.rate-widget.fivestar
.rating-table-tr:last-child
.rating-table-td {
  display: block;

  width: 100%;

  padding:
    0 22px 18px !important;

  color:
    var(--rating-muted);

  font-size:
    0.92rem;

  line-height:
    1.45;

  text-align:
    left;
}


/* =========================================================
   Мобильная версия
   ========================================================= */

@media (max-width: 767px) {

  .page-node-type-services
  .rate-widget.fivestar
  .rating-table-tr:first-child
  .rating-table-td {
    padding:
      16px 16px 13px;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-table-tr:nth-child(2) {
    flex-direction: column;

    align-items: flex-start;

    gap: 16px;

    padding:
      18px 16px 12px;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-table-tr:nth-child(2)
  > td:first-child {
    width: 100%;

    gap: 14px;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-table-tr:nth-child(2)
  > td:last-child {
    width: 100%;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .vote-result {
    justify-content: flex-start;

    width: 100% !important;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-table-tr:last-child
  .rating-table-td {
    padding:
      0 16px 16px !important;
  }

}


/*
 * На совсем узких экранах немного уменьшаем звёзды,
 * но по-прежнему держим их в одну строку.
 */
@media (max-width: 420px) {

  .page-node-type-services
  .rate-widget.fivestar
  .fivestar-rating-wrapper {
    gap: 5px !important;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .fivestar-rating-wrapper
  > .form-item {
    flex-basis:
      42px !important;

    width:
      42px !important;

    min-width:
      42px !important;

    max-width:
      42px !important;

    height:
      42px !important;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-label {
    width:
      42px !important;

    height:
      42px !important;
  }


  .page-node-type-services
  .rate-widget.fivestar
  .rating-label::before {
    font-size:
      1.65rem;
  }

}


@media (prefers-reduced-motion: reduce) {

  .page-node-type-services
  .rate-widget.fivestar
  .vote-form,
  .page-node-type-services
  .rate-widget.fivestar
  .vote-form *,
  .page-node-type-services
  .rate-widget.fivestar
  .vote-form *::before,
  .page-node-type-services
  .rate-widget.fivestar
  .vote-form *::after {
    animation: none !important;
    transition: none !important;
  }

}

