/* .site-main{
      padding-top: 92px;
} */
@media (max-width: 1024px) {
  .site-main{
      padding-top: 52px;
}
}

/* =========================================================
   SINGLE SERVICE PAGE (scoped)
   Applies only on body.single-service
   ========================================================= */

/* Thumb */
body.single-service .service-single__thumb {
  margin: 14px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(var(--white), 0.06);
  border: 1px solid rgba(var(--white), 0.10);
  box-shadow: 0 10px 26px rgba(var(--black), 0.28);
}

body.single-service .service-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Editor content */
body.single-service .service-single__content {
  margin-top: 14px;
}

body.single-service .service-single__content.editor-content {
  color: rgba(var(--white), 0.82);
  font-size: 16px;
  line-height: 1.65;
}

body.single-service .service-single__content.editor-content > * + * {
  margin-top: 14px;
}

body.single-service .service-single__content.editor-content h2,
body.single-service .service-single__content.editor-content h3,
body.single-service .service-single__content.editor-content h4 {
  color: rgba(var(--white), 1);
  line-height: 1.2;
  margin: 22px 0 10px;
}

body.single-service .service-single__content.editor-content h2 { font-size: 28px; }
body.single-service .service-single__content.editor-content h3 { font-size: 22px; }
body.single-service .service-single__content.editor-content h4 { font-size: 18px; }

body.single-service .service-single__content.editor-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

body.single-service .service-single__content.editor-content a:hover {
  text-decoration-thickness: 2px;
}

body.single-service .service-single__content.editor-content ul,
body.single-service .service-single__content.editor-content ol {
  padding-left: 20px;
}

body.single-service .service-single__content.editor-content li + li {
  margin-top: 8px;
}

body.single-service .service-single__content.editor-content blockquote {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(var(--primary-rgb), 0.75);
  background: rgba(var(--white), 0.05);
  border-radius: 12px;
  color: rgba(var(--white), 0.85);
}

/* Repeater blocks */
body.single-service .service-blocks {
  margin: 26px 0;
  display: grid;
  gap: 18px;
}

body.single-service .service-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 18px;
  padding: 14px;
  border-radius: 16px;

  background: rgba(var(--white), 0.06);
  border: 1px solid rgba(var(--white), 0.10);
  box-shadow: 0 10px 26px rgba(var(--black), 0.22);
}

body.single-service .service-block.no-image {
  grid-template-columns: 1fr;
}

body.single-service .service-block.no-image .service-block__text {
  grid-column: 1 / -1;
}

body.single-service .service-block__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  align-self: flex-start;
  border-radius: 16px;
}

body.single-service .service-block__text {
  color: rgba(var(--white), 0.80);
  font-size: 18px;
  line-height: 1.65;
}

body.single-service .service-block__text p { margin: 0; }
body.single-service .service-block__text > * + * { margin-top: 12px; }

/* =========================================================
   Works slider stub (scoped)
   ========================================================= */
body.single-service .works {
  padding: 44px 0 10px;
}

body.single-service .works__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  color: rgba(var(--white), 1);
}

body.single-service .works__slider { position: relative; }

body.single-service .works__track {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
  will-change: transform;
}

body.single-service .works-card {
  flex: 0 0 calc(50% - 12px);
  background: rgba(var(--white), 0.06);
  border: 1px solid rgba(var(--white), 0.10);
  border-radius: 16px;
  padding: 16px;
}

body.single-service .works-card__media {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(var(--black), 0.25);
}

body.single-service .works-card__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}

body.single-service .works-card__photos img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

body.single-service .works-card__title {
  margin: 14px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: rgba(var(--white), 1);
}

body.single-service .works-card__table {
  background: rgba(var(--black), 0.18);
  border-radius: 12px;
  overflow: hidden;
}

body.single-service .works-card__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 12px;
  font-size: 16px;
  color: rgba(var(--white), 0.85);
  border-top: 1px solid rgba(var(--white), 0.06);
}

body.single-service .works-card__row:first-child { border-top: 0; }

body.single-service .works-card__row span:last-child {
  white-space: nowrap;
  color: rgba(var(--white), 0.92);
}

body.single-service .works-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  align-items: end;
}

body.single-service .works-card__meta-label {
  font-size: 14px;
  color: rgba(var(--white), 0.60);
  margin-bottom: 4px;
}

body.single-service .works-card__meta-value {
  font-size: 24px;
  font-weight: 700;
  color: rgba(var(--white), 1);
}

body.single-service .works-card__meta-value--big { font-size: 24px; }
body.single-service .works-card__meta-item--right { text-align: right; }

/* Controls */
body.single-service .works__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

body.single-service .works__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(var(--white), 0.25);
  background: transparent;
  color: rgba(var(--white), 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

body.single-service .works__btn:hover {
  border-color: rgba(var(--white), 0.45);
  transform: translateY(-1px);
}

body.single-service .works__btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

body.single-service .works__btn span {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

body.single-service .works__dots {
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

body.single-service .works__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--white), 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.single-service .works__dot.is-active {
  background: var(--color-primary);
}

/* Responsive */
@media (max-width: 1100px) {
  body.single-service .service-block { grid-template-columns: 1fr; }
  body.single-service .service-block__img img { height: 240px; }
  body.single-service .works-card { flex-basis: 100%; }
  body.single-service .works-card__photos img { height: 240px; }
}

@media (max-width: 600px) {
  body.single-service .works__title { font-size: 26px; }
  body.single-service .works-card__photos { grid-template-columns: 1fr; }
  body.single-service .works-card__photos img { height: 220px; }
  body.single-service .works-card__meta { grid-template-columns: 1fr; }
  body.single-service .works-card__meta-item--right { text-align: left; }
}

/* Photo buttons inside works cards */
body.single-service .works-photo {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

body.single-service .works-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease;
}

body.single-service .works-photo:hover img {
  transform: scale(1.02);
}

body.single-service .works-photo__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 14px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(var(--black), 0.55);
  color: rgba(var(--white), 1);
  border: 1px solid rgba(var(--white), 0.18);
  backdrop-filter: blur(6px);
}

/* Modal */
body.single-service .work-modal[hidden] { display: none; }

body.single-service .work-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

body.single-service .work-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--black), 0.72);
}

body.single-service .work-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 28px));
  margin: 40px auto;
  background: rgba(20, 24, 32, 0.96);
  border: 1px solid rgba(var(--white), 0.10);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(var(--black), 0.55);
  overflow: hidden;
}

body.single-service .work-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(var(--white), 0.18);
  background: rgba(var(--black), 0.30);
  color: rgba(var(--white), 1);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.single-service .work-modal__caption {
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(var(--white), 0.70);
  border-bottom: 1px solid rgba(var(--white), 0.08);
}

body.single-service .work-modal__imgwrap {
  padding: 12px;
  background: rgba(var(--black), 0.22);
}

body.single-service .work-modal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (max-width: 600px) {
  body.single-service .work-modal__dialog { margin: 18px auto; }
}

/* link overlay */
.works-card { position: relative; }

.works-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}

.works-card__media,
.works-card__photos,
.works-photo { position: relative; z-index: 2; }

/* =========================================================
   SINGLE SERVICE: Modal responsive (image BIG on mobile)
   ========================================================= */
@media (max-width: 600px) {
  body.single-service .work-modal {
    display: grid;
    place-items: center;
    padding: 12px;
  }

  body.single-service .work-modal__dialog {
    width: 100%;
    margin: 0;
    max-height: calc(100dvh - 24px);
    height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
  }

  body.single-service .work-modal__caption {
    padding: 12px 14px;
    flex: 0 0 auto;
  }

  body.single-service .work-modal__imgwrap {
    padding: 10px;
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  body.single-service .work-modal__img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
  }

  body.single-service .work-modal__close {
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  body.single-service .work-modal { padding: 8px; }
  body.single-service .work-modal__dialog {
    max-height: calc(100dvh - 16px);
    height: calc(100dvh - 16px);
  }
  body.single-service .work-modal__imgwrap { padding: 8px; }
}

/* =========================================================
   LIGHT THEME OVERRIDES
   ========================================================= */
html[data-theme="light"] body.single-service .service-single__thumb {
  background: #F1F5F9;
  border-color: rgba(var(--black), 0.08);
  box-shadow: 0 14px 36px rgba(var(--black), 0.10);
}

html[data-theme="light"] body.single-service .service-single__content.editor-content {
  color: #62748E;
}

html[data-theme="light"] body.single-service .service-single__content.editor-content h2,
html[data-theme="light"] body.single-service .service-single__content.editor-content h3,
html[data-theme="light"] body.single-service .service-single__content.editor-content h4 {
  color: var(--color-text);
}

html[data-theme="light"] body.single-service .service-single__content.editor-content blockquote {
  border-left-color: rgba(var(--primary-rgb), 0.55);
  background: #F1F5F9;
  color: var(--color-text);
}

html[data-theme="light"] body.single-service .service-block {
  background: #F1F5F9;
  border: 1px solid rgba(var(--black), 0.06);
  box-shadow: 0 14px 36px rgba(var(--black), 0.08);
}

html[data-theme="light"] body.single-service .service-block__text {
  color: #62748E;
}

html[data-theme="light"] body.single-service .works__title {
  color: var(--color-text);
}

html[data-theme="light"] body.single-service .works-card {
  background: #F1F5F9;
  border: 1px solid rgba(var(--black), 0.06);
}

html[data-theme="light"] body.single-service .works-card__title {
  color: var(--color-text);
}

html[data-theme="light"] body.single-service .works-card__table {
  background: rgba(var(--black), 0.04);
}

html[data-theme="light"] body.single-service .works-card__row {
  color: rgba(var(--black), 0.72);
  border-top-color: rgba(var(--black), 0.08);
}

html[data-theme="light"] body.single-service .works-card__row span:last-child {
  color: rgba(var(--black), 0.86);
}

html[data-theme="light"] body.single-service .works-card__meta-label {
  color: #62748E;
}

html[data-theme="light"] body.single-service .works-card__meta-value {
  color: var(--color-text);
}

html[data-theme="light"] body.single-service .works__btn {
  border-color: rgba(var(--black), 0.18);
  color: rgba(var(--black), 0.80);
}

html[data-theme="light"] body.single-service .works__btn:hover {
  border-color: rgba(var(--black), 0.28);
}

html[data-theme="light"] body.single-service .works__dot {
  background: rgba(var(--black), 0.22);
}

html[data-theme="light"] body.single-service .works__dot.is-active {
  background: var(--color-primary);
}

/* Modal light */
html[data-theme="light"] body.single-service .work-modal__overlay {
  background: rgba(var(--black), 0.45);
}

html[data-theme="light"] body.single-service .work-modal__dialog {
  background: rgba(var(--white), 0.96);
  border-color: rgba(var(--black), 0.10);
  box-shadow: 0 18px 60px rgba(var(--black), 0.18);
}

html[data-theme="light"] body.single-service .work-modal__close {
  border-color: rgba(var(--black), 0.14);
  background: rgba(var(--black), 0.06);
  color: rgba(var(--black), 0.82);
}

html[data-theme="light"] body.single-service .work-modal__caption {
  color: #62748E;
  border-bottom-color: rgba(var(--black), 0.10);
}

html[data-theme="light"] body.single-service .work-modal__imgwrap {
  background: rgba(var(--black), 0.04);
}
