/* Shared article/service layout and sidebar */
.article-meta-bar {
  margin: 10px 0 12px;
  padding: 10px 14px;
}

.article-meta-bar__items,
.article-meta-bar__items--inline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 0;
}

.article-meta-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  flex: 0 1 auto;
}

.article-meta-bar__item--rating {
  margin-left: auto;
  flex-shrink: 0;
  gap: 6px;
}

.article-meta-bar__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.article-meta-bar__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-meta-bar__items--two {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-meta-bar__content {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.article-meta-bar__dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.article-meta-bar__updated {
  opacity: .6;
  font-weight: 400;
}

.article-meta-bar__label {
  display: none;
}

.article-meta-bar__content strong {
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  opacity: .7;
}

.wp-star-rating {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.star-rating-item {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 166, 35, 0.28);
}

.star-rating-item .i-ico {
  width: 100%;
  height: 100%;
}

.star-rating-item.is-active {
  color: #f5a61d;
}

.service-detail-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.service-detail-page__main {
  margin-bottom: 0;
}

.service-detail-page__content,
.service-detail-page__contact {
  padding: 24px;
  min-width: 0;
}

.service-detail-page__sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.service-detail-page__featured-media {
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 44px rgba(3, 8, 18, 0.24);
}

.service-detail-page__featured-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-detail-page__cta-end {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
}

.service-detail-page__cta-end h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
}

.service-detail-page__cta-end p {
  margin: 0;
  color: #d8e3f7;
}

.service-detail-page__cta-phone-label {
  font-size: 14px;
  color: #bcc9df;
}

.service-detail-page__cta-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.service-detail-page__cta-contact {
  min-width: 0;
}

.service-detail-page__cta-phone {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.service-detail-page__cta-end .btn {
  white-space: nowrap;
  width: fit-content;
}

.service-detail-page__contact h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.service-detail-page__contacts-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.service-detail-page__phone,
.service-detail-page__email {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  overflow: hidden;
  font-weight: 700;
  transition: background .3s, box-shadow .3s, transform .15s;
}

.service-detail-page__phone {
  background: linear-gradient(135deg, rgba(241, 201, 137, 0.14), rgba(241, 201, 137, 0.06));
  border: 1px solid rgba(241, 201, 137, 0.3);
  color: #ffe8c2;
  font-size: 17px;
  animation: phonePulse 3s ease-in-out infinite;
}

.service-detail-page__phone::after,
.service-detail-page__email::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
}

.service-detail-page__phone::after {
  background: linear-gradient(90deg, transparent, rgba(241, 201, 137, 0.15), transparent);
  animation: phoneShimmer 4s ease-in-out infinite;
}

.service-detail-page__phone:hover {
  background: linear-gradient(135deg, rgba(241, 201, 137, 0.22), rgba(241, 201, 137, 0.1));
  box-shadow: 0 0 24px rgba(241, 201, 137, 0.25);
  transform: scale(1.03);
  animation: none;
}

.service-detail-page__phone:hover::after,
.service-detail-page__email:hover::after {
  animation: none;
}

.service-detail-page__phone-icon {
  flex-shrink: 0;
  animation: phoneRing 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(241, 201, 137, 0.5));
}

.service-detail-page__email {
  background: linear-gradient(135deg, rgba(140, 180, 255, 0.14), rgba(140, 180, 255, 0.06));
  border: 1px solid rgba(140, 180, 255, 0.35);
  color: #d6e8ff;
  font-size: 14px;
  animation: emailPulse 3.5s ease-in-out infinite;
}

.service-detail-page__email::after {
  background: linear-gradient(90deg, transparent, rgba(140, 180, 255, 0.12), transparent);
  animation: emailShimmer 5s ease-in-out infinite;
}

.service-detail-page__email:hover {
  background: linear-gradient(135deg, rgba(140, 180, 255, 0.24), rgba(140, 180, 255, 0.12));
  box-shadow: 0 0 22px rgba(140, 180, 255, 0.25);
  transform: scale(1.03);
  animation: none;
}

.service-detail-page__email-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(140, 180, 255, 0.4));
  animation: emailBounce 4s ease-in-out infinite;
}

.service-detail-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 14px;
}

.service-detail-page__actions .btn {
  width: 100%;
}

.service-detail-page__capture {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.service-detail-page__capture .quizle-container {
  width: 100%;
}

.service-detail-page__capture .quizle {
  margin: 0;
  max-width: none;
  --quizle-height: auto;
}

.service-detail-page__capture .quizle--view-slides {
  height: auto;
  min-height: 0;
}

.service-detail-page__capture .quizle-image-screen__container,
.service-detail-page__capture .quizle-body {
  overflow: visible;
}

.service-detail-page__capture .quizle-image-screen__body {
  justify-content: flex-start;
}

.service-detail-page__capture .quizle-image-screen__description {
  margin-top: 12px;
}

.service-detail-page__capture .quizle-image-screen__button {
  margin-top: 18px;
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 201, 137, 0); }
  50% { box-shadow: 0 0 18px 2px rgba(241, 201, 137, 0.12); }
}

@keyframes phoneShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

@keyframes phoneRing {
  0%, 75%, 100% { transform: rotate(0); }
  80% { transform: rotate(14deg); }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(-4deg); }
}

@keyframes emailPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140, 180, 255, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(140, 180, 255, 0.14); }
}

@keyframes emailShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

@keyframes emailBounce {
  0%, 80%, 100% { transform: translateY(0); }
  85% { transform: translateY(-3px); }
  90% { transform: translateY(0); }
  95% { transform: translateY(-2px); }
}

@media (max-width: 1120px) {
  .service-detail-page__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 16px;
  }

  .service-detail-page__sidebar {
    top: 88px;
    max-height: calc(100vh - 104px);
  }
}

@media (max-width: 900px) {
  .service-detail-page__layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-detail-page__sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .service-detail-page__content,
  .service-detail-page__contact {
    padding: 18px;
  }

  .service-detail-page__cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .service-detail-page__cta-end .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .article-meta-bar {
    padding: 12px;
  }

  .article-meta-bar__items,
  .article-meta-bar__items--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .article-meta-bar__item {
    min-width: 0;
    align-items: flex-start;
    white-space: normal;
  }

  .article-meta-bar__content {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .article-meta-bar__content strong {
    line-height: 1.35;
  }

  .article-meta-bar__item--rating {
    margin-left: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .article-meta-bar__dates {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .article-meta-bar__updated::before {
    content: none;
  }

  .wp-star-rating {
    gap: 4px;
  }

  .star-rating-item {
    width: 24px;
    height: 24px;
  }

  .wysiwyg table.is-mobile-comparison-source,
  .service-detail-page__text table.is-mobile-comparison-source {
    display: none;
  }

  .mobile-table-comparison {
    margin: 12px 0;
  }

  .mobile-table-comparison__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .mobile-table-comparison__status {
    flex: 1 1 auto;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(220, 232, 251, 0.82);
    letter-spacing: 0.01em;
  }

  .mobile-table-comparison__nav {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(33, 45, 70, 0.96), rgba(16, 25, 42, 0.96));
    color: #ffe0ac;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  .mobile-table-comparison__nav:disabled {
    opacity: 0.45;
    box-shadow: none;
  }

  .mobile-table-comparison__table {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(8, 17, 31, 0.82);
  }

  .mobile-table-comparison__header {
    display: grid;
    grid-template-columns: minmax(124px, 40%) minmax(0, 1fr);
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(43, 47, 55, 0.99), rgba(33, 37, 45, 0.99));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  }

  .mobile-table-comparison__header-cell {
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #ffe0ac;
  }

  .mobile-table-comparison__header-cell--label {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-table-comparison__body {
    display: block;
  }

  .mobile-table-comparison__row {
    display: grid;
    grid-template-columns: minmax(124px, 40%) minmax(0, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-table-comparison__row:last-child {
    border-bottom: 0;
  }

  .mobile-table-comparison__cell {
    padding: 12px;
    color: #dce8fb;
    font-size: 14px;
    line-height: 1.55;
  }

  .mobile-table-comparison__cell--label {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f7ff;
    font-weight: 600;
    word-break: normal;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.02);
  }

  .mobile-table-comparison__cell--value {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .service-detail-page__content,
  .service-detail-page__contact {
    padding: 16px;
  }

  .service-detail-page__contacts-line {
    align-items: flex-start;
    gap: 6px;
  }
}
