/* Снято с открытой страницы: сцена, сетка, карточки */

html {
  scrollbar-width: thin;
  scrollbar-color: #3ec8ff #10151f;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #10151f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6ad4ff, #1a6fd4);
  border: 2px solid #10151f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8fe3ff;
}

body {
  background: linear-gradient(rgb(7, 11, 20) 0%, rgb(13, 20, 36) 40%, rgb(16, 24, 43) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(at 50% 20%, rgb(0, 0, 0) 20%, transparent 75%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero__title {
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.45) 0 10px 40px;
}

.hero__sub {
  color: rgb(197, 208, 228);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgb(16, 24, 40);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f5fbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(160deg, #12325f 0%, #1a6fd4 58%, #3ec4ff 100%);
  border: 1px solid rgba(186, 228, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(18, 90, 180, 0.38);
}

.btn--primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% auto -40% -30%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.55s ease;
}

.btn--primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 50%),
    linear-gradient(160deg, #18488a 0%, #2e8ef0 52%, #7ad4ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 26px rgba(90, 190, 255, 0.55);
}

.btn--primary:hover::before {
  transform: translateX(320%) skewX(-18deg);
}

.nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.nav .btn:hover,
.nav .btn--primary:hover {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #080c16;
  backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #080c16;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
}

html {
  overflow-x: clip;
  overflow-y: scroll;
}

.nav a.btn--primary,
.nav a.btn--primary:hover {
  color: #fff;
}

.nav__logo {
  display: none;
}

.brand,
.brand--sign,
a.brand,
a.nav__logo {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a.brand:active,
a.brand:focus,
a.brand--sign:active,
a.brand--sign:focus,
a.nav__logo:active,
a.nav__logo:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button.btn {
  font: inherit;
}

.head-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 172px;
  min-width: 172px;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(58, 215, 255, 0.08);
}

/* Маркетплейс — дропдаун как у телефона, визуально как пункт меню */
.head-phone--market {
  width: auto;
  min-width: 0;
  gap: 2px;
  background: transparent;
  border-radius: 0;
  min-height: 0;
  align-self: center;
}

.head-phone--market .head-phone__btn {
  color: var(--nav, #d7f6ff);
  font-weight: 400;
  font-size: 0.95rem;
  min-height: 0;
  padding: 6px 0;
  line-height: 1.2;
}

.head-phone--market .head-phone__more {
  width: 16px;
  min-height: 0;
  color: var(--nav, #d7f6ff);
}

.head-phone--market .head-phone__btn:hover,
.head-phone--market.is-open .head-phone__btn,
.head-phone--market:hover .head-phone__btn {
  color: #fff;
}

.head-phone--market.is-active .head-phone__btn {
  color: #fff;
  font-weight: 700;
}

.head-phone--market .head-phone__menu a.is-active {
  background: rgba(58, 215, 255, 0.1);
  color: #fff;
  font-weight: 700;
  border-radius: 0 10px 10px 0;
}

.head-phone__btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px 0 14px;
  border: 0;
  background: transparent;
  color: #d7f6ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.head-phone__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7f6ff;
  cursor: pointer;
}

.head-phone__more::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: none;
  opacity: 1;
}

.head-phone:hover .head-phone__more::after,
.head-phone.is-open .head-phone__more::after,
.head-phone:focus-within .head-phone__more::after {
  margin-top: 2px;
  transform: rotate(225deg);
  animation: phoneArrow 0.48s ease forwards;
}

.head-phone.was-hover:not(:hover):not(.is-open):not(:focus-within) .head-phone__more::after {
  animation: phoneArrowBack 0.48s ease;
}

@keyframes phoneArrow {
  0% { opacity: 1; transform: rotate(45deg); margin-top: -4px; }
  42% { opacity: 0; transform: rotate(45deg); margin-top: -4px; }
  58% { opacity: 0; transform: rotate(225deg); margin-top: 2px; }
  100% { opacity: 1; transform: rotate(225deg); margin-top: 2px; }
}

@keyframes phoneArrowBack {
  0% { opacity: 1; transform: rotate(225deg); margin-top: 2px; }
  42% { opacity: 0; transform: rotate(225deg); margin-top: 2px; }
  58% { opacity: 0; transform: rotate(45deg); margin-top: -4px; }
  100% { opacity: 1; transform: rotate(45deg); margin-top: -4px; }
}

/* Единый размер/вид всплывашек шапки (телефон, маркет, корзина) */
:root {
  --nav-flyout-w: 300px;
  --nav-flyout-min-h: 220px;
}

.head-phone__menu {
  position: absolute;
  z-index: 90;
  top: 100%;
  right: 0;
  box-sizing: border-box;
  width: var(--nav-flyout-w);
  min-width: var(--nav-flyout-w);
  min-height: 0;
  height: auto;
  padding: 10px 8px 8px;
  display: grid;
  align-content: start;
  gap: 2px;
  border-radius: 16px;
  border: 1px solid rgba(58, 215, 255, 0.28);
  background: rgba(8, 14, 26, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

/* Маркетплейс — ширина по контенту, без пустого поля справа */
.head-phone--market .head-phone__menu {
  width: max-content;
  min-width: 0;
  max-width: min(320px, calc(100vw - 24px));
  left: 0;
  right: auto;
}

.head-phone--market .head-phone__menu a {
  white-space: nowrap;
}

.head-phone__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.head-phone:hover .head-phone__menu,
.head-phone.is-open .head-phone__menu,
.head-phone:focus-within .head-phone__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Мгновенно прятать, когда открыта соседняя всплывашка */
.head-phone.is-flyout-off .head-phone__menu,
.nav-cart-wrap.is-flyout-off .nav-cart-drop {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
  transition: none !important;
}

.head-phone__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #d7e7f8;
  text-decoration: none;
  white-space: nowrap;
}

.head-phone__menu a:hover {
  background: rgba(58, 215, 255, 0.12);
  color: #fff;
}

.stage {
  position: relative;
  padding: 28px 0 20px;
  overflow: hidden;
}

.stage__grid {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent, rgba(7, 11, 20, 0.2)),
    repeating-linear-gradient(90deg, rgba(80, 160, 255, 0.16) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(80, 160, 255, 0.18) 0 1px, transparent 1px 144px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(transparent 0%, #000 34%, #000 72%, transparent 100%);
  animation: gridDrift 12s linear infinite;
}

.stage__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.stage__gallery .stage__glow--cyan {
  left: 8%;
  top: 8%;
  right: auto;
  width: 84%;
  height: 72%;
  z-index: 0;
  background: rgba(0, 190, 255, 0.32);
  filter: blur(28px);
  mask-image: none;
}

.stage__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  min-height: 560px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgb(158, 182, 216);
}

.eyebrow span {
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--page-accent, #2e7dd2), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--page-accent, #2e7dd2) 70%, transparent);
}

/* Одна черта акцента (как в услугах), без двойной красной полоски из studio */
.eyebrow--accent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #9eb0cc;
}

.eyebrow--accent::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--card-accent, var(--page-accent, #2e7dd2)), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--card-accent, var(--page-accent, #2e7dd2)) 70%, transparent);
}

.catalog-detail .eyebrow:not(.eyebrow--accent)::before {
  display: none;
}

.catalog-detail .eyebrow--accent::before {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  position: relative;
  z-index: 2;
}

.chips a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgb(16, 24, 40);
  color: rgb(213, 226, 245);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chips a:hover {
  border-color: rgba(58, 215, 255, 0.75);
  color: #fff;
  box-shadow: 0 0 16px rgba(58, 215, 255, 0.22);
}

.stage__gallery {
  position: relative;
  height: 500px;
}

.stage__card {
  --accent: 0, 190, 255;
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgb(5, 7, 13);
  box-shadow:
    rgba(0, 0, 0, 0.55) 0 24px 60px,
    rgba(255, 255, 255, 0.08) 0 0 0 1px;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    opacity 0.3s ease;
}

.stage__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.stage__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.stage__more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--accent), 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: rgba(var(--accent), 0.6) 0 0 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stage__card:hover,
.stage__card:focus-visible,
.stage__card.is-active,
.stage__card:active {
  z-index: 5;
  opacity: 1;
  transform: scale(1.05) rotate(-1deg);
  box-shadow:
    rgba(0, 0, 0, 0.6) 0 30px 70px,
    rgba(var(--accent), 0.85) 0 0 0 2px,
    rgba(var(--accent), 0.45) 0 0 40px;
  outline: none;
}

.stage__card:hover img,
.stage__card:focus-visible img,
.stage__card.is-active img,
.stage__card:active img {
  transform: scale(1.04);
  filter: brightness(1.08) saturate(1.1);
}

.stage__card:hover::after,
.stage__card:focus-visible::after,
.stage__card.is-active::after,
.stage__card:active::after {
  transform: translateX(120%);
}

.stage__card:hover .stage__more,
.stage__card:focus-visible .stage__more,
.stage__card.is-active .stage__more,
.stage__card:active .stage__more {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .stage__card,
  .stage__card img,
  .stage__card::after {
    transition: none;
  }
}

.stage__main {
  width: 70%;
  height: 74%;
  right: 0;
  top: 12%;
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}

.stage__side {
  width: 48%;
  height: 44%;
  left: 0;
  bottom: 0;
  z-index: 2;
  animation: floaty 8s ease-in-out infinite reverse;
}

.stage__back {
  width: 44%;
  height: 38%;
  left: 1%;
  top: 0;
  z-index: 1;
  opacity: 0.95;
  animation: floaty 9s ease-in-out infinite;
  animation-delay: -3s;
}

@media (min-width: 981px) {
  .stage__card {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .stage__main {
    top: 17.5%;
  }
}

@media (max-width: 980px) {
  /* карточки под пропорцию картинок 4:3 — без усечения */
  .stage__card {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .stage__card img {
    object-fit: contain;
    object-position: center;
  }

  .stage__main {
    height: auto;
  }

  .stage__side,
  .stage__back {
    height: auto;
  }
}

.shot:hover .shot__media img {
  transform: none;
}

.svc-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgb(12, 18, 32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    rgba(0, 0, 0, 0.35) 0 18px 50px,
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.35s, box-shadow 0.35s;
}

.shot:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--card-accent),
    0 0 32px color-mix(in srgb, var(--card-accent) 45%, transparent);
}

.shot__media {
  position: relative;
  height: auto;
  overflow: hidden;
  background: #070b14;
}

.shot__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.shot__glow {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(6, 10, 18, 0.28));
  pointer-events: none;
}

.shot__cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 16px 16px 18px;
}

.shot__badge,
.kicker {
  color: var(--card-accent, var(--page-accent, #2e7dd2));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot__cap strong {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.shot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.dir-card {
  background: linear-gradient(160deg, rgb(22, 32, 54), rgb(10, 14, 26));
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
  box-shadow: rgb(0 0 0 / 22%) 0 6px 12px;
  min-height: 128px;
}

.dir-carousel {
  overflow: visible;
  padding: 8px 0 10px;
}

.dir-grid {
  padding: 24px 12px 32px;
  scroll-padding-inline: 12px;
}

.dir-card::before {
  width: 4px;
  box-shadow: 0 0 18px var(--card-accent);
}

.dir-card__name {
  color: #fff;
}

.dir-card__art {
  box-shadow: none;
  border: 0;
}

.dir-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: none;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--card-accent) 28%, transparent);
}

.step,
.panel {
  background: rgba(12, 18, 32, 0.86);
  color: rgb(232, 238, 248);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: rgba(0, 0, 0, 0.28) 0 16px 40px;
}

.step__title,
.list-block h2,
.prose,
.prose strong,
.cover-meta h1 {
  color: #fff;
}

.step__text,
.prose p,
.field label,
.form-note {
  color: rgb(169, 182, 204);
}

.steps {
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 43px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #3ec6ff, #8b7cff, #ffb020, #3ddc97);
  box-shadow: 0 0 14px rgba(62, 198, 255, 0.55);
  pointer-events: none;
}

.steps .step {
  position: relative;
  z-index: 1;
  min-height: 210px;
  padding: 22px 20px 24px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--step, #3ec6ff) 34%, transparent), transparent 58%),
    #0c1220;
  border-color: color-mix(in srgb, var(--step, #3ec6ff) 42%, transparent);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.steps .step:hover {
  transform: translateY(-4px);
  border-color: var(--step, #3ec6ff);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--step, #3ec6ff) 28%, transparent);
}

.steps .step__n {
  position: absolute;
  top: 14px;
  right: 16px;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--step, #3ec6ff) 75%, white);
}

.step__ico {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  color: var(--step, #3ec6ff);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--step, #3ec6ff) 70%, transparent));
}

@media (max-width: 980px) {
  .steps::before { display: none; }
}

/* моб: A+B — крупная иконка в круге + горизонтальная строка */
@media (max-width: 720px) {
  .steps {
    gap: 12px;
  }

  .steps .step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "ico title"
      "ico text";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    min-height: 0;
    padding: 16px 52px 16px 14px;
  }

  .steps .step__n {
    top: 10px;
    right: 12px;
    font-size: 1.85rem;
    opacity: 0.95;
  }

  .steps .step__ico {
    grid-area: ico;
    align-self: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 17px;
    box-sizing: content-box;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--step, #3ec6ff) 45%, transparent);
    background:
      radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--step, #3ec6ff) 28%, transparent), transparent 62%),
      rgb(8 14 26 / 88%);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--step, #3ec6ff) 10%, transparent) inset,
      0 0 22px color-mix(in srgb, var(--step, #3ec6ff) 28%, transparent);
    filter: none;
  }

  .steps .step__title {
    grid-area: title;
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
    align-self: end;
  }

  .steps .step__text {
    grid-area: text;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    align-self: start;
  }
}

.checklist li {
  color: rgb(213, 222, 238);
}

.panel__bar {
  letter-spacing: 0.08em;
}

.footer-grid > div {
  min-width: 0;
}

.footer-copy p.footer-legal {
  max-width: none;
}

.footer-legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: visible;
}

.footer-legal a {
  white-space: nowrap;
  flex: none;
}

.footer-bitrix {
  margin: 0 0 12px;
}

.footer-bitrix a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d7deeb;
  text-decoration: none;
}

.footer-bitrix a:hover {
  color: #fff;
}

.footer-bitrix__mark {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff;
  line-height: 0;
}

.footer-bitrix__mark img {
  display: block;
  height: 22px;
  width: auto;
}

.mp-block__title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: #e8eef8;
}

.mp-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mp-tree .mp-tree {
  margin: 10px 0 0 14px;
  padding-left: 12px;
  border-left: 1px solid rgb(58 215 255 / 18%);
  gap: 12px;
}

.mp-tree__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.mp-tree__title {
  font-weight: 650;
  color: #d7e6f7;
}

.mp-tree__count {
  font-size: 0.85rem;
  color: #7f93ab;
}

.mp-cards {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mp-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgb(58 215 255 / 24%);
  border-radius: 14px;
  background: rgb(6 10 18 / 72%);
}

.mp-card__name {
  color: #e8eef8;
  font-weight: 600;
  line-height: 1.35;
}

.mp-card__code {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #7f93ab;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mp-card__price {
  margin-top: 6px;
  color: #9eb0c6;
  white-space: nowrap;
}

.mp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .mp-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-tree .mp-tree {
    margin-left: 6px;
    padding-left: 10px;
  }
}

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

.edition-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgb(58 215 255 / 24%);
  border-radius: 14px;
  background: rgb(6 10 18 / 72%);
}

.edition-list strong {
  color: #e8eef8;
}

.edition-list span {
  color: #9eb0c6;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .edition-list li {
    flex-wrap: wrap;
  }

  .edition-list span {
    white-space: normal;
  }
}

.footer-grid a[href^="mailto:"]::before,
.footer-grid a[href^="tel:"]::before,
.footer-grid a[href*="t.me/"]::before,
.footer-grid a[href*="wa.me/"]::before,
.footer-grid a[href*="max.ru/"]::before,
.contact-list a[href^="mailto:"]::before,
.contact-list a[href^="tel:"]::before,
.contact-list a[href*="t.me/"]::before,
.contact-list a[href*="wa.me/"]::before,
.contact-list a[href*="max.ru/"]::before,
.head-phone__menu a[href^="mailto:"]::before,
.head-phone__menu a[href^="tel:"]::before,
.head-phone__menu a[href*="t.me/"]::before,
.head-phone__menu a[href*="wa.me/"]::before,
.head-phone__menu a[href*="max.ru/"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: #7fdcff;
  box-shadow: none;
  flex: none;
  -webkit-mask: var(--c-icon) center / contain no-repeat;
  mask: var(--c-icon) center / contain no-repeat;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-grid a[href^="mailto:"]::before,
.contact-list a[href^="mailto:"]::before,
.head-phone__menu a[href^="mailto:"]::before {
  --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-grid a[href^="tel:"]::before,
.contact-list a[href^="tel:"]::before,
.head-phone__menu a[href^="tel:"]::before {
  --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.2 3.2h2.4l1.2 3-1.6 1.2a11.2 11.2 0 0 0 5.4 5.4l1.2-1.6 3 1.2v2.4a1.6 1.6 0 0 1-1.5 1.6A14.6 14.6 0 0 1 5.6 4.7a1.6 1.6 0 0 1 1.6-1.5Z'/%3E%3C/svg%3E");
}

.footer-grid a[href*="t.me/"]::before,
.contact-list a[href*="t.me/"]::before,
.head-phone__menu a[href*="t.me/"]::before {
  --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21.2 4.4 2.8 11.4c-.9.3-.8 1.6.1 1.8l4.6 1.4 1.8 5.6c.3.9 1.5 1.1 2.1.3l2.5-3.1 4.7 3.5c.8.6 1.9.1 2.1-.8l2.6-13.4c.3-1.2-.9-2.2-2.1-1.7Z'/%3E%3C/svg%3E");
}

.footer-grid a[href*="wa.me/"]::before,
.contact-list a[href*="wa.me/"]::before,
.head-phone__menu a[href*="wa.me/"]::before {
  --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2A8.6 8.6 0 0 0 4.6 16l-.8 3.4 3.5-.8A8.6 8.6 0 1 0 12 3.2Zm4.2 10.6c-.2.5-1 .9-1.4 1-.4 0-.8.2-2.6-.6-2.2-.9-3.6-3.1-3.7-3.3-.1-.2-.9-1.2-.9-2.3s.6-1.6.8-1.8.4-.3.6-.3h.4c.1 0 .3 0 .5.4.2.5.7 1.7.7 1.8.1.1 0 .3-.1.5l-.3.4c-.1.1-.2.3 0 .5.2.3.8 1.2 1.7 1.9 1.1.9 2 1.1 2.3 1.3.2.1.4.1.5-.1l.5-.6c.1-.2.3-.1.5-.1l1.6.8c.2.1.3.2.4.3.1.4 0 .8-.2 1.1Z'/%3E%3C/svg%3E");
}

.footer-grid a[href*="max.ru/"]::before,
.contact-list a[href*="max.ru/"]::before,
.head-phone__menu a[href*="max.ru/"]::before {
  --c-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M10.74 1.69 L7.99 2.38 L5.24 4.21 L3.06 6.61 L2.15 8.45 L1.69 10.74 L1.69 14.41 L2.83 18.3 L3.06 21.28 L3.86 22.31 L5.24 22.31 L7.53 20.71 L10.51 22.31 L13.95 22.31 L16.24 21.62 L17.61 20.94 L20.25 18.53 L21.85 15.78 L22.54 12.34 L22.31 9.82 L20.25 5.47 L18.76 3.98 L15.78 2.15 L13.95 1.69 L10.97 1.69 Z M10.85 6.84 L13.95 6.96 L15.55 7.88 L16.58 9.14 L17.5 12.57 L16.12 15.55 L14.64 16.81 L13.26 17.27 L10.51 17.27 L9.36 16.58 L7.99 17.5 L7.42 17.16 L6.73 14.41 L6.73 11.43 L8.33 7.99 L10.74 6.96 Z'/%3E%3C/svg%3E");
}

.consent {
  display: block;
  position: relative;
  padding-left: 28px;
}

.consent input {
  position: absolute;
  left: 0;
  top: 0.2em;
  margin: 0;
}

.consent a {
  display: inline;
}

.cookie-bar {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(58, 215, 255, 0.28);
  background: rgba(8, 14, 26, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: #d7e4f5;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cookie-bar a {
  color: #7fdcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-bar .btn {
  min-height: 42px;
  flex: none;
}

@media (max-width: 720px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.to-top {
  position: fixed;
  z-index: 28;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(58, 215, 255, 0.5);
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.94);
  color: #8fe3ff;
  box-shadow: 0 0 18px rgba(58, 215, 255, 0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  box-shadow: 0 0 28px rgba(90, 210, 255, 0.55);
}

body:has(.cookie-bar) .to-top {
  bottom: 108px;
}

.lead-modal {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgb(12, 18, 32);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 32px rgba(46, 125, 210, 0.28);
  overflow: hidden;
}

.lead-modal__sheet {
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead-modal[open] {
  animation: lead-fade 0.36s ease;
}

.lead-modal[open] .lead-modal__sheet {
  animation: lead-in 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-modal[open].is-closing {
  animation: lead-fade-out 0.24s ease forwards;
}

.lead-modal[open].is-closing .lead-modal__sheet {
  animation: lead-out 0.24s ease forwards;
}

.lead-modal::backdrop {
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(6px);
}

.lead-modal[open]::backdrop {
  animation: lead-fade 0.42s ease;
}

.lead-modal.is-closing::backdrop {
  animation: lead-fade-out 0.26s ease forwards;
}

@keyframes lead-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lead-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(0.98); }
}

@keyframes lead-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lead-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lead-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.lead-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.lead-modal__close {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7f6ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.lead-modal__close:hover,
.lead-modal__close:focus,
.lead-modal__close:focus-visible,
.lead-modal__close:active {
  background: transparent;
  outline: none;
  box-shadow: none;
  color: #fff;
}

.lead-modal form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  padding: 12px 16px 14px;
}

.lead-modal .field label {
  margin-bottom: 4px;
}

.lead-modal .field input,
.lead-modal .field select,
.lead-modal .field textarea {
  padding: 10px 12px;
}

.lead-modal .field--msg {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 64px;
}

.lead-modal .field textarea {
  flex: 1 1 auto;
  height: 72px;
  min-height: 36px;
  max-height: 110px;
  resize: none;
}

.lead-modal .btn {
  min-height: 44px;
}

@media (max-height: 860px) {
  .lead-modal,
  .lead-modal__sheet {
    max-height: calc(100dvh - 12px);
  }

  .lead-modal__head {
    padding: 12px 16px 0;
  }

  .lead-modal__head h2 {
    font-size: 1.15rem;
  }

  .lead-modal__close {
    width: 32px;
    height: 32px;
  }

  .lead-modal form {
    gap: 8px;
    padding: 10px 14px 12px;
  }

  .lead-modal .field label {
    margin-bottom: 2px;
    font-size: 0.78rem;
  }

  .lead-modal .field input,
  .lead-modal .field select,
  .lead-modal .field textarea {
    padding: 7px 10px;
  }

  .lead-modal .field textarea {
    height: 52px;
    min-height: 32px;
  }

  .lead-modal .file-drop {
    padding: 8px 10px;
  }

  .lead-modal .btn {
    min-height: 40px;
  }
}

@media (max-height: 780px) {
  .lead-modal {
    height: calc(100dvh - 12px);
  }

  .lead-modal__sheet {
    height: 100%;
    max-height: 100%;
  }
}

@media (max-height: 700px) {
  .lead-modal__head {
    padding: 8px 12px 0;
  }

  .lead-modal form {
    gap: 4px;
    padding: 8px 12px 10px;
  }

  .lead-modal .field label {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .lead-modal .field input,
  .lead-modal .field select,
  .lead-modal .field textarea {
    padding: 5px 10px;
  }

  .lead-modal .field--msg {
    min-height: 52px;
  }

  .lead-modal .field textarea {
    height: 36px;
    min-height: 36px;
  }

  .lead-modal .file-drop {
    padding: 6px 8px;
  }

  .lead-modal .file-drop__hit .field-hint {
    display: none;
  }

  .lead-modal .consent {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .lead-modal .btn {
    min-height: 36px;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-modal .field {
  position: relative;
}

.lead-modal .field input::placeholder,
.lead-modal .field textarea::placeholder,
.form-card .field input::placeholder,
.form-card .field textarea::placeholder {
  color: #8b95a8;
  opacity: 1;
}

.contact-grid {
  align-items: start;
  scroll-margin-top: 92px;
}

.form-card {
  scroll-margin-top: 92px;
}

.form-card form.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-card .lead-form .field {
  position: relative;
}

.lead-modal .field:has(.field-pop) > label,
.form-card .field:has(.field-pop) > label {
  transition: opacity 0.16s ease 0.12s;
}

.lead-modal .field:has(.field-pop):hover > label,
.form-card .field:has(.field-pop):hover > label {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: 0.14s;
}

.field-pop {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ec9ea;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, visibility 0s linear 0.14s;
}

.lead-modal .field:hover .field-pop,
.form-card .field:hover .field-pop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease 0.14s, visibility 0s linear 0s;
}

.field.is-bad > label,
.field--url:has(.suggest:not([hidden])) > label {
  opacity: 1;
  transition-delay: 0s;
}

.field.is-bad .field-pop,
.field--url:has(.suggest:not([hidden])) .field-pop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.field--captcha {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.field--captcha #lead-captcha,
.field--captcha [data-grecaptcha] {
  box-sizing: content-box;
  width: 302px;
  max-width: 100%;
  height: 76px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(92, 214, 255, 0.55);
  border-radius: 12px;
  background: none;
  line-height: 0;
  overflow: hidden;
}

.field--captcha #lead-captcha iframe,
.field--captcha [data-grecaptcha] iframe {
  display: block;
  width: 304px;
  max-width: none;
  height: 78px;
  margin: 0;
  border: 0;
}

.field--captcha.is-bad #lead-captcha,
.field--captcha.is-bad [data-grecaptcha] {
  border-color: #e15b6a;
}

.field-hint,
.field-error,
.form-error {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-hint {
  color: #9ec9ea;
  letter-spacing: 0.01em;
}

.field.is-bad input,
.field.is-bad textarea,
.field.is-bad .file-drop {
  border-color: #e15b6a;
}

.field-error,
.form-error {
  color: #ffb4c0;
}

.suggest {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(58, 215, 255, 0.28);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.suggest[hidden] {
  display: none;
}

.suggest__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d7f6ff;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.suggest__item small {
  color: #8ea0bb;
  font-size: 0.75rem;
}

.suggest__item:hover {
  background: rgba(58, 215, 255, 0.12);
  color: #fff;
}

.file-drop {
  position: relative;
  padding: 14px;
  border: 1px dashed rgba(92, 214, 255, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(58, 215, 255, 0.16), transparent 42%),
    rgba(8, 16, 30, 0.72);
}

.file-drop.is-over {
  border-color: #7ad4ff;
  box-shadow: inset 0 0 0 1px rgba(122, 212, 255, 0.35);
}

.field input.file-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.field label.file-drop__hit {
  display: grid;
  gap: 4px;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font-weight: 400;
}

.file-drop__hit .field-hint {
  display: block;
  margin: 0;
}

.file-drop__title {
  color: #f5fbff;
  font-weight: 700;
}

.file-drop__list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.file-drop__list:empty {
  display: none;
}

.file-drop__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf7;
}

.file-drop__list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop__list small {
  margin-left: auto;
  color: #9ec9ea;
}

.file-drop__remove {
  border: 0;
  background: transparent;
  color: #9af6ff;
  font: inherit;
  cursor: pointer;
}

.lead-invite p {
  margin: 0 0 16px;
  color: rgb(169, 182, 204);
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: rgb(12, 18, 32);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.case-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.case-card:hover img {
  transform: scale(1.06);
}

.case-card__body {
  display: block;
  padding: 16px 18px 18px;
}

.case-card h3 {
  color: #fff;
}

.case-card p {
  color: rgb(169, 182, 204);
}

.case-full {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 0;
  margin-bottom: 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgb(12, 18, 32);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.case-full .frame {
  aspect-ratio: auto;
  min-height: 100%;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 22px 28px;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--card-accent, #34a878) 32%, transparent), transparent 58%),
    #090e18;
}

.case-full .frame img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.case-full__body {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-full__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent, #34a878);
}

.case-full h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.case-full__task {
  margin: 0 0 16px;
  color: rgb(214, 222, 236);
  font-size: 1.02rem;
  line-height: 1.55;
}

.case-full .checklist {
  margin-bottom: 18px;
}

.case-full .checklist li {
  color: rgb(226, 232, 242);
  line-height: 1.45;
}

.case-full__result {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-accent, #34a878) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent, #34a878) 38%, transparent);
}

.case-full__result span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent, #34a878);
}

.case-full__result p {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}

.case-full .btn--ghost {
  align-self: flex-start;
  margin-top: auto;
  border-color: color-mix(in srgb, var(--card-accent, #34a878) 70%, #fff);
  color: #fff;
  background: color-mix(in srgb, var(--card-accent, #34a878) 18%, transparent);
}

@media (max-width: 980px) {
  .case-full .frame {
    min-height: 0;
    padding: 22px 16px 16px;
  }

  .case-full .frame img {
    max-height: 380px;
  }

  .case-full__body {
    padding: 22px 18px 20px;
  }
}

.cover-hero {
  position: relative;
  margin: 18px auto 0;
  width: min(1120px, calc(100% - 48px));
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 40px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

.cover-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.cover-hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.35));
}

.cover-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.cta-band {
  border: 1px solid rgba(58, 215, 255, 0.28);
  background:
    radial-gradient(circle at 8% 0%, rgba(58, 215, 255, 0.16), transparent 36%),
    linear-gradient(165deg, rgb(16, 26, 46), rgb(8, 12, 22) 72%);
  box-shadow: 0 0 42px rgba(58, 215, 255, 0.08);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #b7c3d8;
  opacity: 1;
}

.cta-band .btn--light {
  color: #f5fbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(160deg, #12325f 0%, #1a6fd4 58%, #3ec4ff 100%);
  border: 1px solid rgba(186, 228, 255, 0.72);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(18, 90, 180, 0.38);
}

.stack span {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn.is-active {
  box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent, #2e7dd2) 50%, transparent);
}

@keyframes floaty {
  0%, 100% { translate: 0; }
  50% { translate: 0 -12px; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes gridDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 0 144px; }
}

.nav-close {
  display: none;
}

/* Desktop: компактное меню в одну строку, без растягивания шапки */
.nav__body {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.site-header__inner {
  gap: 16px;
}

.site-header .brand--sign {
  flex: 0 0 auto;
}

/* Не трогаем размер лого — иначе съезжает неон/подложка */
.site-header .brand--sign img {
  height: 66px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.site-header .nav {
  --nav-fs: 0.95rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

/* «Маркетплейс» не сжимается: иначе подпись наезжает на «О работе» */
@media (min-width: 1101px) {
  .site-header .nav__body > .head-phone--market {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
  }
}

.site-header .nav__body > a:not(.nav__logo):not(.btn),
.site-header .nav__body > .head-phone--market > .head-phone__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: var(--nav-fs);
  padding: 8px 4px;
}

.site-header .head-phone--market .head-phone__btn {
  font-size: var(--nav-fs);
}

.site-header .head-phone--market .head-phone__menu a {
  font-size: var(--nav-fs);
  font-weight: 400;
  line-height: 1.25;
}

.site-header .head-phone:not(.head-phone--market) {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  padding-right: 6px;
}

.site-header .head-phone:not(.head-phone--market) .head-phone__btn {
  font-size: var(--nav-fs);
  padding: 0 10px;
  white-space: nowrap;
}

.site-header .nav .btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: var(--nav-fs);
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-header .nav-icon,
.site-header .nav-cart-wrap {
  flex: 0 0 auto;
}

@media (max-width: 1200px) and (min-width: 1101px) {
  .site-header .nav {
    --nav-fs: 0.82rem;
    gap: 10px;
  }

  .site-header .head-phone:not(.head-phone--market) {
    max-width: none;
  }

  .site-header .nav .btn {
    min-height: 36px;
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    position: relative;
    z-index: 80;
    display: inline-grid;
    place-items: center;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
  }

  /* Три линии без ::before/::after */
  .nav-toggle__bars {
    display: block;
    width: 18px;
    height: 14px;
    position: relative;
    background:
      linear-gradient(#fff, #fff) 0 0 / 18px 2px no-repeat,
      linear-gradient(#fff, #fff) 0 6px / 18px 2px no-repeat,
      linear-gradient(#fff, #fff) 0 12px / 18px 2px no-repeat;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: none;
    display: none;
  }
}

@media (max-width: 980px) {
  .stage__layout,
  .case-full {
    grid-template-columns: 1fr;
  }

  .stage__layout {
    min-height: 0;
  }

  /* высота от ширины: карточки 4:3 абсолютные и иначе вылезают из рамки */
  .stage__gallery {
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: visible;
  }

  .stage__card {
    animation: none;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .svc-grid,
  .dir-grid {
    grid-template-columns: 1fr;
  }

  /* коллаж как на ПК: те же места/размеры, тени не режем */
  .stage {
    overflow: visible;
    padding-bottom: 36px;
  }

  .stage__gallery {
    overflow: visible;
  }

  .stage__card {
    animation: none;
  }

  /* CTA героя: две кнопки в один ряд */
  .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 22px;
  }

  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .cover-hero {
    width: min(1120px, calc(100% - 28px));
    border-radius: 18px;
  }

  .me__photo {
    justify-self: center;
    width: min(340px, 100%);
    margin-inline: auto;
  }

  .site-footer {
    width: min(var(--container), calc(100% - 28px));
    max-width: calc(100% - 28px);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: auto;
    max-width: calc(100% - 58px);
  }

  .footer-legal a {
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: normal;
    line-height: 1.35;
    box-shadow: none;
  }

  .footer-legal a:hover {
    box-shadow: none;
    color: #fff;
  }
}

/* Выезжающее меню: тот же брейкпоинт, что и гамбургер / isMobileNav() */
@media (max-width: 1100px) {
  .nav__logo,
  .nav a.nav__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
  }

  .nav a.nav__logo:active,
  .nav a.nav__logo:focus {
    background: transparent;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__logo img,
  .nav a.nav__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 32px;
    object-fit: contain;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header .brand,
  .site-header .brand--sign {
    -webkit-tap-highlight-color: transparent;
  }

  .site-header .brand:active,
  .site-header .brand:focus,
  .site-header .brand--sign:active,
  .site-header .brand--sign:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* sticky ломается на iOS при overflow у html — фиксируем шапку */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 90;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .site-header__inner {
    min-height: 84px;
  }

  body {
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
  }

  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  body.nav-open .site-header {
    background: transparent;
    pointer-events: none;
  }

  body.nav-open .site-header::before {
    opacity: 0;
  }

  body.nav-open .site-header .brand {
    visibility: hidden;
  }

  /* Гамбургер скрываем при открытом меню — крестик внутри панели */
  body.nav-open .nav-toggle {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  body.nav-open .to-top,
  body.nav-open .to-top.is-on {
    display: none !important;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgb(4 8 18 / 88%);
    box-shadow: inset 0 0 80px rgb(0 40 80 / 35%);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-overlay.is-on {
    display: block;
  }

  .nav-toggle {
    position: relative;
    z-index: 80;
    display: inline-grid;
    place-items: center;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
  }

  /* Три линии без ::before/::after — надёжнее в узком preview IDE */
  .nav-toggle__bars {
    display: block;
    width: 18px;
    height: 14px;
    position: relative;
    background:
      linear-gradient(#fff, #fff) 0 0 / 18px 2px no-repeat,
      linear-gradient(#fff, #fff) 0 6px / 18px 2px no-repeat,
      linear-gradient(#fff, #fff) 0 12px / 18px 2px no-repeat;
    transition: opacity 0.2s ease;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: none;
    display: none;
  }

  .nav-close {
    position: absolute;
    z-index: 5;
    top: max(2px, env(safe-area-inset-top, 0px));
    right: 4px;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d7f6ff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    flex: none;
  }

  .nav-close:hover,
  .nav-close:focus,
  .nav-close:focus-visible,
  .nav-close:active {
    background: transparent;
    outline: none;
    box-shadow: none;
    color: #fff;
  }

  .nav-close__icon,
  .nav-close__icon::before,
  .nav-close__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .nav-close__icon {
    position: relative;
    background: transparent;
  }

  .nav-close__icon::before,
  .nav-close__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
  }

  .nav-close__icon::before {
    transform: rotate(45deg);
  }

  .nav-close__icon::after {
    transform: rotate(-45deg);
  }

  .nav {
    --nav-pad-x: 16px;
    --nav-icon: 18px;
    --nav-gap: 10px;
    --nav-text-x: calc(var(--nav-pad-x) + var(--nav-icon) + var(--nav-gap));
    --nav-row-h: 30px;
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    right: auto;
    width: min(300px, 82vw);
    box-sizing: border-box;
    /* svh — стабильная высота (не прыгает при адресной строке); vh — fallback */
    height: 100vh;
    max-height: 100vh;
    height: 100svh;
    max-height: 100svh;
    margin: 0;
    padding: env(safe-area-inset-top, 0px) 0 max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 0 18px 18px 0;
    background: rgb(12, 18, 32);
    border: 1px solid rgba(58, 215, 255, 0.22);
    border-left: 0;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.34s;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Важно! десктопный justify-content:flex-end иначе скидывает всё вниз */
  .site-header .nav__body,
  .nav__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start !important;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
  }

  .nav__body::-webkit-scrollbar {
    width: 4px;
  }

  .nav__body::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgb(255 255 255 / 18%);
  }

  .nav a,
  .nav .btn,
  .nav .head-phone,
  .nav .head-phone__btn,
  .nav .head-phone__menu,
  .nav .head-phone__menu a {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Логотип у самого верха, место под крестик справа */
  .site-header .nav__logo,
  .site-header .nav a.nav__logo,
  .nav__logo,
  .nav a.nav__logo {
    display: flex;
    align-items: center;
    width: calc(100% - 44px);
    max-width: calc(100% - 44px);
    height: auto;
    min-height: 0;
    margin: 0 0 2px;
    padding: 2px var(--nav-pad-x) 2px !important;
    box-sizing: border-box;
    overflow: visible;
  }

  .site-header .nav__logo img,
  .site-header .nav a.nav__logo img,
  .nav__logo img,
  .nav a.nav__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 32px;
    object-fit: contain;
  }

  /*
   * Пункты меню на одной вертикали с иконками контактов (--nav-pad-x).
   */
  .site-header .nav__body > a:not(.nav__logo):not(.btn):not(.nav-icon):not(.nav-account),
  .nav__body > a:not(.nav__logo):not(.btn):not(.nav-icon):not(.nav-account) {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: var(--nav-row-h);
    margin: 0;
    padding: 2px var(--nav-pad-x) !important;
    border-radius: 0 10px 10px 0;
    box-sizing: border-box;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header .nav__body > .head-phone--market > .head-phone__btn,
  .nav .head-phone--market > .head-phone__btn {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: var(--nav-row-h);
    margin: 0;
    padding: 2px 4px 2px var(--nav-pad-x) !important;
    border-radius: 0 10px 10px 0;
    box-sizing: border-box;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__body > a:not(.nav__logo):not(.btn):active,
  .nav__body > a:not(.nav__logo):not(.btn):focus {
    background: transparent;
    outline: none;
  }

  .nav__body > a.is-active:not(.nav__logo):not(.btn),
  .nav__body > .head-phone--market.is-active > .head-phone__btn,
  .nav__body > .head-phone--market > .head-phone__btn.is-active {
    color: #fff;
    font-weight: 700;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
  }

  .nav__body > a.is-active:not(.nav__logo):not(.btn)::before,
  .nav__body > .head-phone--market.is-active > .head-phone__btn::before,
  .nav__body > .head-phone--market > .head-phone__btn.is-active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: #3ad7ff;
    box-shadow: 0 0 8px 1px rgb(58 215 255 / 75%), 0 0 18px rgb(58 215 255 / 45%);
  }

  /* В мобильном меню flyout-off не должен прятать контакты */
  .nav.is-open .head-phone.is-flyout-off .head-phone__menu,
  .nav.is-open .head-phone:not(.head-phone--market).is-flyout-off .head-phone__menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .site-header .nav .head-phone:not(.head-phone--market),
  .nav .head-phone:not(.head-phone--market) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    margin-top: 4px;
    padding-top: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav .head-phone__menu,
  .nav .head-phone:not(.head-phone--market) .head-phone__menu,
  .nav .head-phone--market .head-phone__menu {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
  }

  .nav .head-phone__menu::before {
    display: none;
  }

  .nav .btn.btn--primary,
  .nav a.btn--primary {
    width: fit-content;
    max-width: calc(100% - 32px);
    justify-content: center;
    align-self: flex-start;
  }

  .nav .nav-cart-wrap {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
    position: relative;
  }

  .nav .nav-cart-drop {
    display: none !important;
  }

  /* Перебиваем .nav-icon { width:40px; display:inline-grid } — иконка и подпись в один ряд */
  .site-header .nav .nav-cart-wrap .nav-cart,
  .site-header .nav .nav-account,
  .nav .nav-cart-wrap .nav-cart,
  .nav .nav-account {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: var(--nav-gap);
    width: 100% !important;
    max-width: 100%;
    min-height: var(--nav-row-h);
    height: auto !important;
    padding: 2px var(--nav-pad-x) !important;
    border-radius: 0 10px 10px 0;
    box-sizing: border-box;
    place-items: unset;
    line-height: 1.2;
  }

  .site-header .nav .nav-cart-wrap .nav-cart svg,
  .site-header .nav .nav-account svg,
  .nav .nav-cart-wrap .nav-cart svg,
  .nav .nav-account svg {
    width: var(--nav-icon);
    height: var(--nav-icon);
    flex: none;
    display: block;
    order: 1;
  }

  .nav .nav-cart-wrap .nav-cart::after {
    content: "Корзина";
    order: 2;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
    white-space: nowrap;
  }

  .nav .nav-account::after {
    content: "Вход";
  }

  .nav-account.is-in::before {
    display: none;
  }

  .nav .nav-account.is-in::after {
    content: attr(data-user);
    order: 2;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
    white-space: nowrap;
  }

  .nav .nav-account .nav-account__mark {
    width: var(--nav-icon, 22px);
    height: var(--nav-icon, 22px);
    order: 1;
    flex: none;
    font-size: 0.72rem;
  }

  .nav .nav-cart__count {
    position: static !important;
    top: auto;
    right: auto;
    order: 3;
    margin-left: auto;
    flex: none;
  }

  .nav .head-phone:not(.head-phone--market)::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--nav-pad-x);
    right: var(--nav-pad-x);
    height: 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.16);
  }

  /* Кнопка + стрелка сразу после названия; подменю ниже на всю ширину */
  .nav .head-phone--market {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    isolation: isolate;
    column-gap: 2px;
  }

  .nav .head-phone__btn {
    flex: 1;
    width: auto;
    min-width: 0;
    gap: var(--nav-gap);
    min-height: var(--nav-row-h);
    -webkit-tap-highlight-color: transparent;
  }

  .nav .head-phone--market > .head-phone__btn {
    flex: 0 0 auto;
    width: fit-content !important;
    max-width: calc(100% - 30px);
    padding-right: 0 !important;
    z-index: 2;
  }

  .nav .head-phone--market > .head-phone__more {
    flex: 0 0 24px;
    z-index: 3;
  }

  .nav .head-phone--market > .head-phone__menu {
    flex: 1 0 100%;
    width: 100%;
  }

  .nav .head-phone__btn:active,
  .nav .head-phone__btn:focus {
    background: transparent;
    outline: none;
  }

  .site-header .nav .head-phone:not(.head-phone--market) .head-phone__btn,
  .nav .head-phone:not(.head-phone--market) .head-phone__btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--nav-row-h);
    padding: 2px var(--nav-pad-x) !important;
    box-sizing: border-box;
    line-height: 1.2;
  }

  .nav .head-phone:not(.head-phone--market) .head-phone__btn::before {
    content: "";
    width: var(--nav-icon);
    height: var(--nav-icon);
    flex: none;
    background: #7fdcff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.2 3.2h2.4l1.2 3-1.6 1.2a11.2 11.2 0 0 0 5.4 5.4l1.2-1.6 3 1.2v2.4a1.6 1.6 0 0 1-1.5 1.6A14.6 14.6 0 0 1 5.6 4.7a1.6 1.6 0 0 1 1.6-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.2 3.2h2.4l1.2 3-1.6 1.2a11.2 11.2 0 0 0 5.4 5.4l1.2-1.6 3 1.2v2.4a1.6 1.6 0 0 1-1.5 1.6A14.6 14.6 0 0 1 5.6 4.7a1.6 1.6 0 0 1 1.6-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .nav .head-phone:not(.head-phone--market) .head-phone__more {
    display: none;
  }

  .nav .head-phone--market .head-phone__more {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    min-height: var(--nav-row-h);
    margin: 0 0 0 2px;
    padding: 0;
    flex: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
  }

  .nav.is-open .head-phone:not(.head-phone--market) .head-phone__menu {
    position: static;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  /*
   * Подменю маркета: в потоке + max-height/opacity — плавное раскрытие.
   * Закрыто: высота 0 и pointer-events:none (без display:none — иначе нет анимации).
   */
  .site-header .nav .head-phone--market > .head-phone__menu,
  .nav .head-phone--market > .head-phone__menu,
  .site-header .nav .head-phone--market.is-flyout-off > .head-phone__menu,
  .nav .head-phone--market.is-flyout-off > .head-phone__menu {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: none !important;
    pointer-events: none !important;
    z-index: 1;
    transition:
      max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      padding 0.28s ease,
      background 0.22s ease,
      visibility 0s linear 0.32s;
  }

  .site-header .nav .head-phone--market.is-open > .head-phone__menu,
  .nav .head-phone--market.is-open > .head-phone__menu,
  .site-header .nav .head-phone--market.is-open.is-flyout-off > .head-phone__menu,
  .nav .head-phone--market.is-open.is-flyout-off > .head-phone__menu {
    max-height: 140px;
    padding: 2px 0 6px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transition:
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease,
      padding 0.28s ease,
      background 0.2s ease,
      visibility 0s linear 0s;
  }

  .nav .head-phone__menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    width: 100%;
    min-height: var(--nav-row-h);
    margin: 0;
    padding: 4px var(--nav-pad-x);
    border-radius: 0 10px 10px 0;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
  }

  .nav .head-phone__menu a::before {
    width: var(--nav-icon);
    height: var(--nav-icon);
    flex: none;
  }

  .nav .head-phone__menu a:active,
  .nav .head-phone__menu a:focus {
    background: transparent;
    outline: none;
  }

  /* Подпункты: правее + приглушённый текст; активный — только неоновая полоска */
  .nav .head-phone--market .head-phone__menu a {
    position: relative;
    min-height: 28px;
    margin: 0;
    padding: 3px var(--nav-pad-x) 3px calc(var(--nav-pad-x) + 14px) !important;
    width: 100%;
    border: 0;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgb(215 246 255 / 78%);
    background: transparent !important;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.22s ease, color 0.15s ease;
  }

  .nav .head-phone--market.is-open .head-phone__menu a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav .head-phone--market.is-open .head-phone__menu a:nth-child(1) {
    transition-delay: 0.04s;
  }

  .nav .head-phone--market.is-open .head-phone__menu a:nth-child(2) {
    transition-delay: 0.08s;
  }

  .nav .head-phone--market .head-phone__menu a::before {
    content: none;
  }

  .nav .head-phone--market .head-phone__menu a.is-active {
    color: #fff;
    font-weight: 700;
    background: transparent !important;
    box-shadow: none;
  }

  .nav .head-phone--market .head-phone__menu a.is-active::before {
    content: "";
    position: absolute;
    left: calc(var(--nav-pad-x) + 6px);
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: #3ad7ff;
    box-shadow: 0 0 8px 1px rgb(58 215 255 / 75%), 0 0 18px rgb(58 215 255 / 45%);
  }

  .nav .btn.btn--primary,
  .nav a.btn--primary {
    width: fit-content !important;
    max-width: calc(100% - 32px);
    align-self: flex-start !important;
    min-height: 36px;
    height: 36px;
    margin: 10px var(--nav-pad-x) 0;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
  }

  .btn,
  .filter-btn,
  .svc-carousel__btn,
  .dir-nav__btn,
  .to-top {
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active,
  .filter-btn:active,
  .btn--ghost:active,
  .btn--primary:active {
    background-image: none;
  }

  .btn--ghost:active {
    background-color: transparent;
  }

  .filter-btn:active:not(.is-active) {
    background-color: transparent;
  }

  body.nav-open main,
  body.nav-open .site-footer {
    pointer-events: none;
  }
}

.steps--wrap {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.steps--wrap::before {
  display: none;
}

.stage__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 16px;
}

.stage__extras .stage__card {
  position: relative;
  width: 220px;
  height: 150px;
  inset: auto;
  opacity: 1;
  animation: none;
}

.stack__item.tip {
  border-bottom: 0;
  cursor: help;
}

.stack__item.tip:hover,
.stack__item.tip:focus-visible {
  color: #fff;
  border-color: rgba(46, 125, 210, 0.75);
  box-shadow: 0 0 0 1px rgba(46, 125, 210, 0.45);
  outline: none;
}

.tip-bubble--stack {
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: left;
  line-height: 1.35;
  font-weight: 600;
}

.itech-block[data-has-bg="1"] {
  background: var(--ib-bg);
}

.itech-block[data-font="1"],
.itech-block[data-font="1"] .section__title,
.itech-block[data-font="1"] h1,
.itech-block[data-font="1"] h2,
.itech-block[data-font="1"] h3 {
  font-family: var(--ib-font);
}

.itech-block[data-border="line"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.itech-block[data-border="accent"] {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.itech-block[data-shape="1"],
.itech-block[data-shape="1"] .dir-card,
.itech-block[data-shape="1"] .shot,
.itech-block[data-shape="1"] .step,
.itech-block[data-shape="1"] .case-card,
.itech-block[data-shape="1"] .cta-band {
  border-radius: var(--ib-radius);
}

@media (min-width: 981px) {
  .itech-block[data-block="services"][data-fit="grid"] .svc-grid,
  .itech-block[data-block="cases"][data-fit="grid"] .case-grid,
  .itech-block[data-block="steps"][data-fit="grid"] .steps {
    grid-template-columns: repeat(var(--ib-cols), minmax(0, 1fr));
  }

  .itech-block[data-block="directions"][data-fit="carousel"] .dir-card {
    flex-basis: calc((100% - (var(--ib-cols) - 1) * 14px) / var(--ib-cols));
  }

  .itech-block[data-block="directions"][data-fit="grid"] .dir-grid {
    display: grid;
    grid-template-columns: repeat(var(--ib-cols), minmax(0, 1fr));
    overflow: visible;
  }

  .itech-block[data-block="directions"][data-fit="grid"] .dir-card {
    flex: none;
    width: auto;
  }

  .itech-block[data-fit="carousel"] .svc-grid,
  .itech-block[data-fit="carousel"] .mp-sol-grid,
  .itech-block[data-fit="carousel"] .steps,
  .itech-block[data-fit="carousel"] .case-grid,
  .itech-block[data-block="stack"][data-fit="carousel"] .stack,
  .itech-block[data-block="directions"][data-fit="carousel"][data-rows="2"] .dir-grid,
  .itech-block[data-block="directions"][data-fit="carousel"][data-rows="3"] .dir-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--ib-rows), auto);
    grid-auto-columns: calc((100% - (var(--ib-cols) - 1) * 16px) / var(--ib-cols));
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .itech-block[data-block="directions"][data-fit="grid"] .dir-card,
  .itech-block[data-fit="carousel"] .shot,
  .itech-block[data-fit="carousel"] .mp-sol,
  .itech-block[data-fit="carousel"] .step,
  .itech-block[data-fit="carousel"] .case-card,
  .itech-block[data-fit="carousel"] .stack span {
    width: auto;
    flex: none;
    scroll-snap-align: start;
  }

  .itech-block[data-block="marketplace"][data-fit="grid"] .mp-sol-grid {
    display: grid;
    grid-template-columns: repeat(var(--ib-cols, 3), minmax(0, 1fr));
  }

  .itech-block[data-block="stack"][data-cols="0"] .stack {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    grid-template-rows: none;
  }

  .itech-block[data-fit="grid"] .dir-nav {
    display: none;
  }
}

.itech-block[data-fit="carousel"] .steps::before,
.itech-block[data-block="steps"]:not([data-cols="4"]) .steps::before {
  display: none;
}

.itech-block[data-layout="grid"] .stage__gallery {
  position: relative;
  display: grid;
  gap: 12px;
  height: auto;
  margin-top: 18px;
  grid-template-columns: repeat(var(--ib-cols), minmax(0, 1fr));
}

.itech-block[data-layout="grid"][data-fit="carousel"] .stage__gallery {
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--ib-rows), 180px);
  grid-auto-columns: calc((100% - (var(--ib-cols) - 1) * 12px) / var(--ib-cols));
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.itech-block[data-layout="grid"] .stage__card {
  position: relative;
  inset: auto;
  width: auto;
  height: 180px;
  opacity: 1;
  animation: none;
}

.svc-carousel {
  --svc-gap: 32px;
  --svc-shadow: 22px;
  position: relative;
  overflow: visible;
}

/* окно карусели: клип по карточкам, тень рисуется в clip-margin (не absolute) */
.svc-carousel__viewport {
  container-type: inline-size;
  container-name: svc-carousel;
  overflow-x: clip;
  overflow-y: clip;
  overflow-clip-margin: var(--svc-shadow);
  padding: 28px 0 56px;
  margin: -28px 0 -56px;
  touch-action: pan-y;
  cursor: grab;
}

.svc-carousel__viewport:active {
  cursor: grabbing;
}

.svc-carousel__btn {
  position: absolute;
  /* top выставляет JS по центру всей .shot */
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(58 215 255 / 40%);
  background: rgb(8 14 26 / 78%);
  color: #d7f6ff;
  cursor: pointer;
  box-shadow: 0 0 18px rgb(58 215 255 / 16%);
  transform: translateY(-50%);
  line-height: 0;
}

.svc-carousel__btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.svc-carousel__btn--prev {
  left: 0;
  transform: translate(calc(-100% - 10px), -50%);
}

.svc-carousel__btn--next {
  right: 0;
  transform: translate(calc(100% + 10px), -50%);
}

.svc-carousel__btn:hover {
  border-color: rgb(58 215 255 / 75%);
  box-shadow: 0 0 20px rgb(58 215 255 / 30%);
}

.svc-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.svc-grid .shot.is-hidden {
  display: none;
}

@media (max-width: 1240px) {
  /* Поля контейнера уже, чем вынос стрелки — иначе страница скроллится вбок */
  .svc-carousel {
    overflow-x: clip;
    max-width: 100%;
  }

  .svc-carousel__btn--prev {
    left: 8px;
    right: auto;
    transform: translateY(-50%);
  }

  .svc-carousel__btn--next {
    right: 8px;
    left: auto;
    transform: translateY(-50%);
  }
}

@media (max-width: 980px) and (max-height: 520px) {
  .stage {
    padding: 10px 0 8px;
  }

  .stage__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    gap: 16px;
    align-items: center;
  }

  .stage__gallery {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: visible;
  }

  .stage .hero__title {
    font-size: clamp(1.45rem, 5.2vh, 2.05rem);
    margin-bottom: 8px;
  }

  .stage .hero__sub {
    margin-bottom: 10px;
    font-size: 0.92rem;
    max-width: none;
  }

  .stage .eyebrow {
    margin-bottom: 8px;
  }

  .stage .hero__actions {
    margin-top: 8px;
  }

  .stage .chips {
    margin-top: 0;
  }

  .stage__copy {
    min-width: 0;
  }

  .catalog-detail {
    padding: 14px 16px;
  }

  .catalog-detail h1 {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .catalog-detail__top {
    gap: 12px;
    margin-bottom: 10px;
  }

  .catalog-detail__top:has(.catalog-detail__logo) {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .catalog-detail__logo {
    width: 64px;
    height: 64px;
  }

  .catalog-detail__price {
    margin: 8px 0;
  }

  .catalog-detail__offer-note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
  }

  .section {
    padding-top: 12px;
    padding-bottom: 16px;
  }
}

@media (max-width: 980px) and (max-height: 380px) {
  .stage .chips {
    max-height: 36px;
    overflow: hidden;
  }
}

/* Короткое окно на десктопе: герой не выше первого экрана */
@media (min-width: 981px) and (max-height: 700px) {
  .stage {
    padding: 12px 0 8px;
  }

  .stage__layout {
    min-height: 0;
    align-items: center;
  }

  .stage__gallery {
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: visible;
  }

  .stage .hero__title {
    font-size: clamp(1.7rem, 4.6vh, 2.4rem);
    margin-bottom: 8px;
  }

  .stage .hero__sub {
    margin-bottom: 10px;
  }

  .stage .hero__actions,
  .stage .chips {
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  /* стрелки внутри экрана — иначе translate за край даёт горизонтальный overflow */
  .svc-carousel {
    --svc-gap: 20px;
    --svc-shadow: 12px;
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100%;
  }

  .svc-carousel__viewport {
    overflow-clip-margin: 12px;
    max-width: 100%;
  }

  .svc-carousel__btn {
    width: 36px;
    height: 36px;
    /* выше «наверх», иначе ^ перекрывает › на карточке */
    z-index: 30;
    /* top + transform — JS, одинаково для prev/next */
  }

  .svc-carousel__btn:disabled {
    opacity: 0.55;
  }

  .svc-carousel__btn svg {
    width: 16px;
    height: 16px;
  }

  .svc-carousel__btn--prev {
    left: 8px;
    right: auto;
    transform: translateY(-50%);
  }

  .svc-carousel__btn--next {
    right: 8px;
    left: auto;
    transform: translateY(-50%);
  }

  /* «наверх» не лезет на стрелки карусели */
  .to-top {
    right: 14px;
    bottom: 18px;
  }
}

.svc-carousel__mover {
  width: max-content;
  max-width: none;
  margin-left: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.itech-block[data-block="services"][data-fit="carousel"] .svc-grid,
.svc-carousel .svc-grid {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: var(--svc-gap);
  width: max-content;
  max-width: none;
  overflow: visible;
  padding: 8px 0 16px;
  margin: 0;
  isolation: isolate;
}

.itech-block[data-block="cases"][data-fit="carousel"] .case-grid {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: var(--svc-gap);
  width: max-content;
  max-width: none;
  overflow: visible;
  padding: 8px 0 16px;
  margin: 0;
  grid-template-columns: none;
  grid-auto-flow: unset;
  grid-template-rows: none;
  scroll-snap-type: none;
}

.itech-block[data-block="cases"][data-fit="carousel"] .case-card {
  position: relative;
  flex: 0 0 calc((100cqw - (var(--svc-gap) * 2)) / var(--ib-cols, 3));
  width: calc((100cqw - (var(--svc-gap) * 2)) / var(--ib-cols, 3));
  min-width: 0;
  height: auto;
  align-self: stretch;
  scroll-snap-align: unset;
  /* overflow:hidden + border мигает при сдвиге слоя — клип только у media */
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.itech-block[data-block="cases"][data-fit="carousel"] .case-card__media {
  border-radius: 21px 21px 0 0;
}

.itech-block[data-block="cases"][data-fit="carousel"] .case-card__body {
  border-radius: 0 0 21px 21px;
  background: rgb(12, 18, 32);
}

.svc-carousel__spacer {
  display: none;
}

.itech-block[data-block="services"][data-fit="carousel"] .shot,
.svc-carousel .shot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100cqw - (var(--svc-gap) * 2)) / 3);
  width: calc((100cqw - (var(--svc-gap) * 2)) / 3);
  min-width: 0;
  height: auto;
  align-self: stretch;
  border: 0;
  box-shadow:
    0 16px 34px -14px rgba(0, 0, 0, 0.52),
    0 0 16px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

.itech-block[data-block="services"][data-fit="carousel"] .shot__media,
.svc-carousel .shot__media {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}

.itech-block[data-block="services"][data-fit="carousel"] .shot__media img,
.svc-carousel .shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.itech-block[data-block="services"][data-fit="carousel"] .shot__cap,
.svc-carousel .shot__cap {
  flex: 1 1 auto;
}

.itech-block[data-block="services"][data-fit="carousel"] .shot__cap strong,
.svc-carousel .shot__cap strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.itech-block[data-block="services"][data-fit="carousel"] .shot::after,
.svc-carousel .shot::after {
    content: "";
  position: absolute;
    inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
  transition: box-shadow 0.35s ease;
}

.itech-block[data-block="services"][data-fit="carousel"] .shot:hover,
.svc-carousel .shot:hover {
  z-index: 8;
  transform: translateY(-8px);
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.6),
    0 0 20px color-mix(in srgb, var(--card-accent) 48%, transparent);
}

.itech-block[data-block="services"][data-fit="carousel"] .shot:hover::after,
.svc-carousel .shot:hover::after {
  box-shadow:
    inset 0 0 0 2px var(--card-accent),
    inset 0 0 28px color-mix(in srgb, var(--card-accent) 28%, transparent);
}

@media (max-width: 719px) {
  .itech-block[data-block="services"][data-fit="carousel"] .shot,
  .svc-carousel .shot {
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
  }

  .itech-block[data-block="cases"][data-fit="carousel"] .case-card {
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
  }

  #services.section,
  #services .container,
  #cases.section,
  #cases .container {
    overflow-x: clip;
    max-width: 100%;
  }
}

@media (min-width: 720px) and (max-width: 980px) {
  .itech-block[data-block="services"][data-fit="carousel"] .shot,
  .svc-carousel .shot {
    flex: 0 0 calc((100cqw - var(--svc-gap)) / 2);
    width: calc((100cqw - var(--svc-gap)) / 2);
  }

  .itech-block[data-block="cases"][data-fit="carousel"] .case-card {
    flex: 0 0 calc((100cqw - var(--svc-gap)) / 2);
    width: calc((100cqw - var(--svc-gap)) / 2);
  }
}

@supports not (overflow-clip-margin: 1px) {
  .svc-carousel__viewport {
    overflow: hidden;
  }
}

.slide__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  opacity: 0.72;
}

.slide__old {
  text-decoration: line-through;
  opacity: 0.55;
  font-style: normal;
}

.catalog-detail {
  padding: 28px;
}

.catalog-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.catalog-detail__top:has(.catalog-detail__logo) {
  grid-template-columns: 120px minmax(0, 1fr);
}

.catalog-detail__logo {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(58 215 255 / 18%);
}

.catalog-detail__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.catalog-detail__vendor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 8px 0 0;
  color: #9eb0c6;
}

.catalog-detail__offer-note {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #9eb0c6;
  font-size: 0.86rem;
  line-height: 1.45;
}

.catalog-detail__offer-note a {
  color: #8ec7ff;
}

.catalog-detail__code {
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
  color: #7f93ab;
}

.catalog-detail__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0;
}

.catalog-detail__price strong {
  font-size: 1.45rem;
  color: #fff;
}

.catalog-detail__old {
  text-decoration: line-through;
  color: #7f93ab;
}

.catalog-detail__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-top: 4px;
}

.catalog-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.catalog-detail__actions[hidden],
.itech-cart-actions[hidden],
[data-cart-actions][hidden] {
  display: none !important;
}

.catalog-detail__actions .btn {
  min-height: 42px;
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--nav, #d7f6ff);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-icon:hover {
  color: #fff;
  background: rgb(255 255 255 / 6%);
}

.nav-account.is-in {
  position: relative;
  color: #fff;
}

.nav-account.is-in::before {
  content: attr(data-user);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(58, 215, 255, 0.35);
  background: rgba(8, 14, 26, 0.98);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.nav-account.is-in:hover::before,
.nav-account.is-in:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.nav-account__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7dd2, #3ad7ff);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(58, 215, 255, 0.45);
}

.nav-cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-cart__count {
  position: absolute;
  top: 4px;
  right: 2px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2e7dd2;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.nav-cart__count[hidden] {
  display: none !important;
}

.nav-cart-drop {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 90;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  min-width: min(360px, calc(100vw - 24px));
  padding: 10px 0 0;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

/* Пустая корзина — по контенту, без min-height/min-width всплывашки */
.nav-cart-drop.is-empty {
  width: max-content;
  min-width: 0;
  max-width: min(280px, calc(100vw - 24px));
}

.nav-cart-drop__panel {
  box-sizing: border-box;
  min-height: var(--nav-flyout-min-h);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(58, 215, 255, 0.28);
  background: rgba(8, 14, 26, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.nav-cart-drop.is-empty .nav-cart-drop__panel {
  min-height: 0;
  width: max-content;
  max-width: 100%;
}

.nav-cart-drop.is-empty .nav-cart-drop__body {
  flex: none;
  padding: 14px 16px 16px;
}

.nav-cart-drop.is-empty .nav-cart-drop__actions {
  margin-top: 10px;
}

.nav-cart-wrap:hover .nav-cart-drop:not([hidden]),
.nav-cart-wrap:focus-within .nav-cart-drop:not([hidden]),
.nav-cart-wrap.is-open .nav-cart-drop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: none;
    pointer-events: auto;
  }

.nav-cart-drop[hidden] {
  display: none !important;
}

.nav-cart-drop__bar {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #2e7dd2;
}

.nav-cart-drop__body {
  flex: 1;
  padding: 12px 14px 14px;
}

.nav-cart-drop__list {
  list-style: none;
  margin: 0;
  padding: 0 8px 0 0;
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  scrollbar-gutter: auto;
}

.nav-cart-drop__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.nav-cart-drop__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 8%);
  display: grid;
  place-items: center;
}

.nav-cart-drop__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-cart-drop__thumb--empty {
  color: #7f93ab;
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-cart-drop__meta {
  min-width: 0;
}

.nav-cart-drop__meta a {
  display: block;
  color: #e8eef8;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.nav-cart-drop__meta a:hover {
  color: #fff;
}

.nav-cart-drop__kind {
  display: block;
  margin-bottom: 2px;
  color: #9eb6d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-cart-drop__price {
  margin: 2px 0 0;
  color: #9eb6d4;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cart-drop__price strong {
  font-weight: 700;
  color: #e8eef8;
}

.nav-cart-drop__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
  flex: none;
}

.nav-cart-drop__qty button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: transparent;
  color: #e8eef8;
  cursor: pointer;
  line-height: 1;
}

.nav-cart-drop__qty span {
  min-width: 1.4ch;
  text-align: center;
  font-size: 0.85rem;
}

.nav-cart-drop__empty {
  margin: 0;
  color: #9eb6d4;
  font-size: 0.9rem;
}

.nav-cart-drop__total {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.nav-cart-drop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nav-cart-drop__actions .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.catalog-detail__edition {
  display: grid;
  gap: 6px;
  margin: 0;
  flex: 1 1 220px;
  max-width: 280px;
}

.catalog-detail__edition label {
  color: #9eb6d4;
  font-size: 0.88rem;
  font-weight: 600;
}

.catalog-detail__edition select,
.itech-cart-license select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(8 14 26 / 90%);
  color: #e8eef8;
  font: inherit;
  outline: none;
  box-shadow: none;
  accent-color: #2e7dd2;
  transition: border-color 0.2s ease;
}

.catalog-detail__edition select:hover,
.itech-cart-license select:hover {
  border-color: rgb(255 255 255 / 24%);
}

.catalog-detail__edition select:focus,
.catalog-detail__edition select:focus-visible,
.itech-cart-license select:focus,
.itech-cart-license select:focus-visible {
  outline: none;
  border-color: rgb(255 255 255 / 28%);
  box-shadow: none;
}

.catalog-tech a {
  color: #9eb6d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.catalog-tech a:hover {
  color: #e8eef8;
}

.itech-cart-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(14 20 34 / 97%);
  box-shadow:
    0 18px 44px rgb(0 0 0 / 48%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
  color: #e8eef8;
  opacity: 0;
  transform: translateY(12px);
    pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

.itech-cart-toast.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.itech-cart-toast__bar {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #2e7dd2;
}

.itech-cart-toast__body {
  padding: 14px 16px 16px;
}

.itech-cart-toast__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.itech-cart-toast__meta {
  margin: 0;
  color: #9eb6d4;
  font-size: 0.88rem;
  line-height: 1.45;
}

.itech-cart-toast__meta + .itech-cart-toast__meta {
  margin-top: 2px;
}

.itech-cart-toast__total {
  margin: 10px 0 0;
  color: #e8eef8;
  font-size: 0.95rem;
  font-weight: 700;
}

.itech-cart-toast__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgb(186 228 255 / 45%);
  background: rgb(46 125 210 / 22%);
  color: #eaf6ff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.itech-cart-toast__link:hover {
  background: rgb(46 125 210 / 36%);
  border-color: rgb(186 228 255 / 70%);
  color: #fff;
}

.itech-cart-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 1.1rem;
  font-weight: 700;
  transition: opacity 0.28s ease;
}

.itech-cart-license {
  margin-top: 22px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(8 14 26 / 55%);
  overflow: hidden;
  max-height: 320px;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    max-height 0.32s ease,
    margin 0.28s ease,
    padding 0.28s ease,
    border-color 0.28s ease,
    border-width 0.28s ease;
}

.itech-cart-license.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  border-width: 0;
  pointer-events: none;
}

.itech-cart-license h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #fff;
}

.itech-cart-license__hint {
  margin: 0 0 4px;
  color: #9eb6d4;
  font-size: 0.88rem;
}

.itech-cart-license__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.itech-cart-license__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgb(46 125 210 / 40%);
  background: rgb(46 125 210 / 14%);
  color: #cfe6ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.itech-cart-license__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.itech-cart-license__row select {
  flex: 1 1 240px;
  max-width: 420px;
}

.itech-cart-list__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.itech-cart-list__qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: transparent;
  color: #e8eef8;
  cursor: pointer;
}

.itech-cart-list__qty span {
  min-width: 1.5ch;
  text-align: center;
}

.itech-cart-remove {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #c5d3e6;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.itech-cart-remove:hover,
.itech-cart-remove:focus,
.itech-cart-remove:focus-visible,
.itech-cart-remove:active {
  background: transparent;
  outline: none;
  box-shadow: none;
  color: #fff;
}

.itech-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.itech-cart-list__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  overflow: hidden;
  max-height: 220px;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    max-height 0.32s ease,
    padding 0.28s ease,
    border-color 0.28s ease,
    margin 0.28s ease;
}

.itech-cart-list__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  display: grid;
  place-items: center;
}

.itech-cart-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.itech-cart-list__thumb--empty {
  color: #7f93ab;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.itech-cart-list__item:last-child {
  border-bottom: none;
}

.itech-cart-list__item.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-color: transparent;
  pointer-events: none;
}

.itech-cart-list__kind {
  display: none;
}

.itech-cart-list__section {
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  color: #9eb6d4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: none;
}

.itech-cart-list__section:first-child {
  margin-top: 0;
}

.itech-cart-list__sum strong {
  color: #e8eef8;
  font-weight: 700;
}

.nav-cart-drop__section {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0 2px;
  color: #9eb6d4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-cart-drop__section:first-child {
  margin-top: 0;
}

.nav-cart-drop__kind {
  display: none;
}

.itech-cart-root-empty {
  opacity: 0;
  transform: translateY(6px);
  animation: itechCartEmptyIn 0.32s ease forwards;
}

@keyframes itechCartEmptyIn {
  to {
    opacity: 1;
    transform: none;
  }
}

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

.account-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.itech-viewed {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  padding-bottom: 36px;
}

.itech-viewed__carousel {
  --viewed-gap: 14px;
  --viewed-shadow: 10px;
  margin: 0;
}

/* Тень меньше зазора между карточками, поэтому край рисуется, а следующий слайд нет. */
.itech-viewed__carousel .svc-carousel__viewport {
  overflow-x: clip;
  overflow-y: clip;
  overflow-clip-margin: var(--viewed-shadow);
  padding: 12px 0 20px;
  margin: -4px 0 0;
}

.itech-viewed__carousel .svc-carousel__btn[hidden] {
  display: none !important;
}

.itech-viewed__track {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: var(--viewed-gap);
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.itech-viewed__track .mp-sol {
  flex: 0 0 calc((100cqw - (var(--viewed-gap) * 2) - 2px) / 3);
  width: calc((100cqw - (var(--viewed-gap) * 2) - 2px) / 3);
  max-width: none;
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  background: #22304f;
  border-color: rgb(255 255 255 / 16%);
}

.itech-viewed__track .mp-sol:hover {
  z-index: 4;
  background: #22304f;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-accent, #2e7dd2) 70%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-accent, #2e7dd2) 50%, transparent),
    0 6px 10px rgb(0 0 0 / 50%);
}

@media (max-width: 980px) {
  .itech-viewed__track .mp-sol {
    flex-basis: calc((100cqw - var(--viewed-gap) - 2px) / 2);
    width: calc((100cqw - var(--viewed-gap) - 2px) / 2);
  }
}

@media (max-width: 720px) {
  .itech-viewed__track .mp-sol {
    flex-basis: calc(100cqw - 2px);
    width: calc(100cqw - 2px);
  }
}

@media (max-width: 980px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-tabs {
  margin-top: 28px;
}

.catalog-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.catalog-tabs__btn {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #9eb6d4;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-tabs__btn:hover {
  color: #e8eef8;
}

.catalog-tabs__btn.is-active {
  color: #fff;
}

.catalog-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #2e7dd2;
}

.catalog-tabs__panel[hidden] {
  display: none !important;
}

.catalog-tabs__panel.is-active {
  display: block;
}

.catalog-tabs__panel h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.catalog-tabs__content {
  color: #d5e0f0;
  line-height: 1.55;
}

.catalog-tabs__content a {
  color: #7fdcff;
}

.catalog-tabs__content table {
  width: 100%;
  border-collapse: collapse;
}

.catalog-tabs__content td {
  padding: 6px 8px;
  vertical-align: top;
}

.catalog-detail__shots,
.catalog-detail__tech,
.catalog-detail__desc {
  margin-top: 28px;
}

.catalog-tabs__panel > .catalog-detail__desc:first-child,
.catalog-tabs__panel > .catalog-detail__tech:first-child {
  margin-top: 0;
}

.catalog-detail__desc,
.catalog-tabs__content {
  max-width: 100%;
  min-width: 0;
}

.catalog-detail__desc img,
.catalog-tabs__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.catalog-detail__desc table,
.catalog-tabs__content table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
}

.catalog-detail__desc td,
.catalog-detail__desc th,
.catalog-tabs__content td,
.catalog-tabs__content th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-detail__desc iframe,
.catalog-detail__desc video,
.catalog-tabs__content iframe,
.catalog-tabs__content video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}

.catalog-detail h1 {
  margin: 0 0 8px;
  font-size: clamp(1.28rem, 2.1vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.catalog-detail h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: #e8eef8;
}

.shot-carousel {
  position: relative;
}

.shot-carousel__viewport {
  position: relative;
}

.catalog-shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.catalog-shots::-webkit-scrollbar {
  display: none;
}

.catalog-shots__item {
  display: block;
  flex: 0 0 180px;
  width: 180px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgb(58 215 255 / 18%);
  background: #fff;
  color: inherit;
  font: inherit;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}

.catalog-shots__item img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
}

.shot-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(58 215 255 / 40%);
  background: rgb(8 14 26 / 82%);
  color: #d7f6ff;
  cursor: pointer;
  box-shadow: 0 0 18px rgb(58 215 255 / 16%);
  transform: translateY(-50%);
}

.shot-carousel__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.shot-carousel__btn--prev { left: 0; }
.shot-carousel__btn--next { right: 0; }

.shot-carousel__btn:hover {
  border-color: rgb(58 215 255 / 75%);
  box-shadow: 0 0 20px rgb(58 215 255 / 30%);
}

.shot-carousel__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.shot-carousel--single .shot-carousel__btn,
.shot-carousel--fit .shot-carousel__btn {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-shots {
    scroll-behavior: auto;
  }
}

.catalog-detail__tech {
  margin-bottom: 22px;
}

.catalog-tech__title {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2e7dd2;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-tech {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid color-mix(in srgb, var(--card-accent, #2e7dd2) 28%, transparent);
}

.catalog-tech dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 10px 18px;
  margin: 0;
  align-items: baseline;
}

.catalog-tech dt,
.catalog-tech .technicaldata-block-table-data dt,
.catalog-tech td:first-child,
.catalog-tech th {
  margin: 0;
  color: #9eb6d4 !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.catalog-tech dt::after {
  content: none;
}

.catalog-tech dd,
.catalog-tech .technicaldata-block-table-data dd,
.catalog-tech td:last-child {
  margin: 0;
  color: #e8eef8 !important;
}

.catalog-tech a {
  color: #9eb6d4;
}

/* Hover карточек каталога — как у услуг */
.svc-grid .slide {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.svc-grid .slide:hover {
  z-index: 3;
  transform: translateY(-6px);
  border-color: var(--card-accent, #2e7dd2);
  box-shadow:
    0 0 0 1px var(--card-accent, #2e7dd2),
    0 14px 36px color-mix(in srgb, var(--card-accent, #2e7dd2) 42%, transparent);
}

.svc-grid .slide .slide__art {
  position: relative;
  overflow: hidden;
}

.svc-grid .slide .slide__art img {
  transition: transform 0.7s ease;
}

.svc-grid .slide:hover .slide__art img {
  transform: scale(1.07);
}

.svc-grid .slide .slide__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}

.svc-grid .slide:hover .slide__art::after {
  animation: sheen 0.8s ease;
}

@keyframes sheen {
  to { transform: translateX(130%); }
}

.catalog-tech a {
  color: #8ec7ff;
}

.catalog-detail__desc img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .catalog-detail {
    padding: 18px;
  }

  .catalog-detail__buy {
    display: grid;
    align-items: stretch;
    gap: 10px;
  }

  .catalog-detail__edition {
    max-width: none;
    width: 100%;
  }

  .catalog-detail__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .catalog-detail__actions .btn {
    width: 100%;
  }

  .catalog-detail__desc table,
  .catalog-detail__desc tbody,
  .catalog-detail__desc tr,
  .catalog-detail__desc td,
  .catalog-detail__desc th,
  .catalog-tabs__content table,
  .catalog-tabs__content tbody,
  .catalog-tabs__content tr,
  .catalog-tabs__content td,
  .catalog-tabs__content th {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .catalog-detail__top {
    grid-template-columns: 1fr;
  }

  .catalog-detail__logo {
    width: 88px;
    height: 88px;
  }

  .catalog-detail__top:has(.catalog-detail__logo) {
    grid-template-columns: 1fr;
  }

  .catalog-tech dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 980px) and (max-height: 520px) {
  .catalog-detail {
    padding: 0 14px 6px;
  }

  .catalog-detail h1 {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .catalog-detail__top:has(.catalog-detail__logo) {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 8px;
  }

  .catalog-detail__logo {
    width: 56px;
    height: 56px;
  }

  .catalog-detail .eyebrow--accent {
    margin-bottom: 6px;
  }

  .catalog-detail__price {
    margin: 4px 0 6px;
  }

  .catalog-detail__offer-note {
    display: none;
  }
}

.marketplace-licenses-cta {
  margin: 16px 0 0;
}

.page-intro__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  margin: 0 1px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgb(58 215 255 / 38%);
  background:
    linear-gradient(145deg, rgb(58 215 255 / 16%), rgb(46 125 210 / 8%) 55%, rgb(8 14 24 / 55%));
  color: #c8f4ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94em;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow:
    0 0 0 1px rgb(58 215 255 / 6%) inset,
    0 0 18px rgb(58 215 255 / 14%);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.page-intro__chip-ico,
.page-intro__chip-arr {
  flex: none;
  display: block;
}

.page-intro__chip-arr {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-intro__chip:hover {
  color: #fff;
  border-color: rgb(58 215 255 / 72%);
  background:
    linear-gradient(145deg, rgb(58 215 255 / 28%), rgb(46 125 210 / 16%) 55%, rgb(8 14 24 / 40%));
  box-shadow:
    0 0 0 1px rgb(58 215 255 / 12%) inset,
    0 0 28px rgb(58 215 255 / 32%);
  transform: translateY(-1px);
}

.page-intro__chip:hover .page-intro__chip-arr {
  opacity: 1;
  transform: translateX(2px);
}

.page-intro__chip:focus-visible {
  outline: 2px solid #3ad7ff;
  outline-offset: 3px;
}

.license-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.license-cards--enterprise {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

.license-card__note {
  margin: 0;
  color: #9eb0c6;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.license-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgb(255 255 255 / 6%), rgb(8 14 24 / 88%));
  border: 1px solid color-mix(in srgb, var(--card-accent, #2e7dd2) 42%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.license-card:hover {
  z-index: 3;
  transform: translateY(-6px);
  border-color: var(--card-accent, #2e7dd2);
  box-shadow:
    0 0 0 1px var(--card-accent, #2e7dd2),
    0 14px 36px color-mix(in srgb, var(--card-accent, #2e7dd2) 42%, transparent);
}

.license-card__art {
  display: block;
  margin: 4px 0 2px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.license-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
  box-sizing: border-box;
}

.svc-grid .slide--license .slide__art {
  aspect-ratio: 1 / 1;
  background: #fff;
  height: auto;
}

.svc-grid .slide--license .slide__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
}

.license-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b1220;
  background: var(--card-accent, #ff8a3d);
}

.license-card__title {
  margin: 0;
  font-size: 1.2rem;
  color: #eef5ff;
}

.license-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--card-accent, #2e7dd2);
}

.license-card__feats {
  flex: 1;
}

.license-card__actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.license-card__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.license-feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.license-feat-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #c9d7e8;
  font-size: 0.92rem;
  line-height: 1.35;
}

.license-feat-list__ok {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--card-accent, #35c4a5);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent, #35c4a5) 22%, transparent);
}

.license-compare-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgb(58 215 255 / 16%);
  background: rgb(6 10 18 / 72%);
}

.license-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.license-compare th,
.license-compare td {
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  text-align: left;
  vertical-align: top;
  color: #d7e6f7;
  font-size: 0.92rem;
}

.license-compare thead th {
  position: sticky;
  top: 0;
  background: #0d1624;
  color: #9eb0c6;
  font-weight: 700;
  white-space: nowrap;
}

.license-compare__section th {
  background: rgb(46 125 210 / 14%);
  color: #8ec7ff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-compare tbody th[scope="row"] {
  color: #9eb0c6;
  font-weight: 600;
  min-width: 220px;
}

.license-compare__yes span {
  color: #35c4a5;
  font-weight: 700;
}

.license-compare__no span {
  color: #5c6d82;
}

.license-compare__note {
  margin: 14px 0 0;
  color: #7f93ab;
  font-size: 0.88rem;
}

.license-compare__actions {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
}

.license-compare__actions .btn {
  flex: 1 1 220px;
  min-width: 0;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .license-compare__actions {
    flex-flow: column nowrap;
  }

  .license-compare__actions .btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

.catalog-detail__license-note {
  margin: 22px 0 0;
  color: #7f93ab;
  font-size: 0.9rem;
}

.catalog-detail--license .license-feat-list {
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

@media (max-width: 1100px) {
  .license-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .license-cards {
    grid-template-columns: 1fr;
  }

  .catalog-detail--license .license-feat-list {
    grid-template-columns: 1fr;
  }
}

.itech-catalog__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.itech-catalog__more[hidden] {
  display: none !important;
}

.itech-catalog__btn {
  min-width: 180px;
}

.itech-catalog__btn[hidden] {
  display: none !important;
}

.itech-catalog__sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.itech-catalog__status {
  margin: 0;
  font-size: 0.9rem;
}

.itech-catalog.is-loading .itech-catalog__btn {
  opacity: 0.7;
  pointer-events: none;
}

/* Каталог решений — карточки как на Маркетплейсе (лого слева, текст справа) */
.mp-sol-grid {
  display: grid;
  grid-template-columns: repeat(var(--ib-cols, 3), minmax(0, 1fr));
  gap: 14px;
}

.itech-block[data-block="marketplace"] .mp-sol-grid,
.itech-catalog--home .mp-sol-grid,
.itech-catalog .mp-sol-grid {
  grid-template-columns: repeat(var(--ib-cols, 3), minmax(0, 1fr));
  align-items: stretch;
}

.mp-sol__kick {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 3px 8px;
  min-height: 22px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--card-accent, #3ad7ff) 90%, #fff);
  background: color-mix(in srgb, var(--card-accent, #2e7dd2) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent, #2e7dd2) 40%, transparent);
  box-sizing: border-box;
}

.mp-sol {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  height: 100%;
  min-width: 0;
  min-height: 196px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(14 20 34 / 92%);
  color: #e8eef8;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
  box-sizing: border-box;
}

.mp-sol:hover {
  z-index: 3;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-accent, #2e7dd2) 70%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-accent, #2e7dd2) 35%, transparent),
    0 12px 28px rgb(0 0 0 / 35%);
  background: rgb(18 26 42 / 96%);
}

.itech-viewed__track .mp-sol,
.itech-viewed__track .mp-sol:hover {
  background: #22304f;
}

.mp-sol.is-hidden {
  display: none;
}

.mp-sol__logo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b101a;
  border: 1px solid rgb(255 255 255 / 8%);
  flex: none;
}

.mp-sol__logo img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.mp-sol__logo-fallback {
  font-family: var(--font-display, Unbounded, system-ui, sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--card-accent, #2e7dd2);
}

.mp-sol__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
}

.mp-sol__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f2f6ff;
}

.mp-sol__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.mp-sol__price b {
  color: #6eb6ff;
  font-size: 1.02rem;
  font-weight: 800;
}

.mp-sol__old {
  font-style: normal;
  font-size: 0.82rem;
  color: #8a93a8;
  text-decoration: line-through;
}

.mp-sol__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #9aa6bd;
  font-size: 0.78rem;
}

.mp-sol__stars {
  display: inline-flex;
  gap: 1px;
  letter-spacing: 0;
  line-height: 1;
}

.mp-sol__star {
  color: rgb(255 255 255 / 18%);
  font-size: 0.85rem;
}

.mp-sol__star.is-on,
.mp-sol__star.is-half {
  color: #f0a33b;
}

.mp-sol__reviews {
  color: #8a93a8;
}

.mp-sol__vendor {
  color: #8a93a8;
}

.mp-sol--tech {
  align-items: start;
}

.mp-sol__tech {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 8px;
  min-height: 58px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.mp-sol__tech-row {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #9aa6bd;
  text-align: left;
}

.mp-sol__tech-row i {
  font-style: normal;
  color: #7a849a;
}

.mp-sol__tech-row i::after {
  content: ": ";
}

.mp-sol__tech-row b {
  font-weight: 600;
  color: #c5d0e4;
  text-align: left;
}

.mp-sol--license .mp-sol__logo {
  background: linear-gradient(145deg, #1a2234, #101722);
}

@media (max-width: 1100px) {
  .mp-sol-grid,
  .itech-block[data-block="marketplace"] .mp-sol-grid,
  .itech-block[data-block="marketplace"][data-fit="grid"] .mp-sol-grid,
  .itech-catalog--home .mp-sol-grid,
  .itech-catalog .mp-sol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mp-sol-grid,
  .itech-block[data-block="marketplace"] .mp-sol-grid,
  .itech-block[data-block="marketplace"][data-fit="grid"] .mp-sol-grid,
  .itech-catalog--home .mp-sol-grid,
  .itech-catalog .mp-sol-grid {
    grid-template-columns: 1fr;
  }

  .mp-sol {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 96px;
    padding: 10px 12px;
    gap: 12px;
  }

  .mp-sol__logo {
    width: 72px;
    height: 72px;
  }
}

.catalog-detail__desc,
.catalog-tabs__content {
  text-align: left;
  color: #d5deea;
}

.catalog-detail__desc div,
.catalog-detail__desc p,
.catalog-tabs__content div,
.catalog-tabs__content p {
  text-align: left;
}

.catalog-detail__desc a,
.catalog-tabs__content a {
  color: #8ec7ff;
}

.catalog-detail__desc img.mp-desc__badge,
.catalog-tabs__content img.mp-desc__badge {
  display: inline-block;
  width: 88px;
  height: auto;
  margin: 6px 8px 6px 0;
  vertical-align: middle;
  border-radius: 8px;
}

.catalog-detail__desc img.mp-desc__shot,
.catalog-tabs__content img.mp-desc__shot {
  display: block;
  width: auto;
  max-width: min(100%, 860px);
  height: auto;
  margin: 18px auto;
}

.competencies__lead {
  margin: -8px 0 22px;
  max-width: 68ch;
}

.comp-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.comp-group__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ec7ff;
}

.itech-viewed__track .mp-sol__body {
  height: auto;
  justify-content: center;
}

.itech-viewed__track .mp-sol__name {
  min-height: 0;
}

.itech-viewed__track .mp-sol__logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  background: #fff;
  overflow: hidden;
}

.itech-viewed__track .mp-sol__logo img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.comp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: #121a2c;
  border: 1px solid rgb(255 255 255 / 10%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.comp-card:hover {
  z-index: 3;
  transform: translateY(-6px);
  border-color: #2e7dd2;
  box-shadow:
    0 0 0 1px #2e7dd2,
    0 14px 36px color-mix(in srgb, #2e7dd2 42%, transparent);
}

.comp-card__shot {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  aspect-ratio: 3 / 4;
}

.comp-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.comp-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  margin: 0;
  padding: 0 4px 4px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.catalog-detail__desc img,
.catalog-tabs__content img,
.catalog-shots__item {
  cursor: zoom-in;
}

.shot-modal {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  color-scheme: dark;
}

.shot-modal::backdrop {
  background: rgb(4 8 16 / 82%);
}

.shot-modal__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px;
}

.shot-modal__stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  justify-self: center;
  max-width: 100%;
  line-height: 0;
}

.shot-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
}

.shot-modal__cap {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.shot-modal__nav,
.shot-modal__close {
  border: 0;
  border-radius: 999px;
  background: #121a2c;
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
button:focus-visible,
button:active,
button::-moz-focus-inner,
a.cert:focus,
a.cert:focus-visible,
a.mp-sol:focus,
a.mp-sol:focus-visible,
a.slide:focus,
a.slide:focus-visible,
.shot-modal:focus,
.shot-modal:focus-visible {
  outline: none;
}

button::-moz-focus-inner {
  border: 0;
}

.shot-modal__nav:hover,
.shot-modal__nav:focus,
.shot-modal__nav:focus-visible,
.shot-modal__nav:active,
.shot-modal__close:hover,
.shot-modal__close:focus,
.shot-modal__close:focus-visible,
.shot-modal__close:active {
  outline: none;
  box-shadow: none;
  background: #121a2c;
  color: #fff;
}

.shot-modal__nav {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.shot-modal__nav--prev { grid-column: 1; grid-row: 1; }
.shot-modal__nav--next { grid-column: 3; grid-row: 1; }

.shot-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}

/* Штатные формы Битрикс: auth / search */
.itech-auth-panel {
  max-width: 640px;
}

.itech-auth .bx-auth,
.itech-auth form,
.itech-search .search-page {
  display: grid;
  gap: 12px;
}

.itech-auth table,
.itech-search table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.itech-auth .bx-auth-label,
.itech-auth td:first-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  vertical-align: middle;
  padding-right: 12px;
  white-space: nowrap;
}

.itech-auth input[type="text"],
.itech-auth input[type="password"],
.itech-auth input[type="email"],
.itech-auth input[type="tel"],
.itech-search input[type="text"],
.itech-search input[name="q"] {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.itech-auth input[type="text"]:focus,
.itech-auth input[type="password"]:focus,
.itech-auth input[type="email"]:focus,
.itech-auth input[type="tel"]:focus,
.itech-search input[type="text"]:focus,
.itech-search input[name="q"]:focus {
  border-color: var(--card-accent, var(--accent));
}

.itech-auth input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--accent, #2e7dd2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.itech-auth input[type="checkbox"] {
  margin-right: 8px;
}

.itech-auth a,
.itech-auth-links a,
.itech-search a {
  color: var(--accent, #2e7dd2);
}

.itech-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.92rem;
}

.itech-auth .errortext,
.itech-auth .notetext,
.itech-search .errortext {
  display: block;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
}

.itech-search-page__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 22px;
}

.itech-search-page__input {
  flex: 1 1 220px;
  min-width: 0;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  font: inherit;
}

.itech-search-page__input:focus {
  border-color: var(--card-accent, var(--accent));
}

.itech-search-page__submit {
  flex: 0 0 auto;
  min-width: 140px;
}

.itech-search-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.itech-search-page__item {
  margin: 0;
  min-width: 0;
}

.itech-search-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(14 20 34 / 92%);
  color: #e8eef8;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.itech-search-card:hover {
  border-color: color-mix(in srgb, var(--card-accent, #2e7dd2) 70%, transparent);
  background: rgb(18 26 42 / 96%);
  color: #fff;
}

.itech-search-card--dead {
  cursor: default;
}

.itech-search-card__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b101a;
  border: 1px solid rgb(255 255 255 / 8%);
}

.itech-search-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.itech-search-card__fallback {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--card-accent, #2e7dd2);
}

.itech-search-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.itech-search-card__kick {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-accent, #3ad7ff) 90%, #fff);
}

.itech-search-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f2f6ff;
}

.itech-search-card__name b {
  color: #fff;
}

.itech-search-card__price {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.itech-search-card__price b {
  color: #6eb6ff;
  font-size: 1rem;
  font-weight: 800;
}

.itech-search-card__price i {
  font-style: normal;
  font-size: 0.78rem;
  color: #8a93a8;
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .itech-search-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding-right: 10px;
  }

  .itech-search-card__logo {
    grid-row: span 2;
    width: 52px;
    height: 52px;
  }

  .itech-search-card__price {
    grid-column: 2;
    justify-items: start;
    flex-direction: row;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
}

.itech-search-page__link {
  display: inline-block;
  color: #7ec8ff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.itech-search-page__link:hover {
  color: #fff;
}

.itech-search-page__link--dead {
  color: #fff;
  text-decoration: none;
  cursor: default;
}

.itech-search-page__body {
  margin: 8px 0 0;
  color: rgb(210 220 235 / 88%);
  line-height: 1.45;
}

.itech-search-page__date {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Шапка: компактная лупа, чтобы не давить меню */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-search__toggle:hover,
.nav-search__toggle:focus-visible,
.nav-search.is-open .nav-search__toggle {
  color: var(--accent, #2e7dd2);
  border-color: rgba(58, 215, 255, 0.45);
  background: rgba(58, 215, 255, 0.08);
}

/* Панель поверх контента: раскрытие не двигает пункты меню */
.nav-search__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 120;
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(58, 215, 255, 0.28);
  background: rgba(8, 14, 26, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.nav-search.is-open .nav-search__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

.nav-search__form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
}

.nav-search__form:focus-within {
  border-color: rgba(58, 215, 255, 0.45);
}

.nav-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 4px 10px 16px;
  outline: none;
  font-size: 0.95rem;
}

.nav-search__input::placeholder {
  color: rgb(255 255 255 / 55%);
}

.nav-search__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-search__btn:hover,
.nav-search__btn:focus-visible {
  color: var(--accent, #2e7dd2);
}

/* Подсказки live-поиска: site.js переносит .title-search-result внутрь панели, inline top/left/width от JCTitleSearch гасим */
.nav-search__panel .title-search-result {
  position: static !important;
  width: auto !important;
  margin-top: 8px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-search-drop {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.nav-search-drop__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  color: #d7f6ff;
  text-decoration: none;
  transition: background 0.12s ease;
}

.nav-search-drop__item:hover,
.nav-search-drop__item:focus-visible {
  background: rgba(58, 215, 255, 0.08);
  color: #fff;
  outline: none;
}

.nav-search-drop__item--dead {
  opacity: 0.7;
  cursor: default;
}

.nav-search-drop__thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(46, 125, 210, 0.35), rgba(58, 215, 255, 0.12));
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-search-drop__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b101a;
  display: block;
}

.nav-search-drop__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nav-search-drop__kind {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(58, 215, 255, 0.75);
}

.nav-search-drop__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.3;
}

.nav-search-drop__name b {
  color: #fff;
  font-weight: 700;
}

.nav-search-drop__price {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-search-drop__price b {
  color: #fff;
  font-weight: 700;
}

.nav-search-drop__price s {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 45%);
}

.nav-search-drop__empty {
  padding: 14px 10px;
  color: rgb(255 255 255 / 65%);
  font-size: 0.9rem;
}

.nav-search-drop__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  color: var(--accent, #2e7dd2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(58, 215, 255, 0.06);
}

.nav-search-drop__all:hover {
  background: rgba(58, 215, 255, 0.12);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  /* Меню прокручивается: сжатие flex-детей при длинных подсказках поиска накладывает пункты друг на друга */
  .nav__body > * {
    flex-shrink: 0;
  }

  .nav__body > .nav__logo {
    order: 0;
  }

  .nav-search {
    order: 1;
    width: 100%;
    margin: 6px 0 10px;
    padding: 0 var(--nav-pad-x, 16px);
    box-sizing: border-box;
  }

  .nav-search__toggle {
    display: none;
  }

  .nav-search__panel,
  .nav-search.is-open .nav-search__panel {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-search__input {
    padding: 8px 4px 8px 14px;
    font-size: 0.88rem;
  }

  .nav-search-drop__item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 4px;
  }

  .nav-search-drop__thumb {
    grid-row: span 2;
    width: 48px;
    height: 48px;
  }

  .nav-search-drop__price {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  /* Три подсказки, лишнее прячется; крутится только список, не всё меню */
  .nav-search__panel .title-search-result {
    max-height: 236px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-search-drop__item:nth-child(n+4) {
    display: none;
  }

  .nav__body > a:not(.nav__logo):not(.btn):not(.nav-icon):not(.nav-account),
  .nav__body > .head-phone--market {
    order: 2;
    align-self: stretch;
    width: 100%;
  }

  .nav__body > .head-phone:not(.head-phone--market),
  .nav__body > .nav-cart-wrap,
  .nav__body > .nav-account,
  .nav__body > .btn {
    order: 3;
  }

  .nav .head-phone--market {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100%;
    align-self: stretch;
  }
}
