/* Preview-only interface refinements. Loaded after the production theme. */
:root {
  --preview-bg-0: #070809;
  --preview-bg-1: #0d0f11;
  --preview-bg-2: #14171a;
  --preview-line: #30353a;
  --preview-shadow: 0 20px 55px rgb(0 0 0 / 34%);
}

html {
  scroll-padding-top: 88px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  background: rgb(9 10 11 / 78%);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.site-header ~ main {
  margin-top: var(--header);
}

.site-header .brand img {
  background: transparent;
  mix-blend-mode: screen;
}

.page {
  padding-top: 76px;
}

.page > .header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  background: rgb(9 10 11 / 78%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.page > .header .brand img {
  background: transparent;
  mix-blend-mode: screen;
}

.header-inner {
  min-height: 78px;
}

.desktop-nav {
  gap: 2px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.desktop-nav a {
  position: relative;
  padding: 10px 9px;
  border-radius: 5px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  background: var(--yellow);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 255 255 / 7%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%);
  transform: translateY(-1px);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-phone {
  position: relative;
  z-index: 1;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 5px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-phone > svg {
  grid-row: 1 / 3;
  width: 17px;
  height: 17px;
}

.header-phone strong {
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  background: rgb(255 255 255 / 7%);
  transform: translateY(-1px);
}

.hero {
  min-height: min(820px, calc(100svh - 78px));
  background: #090a0b;
}

.hero-image {
  opacity: 1;
  filter: none;
  object-position: center center;
}

.hero-shade {
  background: linear-gradient(90deg, rgb(5 6 7 / 98%) 0%, rgb(5 6 7 / 94%) 29%, rgb(5 6 7 / 72%) 44%, rgb(5 6 7 / 22%) 58%, rgb(5 6 7 / 0%) 72%);
}

.hero-photo-brand {
  display: none;
}

.hero-content {
  max-width: 1500px;
}

.hero-content > * {
  max-width: 760px;
}

.hero-chip-entry {
  border-left: 3px solid var(--yellow);
  background: rgb(13 15 17 / 82%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  backdrop-filter: blur(7px);
}

.trust-band,
.services,
.process,
.gallery,
.centers,
.proof,
.reviews,
.faq,
.final-cta,
.service-section,
#price,
.chip-real-proof,
.comfort-band,
.result-strip {
  border-top: 0;
  border-bottom: 0;
}

.trust-band {
  background: var(--preview-bg-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), inset 0 -1px 0 rgb(0 0 0 / 55%);
}

.trust-item + .trust-item {
  border-left-color: var(--preview-line);
}

.services,
.gallery,
.proof,
.faq {
  background: var(--preview-bg-0);
}

.process,
.centers,
.reviews,
.final-cta {
  background: var(--preview-bg-2);
}

.service-card,
.review-card {
  border-top: 1px solid var(--preview-line);
  box-shadow: var(--preview-shadow);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: #4a5056;
  box-shadow: 0 26px 62px rgb(0 0 0 / 42%);
  transform: translateY(-3px);
}

.service-price strong,
.service-price span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.service-card-actions .text-button {
  margin-top: 0;
}

.service-card-chat {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.service-card-chat .chat-channel-icons {
  margin-left: 0;
}

.services-more,
.center-list,
.center-row,
.result-strip,
.page .selectorSection,
.page .recommendationSection,
.page .guaranteeSection,
.page .comparisonSection,
.page .finalSection {
  border-top-color: transparent;
}

.gallery-grid {
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid #353a40;
  border-radius: 6px;
  background: #111316;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 3%), 0 18px 45px rgb(0 0 0 / 46%), 0 0 28px rgb(255 255 255 / 6%);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: #5f666d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 7%), 0 24px 56px rgb(0 0 0 / 55%), 0 0 36px rgb(255 255 255 / 10%);
  transform: translateY(-3px);
}

.gallery-media,
.gallery-photo {
  width: 100%;
  height: 100%;
}

.gallery-photo {
  object-fit: cover;
}

.center-list {
  border-top: 1px solid var(--preview-line);
}

.center-row {
  grid-template-columns: 54px minmax(190px, 230px) minmax(270px, 1fr) 168px auto;
  gap: 20px;
  border-bottom-color: var(--preview-line);
}

.center-row:hover {
  background: rgb(255 255 255 / 3%);
  box-shadow: none;
}

.center-name h3 a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
}

.center-name h3 a:hover,
.center-name h3 a:focus-visible {
  color: var(--yellow);
}

.center-name h3 a svg {
  width: 17px;
  height: 17px;
}

.center-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.center-page-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #111;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
}

.center-page-button:hover,
.center-page-button:focus-visible {
  filter: brightness(1.06);
}

.center-page-button svg {
  width: 17px;
  height: 17px;
}

.center-services {
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-service-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #3d4349;
  border-radius: 5px;
  color: #d9dde0;
  background: #15181b;
  cursor: help;
}

.center-service-icon svg {
  width: 17px;
  height: 17px;
}

.center-service-icon.is-featured {
  color: #090a0b;
  background: var(--yellow);
  border-color: var(--yellow);
}

.center-service-icon::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 260px;
  padding: 9px 11px;
  border: 1px solid #40464c;
  border-radius: 5px;
  color: #f4f4f1;
  background: #171a1d;
  box-shadow: 0 14px 34px rgb(0 0 0 / 48%);
  content: attr(data-tooltip);
  font-size: .78rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.center-service-icon:hover::after,
.center-service-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.proof-image-wrap {
  border: 1px solid #343a40;
  border-radius: 6px;
  background: #101214;
  box-shadow: 0 24px 58px rgb(0 0 0 / 48%), 0 0 38px rgb(255 255 255 / 8%);
}

.proof-image-wrap > img {
  border-radius: 5px;
}

.review-grid {
  display: grid;
  grid-template-columns: none;
  grid-template-rows: max-content;
  grid-auto-columns: minmax(340px, 31%);
  grid-auto-flow: column;
  align-items: start;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.review-grid::-webkit-scrollbar {
  display: none;
}

.review-card {
  align-self: start;
  min-height: 320px;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #353a40;
  border-radius: 6px;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  color: var(--yellow);
}

.review-stars svg {
  fill: currentColor;
  stroke: currentColor;
}

.review-card-summary p {
  margin: 24px 0 20px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}

.review-source {
  width: max-content;
  padding: 6px 9px;
  border: 1px solid #454b51;
  border-radius: 4px;
  color: #d9dde0;
  background: #111315;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.route-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.route-gallery img,
.route-gallery img:first-child {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  border: 1px solid #3b4147;
  border-radius: 5px;
  background: #0d0f11;
  box-shadow: 0 16px 38px rgb(0 0 0 / 38%);
  cursor: zoom-in;
  object-fit: contain;
}

.channel-dialog,
.route-dialog {
  border: 1px solid #3d4349;
  box-shadow: 0 34px 90px rgb(0 0 0 / 66%);
}

.channel-option:hover {
  border-color: #596168;
  box-shadow: inset 3px 0 0 var(--yellow);
}

.chat-channel-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 3px;
}

.chat-channel-icons > span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 32%);
  border-radius: 4px;
  color: #08090a;
  background: rgb(255 255 255 / 78%);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.chat-channel-icons svg {
  width: 12px;
  height: 12px;
}

.chat-channel-icons img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.chat-channel-icons .is-max {
  color: #777;
  background: #c5c7c9;
  border-color: #a5a8aa;
  text-decoration: line-through;
}

.chat-channel-icons .is-max img {
  filter: grayscale(1);
  opacity: .58;
}

.channel-icon img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.channel-option[aria-disabled="true"] .channel-icon img {
  filter: grayscale(1);
  opacity: .6;
}

.channelMark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.button-dark .chat-channel-icons > span,
.button-ghost .chat-channel-icons > span,
.button-outline-light .chat-channel-icons > span {
  border-color: #4b5157;
  color: #f2f2ef;
  background: #202428;
}

.button-dark .chat-channel-icons .is-max,
.button-ghost .chat-channel-icons .is-max,
.button-outline-light .chat-channel-icons .is-max {
  color: #91969b;
  background: #35393d;
}

.site-footer {
  border-top: 1px solid var(--preview-line);
}

.footer-channel-link {
  color: #737981 !important;
  font-size: .82rem;
  font-weight: 400;
  text-decoration: none;
}

.footer-channel-link:hover,
.footer-channel-link:focus-visible {
  color: #b4bac0 !important;
}

.lightbox {
  isolation: isolate;
  color-scheme: dark;
  background: #050607 !important;
  outline: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lightbox > img {
  opacity: 1;
  background: #050607 !important;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox .icon-button {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1760px) {
  .header-inner {
    gap: 14px;
  }

  .brand {
    width: 190px;
  }

  .desktop-nav a {
    padding-inline: 6px;
    font-size: .75rem;
  }

  .header-actions {
    gap: 8px;
  }

  .desktop-cta {
    padding-inline: 12px;
    font-size: .8rem;
  }

  .header-phone span {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    gap: 7px;
    min-width: 112px;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 18%);
  }

  .header-phone strong {
    font-size: 0;
  }

  .header-phone strong::after {
    content: "Позвонить";
    font-size: .82rem;
  }

  .center-row {
    grid-template-columns: 44px 190px minmax(250px, 1fr) 168px auto;
    gap: 14px;
  }
}

@media (max-width: 1080px) {
  .page {
    padding-top: 66px;
  }

  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .header-phone {
    min-width: 0;
  }

  .center-row {
    grid-template-columns: 44px minmax(180px, .75fr) minmax(260px, 1.35fr) auto;
  }

  .center-services {
    grid-column: 2 / 4;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgb(8 9 10 / 91%);
  }

  .header-inner {
    min-height: 66px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 778px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgb(5 6 7 / 25%) 0%, rgb(5 6 7 / 72%) 36%, rgb(5 6 7 / 97%) 72%, rgb(5 6 7 / 100%) 100%);
  }

  .hero-content {
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 34px;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .trust-grid {
    border: 0;
  }

  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid var(--preview-line);
  }

  .center-row {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .center-name,
  .center-location,
  .center-services,
  .center-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .center-services {
    flex-wrap: wrap;
  }

  .center-service-icon::after {
    left: 0;
    max-width: min(260px, 72vw);
    transform: translate(0, 6px);
  }

  .center-service-icon:hover::after,
  .center-service-icon:focus-visible::after {
    transform: translate(0, 0);
  }

  .review-toolbar {
    justify-content: space-between;
  }

  .review-toolbar span {
    text-align: center;
  }

  .review-grid {
    grid-auto-columns: min(86vw, 340px);
  }

  .review-card {
    min-height: 300px;
  }

  .chat-channel-icons > span {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav a,
  .desktop-nav a::after,
  .gallery-item,
  .service-card,
  .center-service-icon::after {
    transition: none;
  }

  .review-grid {
    scroll-behavior: auto;
  }
}
