/*
Theme Name: Service Lux Дочерняя тема
Theme URI: https://goodwinpress.ru/wp-tema-wp-service-lux
Author: GoodwinPress
Author URI: https://goodwinpress.ru/
Description: Используем дочернюю тему лишь в тех случаях, когда собрались менять стили, разметку или функции темы. Просто так ее ставить не требуется.
Text Domain: service-lux
Template: service-lux
*/

/* Размещайте ваши стили под этой строкой. */

/* Обложки услуг: SVG без размеров вложения растягиваем на ширину карточки */
.home-service-img,
.related-services__img,
.case-item__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 836 / 420;
  object-fit: cover;
  background-color: #f4f7fb;
}

/* Тарифы SSL: узкая колонка рядом с «Другие услуги» ломает таблицу */
.ssl-tariffs {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0.5rem;
}

.ssl-tariff {
  padding: 1rem 1.15rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--bradius);
  background: #fff;
}

.ssl-tariff__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.post-content .ssl-tariff__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: var(--semi-bold);
  line-height: 1.3;
}

.ssl-tariff__price {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: var(--semi-bold);
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
}

.post-content .ssl-tariff__lead {
  margin: 0.45rem 0 0.35rem;
}

.post-content .ssl-tariff ul {
  margin: 0.35rem 0 0;
}

@media (max-width: 600px) {
  .ssl-tariff__head {
    flex-wrap: wrap;
  }
}

/* Бейдж SmartCaptcha не должен закрывать телефон и нижнюю кнопку заказа */
.SmartCaptcha-Shield {
  top: auto !important;
  bottom: 12px !important;
  left: auto !important;
  right: 8px !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  .single-service {
    padding-bottom: 5.5rem;
  }

  .single-service .SmartCaptcha-Shield {
    bottom: 4.75rem !important;
  }
}

.vps-tariffs {
  overflow-x: auto;
}

.vps-tariffs td:last-child,
.vps-tariffs th:last-child {
  white-space: nowrap;
}

/* Логотипы в блоке «Наши партнеры» */
.custom-content__item .partner-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: 42px;
  margin-block-end: 0.85rem;
  object-fit: contain;
  object-position: left center;
} 

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

@media (max-width: 1130px) {
  .header-actions {
    justify-content: center;
  }
}

/* ===== Кабинет: десктопный dropdown ===== */
.cabinet-desktop {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 1130px) {
  .cabinet-desktop {
    display: none !important;
  }
}

.cabinet-menu {
  padding-block: 0;
}

.cabinet-menu > .menu-item-has-children > .menu-item__link {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cab-icon-wrap {
  display: inline-flex;
  align-items: center;
}

.cabinet-menu .sub-menu {
  width: max-content;
  min-width: 170px;
  gap: 1rem;
}

.cabinet-menu .sub-menu > .menu-item {
  margin-block-end: 0 !important;
}

.cabinet-menu .sub-menu .cab-support .menu-item__link:hover {
  text-decoration: none;
}

.cab-profile .menu-item__link {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cabinet-menu .sub-menu .cab-profile .menu-item__link,
.nav-panel__cabinet .cab-profile .menu-item__link > span {
  display: inline-block;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cab-hidden {
  display: none !important;
}

.billmgr-support-link-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.billmgr-support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: #16b74e;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes cabinetBellShake {
  0%, 85%, 100% {
    transform: rotate(0deg);
  }
  88% {
    transform: rotate(10deg);
  }
  91% {
    transform: rotate(-10deg);
  }
  94% {
    transform: rotate(7deg);
  }
  97% {
    transform: rotate(-7deg);
  }
}

.cabinet-menu .cab-user.site-header__icon {
  transform-origin: 50% 15%;
}

.cabinet-menu .menu-item-has-children.cabinet-has-unread .cab-user.site-header__icon {
  animation: cabinetBellShake 2.6s ease-in-out infinite;
}