@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range:
    U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Alata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alata-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alata-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Палитра главной страницы (фиолетовая); marketing переопределяет ниже */
:root {
  --bg: #2a233a;
  --ink: #262033;
  --text: #2a233a;
  --muted: #393645;
  --head: #e9e5f1;
  --nav: #f1f4f8;
  --stroke: #864dfd;
  --btn: #5262ff;
  --blob: #6b7ae2;
  --foot: #2a2b3b;
  --accent-tmc: #06c7f4;
  --accent-ai: #864dfd;
  --card-title: #262033;
}
body.theme-orange {
  --bg: #1f1f1f;
  --stroke: #ff6532;
  --btn: #ff6532;
  --blob: #ff674f;
  --foot: #452e22;
  --card-title: #1f1f1f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Alata", "Rubik", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: none;
}
h1,
h2,
h3 {
  font-weight: 400;
}

.page {
  position: relative;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  background: var(--blob);
  opacity: 0.56;
  pointer-events: none;
}
.glow.g-lg {
  width: 231px;
  height: 231px;
  filter: blur(63px);
}
.glow.g-md {
  width: 201px;
  height: 201px;
  filter: blur(55px);
}

.bg-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-shape path {
  fill: #fff;
}
.hero .bg-shape path {
  stroke: var(--stroke);
  stroke-width: 3;
}
body.theme-orange .hero .bg-shape path {
  stroke-width: 2;
}

.btn {
  display: block;
  background: var(--btn);
  color: #fff;
  font-size: 19.2px;
  line-height: 49px;
  height: 49px;
  text-align: center;
  border-radius: 8.5px;
  transition: filter 0.2s;
}
.btn:hover {
  filter: brightness(1.1);
}

.nav a {
  color: var(--nav);
  font-size: 19.5px;
  line-height: 26px;
}
.nav a:hover {
  opacity: 0.75;
}

.hero h1 {
  font-size: 45.8px;
  line-height: 54.4px;
  color: var(--ink);
}
.hero .lead {
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
}
.card-text {
  font-size: 15.17px;
  line-height: 24.27px;
  color: var(--text);
}
.card-body {
  font-size: 15.18px;
  line-height: 22.77px;
  color: var(--muted);
}
.card-body p + p {
  margin-top: 22.77px;
}
.card-body a {
  color: #116dff;
  text-decoration: underline;
}
.card-title {
  font-size: 45.55px;
  line-height: 68.32px;
  color: var(--card-title);
}
.card-title.tmc {
  color: var(--accent-tmc);
}
.card-title.ai {
  color: var(--accent-ai);
}

h2.sec {
  font-size: 45.55px;
  line-height: 68.32px;
  color: var(--head);
  text-align: center;
}
.contacts h2 {
  font-size: 45.75px;
  line-height: 68.6px;
  color: var(--head);
  text-align: left;
  margin-bottom: 16px;
}
.contacts p {
  font-size: 15px;
  line-height: 17px;
  color: var(--head);
  margin-bottom: 18px;
}
.contacts p.addr {
  line-height: 23.18px;
}
.contacts a:hover {
  text-decoration: underline;
}

.map {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #20303a;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(1) hue-rotate(180deg) saturate(0.7) brightness(0.88)
    contrast(1.05);
}

.foot {
  background: var(--foot);
  position: relative;
}
.foot a,
.foot span {
  color: var(--nav);
  font-size: 16.7px;
  line-height: 23px;
}
.foot .links a:hover,
.foot a.u:hover {
  opacity: 0.75;
}
.foot a.u {
  text-decoration: underline;
}

/* ---------- Десктоп: координаты как на оригинале (холст 1260 px) ---------- */
@media (min-width: 1300px) {
  .stage,
  .foot-stage {
    position: relative;
    width: 1260px;
    margin-left: max(16px, calc(50% - 620px));
    margin-right: auto;
  }
  .foot {
    height: 177px;
  }
  .foot-stage {
    height: 177px;
  }
  .abs {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w, auto);
    height: var(--h, auto);
  }
  .abs .abs {
    --w: auto;
    --h: auto;
  }
  .glow {
    left: var(--x);
    top: var(--y);
  }
  .btn.abs {
    width: 162px;
  }
  .hero-art {
    position: absolute;
    pointer-events: none;
  }
  .card-img {
    pointer-events: none;
  }
  .m-only-flow {
    display: none;
  }
  .card-img {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
  }
  .nav a {
    position: absolute;
    left: var(--x);
    top: var(--y);
    white-space: nowrap;
  }
  .foot-stage .abs a,
  .foot-stage a.abs {
    white-space: nowrap;
  }
}

/* ---------- Планшет и телефон: поток ---------- */
@media (max-width: 1299px) {
  .stage {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto !important;
  }
  .foot-stage {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .glow {
    display: none;
  }

  .hero {
    position: relative;
    display: grid;
    grid-template-columns: 34% 1fr;
    align-items: center;
    column-gap: 14px;
    min-height: 230px;
    padding: 70px 18px 26px 0;
  }
  .logo {
    position: absolute;
    left: 10px;
    top: 7px;
  }
  .logo img {
    width: 64px;
    height: auto;
  }
  .nav {
    position: absolute;
    right: 4px;
    top: 12px;
    display: flex;
    gap: 18px;
  }
  .nav a {
    font-size: 14px;
  }
  .hero-art {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    height: auto;
  }
  .hero .text {
    grid-column: 2;
    position: relative;
  }
  .hero h1 {
    font-size: 22px;
    line-height: 27px;
  }
  .hero .lead {
    font-size: 14px;
    line-height: 20px;
    margin-top: 12px;
  }
  .hero .btn-talk {
    margin-top: 18px;
    width: 150px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }
  .btn-buy {
    height: 56px;
    line-height: 56px;
    font-size: 22px;
  }

  h2.sec {
    font-size: 26px;
    line-height: 36px;
    margin-top: 22px;
  }

  .card {
    position: relative;
  }
  .card.about {
    padding: 28px 24px 34px 26px;
    min-height: 130px;
    display: flex;
    align-items: center;
  }
  .card-text {
    font-size: 16px;
    line-height: 24px;
    position: relative;
  }
  .card-body {
    font-size: 16px;
    line-height: 24px;
    position: relative;
  }
  .card-title {
    font-size: 26px;
    line-height: 34px;
    position: relative;
    margin-bottom: 12px;
  }

  .card.cut {
    background: #fff;
    clip-path: polygon(
      0 0,
      calc(100% - 52px) 0,
      100% 52px,
      100% 100%,
      52px 100%,
      0 calc(100% - 52px)
    );
    padding: 30px 26px 150px 26px;
  }
  .card.cut .bg-shape {
    display: none;
  }
  .card.cut .card-img {
    position: absolute;
  }
  .card.prod .card-img.swirl-tmc {
    left: -4px;
    bottom: 0;
    width: 125px;
    height: 140px;
    object-fit: cover;
  }
  .card.prod .card-img.swirl-znt {
    left: -2px;
    bottom: 0;
    width: 125px;
    height: 133px;
    object-fit: cover;
  }
  .card.sol {
    padding-bottom: 150px;
  }
  .card.sol.first {
    padding-top: 130px;
  }
  .card.sol .card-img.stars {
    right: 4px;
    top: 4px;
    width: 118px;
    height: auto;
  }
  .card.sol .card-img.sphere {
    right: 0;
    bottom: 0;
    width: 130px;
    height: auto;
  }

  .contacts {
    text-align: center;
    margin-top: 30px;
  }
  .contacts h2 {
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    margin-bottom: 10px;
  }
  .contacts p {
    margin-bottom: 8px;
  }
  .map {
    height: 280px;
    margin-top: 8px;
  }

  .foot-stage .links {
    display: flex;
    gap: 26px;
  }
  .foot-stage .legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }
  .foot-logo img {
    width: 200px;
    height: auto;
  }
}

/* Согласие на карту Google и уведомление о cookies */
.map-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #cfd8dc;
  font-size: 15px;
  line-height: 22px;
}
.map-gate p {
  max-width: 420px;
}
.map-gate a {
  color: var(--nav);
  text-decoration: underline;
  font-size: 14px;
}
.map.is-loaded .map-gate {
  display: none;
}
.gate-btn {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: var(--btn);
  border: 0;
  border-radius: 8.5px;
  padding: 13px 22px;
  cursor: pointer;
}
.gate-btn:hover {
  filter: brightness(1.1);
}
.gate-link {
  font: inherit;
  font-size: 15px;
  color: var(--nav);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 12px 8px;
}
.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--foot);
  color: var(--nav);
  border: 1px solid rgba(241, 244, 248, 0.18);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 50;
  font-size: 14px;
  line-height: 20px;
}
.consent[hidden] {
  display: none;
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    bottom: 10px;
  }
  .consent-actions {
    justify-content: flex-end;
  }
}

/* Переключатель языка */
.lang {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.lang a {
  color: var(--nav);
  font-size: 15px;
  line-height: 20px;
  padding: 5px 12px;
  border-radius: 8px;
}
.lang a:hover {
  background: rgba(241, 244, 248, 0.08);
}
.lang a.is-current {
  background: rgba(241, 244, 248, 0.16);
  cursor: default;
}

/* Иврит: справа налево, раскладка зеркальная */
html[dir="rtl"] .bg-shape {
  transform: scaleX(-1);
}
html[dir="rtl"] .contacts h2 {
  text-align: right;
}
@media (min-width: 1300px) {
  html[dir="rtl"] .stage > .abs,
  html[dir="rtl"] .glow {
    left: auto;
    right: calc(var(--x) - 7px);
  }
  html[dir="rtl"] .abs .abs,
  html[dir="rtl"] .nav a,
  html[dir="rtl"] .card-img {
    left: auto;
    right: var(--x);
  }
  html[dir="rtl"] .foot-stage .abs {
    left: auto;
    right: calc(var(--x) - 8px);
  }
}
@media (max-width: 1299px) {
  .lang {
    align-self: flex-end;
  }
  html[dir="rtl"] .hero {
    padding: 70px 0 26px 18px;
  }
  html[dir="rtl"] .logo {
    left: auto;
    right: 10px;
  }
  html[dir="rtl"] .nav {
    right: auto;
    left: 4px;
  }
  html[dir="rtl"] .hero-art {
    left: auto;
    right: 0;
  }
  html[dir="rtl"] .card.about {
    padding: 28px 26px 34px 24px;
  }
  html[dir="rtl"] .card.cut {
    clip-path: polygon(
      52px 0,
      100% 0,
      100% calc(100% - 52px),
      calc(100% - 52px) 100%,
      0 100%,
      0 52px
    );
  }
  html[dir="rtl"] .card.prod .card-img.swirl-tmc {
    left: auto;
    right: -4px;
  }
  html[dir="rtl"] .card.prod .card-img.swirl-znt {
    left: auto;
    right: -2px;
  }
  html[dir="rtl"] .card.sol .card-img.stars {
    right: auto;
    left: 4px;
  }
  html[dir="rtl"] .card.sol .card-img.sphere {
    right: auto;
    left: 0;
  }
}

/* Иврит: картинки отражаем вместе с раскладкой (срез у края карточки остаётся у края) */
html[dir="rtl"] .hero-art,
html[dir="rtl"] .card-img {
  transform: scaleX(-1);
}
html[dir="rtl"] .lang {
  justify-content: flex-start;
}
@media (max-width: 1299px) {
  html[dir="rtl"] .contacts h2 {
    text-align: center;
  }
}
