:root {
  --bg: #0b0b0b;
  --bg-soft: #111111;
  --card: rgba(17, 17, 17, 0.86);
  --card-2: rgba(15, 15, 15, 0.9);
  --text: #f4f0ea;
  --muted: rgba(244, 240, 234, 0.64);
  --line: rgba(244, 240, 234, 0.11);
  --line-strong: rgba(244, 240, 234, 0.22);
  --radius: 28px;
  --radius-sm: 20px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 120px 120px, 120px 120px, auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.025), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.02), transparent 24%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: none;
}

a,
summary {
  cursor: none;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 40;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(244, 240, 234, 0.85);
  transform-origin: left center;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.98);
  transition: opacity 0.75s var(--ease), visibility 0.75s var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64vw, 520px);
  height: 1px;
  background: rgba(244, 240, 234, 0.28);
  transform: translate(-50%, -50%) scaleX(0);
  animation: loaderLine 1.1s var(--ease) forwards;
}

.preloader__content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(244, 240, 234, 0.08);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.88);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.preloader__mark {
  font-size: 30px;
  line-height: 1;
}

.preloader__text {
  color: var(--muted);
}

@keyframes loaderLine {
  0% { transform: translate(-50%, -50%) scaleX(0); }
  100% { transform: translate(-50%, -50%) scaleX(1); }
}

 .cursor,
.cursor-dot {
  position: fixed;
  inset: 0 auto auto 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 240, 234, 0.36);
  border-radius: 50%;
  mix-blend-mode: difference;
  backdrop-filter: blur(1px);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.25s ease;
}

.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cursor::before {
  width: 4px;
  height: 4px;
  background: rgba(244, 240, 234, 0.85);
}

.cursor::after {
  width: 78%;
  height: 78%;
  border: 1px solid rgba(244, 240, 234, 0.12);
}

.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(244, 240, 234, 0.95);
}

body.cursor-ready .cursor-dot {
  opacity: 1;
}

.cursor {
  display: none !important;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: rgba(244, 240, 234, 0.95);
  mix-blend-mode: difference;
}

 .site-header,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  height: 62px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand,
.header-cta,
.button,
.card-link,
.social,
.tab,
.menu-toggle,
.accordion-trigger,
.process-item,
.service-card {
  transition: transform 0.35s var(--ease),
              border-color 0.35s var(--ease),
              background-color 0.35s var(--ease),
              color 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              opacity 0.35s var(--ease);
}

.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav__link,
.header-cta {
  position: relative;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav__link::after,
.header-cta::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
  opacity: 0.45;
}

.nav__link:hover,
.header-cta:hover,
.brand:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.nav__link:hover::after,
.header-cta:hover::after {
  transform: scaleX(1);
}

.header-cta {
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 24px; }

body.menu-open .menu-toggle span:first-child {
  transform: translateX(-50%) translateY(3px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateX(-50%) translateY(-3px) rotate(-45deg);
}

.section {
  padding: 86px 0;
}

.section-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  padding-top: 72px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 0 rgba(244, 240, 234, 0.45);
  animation: pulseDot 2.2s ease infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244, 240, 234, 0.34); }
  70% { box-shadow: 0 0 0 10px rgba(244, 240, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 240, 234, 0); }
}

 .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: stretch;
  margin-top: 28px;
}

h1,
h2,
.section-head h2,
.contact h2,
.faq h2,
.intro h2,
.tab-panel h3,
.service-card h3,
.process-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.button--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.14);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.02);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

 .hero-card {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  min-height: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}

.hero-card::before,
.service-card::before,
.process-item::before,
.tab-panels::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 240, 234, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}

 .orbital {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 16px auto 8px;
  display: grid;
  place-items: center;
}

.orbital__ring,
.orbital__core {
  position: absolute;
  border-radius: 50%;
}

.orbital__ring {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 240, 234, 0.28);
}

 .orbital__ring--1 { width: 68px; height: 68px; }
.orbital__ring--2 { width: 136px; height: 136px; animation: spin 18s linear infinite; }
.orbital__ring--3 { width: 204px; height: 204px; animation: spinReverse 26s linear infinite; }

.orbital__core {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 234, 0.34);
  background: rgba(8, 8, 8, 0.86);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.orbital__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: rgba(244, 240, 234, 0.96);
}

.orbital__dot--1 {
  animation: orbit1 8.2s linear infinite;
}

.orbital__dot--2 {
  animation: orbit2 12s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(68px); }
  to { transform: rotate(360deg) translateX(68px); }
}

@keyframes orbit2 {
  from { transform: rotate(360deg) translateX(102px); }
  to { transform: rotate(0deg) translateX(102px); }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.metrics div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metrics strong {
  display: block;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

 .ticker {
  margin-top: 40px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 18px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.intro h2 {
  grid-column: 2 / 4;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro__text {
  grid-column: 2 / 4;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head h2,
.contact h2,
.faq h2 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

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

.service-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  overflow: hidden;
}

.service-card:hover,
.process-item:hover,
.tab-panels:hover,
.contact-form:hover {
  border-color: rgba(244, 240, 234, 0.2);
  box-shadow: var(--shadow);
}

.service-card__num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
}

.service-card h3 {
  margin-top: 54px;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.service-card p {
  margin: 16px 0 auto;
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
}

.card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.card-link::after {
  content: "↗";
  transform: translateX(0);
  transition: transform 0.35s var(--ease);
}

.service-card:hover .card-link::after {
  transform: translateX(6px) translateY(-2px);
}

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

 .process-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-item::before {
  inset: 10px 0;
  opacity: 0;
  border-radius: 22px;
  transition: opacity 0.35s var(--ease);
}

.process-item:hover::before {
  opacity: 1;
}

.process-item span {
  color: var(--muted);
}

.process-item h3 {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.case-tabs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.tab.is-active,
.tab:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.tab-panels {
  position: relative;
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  overflow: hidden;
}

.tab-panel {
  display: none;
  animation: panel 0.45s var(--ease);
}

.tab-panel.is-active {
  display: block;
}

.tab-panel h3 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.tab-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

@keyframes panel {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.faq {
  border-top: 1px solid var(--line);
}

.accordion {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 22px;
}

.accordion-trigger span:first-child {
  max-width: 90%;
}

.accordion-icon {
  flex: 0 0 auto;
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.accordion-icon::before {
  width: 11px;
  height: 1px;
}

.accordion-icon::after {
  width: 1px;
  height: 11px;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.35s ease;
}

.accordion-panel__inner {
  overflow: hidden;
}

.accordion-panel p {
  margin: 0;
  max-width: 760px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  transform: translateY(-10px);
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
  opacity: 0;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-item.is-open .accordion-panel p {
  opacity: 1;
  transform: translateY(0);
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
  opacity: 0;
}

.accordion-item.is-open .accordion-icon {
  background: rgba(244, 240, 234, 0.08);
}

 .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  border-top: 1px solid var(--line);
}

.contact-form {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  overflow: hidden;
}

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
  outline: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input:focus,
textarea:focus {
  border-color: rgba(244, 240, 234, 0.36);
  box-shadow: 0 0 0 4px rgba(244, 240, 234, 0.04);
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  margin-top: 6px;
}

.contact-form.is-sent {
  border-color: rgba(244, 240, 234, 0.32);
}

.footer {
  margin: 0 auto 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 11, 11, 0.74);
  backdrop-filter: blur(14px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.contact-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.social--text {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.footer__brand {
  font-size: 36px;
  line-height: 1;
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.social:hover {
  background: var(--text);
  color: var(--bg);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer__note {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

.split-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-title .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.05s + 0.5s);
}

@keyframes wordIn {
  to { transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
   .cursor,
  .cursor-dot {
    display: block;
  }
}

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

@media (max-width: 980px) {
  body {
    cursor: auto;
  }

  a,
  button,
  input,
  textarea {
    cursor: pointer;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    position: relative;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    height: 60px;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(11, 11, 11, 0.94);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__link {
    padding: 15px 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__grid,
  .intro,
  .case-tabs,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
  }

  .intro h2,
  .intro__text {
    grid-column: auto;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item {
    grid-template-columns: 60px 1fr;
  }

  .process-item p {
    grid-column: 2;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer__note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    top: 12px;
    margin-top: 12px;
  }

  .section {
    padding: 62px 0;
  }

  .hero h1 {
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .hero__lead,
  .intro__text,
  .process-item p,
  .tab-panel p {
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-card {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .orbital {
    width: 180px;
    height: 180px;
    margin: 8px auto 4px;
  }

  .orbital__ring--1,
  .orbital__core {
    width: 54px;
    height: 54px;
  }

  .orbital__ring--2 { width: 110px; height: 110px; }
  .orbital__ring--3 { width: 166px; height: 166px; }

  @keyframes orbit1 {
    from { transform: rotate(0deg) translateX(55px); }
    to { transform: rotate(360deg) translateX(55px); }
  }

  @keyframes orbit2 {
    from { transform: rotate(360deg) translateX(83px); }
    to { transform: rotate(0deg) translateX(83px); }
  }

  .metrics {
    gap: 8px;
  }

  .metrics strong {
    font-size: clamp(16px, 7vw, 22px);
  }

  .metrics span {
    font-size: 10px;
    max-width: 10ch;
  }

  .intro h2,
  .section-head h2,
  .contact h2,
  .faq h2 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }

  .section-head {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
    padding: 20px;
  }

  .service-card h3 {
    margin-top: 46px;
    font-size: 28px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .process-item p {
    grid-column: auto;
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab {
    white-space: nowrap;
  }

  .tab-panels {
    min-height: auto;
    padding: 22px;
  }

  .accordion-trigger {
    font-size: 19px;
    padding: 20px 0;
  }

  .contact-form {
    padding: 16px;
  }

  .footer {
    padding: 20px;
  }

  .preloader__content {
    display: grid;
    text-align: center;
    gap: 6px;
  }

  .ticker__track {
    gap: 28px;
  }
}


/* Mobile fix: tabs in "Сценарии" always fit into one screen and do not change the URL. */
@media (max-width: 640px) {
  .case-tabs {
    overflow: hidden;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    width: 100%;
  }

  .tab {
    width: 100%;
    min-width: 0;
    padding: 14px 7px;
    text-align: center;
    font-size: clamp(13px, 3.9vw, 16px);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .preloader {
    display: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .split-title .word span {
    transform: none;
  }
}

/* v5 refinements */
.preloader__mark {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cursor,
.cursor::before,
.cursor::after {
  display: none !important;
}

.cursor-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
  background: rgba(244, 240, 234, 0.92) !important;
  mix-blend-mode: difference;
  transition: opacity 0.18s ease, transform 0.04s linear;
}

body.cursor-ready .cursor-dot {
  opacity: 1;
}

.brand {
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

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

.service-card__details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.35s ease, margin-top 0.35s var(--ease);
}

.service-card__details p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 48ch;
}

.service-card.is-open {
  border-color: rgba(244, 240, 234, 0.28);
  box-shadow: var(--shadow);
}

.service-card.is-open .service-card__details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.service-card.is-open .card-link::after {
  content: "−";
  transform: none;
}

.about {
  border-top: 1px solid var(--line);
}

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

.about-card {
  min-height: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.about-card:hover {
  border-color: rgba(244, 240, 234, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.about-card span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-card h3 {
  margin: 42px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.about-card p {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.about-card strong {
  display: block;
  margin-top: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
  font-weight: 400;
}

.about-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.contact-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.social--text {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.footer__brand {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

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

  .brand {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-card {
    min-height: 260px;
  }

  .about-card {
    min-height: auto;
    padding: 20px;
  }

  .about-card h3 {
    margin-top: 34px;
    font-size: 28px;
  }

  .about-card strong {
    font-size: 38px;
  }

  .about h2 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }
}


/* v7 contact cleanup */
.socials {
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social {
  padding: 0;
  background: transparent;
  color: var(--text);
}

.email-copy {
  width: 0;
  max-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: max-width 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s ease, padding 0.45s var(--ease), border-color 0.35s var(--ease);
}

.socials.email-open .email-copy {
  width: auto;
  max-width: 360px;
  opacity: 1;
  padding: 0 8px 0 14px;
  border-color: var(--line);
}

.email-copy__button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  cursor: none;
}

.email-copy__button:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 980px) {
  .email-copy__button {
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .footer {
    justify-items: center;
    text-align: center;
  }

  .socials.email-open .email-copy {
    max-width: min(100%, 320px);
  }

  .email-copy {
    font-size: 12px;
  }
}
