
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: auto; }
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(0,193,160,.18), rgba(0,0,0,0) 34%),
    linear-gradient(180deg, rgba(6,10,18,.98), rgba(3,7,12,.98));
  transform: translateY(100%);
  transition: transform .62s cubic-bezier(.22,1,.36,1), opacity .62s ease;
  opacity: 1;
}
.page-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 20%, rgba(255,255,255,.05) 44%, rgba(255,255,255,0) 68%);
  mix-blend-mode: screen;
  opacity: .35;
}
.page-transition.is-ready {
  transform: translateY(-100%);
  opacity: .98;
}
.page-transition.is-active {
  transform: translateY(0);
  opacity: 1;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 56vw;
  height: 56vw;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: .42;
  animation: liquidDriftA 18s ease-in-out infinite alternate;
}
body::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(0,193,160,.22) 0%, rgba(0,193,160,.08) 24%, rgba(0,0,0,0) 58%),
    radial-gradient(circle at 65% 60%, rgba(0,108,255,.18) 0%, rgba(0,108,255,.05) 28%, rgba(0,0,0,0) 68%);
}
body::after {
  inset: auto -12% -24% auto;
  width: 52vw;
  height: 52vw;
  background:
    radial-gradient(circle at 45% 45%, rgba(0,193,160,.14) 0%, rgba(0,193,160,.05) 26%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 60% 58%, rgba(0,108,255,.15) 0%, rgba(0,108,255,.04) 26%, rgba(0,0,0,0) 62%);
  animation: liquidDriftB 22s ease-in-out infinite alternate;
}
html[data-theme="light"] body::before {
  opacity: .52;
  background:
    radial-gradient(circle at 35% 35%, rgba(0,193,160,.18) 0%, rgba(0,193,160,.06) 24%, rgba(0,0,0,0) 58%),
    radial-gradient(circle at 65% 60%, rgba(80,155,255,.18) 0%, rgba(80,155,255,.06) 28%, rgba(0,0,0,0) 68%);
}
html[data-theme="light"] body::after {
  opacity: .45;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,.02), rgba(255,255,255,0) 18%, rgba(255,255,255,.015) 36%, rgba(255,255,255,0) 54%, rgba(255,255,255,.02) 72%, rgba(255,255,255,0) 100%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.015), rgba(255,255,255,0) 48%);
  mix-blend-mode: screen;
  opacity: .55;
}
.dust-canvas { display: none; }
.screen-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 296px;
  height: 100vh;
  z-index: 30;
  padding: 24px 34px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.screen-sidebar__top {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: center;
}
.site-brand { margin-bottom: 34px; }
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.site-brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.site-brand__mark::before,
.site-brand__mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.site-brand__mark::before {
  inset: 0 auto auto 0;
  width: 36px;
  height: 10px;
  color: #fff;
  box-shadow: 0 12px 0 #fff;
}
.site-brand__mark::after {
  inset: 0 auto auto 0;
  width: 10px;
  height: 40px;
  color: #fff;
}
.site-brand__mark span {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #20e7c7 0%, var(--primary) 100%);
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(0,193,160,.32);
}
.site-brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
}
.site-brand__logo {
  display: block;
  width: auto;
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
}
.site-brand__logo--light { display: none; }
html[data-theme="light"] .site-brand__logo--dark { display: none; }
html[data-theme="light"] .site-brand__logo--light { display: block; }
.site-brand__copy { min-width: 0; }
.site-brand__copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-brand__copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.screen-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: auto 0;
}
.screen-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.48);
  cursor: pointer;
  transition: color .28s ease, transform .28s ease, opacity .28s ease;
}
html[data-theme="light"] .screen-nav__item { color: rgba(15,23,42,.52); }
.screen-nav__label {
  display: block;
  font-size: 34px;
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.screen-nav__index {
  display: block;
  min-width: 42px;
  text-align: right;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .2em;
  opacity: .58;
}
.screen-nav__item:hover,
.screen-nav__item.is-active {
  color: var(--text);
  transform: translateX(3px);
}
html[data-theme="light"] .screen-nav__item:hover,
html[data-theme="light"] .screen-nav__item.is-active {
  color: #000;
}
.screen-sidebar__bottom {
  display: grid;
  gap: 16px;
  color: var(--muted);
}
.sidebar-contact h4,
.sidebar-links h4 {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar-contact a,
.sidebar-contact span {
  display: block;
  font-size: 13px;
  line-height: 1.65;
}
.sidebar-links nav { display: grid; gap: 6px; }
.sidebar-links a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  opacity: .9;
}

.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-drawer-controls { display: none; }
.mobile-control-group {
  display: grid;
  gap: 12px;
  width: 100%;
}
.theme-switcher--mobile,
.lang-switcher--mobile {
  width: 100%;
  justify-content: space-between;
}
.theme-switcher--mobile .theme-switcher__btn,
.lang-switcher--mobile .lang-switcher__btn {
  flex: 1 1 0;
}

.site-topbar {
  position: fixed;
  right: 28px;
  top: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-switcher,
.lang-switcher {
  box-shadow: 0 12px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
html[data-theme="light"] .theme-switcher,
html[data-theme="light"] .lang-switcher {
  background: rgba(255,255,255,.62);
  border-color: rgba(15,23,42,.06);
}
.theme-switcher__btn,
.lang-switcher__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.theme-switcher__btn.is-active,
.lang-switcher__btn.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.07);
  color: var(--text);
}
html[data-theme="light"] .theme-switcher__btn.is-active,
html[data-theme="light"] .lang-switcher__btn.is-active {
  background: rgba(255,255,255,.9);
  border-color: rgba(15,23,42,.06);
}

.theme-switcher__btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher__icon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.theme-switcher__icon--moon {
  -webkit-mask-image: url(../images/moon.svg);
  mask-image: url(../images/moon.svg);
}

.theme-switcher__icon--sun {
  -webkit-mask-image: url(../images/sun.svg);
  mask-image: url(../images/sun.svg);
}

html[data-theme="dark"] .theme-switcher__btn {
  color: rgba(255,255,255,.92);
}

html[data-theme="dark"] .theme-switcher__btn.is-active {
  color: #ffffff;
}

html[data-theme="light"] .theme-switcher__btn {
  color: rgba(15,23,42,.9);
}

html[data-theme="light"] .theme-switcher__btn.is-active {
  color: #000000;
}

html[data-theme="light"] .theme-switcher__btn--icon.is-active {
  background: rgba(255,255,255,.92);
}
.screen-stage { position: relative; height: 100vh; overflow: hidden; z-index: 2; }
.screens-track { position: absolute; inset: 0; transition: transform 1050ms cubic-bezier(.2,.95,.3,1); }
.screen {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-left: 320px;
  padding-right: 36px;
  opacity: 0;
  transform: scale(.985);
  filter: blur(10px);
  transition: opacity .72s ease, filter .72s ease, transform .72s ease;
}
.screen.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.screen__inner {
  width: min(calc(100% - 240px), 1480px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 72px 0;
}
.hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 144px);
}
.hero-copy {
  width: min(760px, 46vw);
  max-width: 760px;
  padding-left: 116px;
  position: relative;
  z-index: 3;
}
.hero-grid--single { grid-template-columns: 1fr; }
.hero-copy--wide { max-width: 1040px; }
.hero-visual-wrap {
  position: absolute;
  inset: 0;
  min-height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}
.hero-visual--fullbleed { margin-right: 0; }
.hero-visual { min-height: 100%; }
.hero-visual img,
.hero-visual .services-visual__canvas {
  object-fit: contain;
  object-position: center right;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,7,12,.78) 0%, rgba(3,7,12,.34) 34%, rgba(3,7,12,0) 58%);
  pointer-events: none;
  z-index: 3;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
}
.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(0,193,160,.58);
}
.hero-title,
.section-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(42px, 4vw, 62px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 800;
}
.hero-title span,
.section-copy h2 span { color: var(--primary); }
.hero-slider { position: relative; min-height: clamp(360px, 34vw, 440px); margin-top: 24px; }
.hero-slider--main { max-width: 820px; }
.hero-slider__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-slider__item.is-active { opacity: 1; transform: translateY(0); }
.hero-slider__item h1,
.hero-slider__item h2 {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 800;
  max-width: 920px;
}
.hero-slider__summary {
  margin-top: 18px;
  max-width: 760px;
  margin-bottom: 8px;
}
.hero-slider__item p,
.section-text,
.contact-card span,
.project-card__body p,
.simple-page__inner p,
.simple-page__content,
.project-meta-card p,
.project-facts li,
.project-gallery-caption {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero-slider__dots { display: flex; gap: 8px; margin-top: 14px; }
.hero-slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  cursor: pointer;
}
.hero-slider__dot.is-active {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(0,193,160,.46);
}
.hero-actions,
.project-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions--media { margin-top: 22px; }
.front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 17px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.front-btn:hover { transform: translateY(-2px); }
.front-btn--primary {
  background: linear-gradient(180deg, #12d7b5 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0,193,160,.24);
}
.front-btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,.055);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[data-theme="light"] .front-btn--ghost {
  background: rgba(255,255,255,.76);
  border-color: rgba(15,23,42,.06);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.hero-stat,
.contact-card,
.project-card,
.simple-page__inner,
.project-hero-image,
.project-meta-card,
.project-gallery__item,
.lightbox__shell {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .hero-stat,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .simple-page__inner,
html[data-theme="light"] .project-hero-image,
html[data-theme="light"] .project-meta-card,
html[data-theme="light"] .project-gallery__item,
html[data-theme="light"] .lightbox__shell {
  background: rgba(255,255,255,.8);
  border-color: rgba(15,23,42,.06);
}
.hero-stat { padding: 18px; }
.hero-stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -.07em;
}
.hero-stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.hero-sphere { position: relative; min-height: 620px; border-radius: 34px; overflow: hidden; }
.hero-sphere::before { content: ""; position: absolute; inset: 12% 14%; border-radius: 999px; background: radial-gradient(circle, rgba(0,193,160,.14), rgba(0,193,160,.04) 40%, rgba(0,0,0,0) 72%); filter: blur(18px); }
#sphereCanvas { width: 100%; height: 100%; min-height: 620px; display: block; }
.hero-sphere--services { transform: translate(36px, 12px); }

.services-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(620px, 1.18fr);
  gap: 42px;
  width: 100%;
  align-items: center;
}
.services-copy { padding-left: 116px; max-width: 760px; }
.services-visual-wrap { display: grid; gap: 24px; }
.services-visual__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
}
.services-visual__link {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(0,193,160,.44);
  padding-bottom: 3px;
  transition: opacity .24s ease, transform .24s ease;
}
.services-visual__link:hover { opacity: .85; transform: translateY(-1px); }
.services-visual {
  position: relative;
  min-height: 680px;
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.06), rgba(255,255,255,.01) 42%, rgba(0,0,0,0) 68%);
}
.services-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 46% 48%, rgba(0,193,160,.14), rgba(0,0,0,0) 46%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 1;
}
.services-visual img,
.services-visual__canvas,
.hero-visual img,
.hero-visual .services-visual__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
}
.services-visual img.is-loaded, .hero-visual img.is-loaded { opacity: 0; }
.services-visual img,
.services-visual__canvas { object-fit: cover; object-position: center right; }
.services-visual__canvas { z-index: 2; }


.hero-visual::before,
.hero-visual::after { content: none; }
.content-screen { align-items: center; }
.content-screen--contacts { position: relative; z-index: 2; }
.section-copy { max-width: 1120px; }
.section-copy h2 { font-size: clamp(38px, 4vw, 62px); }
.projects-preview,
.project-list,
.contact-stack { margin-top: 30px; display: grid; gap: 18px; }
.contacts-lead { max-width: 980px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.contacts-meta { margin-top: 22px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }
.contacts-meta strong { color: var(--text); }
.screen--contacts { position: relative; }
.contacts-map-shell { position: absolute; inset: 110px 48px 56px 360px; border-radius: 36px; overflow: hidden; z-index: 1; }
.contacts-map { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), rgba(255,255,255,.02) 48%, rgba(0,0,0,.18)); filter: grayscale(1) saturate(.35) brightness(.72); transform: scale(1.02); }
.contacts-map.is-fallback { background: radial-gradient(circle at 50% 50%, rgba(50,80,90,.4), rgba(6,16,25,.92) 65%), linear-gradient(120deg, rgba(255,255,255,.05), rgba(255,255,255,0) 22%, rgba(255,255,255,.03) 40%, rgba(255,255,255,0) 64%); }
.contacts-map-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,12,.88) 0%, rgba(2,6,12,.72) 16%, rgba(2,6,12,.44) 34%, rgba(2,6,12,.18) 58%, rgba(2,6,12,0) 82%), radial-gradient(circle at 50% 32%, rgba(0,193,160,.10), rgba(0,0,0,0) 42%); pointer-events: none; z-index: 2; }
html[data-theme='light'] .contacts-map { filter: grayscale(1) saturate(.18) brightness(.94); }
html[data-theme='light'] .contacts-map-overlay { background: linear-gradient(180deg, rgba(250,252,255,.78) 0%, rgba(250,252,255,.56) 18%, rgba(250,252,255,.34) 36%, rgba(250,252,255,.14) 58%, rgba(250,252,255,0) 82%), radial-gradient(circle at 50% 32%, rgba(0,193,160,.06), rgba(255,255,255,0) 42%); }
.media-preview { margin-top: 26px; }
.projects-preview,
.project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { overflow: hidden; }
.project-card__thumb { aspect-ratio: 16 / 10; background: rgba(255,255,255,.03); overflow: hidden; }
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.project-card__body { padding: 20px; }
.project-card__body h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.04em; }
.project-card__body a { display: inline-flex; margin-top: 14px; color: var(--primary); font-weight: 700; }
.contact-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card { padding: 20px; }
.contact-card strong { display: block; margin-bottom: 10px; font-size: 18px; }

.simple-page {
  min-height: 100vh;
  padding: 120px 32px 48px 340px;
  position: relative;
  z-index: 2;
}
.simple-page__inner {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 32px;
}
.simple-page__back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
}
.simple-page__back--hero {
  margin-bottom: 18px;
  position: absolute;
  left: 38px;
  top: 34px;
  z-index: 3;
}
.simple-page__inner h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.5vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}
.simple-page__content { margin-top: 0; }

.project-page {
  min-height: 100vh;
  padding: 110px 32px 44px 340px;
  position: relative;
  z-index: 2;
}
.project-page__hero {
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  max-height: 560px;
  overflow: hidden;
}
.project-page__hero-image {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.project-page__hero:hover .project-page__hero-image {
  transform: scale(1.04);
}
.project-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,4,8,.12) 0%, rgba(2,4,8,.22) 28%, rgba(2,4,8,.55) 62%, rgba(2,4,8,.88) 100%);
}
.project-page__hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}
.project-page__hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
}
.project-page__hero-inner h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 82px);
  line-height: .95;
  letter-spacing: -.065em;
}
.project-page__hero-inner p {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-page__body {
  width: min(100%, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.project-page__sidebar { position: relative; }
.project-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
  padding: 16px;
}
.project-page__content {
  display: grid;
  gap: 20px;
}
.project-content-block {
  padding: 30px 34px;
}
.project-meta-card--plain {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 24px;
}
.project-meta-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -.03em;
}
.project-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.project-facts li {
  display: grid;
  gap: 6px;
}
.project-facts li strong {
  display: block;
  color: var(--text);
}
.project-facts li span {
  color: var(--muted);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-gallery__item {
  position: relative;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
}
.project-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.project-gallery__item:hover img {
  transform: scale(1.06);
}
.project-gallery__item::after {
  content: "Открыть";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5,8,14,.72);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-facts--stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.project-facts--stack li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.project-content-block--formatted .project-copy {
  display: grid;
  gap: 14px;
}
.project-content-block--formatted .project-copy h4 {
  margin: 12px 0 0;
  font-size: 20px;
  letter-spacing: -.03em;
}
.project-content-block--formatted .project-copy p {
  margin: 0;
  line-height: 1.85;
  color: var(--muted);
}
.project-content-block--formatted .project-copy ul,
.project-content-block--formatted .project-copy ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.project-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.project-gallery-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: start;
}
.project-showcase__stage {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  min-height: 520px;
}
.project-showcase__stage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.project-showcase__stage:hover img {
  transform: scale(1.03);
}
.project-showcase__thumbs {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.project-showcase__thumb {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  opacity: .72;
  transition: transform .25s ease, opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-showcase__thumb.is-active {
  opacity: 1;
  border-color: rgba(0,193,160,.45);
  box-shadow: 0 0 0 1px rgba(0,193,160,.22), 0 18px 44px rgba(0,0,0,.18);
}
.project-showcase__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.project-showcase__thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.lightbox__image-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #020305;
}
@media (max-width: 1180px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
  .project-showcase__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    max-height: none;
  }
}
@media (max-width: 760px) {
  .project-facts--stack {
    grid-template-columns: 1fr;
  }
  .project-showcase__stage,
  .project-showcase__stage img {
    min-height: 320px;
  }
  .project-showcase__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox__shell {
  position: relative;
  width: min(100%, 1280px);
  padding: 14px;
}
.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lightbox__title {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lightbox__controls {
  display: flex;
  gap: 8px;
}
.lightbox__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}
.lightbox__image-wrap {
  border-radius: 20px;
  overflow: hidden;
}
.lightbox__image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #020305;
}
@keyframes liquidDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, 5%, 0) scale(1.1); }
  100% { transform: translate3d(16%, -4%, 0) scale(1.03); }
}
@keyframes liquidDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, -8%, 0) scale(1.08); }
  100% { transform: translate3d(-14%, 4%, 0) scale(1.02); }
}
@media (max-width: 1380px) {
  .screen__inner { width: min(calc(100% - 90px), 1380px); }
  .projects-preview, .project-list, .contact-stack, .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .project-page__body { grid-template-columns: 1fr; }
  .hero-sphere { min-height: 520px; transform: translate(18px, 10px); }
  #sphereCanvas { min-height: 520px; }
  .projects-preview, .project-list, .contact-stack { grid-template-columns: 1fr; }
  .contacts-map-shell { inset: 124px 18px 34px 18px; }
}
@media (max-width: 1200px) {
  .project-page__body,
  .services-split { grid-template-columns: 1fr; }
  .projects-preview, .project-list, .contact-stack { grid-template-columns: 1fr; }
  .contacts-map-shell { inset: 124px 18px 34px 18px; }
  .services-copy { padding-left: 0; max-width: 100%; }
  .hero-grid { min-height: 760px; }
  .hero-copy { width: min(760px, 100%); }
  .services-visual, .hero-visual { min-height: 520px; }
  .hero-visual--fullbleed { margin-right: 0; }
  .hero-sphere--services { transform: none; }
}
@media (max-width: 980px) {
  .simple-page, .project-page { padding-left: 18px; padding-right: 18px; }
  .project-page__hero, .project-page__hero-image { min-height: 420px; }
  body { overflow: auto; }
  body.mobile-nav-open { overflow: hidden; }
  .screen-stage { height: auto; overflow: visible; }
  .screens-track { position: relative; transform: none !important; }
  .screen {
    height: auto;
    min-height: 100vh;
    padding: 116px 18px 42px;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .screen__inner { width: min(100%, 1260px); padding: 0; }
  .hero-copy, .services-copy { padding-left: 0; }
  .hero-grid { min-height: auto; }
  .hero-visual-wrap { position: relative; inset: auto; min-height: 380px; margin-top: 28px; pointer-events: none; }
  .hero-visual { position: relative; inset: auto; min-height: 380px; }
  .hero-copy { width: 100%; }
  .hero-grid--single { grid-template-columns: 1fr; }
  .mobile-nav-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-nav-toggle span {
    width: 22px; height: 2px; border-radius: 999px; background: var(--text); transition: transform .28s ease, opacity .28s ease, background .28s ease;
  }
  .mobile-nav-toggle.is-open { gap: 0; }
  .mobile-nav-toggle.is-open span:first-child { transform: translateY(1px) rotate(45deg); }
  .mobile-nav-toggle.is-open span:last-child { transform: translateY(-1px) rotate(-45deg); }
  html[data-theme="light"] .mobile-nav-toggle { background: rgba(255,255,255,.92); border-color: rgba(15,23,42,.08); }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(2,6,12,.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    display: block;
    touch-action: none;
  }

  .screen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: min(92vw, 420px);
    max-width: 420px;
    height: 100dvh;
    padding: 18px;
    background: rgba(5,8,14,.985);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-104%);
    transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .24s ease;
    box-shadow: 24px 0 60px rgba(0,0,0,.44);
    pointer-events: none;
    opacity: 0;
    isolation: isolate;
  }
  .screen-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(4,8,14,.98), rgba(4,8,14,.96));
    pointer-events: none;
  }
  .screen-sidebar.is-open { transform: translateX(0); pointer-events: auto; opacity: 1; }
  .screen-sidebar * { pointer-events: auto; }
  body.mobile-nav-open .chat-widget-toggle,
  body.mobile-nav-open .chat-telegram-toggle,
  body.mobile-nav-open .chat-widget,
  body.mobile-nav-open .site-topbar {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  body.chat-open .mobile-nav-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  html[data-theme="light"] .screen-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  }
  .screen-sidebar__top { position: relative; z-index: 1; display: block; flex: none; min-height: auto; }
  .screen-nav { gap: 8px; margin: 18px 0 24px; }
  .screen-nav__item {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
  }
  .screen-nav__label { font-size: 18px; letter-spacing: -.03em; }
  .screen-nav__index { display: block; min-width: 36px; font-size: 12px; }
  .screen-sidebar__bottom { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .site-topbar { display: none; }
  .mobile-drawer-controls { display: block; margin-top: 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .services-visual, .hero-visual { min-height: 380px; border-radius: 24px; }
  .services-visual__nav { gap: 10px; }
  .services-visual__link { font-size: 12px; }
}
@media (max-width: 680px) {
  .simple-page, .project-page { padding-left: 16px; padding-right: 16px; }
  .screen { padding-top: 24px; }
  .hero-slider { min-height: 292px; }
  .services-visual, .hero-visual { min-height: 320px; }
  .theme-switcher--mobile, .lang-switcher--mobile { width: 100%; }
  .theme-switcher--mobile .theme-switcher__btn, .lang-switcher--mobile .lang-switcher__btn { min-height: 48px; }
  .hero-title, .section-copy h2, .hero-slider__item h1 { font-size: clamp(34px, 11vw, 54px); }
  .hero-slider { min-height: 248px; }
  .hero-actions, .project-links { flex-direction: column; }
  .front-btn { width: 100%; }
  .simple-page__inner { padding: 22px; }
  .project-page { padding-top: 92px; }
  .project-page__hero, .project-page__hero-image { min-height: 380px; }
  .project-page__body { grid-template-columns: 1fr; }
  .project-sidebar { position: relative; top: 0; }
  .lightbox { padding: 18px; }
}


.ui-card,
.project-card,
.contact-card,
.hero-stat,
.project-gallery__item,
.project-page__hero,
.project-sidebar,
.project-content-block,
.lightbox__shell {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.js-tilt-card:hover,
.project-page__hero:hover,
.project-sidebar:hover,
.project-content-block:hover,
.contact-card:hover,
.project-card:hover,
.hero-stat:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-8px);
  box-shadow: 0 28px 56px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}
.card-media,
.project-card__thumb {
  overflow: hidden;
}
.project-card:hover .project-card__thumb img,
.ui-card:hover .card-media img {
  transform: scale(1.06);
}

.media-type-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.055);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme="light"] .ui-card,
.project-card,
.contact-card,
.hero-stat,
.project-gallery__item,
.project-page__hero,
.project-sidebar,
.project-content-block,
.lightbox__shell {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.js-tilt-card:hover,
.project-page__hero:hover,
.project-sidebar:hover,
.project-content-block:hover,
.contact-card:hover,
.project-card:hover,
.hero-stat:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-8px);
  box-shadow: 0 28px 56px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
}
.card-media,
.project-card__thumb {
  overflow: hidden;
}
.project-card:hover .project-card__thumb img,
.ui-card:hover .card-media img {
  transform: scale(1.06);
}

.media-type-badge {
  background: rgba(255,255,255,.9);
  border-color: rgba(15,23,42,.06);
}


.project-card,
.contact-card,
.hero-stat,
.simple-page__inner,
.project-hero-image,
.project-meta-card,
.project-gallery__item,
.lightbox__shell,
.theme-switcher,
.lang-switcher,
.chat-widget,
.chat-widget-toggle,
.chat-message,
.chat-quick {
  box-shadow: 0 18px 42px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.07);
}



.chat-telegram-toggle {
  position: fixed;
  right: 116px;
  bottom: 28px;
  z-index: 179;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10,16,26,.96), rgba(4,8,14,.92));
  box-shadow: 0 18px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(22px, 0, 0) scale(.92);
  transition: opacity .28s ease, transform .32s cubic-bezier(.22,1,.36,1), visibility .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.chat-telegram-toggle.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}
.chat-telegram-toggle:hover {
  border-color: rgba(18,215,181,.32);
  box-shadow: 0 20px 38px rgba(0,0,0,.32), 0 0 24px rgba(0,193,160,.16), inset 0 1px 0 rgba(255,255,255,.1);
}
.chat-telegram-toggle__core {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 48%, rgba(255,255,255,.01) 100%);
}
.chat-telegram-toggle__core img {
  width: 28px;
  height: 28px;
  display: block;
}
html[data-theme="light"] .chat-telegram-toggle {
  border-color: rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.92));
  box-shadow: 0 16px 32px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.86);
}
html[data-theme="light"] .chat-telegram-toggle__core {
  background: radial-gradient(circle at 50% 40%, rgba(15,23,42,.05) 0%, rgba(15,23,42,.03) 48%, rgba(15,23,42,.02) 100%);
}

.chat-widget-toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 180;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgba(18,215,181,.96), var(--primary));
  color: #03261f;
  cursor: pointer;
  font-size: 34px;
}

.chat-widget {
  position: fixed;
  right: 28px;
  bottom: 112px;
  z-index: 260;
  width: min(100% - 24px, 380px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgb(0 0 0 / 15%), rgb(19 19 19));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
html[data-theme="light"] .chat-widget {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.84));
  border-color: rgba(15,23,42,.06);
}
.chat-widget.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.chat-widget__head strong { display:block; font-size: 17px; }
.chat-widget__head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.chat-widget__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.chat-widget__body {
  padding: 16px 20px 12px;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
}
.chat-message {
  width: fit-content;
  max-width: min(82%, 760px);
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 0;
}
.chat-message--bot { justify-self: start; }
.chat-message--user {
  justify-self: end;
  background: linear-gradient(180deg, rgba(18,215,181,.22), rgba(0,193,160,.14));
  color: var(--text);
}
.chat-message--muted { color: var(--muted); }
.chat-widget__quick { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; }
.chat-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
  white-space: normal;
  max-width: 280px;
  text-align: center;
}
.chat-widget__form {
  display: grid;
  gap: 10px;
  padding: 12px 18px 18px;
}
.chat-widget__form input,
.chat-widget__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  color: var(--text);
}
html[data-theme="light"] .chat-widget__form input,
html[data-theme="light"] .chat-widget__form textarea,
html[data-theme="light"] .chat-message,
html[data-theme="light"] .chat-quick {
  border-color: rgba(15,23,42,.06);
  background: rgba(255,255,255,.85);
}
.chat-widget__form textarea { min-height: 92px; resize: vertical; }
.chat-widget__submit { width: 100%; }

.inline-status-form select {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--text);
}

@media (max-width: 900px) {
  .chat-widget-toggle { right: 14px; bottom: 14px; width: 62px; height: 62px; font-size: 26px; }
  .chat-telegram-toggle { right: 88px; bottom: 14px; width: 62px; height: 62px; }
  .chat-telegram-toggle__core { width: 50px; height: 50px; }
  .chat-telegram-toggle__core img { width: 24px; height: 24px; }
  .chat-widget { right: 12px; bottom: 88px; width: min(100% - 24px, 360px); }
}


.hero-text-block {
  width: min(100%, 760px);
  padding: 28px 34px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.hero-text-block p { margin: 14px auto 0; max-width: 760px; }
html[data-theme="light"] .hero-text-block {
  background: rgba(255,255,255,.74);
  border-color: rgba(15,23,42,.06);
}
.site-shell--subpage .screen-stage { display: none; }
html[data-theme="light"] .media-type-badge {
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.08);
}


/* Step 7: AI chat + animated button arrows */
.front-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.front-btn::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  opacity: 0;
  transform: translateX(-10px) scaleX(.65);
  transform-origin: left center;
  transition: width .34s ease, opacity .28s ease, transform .34s cubic-bezier(.22,1,.36,1), margin-left .34s ease;
  margin-left: 0;
}
.front-btn:hover::after,
.front-btn:focus-visible::after {
  width: 1.1em;
  opacity: 1;
  transform: translateX(0) scaleX(1.2);
  margin-left: 4px;
}
.front-btn.is-compact {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}
.chat-widget {
  width: min(100% - 28px, 460px);
  max-height: min(calc(100vh - 110px), 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
}
.chat-widget.is-expanded {
  width: min(calc(100vw - 28px), 980px);
  min-height: calc(100vh - 28px);
  right: 14px;
  bottom: 14px;
}
.chat-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.chat-widget__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.chat-widget__brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-widget__brand-logo .site-brand__logo {
  max-width: 34px;
  max-height: 34px;
}
.chat-widget__mark { transform: scale(.74); transform-origin: top left; }
.chat-widget__head-actions { display:flex; gap:8px; }
.chat-widget__expand,
.chat-widget__close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}
.chat-widget__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 14px;
}
.chat-widget__modes .front-btn { width: 100%; }
.chat-widget__modes .front-btn:not(.is-active) {
  opacity: .85;
}
.chat-widget__body--messages {
  min-height: 240px;
}
.chat-widget__form--ask {
  gap: 10px;
}

.chat-composer__attach {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.chat-composer textarea {
  min-height: 58px;
  height: 58px;
  max-height: 180px;
  resize: none;
  padding-top: 17px;
  padding-bottom: 17px;
}
.chat-widget__submit--ask {
  width: auto;
  min-width: 200px;
  min-height: 58px;
  height: 58px;
  align-self: stretch;
}
.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.05);
}
.chat-attachment-chip button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}
.chat-attach-hint {
  font-size: 12px;
  color: var(--muted);
}
.chat-message--typing {
  opacity: .8;
  font-style: italic;
}
html[data-theme="light"] .chat-composer__attach,
html[data-theme="light"] .chat-widget__expand,
html[data-theme="light"] .chat-widget__close,
html[data-theme="light"] .chat-attachment-chip {
  border-color: rgba(15,23,42,.08);
  background: rgba(255,255,255,.76);
  color: #0f172a;
}
@media (max-width: 980px) {
  .chat-widget { width: min(100% - 24px, 420px); }
  .chat-widget.is-expanded { width: calc(100vw - 24px); }
}
@media (max-width: 680px) {
  .chat-widget { width: min(100% - 16px, 100%); right: 8px; bottom: 82px; }
  .chat-widget.is-expanded { width: calc(100vw - 16px); right: 8px; bottom: 8px; }
  .chat-composer { grid-template-columns: 48px minmax(0,1fr); }
  .chat-widget__submit--ask { grid-column: 1 / -1; width: 100%; }
}


/* Step 8: chat tabs, modal scroll lock, orb toggle */
html.chat-open, body.chat-open { overflow: hidden !important; }
.chat-widget-toggle {
  overflow: visible;
  background: radial-gradient(circle at 50% 45%, rgba(128,255,241,.95) 0%, rgba(34,213,191,.92) 22%, rgba(0,193,160,.82) 46%, rgba(0,90,96,.26) 72%, rgba(0,0,0,0) 100%);
  border-color: rgba(110,255,233,.18);
  box-shadow: 0 0 0 1px rgba(122,255,233,.08), 0 12px 30px rgba(0,193,160,.26), 0 0 56px rgba(0,193,160,.24);
  isolation: isolate;
}
.chat-widget-toggle::before,
.chat-widget-toggle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(0,193,160,.0), rgba(92,255,229,.55), rgba(0,193,160,.0), rgba(92,255,229,.18), rgba(0,193,160,.0));
  filter: blur(10px);
  animation: chatOrbSpin 8s linear infinite;
  z-index: -1;
}
.chat-widget-toggle::after {
  inset: 6px;
  animation-duration: 7.8s;
  animation-direction: reverse;
  filter: blur(16px);
  opacity: .8;
}
.chat-widget-toggle__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.16), rgba(255,255,255,.04) 36%, rgba(0,0,0,.02) 78%);
}
.chat-widget-toggle__lottie {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  opacity: .95;
}
.chat-widget-toggle__lottie svg { width: 100% !important; height: 100% !important; }
.chat-widget-toggle__icon { display: none; }
@keyframes chatOrbSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1); }
}
.chat-widget {
  width: min(100% - 28px, 520px);
  grid-template-rows: auto auto auto minmax(0,1fr) auto;
}
.chat-widget__intro { padding: 0 20px 8px; margin-top: 20px; margin-bottom: 10px; }
.chat-message--intro { max-width: 100%; width: auto; }
.chat-widget__modes--tabs {
  gap: 0;
  padding: 0 20px 16px;
  background: transparent;
}
.chat-tab {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background .28s ease, border-color .28s ease, transform .28s ease, color .28s ease, box-shadow .28s ease;
}
.chat-tab:first-child { border-radius: 18px 0 0 18px; }
.chat-tab:last-child { border-radius: 0 18px 18px 0; }
.chat-tab.is-active {
  background: linear-gradient(180deg, #12d7b5 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,193,160,.22);
}
.chat-tab:hover { transform: translateY(-1px); }
.chat-widget__ask-panel[hidden], .chat-widget__form[hidden] { display:none !important; }
.chat-widget__ask-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}
.chat-widget__body--messages {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-bottom: 20px;
  overscroll-behavior: contain;
}
.chat-widget__form--order { padding-top: 0; }
.chat-widget__form--ask {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: auto;
  padding: 14px 20px 18px;
  background: linear-gradient(180deg, rgba(4,10,18,0) 0%, rgba(4,10,18,.74) 16%, rgba(4,10,18,.97) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.04);
}
.chat-widget.is-expanded { width: min(calc(100vw - 28px), 1120px); }
.chat-composer__attach { font-size: 22px; }
html[data-theme="light"] .chat-tab {
  border-color: rgba(15,23,42,.08);
  background: rgba(255,255,255,.82);
  color: #0f172a;
}
html[data-theme="light"] .chat-tab.is-active {
  background: linear-gradient(180deg, #10c3a4 0%, #00b899 100%);
  color: #fff;
}
html[data-theme="light"] .chat-widget__form--ask {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(247,250,252,.74) 16%, rgba(247,250,252,.97) 100%);
  border-top-color: rgba(15,23,42,.06);
}
@media (max-width: 680px) {
  .chat-widget { width: min(100% - 16px, 100%); }
  .chat-widget__modes--tabs { padding: 0 16px 14px; }
  .chat-widget__form--ask { padding-bottom: 14px; }
}

/* Stage 2+3: Projects and Media enhancements */
.simple-page__inner--wide {
  max-width: 1640px;
}

.listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.listing-search {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.listing-search input {
  width: 100%;
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}

.chip:hover,
.chip.is-active {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(0,193,160,0.22);
  background: rgba(0,193,160,0.08);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-bottom: 28px;
}

.feature-split__lead,
.mini-feature {
  overflow: hidden;
}

.feature-split__lead {
  display: grid;
  justify-content: center;
  gap: 0;
  border-radius: 20px;
}

.feature-split__media,
.mini-feature__media {
  min-height: 100%;
}

.feature-split__media img,
.mini-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-split__body,
.mini-feature__body {
  padding: 24px;
}

.feature-split__body h2,
.mini-feature__body h3 {
  margin: 12px 0 12px;
}

.feature-split__body p,
.mini-feature__body p {
  color: var(--text-muted);
}

.feature-split__side {
  display: grid;
  gap: 16px;
}

.mini-feature {
  display: grid;
  gap: 0;
  border-radius: 20px;
}

.media-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,193,160,0.18);
  background: rgba(0,193,160,0.08);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.section-kicker--spaced {
  margin-top: 8px;
  margin-bottom: 16px;
}

.project-list--catalog,
.media-list--catalog,
.project-list--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.front-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.front-pagination a {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  text-decoration: none;
}

.front-pagination a.is-active,
.front-pagination a:hover {
  color: var(--text);
  border-color: rgba(0,193,160,0.22);
  background: rgba(0,193,160,0.12);
}

.front-btn--fit {
  width: auto;
}

.related-block {
  margin-top: 24px;
}

.media-single .project-hero-image img {
  object-fit: cover;
  width: 100%;
}

html[data-theme="light"] .chip,
html[data-theme="light"] .front-pagination a,
html[data-theme="light"] .listing-search input {
  border-color: rgba(15,23,42,0.08);
  background: rgba(15,23,42,0.03);
  color: rgba(15,23,42,0.72);
}

html[data-theme="light"] .chip:hover,
html[data-theme="light"] .chip.is-active,
html[data-theme="light"] .front-pagination a.is-active,
html[data-theme="light"] .front-pagination a:hover {
  color: #111827;
  border-color: rgba(0,193,160,0.18);
  background: rgba(0,193,160,0.09);
}

@media (max-width: 1180px) {
  .feature-split,
  .listing-hero {
    grid-template-columns: 1fr;
  }
  .feature-split__lead {
    grid-template-columns: 1fr;
  }
  .mini-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .project-list--catalog,
  .media-list--catalog,
  .project-list--related,
  .feature-split__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-split__side {
    display: grid;
  }
}

@media (max-width: 720px) {
  .listing-search {
    flex-direction: column;
    align-items: stretch;
  }
  .project-list--catalog,
  .media-list--catalog,
  .project-list--related,
  .feature-split__side {
    grid-template-columns: 1fr;
  }
  .mini-feature {
    grid-template-columns: 1fr;
  }
  .front-btn--fit {
    width: 100%;
  }
}

html[data-theme="light"] .screen--hero {
  --bg: #020406;
  --bg-soft: #07111a;
  --panel: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.1);
  --text: #f7fbff;
  --muted: rgba(226,235,246,0.72);
  --primary: #00c1a0;
  --shadow: 0 24px 54px rgba(0,0,0,0.35);
  background: linear-gradient(180deg, #020406 0%, #07111a 100%);
}
html[data-theme="light"] .screen--hero .front-btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,.055);
  color: var(--text);
}
html[data-theme="light"] .screen--hero .hero-stat {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
  border-color: rgba(255,255,255,.055);
}



html[data-theme="light"] body.page-home .screen-sidebar {
  background: linear-gradient(180deg, #eef4f6 0%, #ffffff 100%);
  box-shadow: inset -1px 0 0 rgba(15,23,42,.06);
}
html[data-theme="light"] body.page-home .screen-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,249,251,.96)),
    radial-gradient(circle at 15% 15%, rgba(0,193,160,.06), rgba(0,0,0,0) 42%);
  pointer-events: none;
}
html[data-theme="light"] body.page-home .screen-sidebar .screen-sidebar__top,
html[data-theme="light"] body.page-home .screen-sidebar .screen-sidebar__bottom {
  position: relative;
  z-index: 1;
}

/* Light theme: keep only hero area in dark visual style while sidebar stays light */
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .theme-switcher,
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .lang-switcher {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.055);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .theme-switcher__btn,
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .lang-switcher__btn {
  color: rgba(226,235,246,.72);
}
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .theme-switcher__btn.is-active,
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .lang-switcher__btn.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.07);
  color: #f7fbff;
}
html[data-theme="light"] body.page-home.hero-ui-dark .site-topbar .theme-switcher__btn--icon.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
}
html[data-theme="light"] body.page-home .screen--hero .hero-kicker,
html[data-theme="light"] body.page-home .screen--hero .hero-slider__summary,
html[data-theme="light"] body.page-home .screen--hero .hero-slider__item p,
html[data-theme="light"] body.page-home .screen--hero .hero-stat span {
  color: rgba(226,235,246,.72);
}
html[data-theme="light"] body.page-home .screen--hero .hero-slider__item h1,
html[data-theme="light"] body.page-home .screen--hero .hero-title,
html[data-theme="light"] body.page-home .screen--hero .hero-stat strong {
  color: #f7fbff;
}
html[data-theme="light"] body.page-home .screen--hero .hero-slider__dot {
  background: rgba(255,255,255,.24);
}
html[data-theme="light"] body.page-home .screen--hero .hero-slider__dot.is-active {
  background: var(--primary);
}


.filter-row--chips-icons {
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.chip--icon {
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.chip__icon {
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.chip__icon svg {
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Stage 33: chat layout, presentations, compact submit */
.chat-message {
  width: auto;
  max-width: min(82%, 760px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .36s ease, transform .36s ease;
  box-sizing: border-box;
  height: max-content;
}
.chat-message.is-visible,
.chat-message--intro,
.chat-message--welcome,
.chat-message--muted {
  opacity: 1;
  transform: translateY(0);
}
.chat-message--intro,
.chat-message--welcome,
.chat-message--muted {
  width: 100%;
  max-width: 100%;
  height: max-content;
}
.chat-widget__body--messages {
  gap: 14px;
}
.chat-widget__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chat-quick {
  flex: 0 1 calc(33.333% - 8px);
  min-width: 220px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.chat-widget__form--ask {
  padding-top: 12px;
}
.chat-composer {
  width: auto;
  gap: 12px;
  align-items: center;
  display: flex;
}
.chat-composer__attach,
.chat-composer textarea,
.chat-widget__submit--ask {
  min-height: 60px;
  height: 60px;
}
.chat-composer textarea {
  padding: 17px 18px;
}
.chat-widget__submit--ask {
  min-width: 72px;
  width: 72px;
  padding: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-widget__submit-icon {
  display: inline-flex;
  font-size: 22px;
  line-height: 1;
}
.chat-widget__submit-text {
  display: none;
}
.chat-widget.is-expanded .chat-widget__submit--ask {
  width: fit-content;
  padding: 0 18px;
}
.chat-widget.is-expanded .chat-widget__submit-icon {
  display: none;
}
.chat-widget.is-expanded .chat-widget__submit-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-presentations {
  display: grid;
  gap: 10px;
  width: 100%;
}
.chat-presentation {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  color: var(--text);
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.chat-presentation:hover {
  transform: translateY(-2px);
  border-color: rgba(0,193,160,.22);
  box-shadow: 0 14px 28px rgba(0,193,160,.14);
}
.chat-presentation__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
}
.chat-presentation__icon svg {
  width: 22px;
  height: 22px;
}
.chat-presentation__icon em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .72;
}
.chat-presentation__meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.chat-presentation__meta strong {
  font-size: 15px;
  line-height: 1.35;
}
.chat-presentation__meta small {
  color: var(--muted);
  font-size: 12px;
}
.chat-widget__expand {
  font-size: 20px;
}
@media (max-width: 1120px) {
  .chat-quick {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .chat-widget__body--messages {
    padding-bottom: 16px;
  }
  .chat-widget__quick {
    flex-direction: row;
  }
  .chat-quick {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  
  .chat-composer__attach,
  .chat-composer textarea,
  .chat-widget__submit--ask {
    min-height: 56px;
    height: 56px;
  }
  .chat-composer textarea {
    min-width: 0;
    padding: 16px;
  }
  .chat-widget__submit--ask {
    width: 64px;
    min-width: 64px;
  }
  .chat-widget.is-expanded .chat-widget__submit--ask {
    width: 64px;
    min-width: 64px;
    padding: 0;
  }
  .chat-widget.is-expanded .chat-widget__submit-icon {
    display: inline-flex;
  }
  .chat-widget.is-expanded .chat-widget__submit-text {
    display: none;
  }
}
html[data-theme="light"] .chat-presentation {
  border-color: rgba(15,23,42,.08);
  background: rgba(255,255,255,.82);
  color: #0f172a;
}
html[data-theme="light"] .chat-presentation__icon {
  border-color: rgba(15,23,42,.08);
  background: rgba(255,255,255,.86);
  color: #0f172a;
}


/* stage 34 refinements */
.hero-slider__dots { display: none !important; }
.hero-stat strong { font-size: 22px; letter-spacing: -.04em; line-height: 1.02; }
.hero-stat span { margin-top: 12px; font-size: 14px; line-height: 1.55; }
.services-orb-floats { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.services-orb-card {
  position: absolute;
  width: 220px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0,0,0,.26);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .55s ease, transform .55s ease;
}
.services-orb-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.services-orb-card strong { display:block; font-size: 15px; margin-bottom: 6px; }
.services-orb-card span { display:block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.services-orb-card:nth-child(1) { left: 18%; top: 20%; }
.services-orb-card:nth-child(2) { left: 16%; bottom: 24%; }
.services-orb-card:nth-child(3) { right: 14%; top: 34%; }
.services-orb-card:nth-child(4) { right: 10%; bottom: 14%; }
.about-split { display:grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); gap:42px; width:100%; align-items:center; }
.about-copy { max-width: 760px; padding-left: 116px; }
.about-video-card { position: relative; min-height: 520px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-radius: 20px; }
.about-video-card__media { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; display:block; }
.about-video-card__overlay { position:absolute; inset:0; z-index:2; background: linear-gradient(90deg, rgba(2,6,12,.94) 0%, rgba(2,6,12,.72) 28%, rgba(2,6,12,.28) 58%, rgba(2,6,12,.10) 100%); }
.about-video-card::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); pointer-events:none; }
.privacy-stack { display:grid; gap:20px; margin-top: 24px; }
.privacy-card { padding: 26px 28px; }
.privacy-card h2 { margin:0 0 12px; font-size: 28px; letter-spacing:-.04em; }
.sidebar-meta { display:grid; gap:10px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-meta__privacy { color: var(--text); font-size:13px; }
.sidebar-meta__copyright { color: var(--muted); font-size:12px; line-height:1.5; }
html[data-theme='light'] .sidebar-meta { border-top-color: rgba(15,23,42,.08); }
@media (max-width: 1200px) {
  .about-split { grid-template-columns: 1fr; }
  .about-copy { padding-left: 0; max-width: 100%; }
}
@media (max-width: 980px) {
  .about-video-card { min-height: 360px; }
  .hero-visual-wrap { pointer-events: auto; }
  .hero-visual { border-radius: 30px; overflow: hidden; border:1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }
  .services-orb-floats { display:none; }
  .screen-sidebar__bottom { padding-bottom: 110px; }
}


/* stage 35 bugfixes */
.about-video-card__media { opacity: 1; }
.about-video-card__media.is-hidden { opacity: 0; }
.hero-visual__mobile-frame { display:none; }
@media (max-width: 980px) {
  .hero-slider { min-height: 0; }
  .hero-copy { display:grid; gap: 22px; }
  .hero-slider__summary { margin-bottom: 0; }
  .hero-actions { margin-top: 0; }
  .hero-stats { margin-top: 8px; }
  .hero-visual-wrap { position: relative; inset: auto; min-height: auto; margin-top: 20px; pointer-events: auto; }
  .hero-visual { min-height: 0; height: auto; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }
  .hero-visual img, .hero-visual .services-visual__canvas { opacity:1 !important; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center center; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(3,7,12,.18) 0%, rgba(3,7,12,0) 40%); }
  .screen-sidebar__bottom { padding-bottom: 96px; }
}

/* Step 38: projects/media filters, partners, chat icon fixes */
.partners-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: partnersMarquee 38s linear infinite;
}
.partner-card {
  width: 180px;
  min-width: 180px;
  height: 92px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.06);
  padding: 18px;
}
.partner-card img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
html[data-theme="light"] .partner-card {
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .partner-card img { filter: none; }
@keyframes partnersMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chat-widget__icon-mask {
  display: inline-flex;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}
.chat-widget__icon-mask--expand { mask-image: url('../images/chat-icons/expand.svg'); -webkit-mask-image: url('../images/chat-icons/expand.svg'); }
.chat-widget__icon-mask--collapse { mask-image: url('../images/chat-icons/collapse.svg'); -webkit-mask-image: url('../images/chat-icons/collapse.svg'); display:none; }
.chat-widget__icon-mask--close { mask-image: url('../images/chat-icons/close.svg'); -webkit-mask-image: url('../images/chat-icons/close.svg'); }
.chat-widget.is-expanded .chat-widget__icon-mask--expand,
.chat-widget.is-expanded-state .chat-widget__icon-mask--expand { display:none; }
.chat-widget.is-expanded .chat-widget__icon-mask--collapse,
.chat-widget.is-expanded-state .chat-widget__icon-mask--collapse { display:inline-flex; }
.chat-widget__expand, .chat-widget__close { display:inline-flex; align-items:center; justify-content:center; }
.chat-widget__close { font-size: 0; }

.contacts-meta div { display:block; }
.contacts-meta div + div { margin-top: 2px; }

@media (max-width: 760px) {
  .chat-widget__quick {
    gap: 10px;
  }
  .chat-quick {
    border-radius: 24px;
    min-height: 76px;
    max-width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.35;
  }
  .chat-widget__body--messages {
    overflow-x: hidden;
  }
  .chat-composer {
    display: flex;
  }
  .chat-widget__submit--ask,
  .chat-widget.is-expanded .chat-widget__submit--ask {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
  }
  .chat-composer textarea {
    width: 100%;
    min-width: 0;
  }
}



.chat-widget .front-btn::after,
.chat-widget__submit::after,
.chat-widget__submit--ask::after {
  content: none !important;
  display: none !important;
}
.chat-presentations[hidden] {
  display: none !important;
}
.chat-widget__submit-loader {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.34);
  border-top-color: #fff;
  animation: chatSubmitSpin .8s linear infinite;
}
.chat-widget__submit.is-loading {
  pointer-events: none;
  opacity: .88;
}
.chat-widget__submit.is-loading .chat-widget__submit-icon,
.chat-widget__submit.is-loading .chat-widget__submit-text {
  display: none !important;
}
.chat-widget__submit.is-loading .chat-widget__submit-loader {
  display: inline-flex;
}
@keyframes chatSubmitSpin {
  to { transform: rotate(360deg); }
}
.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
html[data-theme="light"] .media-embed {
  background: rgba(255,255,255,.86);
  border-color: rgba(15,23,42,.08);
}
