:root {
  --sites-bg: #f6f6fb;
  --sites-card: #ffffff;
  --sites-dark: #0c0e17;
  --sites-dark-2: #141a2b;
  --sites-border: rgba(87, 81, 225, 0.15);
}

body {
  background: var(--sites-bg);
}

.sites-page {
  overflow: hidden;
}

.sites-hero {
  padding: 28px 0 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(87, 81, 225, 0.08), transparent 52%),
    radial-gradient(circle at 86% 16%, rgba(87, 81, 225, 0.06), transparent 45%),
    var(--sites-bg);
}

.sites-hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.sites-hero__title {
  margin: 14px 0 12px;
  font-size: 55.2px; /* 46 * 1.2 */
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #101124;
}

.sites-hero__desc {
  margin: 0;
  max-width: 640px;
  font-size: 18px; /* 15 * 1.2 */
  line-height: 1.65;
  color: rgba(11, 11, 20, 0.68);
}

.sites-hero__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sites-hero__mock {
  display: flex;
  justify-content: flex-end;
}

.sites-browser {
  width: min(540px, 100%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(11, 11, 20, 0.09);
  overflow: hidden;
}

.sites-browser__top {
  height: 42px;
  background: #f0f1f8;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.sites-browser__top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c8da;
}

.sites-browser__content {
  min-height: 310px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
}

.sites-browser__left {
  background:
    linear-gradient(rgba(87,81,225,0.08), rgba(87,81,225,0.03));
  border-right: 1px solid rgba(0,0,0,0.04);
}

.sites-browser__right {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.sites-browser__card {
  height: 84px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(87,81,225,0.16), rgba(87,81,225,0.06));
  border: 1px solid rgba(87,81,225,0.14);
}

.sites-browser__card--wide {
  grid-column: 1 / -1;
  height: 120px;
}

.sites-stack {
  padding: 24px 0 36px;
}

.sites-stack__viewport {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: calc(100vh - 170px);
  min-height: 620px;
  max-height: 860px;
  overflow: hidden;
}

.sites-stack__hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(87,81,225,0.14);
  font-size: 14.4px; /* 12 * 1.2 */
  color: rgba(11,11,20,0.6);
  backdrop-filter: blur(8px);
}

.sites-panel {
  position: absolute;
  inset: 48px 20px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
  transition: transform 620ms cubic-bezier(.2,.8,.2,1), opacity 320ms ease;
}

.sites-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 5;
}

.sites-panel.is-prev {
  opacity: 1;
  pointer-events: none;
  transform: translateY(-12%);
  z-index: 4;
}

.sites-panel__inner {
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  border: 1px solid rgba(87,81,225,0.12);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(11,11,20,0.08);
  overflow: hidden;
}

.sites-panel__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  height: 100%;
  padding: 28px;
}

.sites-panel__content {
  min-width: 0;
}

.sites-panel__title {
  margin: 14px 0 12px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111229;
}

.sites-panel__text {
  margin: 0;
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1.62;
  color: rgba(11, 11, 20, 0.7);
}

.sites-panel__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sites-panel__list li {
  position: relative;
  align-items: center;
  justify-content: center;
  padding-left: 18px;
  font-size: 16.8px; /* 14 * 1.2 */
  color: rgba(11,11,20,0.86);
}

.sites-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd75a;
  box-shadow: 0 0 0 2px rgba(255,215,90,0.22);
}

.sites-panel__visual {
  min-width: 0;
  height: 100%;
}

.sites-panel__visual--gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.sites-shot {
  border-radius: 18px;
  border: 1px solid rgba(87,81,225,0.13);
  background:
    linear-gradient(145deg, rgba(87,81,225,0.12), rgba(87,81,225,0.04));
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.sites-shot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.64);
  box-shadow: inset 0 0 0 1px rgba(87,81,225,0.08);
}

.sites-shot--large {
  grid-column: 1 / -1;
  min-height: 220px;
}

.sites-shot__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-size: 14.4px; /* 12 * 1.2 */
  font-weight: 600;
  color: #24264d;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(87,81,225,0.12);
}

.sites-panel__visual--templates {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sites-template-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(87,81,225,0.12);
  padding: 12px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(11,11,20,0.04);
}

.sites-template-card__thumb {
  min-height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(87,81,225,0.2), rgba(87,81,225,0.06));
  border: 1px solid rgba(87,81,225,0.14);
  position: relative;
}

.sites-template-card__thumb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.75);
}

.sites-template-card__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sites-template-card__meta strong {
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1.25;
  color: #12142b;
}

.sites-template-card__meta span {
  font-size: 15.6px; /* 13 * 1.2 */
  color: rgba(11,11,20,0.65);
}

.sites-tech-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sites-tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(87,81,225,0.15);
  background: rgba(87,81,225,0.06);
  font-size: 14.4px; /* 12 * 1.2 */
  font-weight: 600;
  color: #3437a9;
}

.sites-panel__visual--server {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sites-server-card {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, var(--sites-dark-2) 0%, #0f1322 100%);
  color: #eef0ff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(87,81,225,0.08);
}

.sites-server-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.sites-server-card__row + .sites-server-card__row {
  margin-top: 10px;
}

.sites-server-card__row span {
  font-size: 14.4px; /* 12 * 1.2 */
  color: rgba(238,240,255,0.72);
  text-transform: lowercase;
}

.sites-server-card__row b {
  font-size: 14.4px; /* 12 * 1.2 */
  color: #55f0a3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sites-server-card--log {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.sites-log-line {
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(85,240,163,0.12), rgba(87,81,225,0.14));
  border: 1px solid rgba(255,255,255,0.05);
}

.sites-log-line:nth-child(1) { width: 92%; }
.sites-log-line:nth-child(2) { width: 80%; }
.sites-log-line:nth-child(3) { width: 88%; }
.sites-log-line:nth-child(4) { width: 70%; }
.sites-log-line:nth-child(5) { width: 76%; }

.sites-services-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sites-service-mini {
  border-radius: 14px;
  border: 1px solid rgba(87,81,225,0.12);
  background: #fff;
  padding: 12px;
}

.sites-service-mini h3 {
  margin: 0 0 6px;
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1.2;
}

.sites-service-mini p {
  margin: 0;
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.45;
  color: rgba(11,11,20,0.66);
}

.sites-service-mini--cta {
  background: rgba(87,81,225,0.05);
}

.sites-panel__cta {
  margin-top: 16px;
  width: fit-content;
}

.sites-stack__dots {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sites-stack__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(87,81,225,0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease, background-color 120ms ease;
}

.sites-stack__dot.is-active {
  background: #5751e1;
  transform: scale(1.25);
}

/* ===== sites page: normal scroll mode (no stacked wheel animation) ===== */

.sites-page {
  overflow: visible;
}

.sites-stack__viewport {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 18px;
}

.sites-stack__hint,
.sites-stack__dots {
  display: none;
}

.sites-panel {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.sites-panel.is-active,
.sites-panel.is-prev {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: auto;
}

.sites-panel__inner {
  height: auto;
}

.sites-panel__grid {
  height: auto;
  align-items: start;
}
.sites-hero__mock img {
  width: 700px;
}
.sites-panel__visual {
  height: auto;
  align-self: start;
}

/* Чуть меньше "воздуха" в блоках, если контента мало */
.sites-panel__text {
  max-width: 62ch;
}

/* ===== Block 1: gallery viewer (single image + arrows) ===== */

.sites-panel__visual--gallery-viewer {
  min-width: 0;
  height: auto;
  align-self: start;
}

.sites-design-viewer {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(87, 81, 225, 0.13);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  box-shadow: 0 10px 24px rgba(11, 11, 20, 0.05);
  padding: 14px;
  overflow: hidden;
}

.sites-design-viewer__stage {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(87, 81, 225, 0.12);
  background: linear-gradient(145deg, rgba(87, 81, 225, 0.07), rgba(87, 81, 225, 0.03));
  overflow: hidden;
  aspect-ratio: 1728 / 1117; /* под твои примеры */
  min-height: 280px;
}

.sites-design-viewer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* если хочешь без обрезки, поменяй на contain */
  object-position: top center;
  border-radius: 12px;
  background: #f3f4fb;
  cursor: zoom-in;
}

/* стрелки в стиле проекта */
.sites-design-viewer__nav {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(87, 81, 225, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #171a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 5px 0 rgba(3, 0, 113, 0.25);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  padding: 0;
}

.sites-design-viewer__nav span {
  font-size: 21.6px; /* 18 * 1.2 */
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.sites-design-viewer__nav:hover {
  background: #5751e1;
  color: #fff;
  border-color: #5751e1;
  transform: translateY(-1px);
}

.sites-design-viewer__nav:active {
  transform: translateY(3px);
  box-shadow: 2px 3px 0 rgba(3, 0, 113, 0.2);
}

.sites-design-viewer__nav--prev {
  left: 22px;
}

.sites-design-viewer__nav--next {
  right: 22px;
}

/* ===== Block 1: gallery viewer footer nav (counter + title + arrows) ===== */

.sites-design-viewer__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sites-design-viewer__footer-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.sites-design-viewer__counter {
  flex-shrink: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  font-weight: 700;
  color: #5751e1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(87, 81, 225, 0.15);
  background: rgba(87, 81, 225, 0.06);
}

.sites-design-viewer__caption {
  min-width: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.35;
  color: rgba(11, 11, 20, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-design-viewer__footer-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sites-design-viewer__footer-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(87, 81, 225, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #171a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 5px 0 rgba(3, 0, 113, 0.25);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  padding: 0;
}

.sites-design-viewer__footer-btn span {
  font-size: 19.2px; /* 16 * 1.2 */
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.sites-design-viewer__footer-btn:hover {
  background: #5751e1;
  color: #fff;
  border-color: #5751e1;
  transform: translateY(-1px);
}

.sites-design-viewer__footer-btn:active {
  transform: translateY(3px);
  box-shadow: 2px 3px 0 rgba(3, 0, 113, 0.2);
}

/* ===== Lightbox for sites gallery (fullscreen preview) ===== */

.sites-design-viewer__expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(87, 81, 225, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #171a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 5px 0 rgba(3, 0, 113, 0.25);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  padding: 0;
}

.sites-design-viewer__expand span {
  font-size: 19.2px; /* 16 * 1.2 */
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.sites-design-viewer__expand:hover {
  background: #5751e1;
  color: #fff;
  border-color: #5751e1;
  transform: translateY(-1px);
}

.sites-design-viewer__expand:active {
  transform: translateY(3px);
  box-shadow: 2px 3px 0 rgba(3, 0, 113, 0.2);
}

/* overlay */
.sites-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sites-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sites-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(2px);
}

.sites-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1400px);
  max-width: 1200px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.sites-lightbox__figure {
  margin: 0;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.sites-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1728 / 1117;
  max-height: 650px;
  max-width: 1005px;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  border-radius: 18px;
  background: #f2f3fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.sites-lightbox__caption {
  display: none; /* было два display подряд, оставляю реальный итог */
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(87, 81, 225, 0.12);
}

.sites-lightbox__counter {
  flex-shrink: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  font-weight: 700;
  color: #5751e1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(87, 81, 225, 0.15);
  background: rgba(87, 81, 225, 0.06);
}

.sites-lightbox__caption-text {
  min-width: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.35;
  color: rgba(11, 11, 20, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* unified controls style (arrows + close) */
.sites-lightbox__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(87, 81, 225, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #171a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 5px 0 rgba(3, 0, 113, 0.25);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
  padding: 0;
}

.sites-lightbox__btn span {
  font-size: 21.6px; /* 18 * 1.2 */
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.sites-lightbox__btn:hover {
  background: #5751e1;
  color: #fff;
  border-color: #5751e1;
  transform: translateY(-1px);
}

.sites-lightbox__btn:active {
  transform: translateY(3px);
  box-shadow: 2px 3px 0 rgba(3, 0, 113, 0.2);
}

.sites-lightbox__btn--close {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 2;
}

.sites-lightbox__btn--close span {
  font-size: 19.2px; /* 16 * 1.2 */
  
}

/* ===== Step 1 (templates): new right visual block ===== */

.sites-panel__visual--templates-showcase {
  display: grid;
  gap: 14px;
  align-content: start;
}

/* top area */
.sites-templates-top {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: stretch;
}

.sites-templates-top__main,
.sites-templates-top__side {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(87, 81, 225, 0.12);
  box-shadow: 0 10px 22px rgba(11, 11, 20, 0.04);
}

.sites-templates-top__main {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sites-templates-top__badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(87, 81, 225, 0.14);
  background: rgba(87, 81, 225, 0.06);
  color: #3c3fae;
  font-size: 14.4px; /* 12 * 1.2 */
  font-weight: 700;
}

.sites-templates-top__icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sites-tech-icon-card {
  border-radius: 14px;
  border: 1px solid rgba(87, 81, 225, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 56px;
}

.sites-tech-icon-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(87, 81, 225, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sites-tech-icon-card__icon img {
  width: 24px;
  height: 24px;
}

.sites-tech-icon-card__label {
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.25;
  font-weight: 600;
  color: #171a2f;
}

.sites-tech-icon-card__glyph {
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1;
  font-weight: 700;
}

/* right decorative stack */
.sites-templates-top__side {
  padding: 12px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(87,81,225,0.08), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(87,81,225,0.06), transparent 50%),
    #fff;
}

.sites-stack-mini {
  position: relative;
  width: 132px;
  height: 156px;
}

.sites-stack-mini__card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(87,81,225,0.14);
  background: linear-gradient(180deg, #fff 0%, #fafaff 100%);
  box-shadow: 0 8px 18px rgba(11,11,20,0.04);
}

.sites-stack-mini__card--back {
  transform: translate(-8px, 6px) rotate(-5deg);
  opacity: 0.72;
}

.sites-stack-mini__card--mid {
  transform: translate(7px, 2px) rotate(4deg);
  opacity: 0.88;
}

.sites-stack-mini__card--front {
  z-index: 1;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.sites-stack-mini__header {
  height: 12px;
  border-radius: 999px;
  background: rgba(87,81,225,0.14);
  border: 1px solid rgba(87,81,225,0.12);
}

.sites-stack-mini__line {
  height: 9px;
  border-radius: 999px;
  background: rgba(87,81,225,0.08);
  border: 1px solid rgba(87,81,225,0.08);
}

.sites-stack-mini__line--w1 { width: 92%; }
.sites-stack-mini__line--w2 { width: 76%; }
.sites-stack-mini__line--w3 { width: 84%; }

/* bottom examples */
.sites-template-examples {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(87, 81, 225, 0.12);
  box-shadow: 0 10px 22px rgba(11, 11, 20, 0.04);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sites-template-examples__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sites-template-examples__head strong {
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1.2;
  color: #12142b;
}

.sites-template-examples__head span {
  font-size: 14.4px; /* 12 * 1.2 */
  color: rgba(11,11,20,0.62);
}

.sites-template-examples__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sites-template-example-card {
  border-radius: 14px;
  border: 1px solid rgba(87, 81, 225, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.sites-template-example-card__thumb {
  width: 100%;
  aspect-ratio: 8 / 5; /* примерно то, что вы просили */
  border-radius: 10px;
  border: 1px solid rgba(87,81,225,0.12);
  background:
    linear-gradient(180deg, rgba(200, 204, 218, 0.45), rgba(180, 184, 198, 0.38));
  position: relative;
  overflow: hidden;
}

/* серые "шаблонные" полоски внутри прямоугольника */
.sites-template-example-card__thumb::before,
.sites-template-example-card__thumb::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.55);
}

.sites-template-example-card__thumb::before {
  top: 8px;
  height: 12px;
}

.sites-template-example-card__thumb::after {
  top: 26px;
  height: calc(100% - 34px);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.55) 0 20%,
      rgba(235,238,247,0.75) 20% 100%
    );
}

.sites-template-example-card__meta {
  display: grid;
  gap: 4px;
}

.sites-template-example-card__meta strong {
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.2;
  color: #161933;
}

.sites-template-example-card__meta span {
  font-size: 13.2px; /* 11 * 1.2 */
  line-height: 1.3;
  color: rgba(11,11,20,0.62);
}

.sites-lightbox{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;

  /* страховка: даже если backdrop где-то “поехал”, экран всё равно затемнён */
  background: rgba(8, 10, 18, 0.82);
}

.sites-lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.sites-lightbox__backdrop{
  position: fixed; /* было absolute */
  inset: 0;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(2px);
}
.sites-lightbox{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;

  /* страховка: даже если backdrop где-то “поехал”, экран всё равно затемнён */
  background: rgba(8, 10, 18, 0.82);
}

.sites-lightbox.is-open{
  opacity: 1;
  pointer-events: auto;
}

.sites-lightbox__backdrop{
  position: fixed; /* было absolute */
  inset: 0;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(2px);
}
.sites-lightbox__figure{
  margin: 0;
  min-width: 0;

  display: flex;              /* вместо grid */
  flex-direction: column;
  align-items: center;        /* центрирует img и caption */
  gap: 12px;
}
.sites-lightbox__img{
  display: block;
  width: 100%;
  height: auto;

  aspect-ratio: 1728 / 1117;
  max-height: 650px;
  max-width: 1005px;
  min-height: 0;

  object-fit: contain;
  object-position: center top;

  border-radius: 18px;
  background: #f2f3fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);

  margin: 0 auto; /* ключ: центр */
}
.sites-lightbox__caption{
  display: flex;          /* было none */
  align-items: center;
  gap: 10px;
  min-width: 0;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(87, 81, 225, 0.12);
}
.sites-lightbox__btn--prev{ justify-self: end; }
.sites-lightbox__btn--next{ justify-self: start; }
/* =========================================================
   RESPONSIVE (ALL @media IN ONE BLOCK)
   ========================================================= */

@media (max-width: 1180px) {
  .sites-templates-top {
    grid-template-columns: 1fr;
  }

  .sites-templates-top__side {
    min-height: 140px;
  }
}

@media (max-width: 1024px) {
  .sites-hero__container,
  .sites-panel__grid {
    grid-template-columns: 1fr;
  }

  .sites-hero__title {
    font-size: 43.2px; /* 36 * 1.2 */
  }

  .sites-hero__mock {
    justify-content: stretch;
  }

  .sites-stack__viewport {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    display: grid;
    gap: 14px;
  }

  .sites-stack__hint,
  .sites-stack__dots {
    display: none;
  }

  .sites-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .sites-panel.is-prev,
  .sites-panel.is-active {
    transform: none;
  }

  .sites-panel__inner {
    min-height: unset;
  }

  .sites-template-card {
    grid-template-columns: 1fr;
  }

  .sites-services-grid {
    grid-template-columns: 1fr;
  }

  /* На планшете/мобиле оставить обычный поток (как и было), но gap можно выровнять */
  .sites-stack__viewport {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .sites-lightbox__dialog {
    width: 96vw;
    height: 92vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .sites-lightbox__btn--prev,
  .sites-lightbox__btn--next {
    position: absolute;
    top: 69%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .sites-lightbox__btn--prev {
    left: 15px;
  }

  .sites-lightbox__btn--next {
    right: 15px;
  }

  .sites-lightbox__btn--prev:hover,
  .sites-lightbox__btn--next:hover {
    transform: translateY(-50%);
  }

  .sites-lightbox__figure {
    grid-row: 2;
    display: flex;
    justify-content: center;
    height: auto;
  }

  .sites-lightbox__img {
    border-radius: 14px;
  }

  .sites-lightbox__caption {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sites-lightbox__btn {
    width: 40px;
    height: 40px;
  }
  .sites-lightbox__btn.sites-lightbox__btn--close {
    right: 15px;
    top: 19%;
  }
}
@media (max-width: 768px) {

  /* =========================================================
   SITES PAGE: -10% TEXT SCALE (FLOOR) — NO MEDIA
   Paste at the very end of sites.css
   Scope: .sites-page only
   ========================================================= */

/* =========================================================
   SITES PAGE: EXTRA -10% TEXT SCALE (FLOOR) — NO MEDIA
   Paste at the very end of sites.css (after previous block or replace it)
   Scope: .sites-page only
   ========================================================= */

.sites-page .sites-hero__title{ font-size: 44px; }                 /* было 49 -> 44 */
.sites-page .sites-hero__desc{ font-size: 14px; }                  /* было 16 -> 14 */

.sites-page .sites-stack__hint{ font-size: 10px; }                 /* было 12 -> 10 */

.sites-page .sites-panel__title{ font-size: 32px; }                /* было 36 -> 32 */
.sites-page .sites-panel__text{ font-size: 13px; }                 /* было 15 -> 13 */
.sites-page .sites-panel__list li{ font-size: 13px; }              /* было 15 -> 13 */

.sites-page .sites-shot__label{ font-size: 10px; }                 /* было 12 -> 10 */

.sites-page .sites-template-card__meta strong{ font-size: 13px; }   /* было 15 -> 13 */
.sites-page .sites-template-card__meta span{ font-size: 12px; }     /* было 14 -> 12 */

.sites-page .sites-tech-tag{ font-size: 10px; }                    /* было 12 -> 10 */

.sites-page .sites-server-card__row span{ font-size: 10px; }        /* было 12 -> 10 */
.sites-page .sites-server-card__row b{ font-size: 10px; }           /* было 12 -> 10 */

.sites-page .sites-service-mini h3{ font-size: 13px; }              /* было 15 -> 13 */
.sites-page .sites-service-mini p{ font-size: 10px; }               /* было 12 -> 10 */

/* Viewer (in-panel) typography */
.sites-page .sites-design-viewer__nav span{ font-size: 17px; }      /* было 19 -> 17 */
.sites-page .sites-design-viewer__counter{ font-size: 12px; }       /* было 14 -> 12 */
.sites-page .sites-design-viewer__caption{ font-size: 12px; }       /* было 14 -> 12 */
.sites-page .sites-design-viewer__footer-btn span{ font-size: 15px; } /* было 17 -> 15 */
.sites-page .sites-design-viewer__expand span{ font-size: 15px; }     /* было 17 -> 15 */

/* Lightbox typography */
.sites-page .sites-lightbox__counter{ font-size: 12px; }            /* было 14 -> 12 */
.sites-page .sites-lightbox__caption-text{ font-size: 12px; }       /* было 14 -> 12 */
.sites-page .sites-lightbox__btn span{ font-size: 17px; }           /* было 19 -> 17 */
.sites-page .sites-lightbox__btn--close span{ font-size: 15px; }    /* было 17 -> 15 */

/* Templates showcase typography */
.sites-page .sites-templates-top__badge{ font-size: 10px; }         /* было 12 -> 10 */
.sites-page .sites-tech-icon-card__label{ font-size: 14px; }        /* было 12 -> 10 */
.sites-page .sites-tech-icon-card__glyph{ font-size: 12px; }        /* было 14 -> 12 */
.sites-page .sites-template-examples__head strong{ font-size: 13px; } /* было 15 -> 13 */
.sites-page .sites-template-examples__head span{ font-size: 10px; }   /* было 12 -> 10 */
.sites-page .sites-template-example-card__meta strong{ font-size: 10px; } /* было 12 -> 10 */
.sites-page .sites-template-example-card__meta span{ font-size: 9px; }    /* было 11 -> 9 */

  .sites-hero {
    padding: 18px 0 14px;
  }

  .sites-hero__container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 14px;
    align-items: start;
  }

  /* текст */
  .sites-hero__title {
    font-size: 40px;
    line-height: 1.06;
    letter-spacing: -0.02em;
  }

  .sites-hero__desc {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
  }

  .sites-hero__actions {
    margin-top: 14px;
    gap: 10px;
  }

  /* мокап */
  .sites-hero__mock {
    justify-content: center;
  }

  .sites-browser {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
  }

  .sites-browser__top {
    height: 38px;
    padding: 0 12px;
  }

  .sites-browser__content {
    min-height: 240px;
  }

  .sites-browser__right {
    padding: 12px;
    gap: 10px;
  }

  .sites-browser__card {
    height: 76px;
    border-radius: 12px;
  }

  .sites-browser__card--wide {
    height: 108px;
  }
}

@media (max-width: 420px) {
  .sites-hero__title {
    font-size: 34px;
    line-height: 1.06;
  }

  .sites-browser {
    max-width: 340px;
  }

  .sites-browser__content {
    min-height: 220px;
  }

  .sites-hero__mock img {
    width: 92vw;
  }
}
@media (max-width: 800px) {
  .sites-panel__grid {
    padding: 18px;
    gap: 16px;
  }

  .sites-panel__title {
    font-size: 31.2px; /* 26 * 1.2 */
  }

  .sites-panel__text,
  .sites-panel__list li {
    font-size: 15.6px; /* 13 * 1.2 */
  }

  .sites-panel__visual--gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sites-shot--large {
    grid-column: auto;
  }

  .sites-design-viewer {
    padding: 10px;
    border-radius: 16px;
  }

  .sites-design-viewer__stage {
    min-height: 210px;
    border-radius: 12px;
  }

  .sites-design-viewer__nav {
    width: 40px;
    height: 40px;
    top: calc(50% - 22px);
  }

  .sites-design-viewer__nav--prev {
    left: 14px;
  }

  .sites-design-viewer__nav--next {
    right: 14px;
  }

  .sites-design-viewer__footer {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sites-design-viewer__footer-left {
    width: 100%;
    order: 2;
  }

  .sites-design-viewer__footer-nav {
    order: 1;
    margin-left: auto;
  }

  .sites-design-viewer__footer-btn {
    width: 36px;
    height: 36px;
  }

  .sites-templates-top__icons {
    grid-template-columns: 1fr;
  }

  .sites-template-examples__grid {
    grid-template-columns: 1fr;
  }

  .sites-server-card.sites-server-card--log {
    display: none;
  }
}

@media (max-width: 640px) {
  /* ===== HERO: чтобы мокап не вылезал и не ломал ширину ===== */
  .sites-hero__container {
    padding: 16px 14px;
    gap: 16px;
  }

  .sites-hero__title {
    font-size: 36px; /* было 43.2 на 1024, на мобиле компактнее */
    line-height: 1.05;
  }

  .sites-hero__desc {
    font-size: 16px; /* -10% от ~18 */
    line-height: 1.6;
  }

  .sites-hero__actions {
    gap: 10px;
  }

  .sites-hero__mock {
    justify-content: center;
  }

  .sites-browser {
    width: 100%;
    max-width: 360px;
    border-radius: 20px;
  }

  .sites-browser__content {
    min-height: 220px;
  }

  .sites-browser__right {
    padding: 12px;
    gap: 10px;
  }

  /* ===== PANELS: компактнее + текст -10% ===== */
  .sites-panel__grid {
    padding: 16px;
    gap: 14px;
  }

  .sites-panel__title {
    font-size: 29px; /* было 31.2 -> -10% ≈ 28.1, округлил вверх */
    line-height: 1.12;
  }

  .sites-panel__text,
  .sites-panel__list li {
    font-size: 14px; /* было 15.6 -> -10% ≈ 14.0 */
    line-height: 1.6;
  }

  .sites-panel__list {
    gap: 8px;
  }

  .sites-panel__list li::before {
    top: 7px;
  }

  /* ===== ВИЗУАЛЫ: нигде не обрезаем ===== */

  /* Галерея-превью (если используется grid из .sites-shot) */
  .sites-panel__visual--gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .sites-shot--large {
    grid-column: auto;
  }

  .sites-shot {
    min-height: 150px;
    border-radius: 16px;
  }

  .sites-shot--large {
    min-height: 180px;
  }

  .sites-shot__label {
    font-size: 13px; /* было 14.4 -> -10% ≈ 13 */
  }

  /* ===== Viewer (окно просмотра лендинга): главное место, где резало ===== */
  .sites-design-viewer {
    padding: 10px;
    border-radius: 16px;
  }

  .sites-design-viewer__stage {
    border-radius: 12px;
    height: auto;

    /* вместо "фикс 1728/1117" даём адаптивную рамку под мобилу */
    aspect-ratio: 1728 / 1117;
    min-height: 0;
    max-height: 56vh; /* чтобы не раздувало карточку как на твоём скрине */
  }

  .sites-design-viewer__img {
    object-fit: contain;         /* КЛЮЧЕВО: без обрезки */
    object-position: center top;
    background: #f3f4fb;
  }

  /* стрелки: чтобы не вылезали за рамки */
  .sites-design-viewer__nav {
    width: 38px;
    height: 38px;
    top: calc(50% - 20px);
  }

  .sites-design-viewer__nav--prev { left: 10px; }
  .sites-design-viewer__nav--next { right: 10px; }

  .sites-design-viewer__footer {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .sites-design-viewer__footer-left {
    width: 100%;
    order: 2;
  }

  .sites-design-viewer__footer-nav {
    order: 1;
    margin-left: auto;
  }

  .sites-design-viewer__footer-btn {
    width: 34px;
    height: 34px;
  }

  .sites-design-viewer__counter,
  .sites-design-viewer__caption {
    font-size: 14px; /* было 15.6 -> -10% ≈ 14 */
  }

  /* ===== Templates block: чтобы карточки не ломались и текст -10% ===== */
  .sites-template-card {
    grid-template-columns: 1fr;
  }

  .sites-template-card__meta strong {
    font-size: 15px; /* было 16.8 -> -10% ≈ 15.1 */
  }

  .sites-template-card__meta span {
    font-size: 14px; /* было 15.6 -> -10% ≈ 14.0 */
  }

  .sites-tech-tag {
    font-size: 13px; /* было 14.4 -> -10% ≈ 13.0 */
    padding: 7px 10px;
  }

  .sites-templates-top__icons {
    grid-template-columns: 1fr;
  }

  .sites-template-examples__grid {
    grid-template-columns: 1fr;
  }

  .sites-template-examples__head strong {
    font-size: 15px; /* было 16.8 -> -10% */
  }

  .sites-template-examples__head span {
    font-size: 13px; /* было 14.4 -> -10% */
  }

  .sites-template-example-card__meta strong {
    font-size: 13px; /* было 14.4 -> -10% */
  }

  .sites-template-example-card__meta span {
    font-size: 12px; /* было 13.2 -> -10% ≈ 11.9 */
  }

  /* ===== Server block text -10% (если показывается) ===== */
  .sites-server-card__row span,
  .sites-server-card__row b {
    font-size: 13px; /* было 14.4 -> -10% ≈ 13 */
  }

  .sites-server-card.sites-server-card--log {
    display: none;
  }
}