:root {
  color-scheme: dark light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-soft: #0f172a;
  --primary: #3b82f6;
  --primary-strong: #ffffff;
  --secondary: #0ea5e9;
  --accent: #f97316;
  --text: #f1f5f9;
  --muted: rgba(241, 245, 249, 0.65);
  --card: #1e293b;
  --glass: rgba(30, 41, 59, 0.85);
  --border: rgba(241, 245, 249, 0.1);
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #eef2f7;
  --primary: #2563eb;
  --primary-strong: #0f172a;
  --secondary: #0ea5e9;
  --accent: #f97316;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.65);
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Компенсация для sticky хэдера */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 90px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Скрываем все скроллбары */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0 8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  background-attachment: fixed;
  max-width: 100vw;
  box-sizing: border-box;
}

body::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] body {
  background: #0a0e1a;
  background-attachment: fixed;
}

[data-theme="light"] body {
  background: 
    radial-gradient(circle at 12% 16%, rgba(37, 99, 235, 0.32), transparent 45%),
    radial-gradient(circle at 74% 12%, rgba(79, 70, 229, 0.3), transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(14, 165, 233, 0.18), transparent 48%),
    linear-gradient(160deg, #dbeafe 0%, #c7d2fe 55%, #93c5fd 100%);
  background-attachment: fixed;
}

.code-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.03;
}

[data-theme="dark"] .code-background {
  opacity: 0.45;
}

[data-theme="light"] .code-background {
  opacity: 0.03;
}

.code-background__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5em;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
}

[data-theme="dark"] .code-background__line {
  color: rgba(96, 165, 250, 0.85);
  opacity: 1;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.5), 0 0 20px rgba(96, 165, 250, 0.2);
}

[data-theme="light"] .code-background__line {
  color: var(--text);
  opacity: 0.6;
}

.code-background__line:nth-child(1) {
  top: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.code-background__line:nth-child(2) {
  top: 20%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.code-background__line:nth-child(3) {
  top: 30%;
  animation-delay: 2s;
  animation-duration: 9s;
}

.code-background__line:nth-child(4) {
  top: 40%;
  animation-delay: 3s;
  animation-duration: 7.5s;
}

.code-background__line:nth-child(5) {
  top: 50%;
  animation-delay: 4s;
  animation-duration: 8.5s;
}

.code-background__line:nth-child(6) {
  top: 60%;
  animation-delay: 5s;
  animation-duration: 7s;
}

.code-background__line:nth-child(7) {
  top: 70%;
  animation-delay: 6s;
  animation-duration: 9s;
}

.code-background__line:nth-child(8) {
  top: 80%;
  animation-delay: 7s;
  animation-duration: 8s;
}

.code-background__line:nth-child(9) {
  top: 90%;
  animation-delay: 8s;
  animation-duration: 7.5s;
}

.code-background__line:nth-child(10) {
  top: 5%;
  animation-delay: 9s;
  animation-duration: 8.5s;
}

@keyframes codeType {
  0% {
    width: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

.code-background__line::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

main {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg-soft) 70%, var(--bg));
}

[data-theme="dark"] main {
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5) 70%, var(--bg));
}

[data-theme="light"] main {
  background: linear-gradient(to bottom, transparent, rgba(243, 238, 252, 0.7) 70%, var(--bg));
}

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

.nav {
  position: sticky;
  top: 2rem;
  z-index: 10;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: calc(100% - 10vw);
  width: calc(100% - 10vw);
}

[data-theme="dark"] .nav {
  background-color: #1e293b !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(241, 245, 249, 0.1);
}

[data-theme="dark"] .nav__logo-text {
  color: #f1f5f9;
}

[data-theme="light"] .nav {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .nav__logo-text {
  color: #0f172a;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  object-fit: contain;
  display: inline-flex;
}

[data-theme="dark"] .nav__logo-icon {
  border-color: rgba(241, 245, 249, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nav__logo-text {
  font-size: 1.1rem;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav__links a:hover {
  color: var(--text);
}

[data-theme="dark"] .nav__links a {
  color: rgba(241, 245, 249, 0.8);
}

[data-theme="dark"] .nav__links a:hover {
  color: #f1f5f9;
}

[data-theme="light"] .nav__links a {
  color: rgba(15, 23, 42, 0.65);
}

[data-theme="light"] .nav__links a:hover {
  color: #0f172a;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

.theme-toggle__icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  text-shadow: none;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .btn--primary {
  background: linear-gradient(120deg, #1e40af, #2563eb);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.35);
}

[data-theme="light"] .btn--primary {
  background: linear-gradient(120deg, #1e3a8a, #1e40af);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.btn__arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 8rem 5vw 5rem;
  position: relative;
  box-sizing: border-box;
  max-width: calc(100% - 10vw);
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  overflow-y: hidden !important;
  align-items: start;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.28), transparent 70%);
  animation: gridPulse 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::after {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.18) 1px, transparent 1px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 65%);
  filter: blur(60px);
  z-index: -1;
  animation: pulse 18s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  overflow: hidden !important; /* Полностью отключаем скролл */
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: none !important;
}

.hero__content * {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  max-width: 100%;
}

.hero__content h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.lead {
  color: var(--muted);
  max-width: 520px;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero__features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.85rem;
  line-height: 1.4;
}

[data-theme="dark"] .privacy-note {
  background: rgba(56, 189, 248, 0.12);
  color: rgba(241, 245, 249, 0.85);
}

.privacy-note__icon {
  font-size: 1rem;
}

.privacy-note--inline {
  display: flex;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  padding: 1rem 1.2rem;
  color: var(--muted);
}

[data-theme="dark"] .privacy-note--inline {
  background: rgba(30, 41, 59, 0.55);
  color: rgba(241, 245, 249, 0.8);
}

.privacy-note--subtle {
  background: transparent;
  padding: 0;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.dot--primary {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.dot--secondary {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 420px;
  align-self: flex-start;
  margin-top: 0;
  overflow: hidden !important; /* Полностью отключаем скролл */
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: none !important;
}

.hero__window {
  width: min(420px, 95%);
  border-radius: 32px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.88));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__halo {
  position: absolute;
  inset: 5% 0 0 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 70%);
  filter: blur(80px);
  z-index: 1;
}

.hero-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  height: min(72vh, 640px);
  min-height: 440px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 38px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 768px) {
  .hero-chat {
    max-width: 100%;
    height: 62vh;
    max-height: 62vh;
    min-height: 420px;
    margin-inline: auto;
  }
}

.hero__chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  height: min(72vh, 640px);
  min-height: 440px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 38px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 768px) {
  .hero__chat {
    max-width: 100%;
    height: 62vh;
    max-height: 62vh;
    min-height: 420px;
    margin-inline: auto;
  }
}

.chat-layer {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

.chat-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: auto !important;
  height: 100%;
  min-height: 0;
  pointer-events: auto;
  padding: 0.95rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.82), rgba(147, 197, 253, 0.68));
  backdrop-filter: blur(20px) saturate(115%);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.15);
  outline: none;
  overflow: hidden !important; /* Полностью отключаем скролл */
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: none !important;
}

[data-theme="dark"] .chat-shell {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-shell {
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.82), rgba(147, 197, 253, 0.68));
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
}

.chat-window {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden !important; /* Полностью отключаем скролл */
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 0.4rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.18), transparent 60%),
    rgba(219, 234, 254, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.18);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(135%);
  overscroll-behavior: none !important;
}

[data-theme="dark"] .chat-window {
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08), transparent 60%),
    rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.08);
}

[data-theme="light"] .chat-window {
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.18), transparent 60%),
    rgba(219, 234, 254, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.chat-log {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.25rem;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-self: stretch;
  grid-auto-rows: auto;
  align-content: start;
  flex: 1;
  max-height: 100%;
  pointer-events: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chat-log::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.chat-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
  border: none;
}

.chat-status--online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 0 8px rgba(16, 185, 129, 0.4);
}

.chat-status--offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2), 0 0 8px rgba(239, 68, 68, 0.4);
}

.chat-status--loading {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 0 8px rgba(59, 130, 246, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

[data-theme="dark"] .chat-status--online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 0 12px rgba(16, 185, 129, 0.5);
}

[data-theme="dark"] .chat-status--offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 0 12px rgba(239, 68, 68, 0.5);
}

[data-theme="dark"] .chat-status--loading {
  background: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3), 0 0 12px rgba(96, 165, 250, 0.5);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.6rem 0.75rem;
  background: rgba(219, 234, 254, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 40px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.25);
  align-self: stretch;
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 9998 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

[data-theme="dark"] .chat-input {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(241, 245, 249, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-input {
  background: rgba(219, 234, 254, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 40px rgba(37, 99, 235, 0.2);
}

.chat-input:has(:disabled) {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

.chat-input:not(:has(:disabled)) {
  opacity: 1;
  cursor: default;
}

.chat-input__field {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-size: 0.95rem;
  pointer-events: auto !important;
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  width: 100%;
  position: relative;
  z-index: 9999 !important;
  flex: 1;
  min-width: 0;
  opacity: 1 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.chat-input__field:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.chat-input__field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

[data-theme="dark"] .chat-input__field {
  color: rgba(241, 245, 249, 0.9);
}

[data-theme="light"] .chat-input__field {
  color: var(--ink);
}

.chat-input__field::placeholder {
  color: rgba(31, 18, 61, 0.5);
}

[data-theme="dark"] .chat-input__field::placeholder {
  color: rgba(241, 245, 249, 0.5);
}

[data-theme="light"] .chat-input__field::placeholder {
  color: rgba(31, 18, 61, 0.5);
}

.chat-input__send {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .chat-input__send {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.95));
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .chat-input__send {
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
}

.chat-input__send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(108, 86, 204, 0.4);
}

[data-theme="dark"] .chat-input__send:hover:not(:disabled) {
  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.5);
}

.chat-input__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.chat-input__send:not(:disabled) {
  cursor: pointer;
  pointer-events: auto;
}

.chat-footer {
  padding: 0.75rem 1rem 0.5rem;
  text-align: left;
  margin-top: 0.5rem;
}

.chat-footer__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.chat-footer__checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.1rem;
  border-radius: 4px;
  border: 2px solid rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-footer__checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.chat-footer__checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.chat-footer__checkbox:hover {
  border-color: rgba(37, 99, 235, 0.6);
  transform: scale(1.05);
}

.chat-footer__checkbox:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.chat-footer__text {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.4;
  margin: 0;
}

.chat-footer__link {
  color: rgba(37, 99, 235, 0.8);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.chat-footer__link:hover {
  color: rgba(37, 99, 235, 1);
}

[data-theme="dark"] .chat-footer__checkbox {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(241, 245, 249, 0.3);
}

[data-theme="dark"] .chat-footer__checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(59, 130, 246, 0.8);
}

[data-theme="dark"] .chat-footer__text {
  color: rgba(241, 245, 249, 0.6);
}

[data-theme="dark"] .chat-footer__link {
  color: rgba(59, 130, 246, 0.8);
}

[data-theme="dark"] .chat-footer__link:hover {
  color: rgba(59, 130, 246, 1);
}

.chat-line {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: 90%;
  width: fit-content;
  font-size: 0.9rem;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.2);
}

.chat-line--bot {
  background: rgba(255, 255, 255, 0.7);
  color: rgba(31, 18, 61, 0.9);
}

[data-theme="dark"] .chat-line--bot {
  background: rgba(30, 41, 59, 0.8);
  color: rgba(241, 245, 249, 0.9);
}

[data-theme="light"] .chat-line--bot {
  background: rgba(255, 255, 255, 0.7);
  color: rgba(31, 18, 61, 0.9);
}

.chat-line--user {
  margin-left: auto;
  background: linear-gradient(120deg, rgba(139, 61, 255, 0.3), rgba(118, 37, 245, 0.42));
  color: white;
}

[data-theme="dark"] .chat-line--user {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.5));
  color: white;
}

[data-theme="light"] .chat-line--user {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.4), rgba(59, 130, 246, 0.5));
  color: white;
}

.chat-consent {
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(233, 223, 255, 0.92), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 28px rgba(37, 99, 235, 0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
}

[data-theme="dark"] .chat-consent {
  background: linear-gradient(110deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-consent {
  background: linear-gradient(110deg, rgba(233, 223, 255, 0.92), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 28px rgba(37, 99, 235, 0.15);
}

[data-chat-root][data-consent='granted'] .chat-consent {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}


.chat-consent__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.chat-consent__label {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

[data-theme="dark"] .chat-consent__label {
  color: #f1f5f9;
}

[data-theme="light"] .chat-consent__label {
  color: var(--ink);
}

.chat-consent__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.chat-consent__checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 2px solid rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

.chat-consent__checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chat-consent__checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.chat-consent__checkbox:hover {
  border-color: rgba(37, 99, 235, 0.6);
  transform: scale(1.05);
}

.chat-consent__checkbox:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

[data-theme="dark"] .chat-consent__checkbox {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(241, 245, 249, 0.3);
}

[data-theme="dark"] .chat-consent__checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(59, 130, 246, 0.8);
}

.chat-consent--highlight {
  animation: highlight-consent 0.5s ease;
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.1);
}

@keyframes highlight-consent {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}


.chat__consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.02);
  font-size: 0.85rem;
  color: var(--muted);
}

[data-theme="dark"] .chat__consent {
  border-color: rgba(241, 245, 249, 0.1);
  background: rgba(30, 41, 59, 0.4);
  color: rgba(241, 245, 249, 0.8);
}

.chat-switch {
  position: relative;
  width: 56px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-switch[data-off='true'] {
  background: rgba(15, 23, 42, 0.2);
}

.chat-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transform: translateX(24px);
  transition: transform 0.3s ease;
}

.chat-switch[data-off='true'] .chat-switch__thumb {
  transform: translateX(0);
}
.hero__mockup {
  width: min(380px, 95%);
  border-radius: 32px;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .hero__mockup {
  background: var(--card);
  border: 1px solid var(--border);
}

[data-theme="light"] .hero__mockup {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.02);
}

.status-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
}

.mockup__messages {
  padding: 1.2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
}

.message span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.message--user {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.12);
}

.message--assistant {
  border-color: rgba(14, 165, 233, 0.2);
  background: rgba(14, 165, 233, 0.12);
}

.mockup__input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.mockup__pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.window__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.window__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.window__logo span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.window__tabs {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.window__cta {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.75rem;
}

.window__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.window__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
}

.window__body h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.window__lead {
  color: var(--muted);
  font-size: 0.9rem;
}

.window__stats {
  display: flex;
  gap: 1rem;
}

.window__stats div {
  flex: 1;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.window__stats p {
  font-size: 1.4rem;
  font-weight: 600;
}

.window__stats span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.window__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.window__tags span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.stats-section {
  margin: 6rem 0;
  padding: 0 5vw;
  box-sizing: border-box;
  max-width: calc(100% - 10vw);
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.stat-card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .stat-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .stat-card {
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.stat-card__label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.stat-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-card__description {
  font-size: 0.9rem;
  color: var(--muted);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.section-description {
  color: var(--muted);
  max-width: 800px;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.services,
.solutions,
.industries,
.cases,
.process-section {
  margin: 6rem 0;
  padding: 0 5vw;
  box-sizing: border-box;
  max-width: calc(100% - 10vw);
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  overflow-y: hidden !important;
}

.about-contact .about {
  margin: 0;
  padding: 0;
}

.services-grid,
.solutions-grid,
.industries-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.case-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  background: var(--card);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.case-tab[data-case-filter="hr"]:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.case-tab[data-case-filter="service"]:hover {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.case-tab[data-case-filter="bigtech"]:hover {
  background: linear-gradient(135deg, #14b8a6, #10b981);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.case-tab[data-case-filter="marketing"]:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.35);
}

.case-tab--active[data-case-filter="hr"] {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.case-tab--active[data-case-filter="service"] {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.case-tab--active[data-case-filter="bigtech"] {
  background: linear-gradient(135deg, #14b8a6, #10b981);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
}

.case-tab--active[data-case-filter="marketing"] {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.4);
}

.case-tab--active[data-case-filter="all"] {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.service-card,
.solution-card,
.industry-card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  will-change: transform;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .solution-card,
[data-theme="dark"] .industry-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .service-card,
[data-theme="light"] .solution-card,
[data-theme="light"] .industry-card {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.case-card {
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  min-height: 380px;
}

/* Цветные рамки для карточек кейсов по категориям */
.case-card[data-case-category="hr"] {
  border-color: rgba(37, 99, 235, 0.4);
  border-width: 2px;
}

.case-card[data-case-category="service"] {
  border-color: rgba(14, 165, 233, 0.4);
  border-width: 2px;
}

.case-card[data-case-category="bigtech"] {
  border-color: rgba(20, 184, 166, 0.4);
  border-width: 2px;
}

.case-card[data-case-category="marketing"] {
  border-color: rgba(147, 51, 234, 0.4);
  border-width: 2px;
}

.service-card:hover,
.solution-card:hover,
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.case-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-card[data-case-category="hr"]:hover {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.case-card[data-case-category="service"]:hover {
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.case-card[data-case-category="bigtech"]:hover {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25);
}

.case-card[data-case-category="marketing"]:hover {
  border-color: rgba(147, 51, 234, 0.7);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.25);
}

[data-theme="light"] .case-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .case-card[data-case-category="hr"] {
  border-color: rgba(37, 99, 235, 0.3);
  border-width: 2px;
}

[data-theme="light"] .case-card[data-case-category="service"] {
  border-color: rgba(14, 165, 233, 0.3);
  border-width: 2px;
}

[data-theme="light"] .case-card[data-case-category="bigtech"] {
  border-color: rgba(20, 184, 166, 0.3);
  border-width: 2px;
}

[data-theme="light"] .case-card[data-case-category="marketing"] {
  border-color: rgba(147, 51, 234, 0.3);
  border-width: 2px;
}

[data-theme="light"] .case-card:hover {
  transform: translateY(-2px);
}

[data-theme="light"] .case-card[data-case-category="hr"]:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .case-card[data-case-category="service"]:hover {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .case-card[data-case-category="bigtech"]:hover {
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

[data-theme="light"] .case-card[data-case-category="marketing"]:hover {
  border-color: rgba(147, 51, 234, 0.6);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .case-card__header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .case-card__eyebrow {
  color: rgba(15, 23, 42, 0.9);
  text-shadow: none;
}

[data-theme="light"] .case-card__header .case-card__eyebrow {
  color: rgba(15, 23, 42, 0.9);
  text-shadow: none;
}

[data-theme="light"] .case-chip {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
  opacity: 1;
}

[data-theme="light"] .case-chip--muted {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.7);
}

.case-card--active {
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.2);
}

.service-card::after,
.solution-card::after,
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after,
.solution-card:hover::after,
.industry-card:hover::after {
  opacity: 1;
}

.service-card__icon,
.industry-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card__icon svg,
.industry-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3,
.solution-card h3,
.industry-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.015em;
}

[data-theme="dark"] .case-card h3 {
  color: #f1f5f9;
}

[data-theme="light"] .case-card h3 {
  color: #0f172a;
}

.service-card p,
.solution-card p,
.industry-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.5;
}

.solution-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.solution-card__time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.solution-card__metric {
  color: var(--primary);
  font-weight: 600;
}

.solution-card__features {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.solution-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.solution-card__stack {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.5;
  margin-top: 1rem;
}

.case-card__eyebrow {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
  text-align: left;
}

.case-card__header .case-card__eyebrow {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  right: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  width: calc(100% - 1.5rem);
  padding-right: 3rem;
}

.case-card__metrics {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-card__metrics li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  align-items: center;
}

.case-card__meta .case-chip--price {
  margin-left: auto;
  order: 2;
}

.case-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.75;
  border: 1px solid var(--border);
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.case-card__meta .case-chip--price {
  margin-left: auto;
  order: 2;
}

.case-chip--muted {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.case-card__header {
  position: relative;
  width: 100%;
  height: 70px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  /* Градиент применяется через inline стили из JavaScript */
}

.case-card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  object-fit: cover;
  max-width: 100%;
}

.case-card:hover .case-card__image {
  transform: scale(1.05);
}

.case-card__open {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
  color: var(--text);
  opacity: 0.9;
}

.case-card:hover .case-card__open {
  opacity: 1;
}

.case-card__open:hover {
  background: var(--card);
  color: var(--primary);
  border-color: var(--primary);
  opacity: 1;
}

.case-card__open svg {
  width: 20px;
  height: 20px;
}

.case-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.875rem;
}

.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  align-items: center;
  padding-top: 0.75rem;
}

.case-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.15s ease;
  width: 100%;
}

.case-card__cta:hover {
  background: #1d4ed8;
  transform: none;
}

.case-card__link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.case-card__link:hover {
  opacity: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  width: 100%;
}

@media (max-width: 1400px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    gap: 2.5rem;
  }

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

@media (max-width: 640px) {
  .services-grid,
  .solutions-grid,
  .industries-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }
}

.case-load-more-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
}

.case-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none;
}

.case-load-more:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

.case-load-more svg {
  transition: transform 0.15s ease;
}

.case-load-more:hover svg {
  transform: translateY(1px);
}

.case-card__description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  opacity: 0.8;
}

[data-theme="dark"] .case-card__description {
  color: rgba(241, 245, 249, 0.75);
}

[data-theme="light"] .case-card__description {
  color: rgba(15, 23, 42, 0.7);
}

.case-chip--price {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
  color: #059669;
  border-color: rgba(16, 185, 129, 0.4);
  border-width: 2px;
  opacity: 1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  position: relative;
  text-transform: none;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .case-chip--price {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.3));
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .case-chip--price {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.18));
  color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.case-card__cta {
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Модальное окно */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.case-modal--open {
  opacity: 1;
  visibility: visible;
}

.case-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.case-modal__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: min(85vh, 760px);
  background: var(--card);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .case-modal__content {
  background: var(--card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .case-modal__content {
  background: #ffffff;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.3);
}

.case-modal--open .case-modal__content {
  transform: scale(1);
}

.case-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .case-modal__close {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(241, 245, 249, 0.1);
}

[data-theme="light"] .case-modal__close {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.case-modal__close:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.case-modal__body {
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.case-modal__body::-webkit-scrollbar {
  display: none !important;
}

.case-modal__header {
  padding: 2rem 3rem 1.5rem;
  color: #ffffff;
  position: relative;
}

.case-modal__eyebrow {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
  margin-bottom: 1rem;
  font-weight: 700;
  width: 100%;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-modal__header h2 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
}

.case-modal__details {
  padding: 2rem 3rem 3rem;
}

.case-modal__section {
  margin-bottom: 2.5rem;
}

.case-modal__section:last-of-type {
  margin-bottom: 0;
}

.case-modal__section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.case-modal__section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.case-modal__section p:last-child {
  margin-bottom: 0;
}

.case-modal__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: 20px;
  transition: background 0.3s ease;
}

[data-theme="dark"] .case-modal__info {
  background: rgba(30, 41, 59, 0.4);
}

[data-theme="light"] .case-modal__info {
  background: rgba(15, 23, 42, 0.03);
}

.case-modal__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-modal__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.7;
}

.case-modal__value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.case-modal__actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.case-modal__close-btn {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.case-modal__close-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-modal__content {
    max-height: 90vh;
    border-radius: 24px;
  }

  .case-modal__header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .case-modal__header h2 {
    font-size: 1.5rem;
  }

  .case-modal__details {
    padding: 1.5rem;
  }

  .case-modal__info {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .case-modal__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

.case-page {
  background: var(--bg);
}

.nav--case {
  margin-bottom: 3rem;
}

.case-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.case-hero {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-hero__back {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.case-hero__summary {
  font-size: 1.25rem;
  color: var(--text);
  max-width: 860px;
}

.case-hero__chips,
.case-hero__chips .case-chip {
  margin-bottom: 0;
}

.case-metrics {
  margin: 4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.case-metric {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.case-metric p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.case-metric__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.case-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.case-block {
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.case-block h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.case-block p {
  color: var(--muted);
  line-height: 1.6;
}

.case-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--muted);
}

.case-cta {
  margin-top: 4rem;
  padding: 3rem;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(191, 219, 254, 0.98), rgba(147, 197, 253, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.case-cta__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Карусель процесса */
.process-carousel {
  margin-top: 3rem;
  position: relative;
  width: 100%;
  overflow-y: hidden !important;
}

.process-carousel__container {
  overflow-x: hidden; /* Скрываем карточки за пределами видимой области */
  overflow-y: hidden !important;
  border-radius: 24px;
  position: relative;
  width: 100%;
}

.process-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-y: hidden !important;
  overflow-x: visible; /* Разрешаем прокрутку по горизонтали */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  width: max-content !important; /* Трек должен быть достаточно широким для всех 6 карточек */
  flex-wrap: nowrap !important; /* Запрещаем перенос карточек */
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 карточки в строку */
  grid-template-rows: repeat(2, auto); /* 2 строки */
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

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

/* Анимация для карточек процесса - появление слева направо */
@keyframes processCardSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes processIconPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes processLineDraw {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 0.3;
  }
}

@keyframes processContentFade {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.25rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-60px) scale(0.9);
  min-width: 0;
  flex-shrink: 0;
  touch-action: none; /* Полностью отключаем touch-жесты */
  overscroll-behavior: none; /* Отключаем overscroll */
}

.process-card * {
  overflow-x: hidden !important;
  max-width: 100%;
}

/* Карточки в сетке */
.process-grid .process-card {
  opacity: 1;
  transform: translateX(0) scale(1);
  width: 100%;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 карточки в строку на планшетах */
    grid-template-rows: repeat(3, auto); /* 3 строки */
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr; /* 1 карточка в строку на мобильных */
    grid-template-rows: repeat(6, auto); /* 6 строк */
  }
}

/* Анимация для карточек процесса при появлении */
.process-card.process-card--animated {
  animation: processCardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.process-card.process-card--animated:nth-child(1) {
  animation-delay: 0.1s;
}

.process-card.process-card--animated:nth-child(2) {
  animation-delay: 0.2s;
}

.process-card.process-card--animated:nth-child(3) {
  animation-delay: 0.3s;
}

.process-card.process-card--animated:nth-child(4) {
  animation-delay: 0.4s;
}

.process-card.process-card--animated:nth-child(5) {
  animation-delay: 0.5s;
}

.process-card.process-card--animated:nth-child(6) {
  animation-delay: 0.6s;
}

/* Анимация иконок */
.process-card.process-card--animated .process-card__icon {
  opacity: 0;
  animation: processIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.process-card.process-card--animated:nth-child(1) .process-card__icon {
  animation-delay: 0.2s;
}

.process-card.process-card--animated:nth-child(2) .process-card__icon {
  animation-delay: 0.3s;
}

.process-card.process-card--animated:nth-child(3) .process-card__icon {
  animation-delay: 0.4s;
}

.process-card.process-card--animated:nth-child(4) .process-card__icon {
  animation-delay: 0.5s;
}

.process-card.process-card--animated:nth-child(5) .process-card__icon {
  animation-delay: 0.6s;
}

.process-card.process-card--animated:nth-child(6) .process-card__icon {
  animation-delay: 0.7s;
}

/* Анимация линий */
.process-card.process-card--animated .process-card__line {
  width: 0;
  opacity: 0;
  animation: processLineDraw 0.8s ease-out forwards;
}

.process-card.process-card--animated:nth-child(1) .process-card__line {
  animation-delay: 0.4s;
}

.process-card.process-card--animated:nth-child(2) .process-card__line {
  animation-delay: 0.5s;
}

.process-card.process-card--animated:nth-child(3) .process-card__line {
  animation-delay: 0.6s;
}

.process-card.process-card--animated:nth-child(4) .process-card__line {
  animation-delay: 0.7s;
}

.process-card.process-card--animated:nth-child(5) .process-card__line {
  animation-delay: 0.8s;
}

/* Анимация контента */
.process-card.process-card--animated .process-card__content {
  opacity: 0;
  animation: processContentFade 0.6s ease-out forwards;
}

.process-card.process-card--animated:nth-child(1) .process-card__content {
  animation-delay: 0.3s;
}

.process-card.process-card--animated:nth-child(2) .process-card__content {
  animation-delay: 0.4s;
}

.process-card.process-card--animated:nth-child(3) .process-card__content {
  animation-delay: 0.5s;
}

.process-card.process-card--animated:nth-child(4) .process-card__content {
  animation-delay: 0.6s;
}

.process-card.process-card--animated:nth-child(5) .process-card__content {
  animation-delay: 0.7s;
}

.process-card.process-card--animated:nth-child(6) .process-card__content {
  animation-delay: 0.8s;
}

[data-theme="dark"] .process-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .process-card {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.process-carousel__track .process-card:hover {
  transform: translateY(-6px) scale(1.02);
}

[data-theme="dark"] .process-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* Кнопки управления каруселью */
.process-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.process-carousel__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.process-carousel__btn:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .process-carousel__controls {
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .process-carousel__btn {
    width: 36px;
    height: 36px;
    border-width: 1.5px;
    font-size: 0.8rem;
  }
}

.process-carousel__btn:active {
  transform: scale(0.95);
}

.process-carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.process-carousel__btn:disabled:hover {
  background: var(--card);
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .process-carousel__btn {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(96, 165, 250, 0.5);
  color: rgba(96, 165, 250, 0.9);
}

[data-theme="dark"] .process-carousel__btn:hover {
  background: rgba(96, 165, 250, 0.2);
  color: rgba(147, 197, 253, 1);
  border-color: rgba(96, 165, 250, 0.8);
}

/* Индикаторы карусели */
.process-carousel__indicators {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.process-carousel__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.process-carousel__indicator:hover {
  background: rgba(37, 99, 235, 0.5);
  transform: scale(1.2);
}

.process-carousel__indicator.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

[data-theme="dark"] .process-carousel__indicator {
  background: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .process-carousel__indicator:hover {
  background: rgba(96, 165, 250, 0.5);
}

[data-theme="dark"] .process-carousel__indicator.active {
  background: rgba(96, 165, 250, 0.9);
}

.process-card__visual {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.process-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.process-card__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.3;
  transform-origin: left;
  transition: opacity 0.3s ease;
}

.process-card:last-child .process-card__line {
  display: none;
}

.process-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.process-card__content p {
  color: var(--muted);
  line-height: 1.6;
}

.about__features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

.about-contact {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 0 5vw;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .about-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
  }
}

.contact {
  padding: 4rem;
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.9));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  max-width: 100%;
  box-sizing: border-box;
}

.about-contact .contact {
  margin-top: 0;
  align-self: flex-start;
  padding-top: 0;
}

.about-contact .about {
  align-self: flex-start;
  padding-top: 0;
}

.about-contact .about .section-header {
  margin-top: 0;
  padding-top: 0;
}

.about-contact .contact .contact__content {
  margin-top: 0;
  padding-top: 0;
}

[data-theme="dark"] .contact {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(241, 245, 249, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.contact__content {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.contact__description {
  color: var(--muted);
  margin: 1rem 0 2rem;
  max-width: 600px;
}

.contact__form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact__channels p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.channel-option {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  will-change: transform, background;
}

[data-theme="dark"] .channel-option {
  border: 1px solid rgba(241, 245, 249, 0.15);
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
}

[data-theme="dark"] .channel-option:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

.channel-option--active {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .channel-option--active {
  background: linear-gradient(120deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .channel-option--active {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact__form input,
.contact__form textarea {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: inherit;
  resize: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  will-change: border-color, box-shadow;
}

.contact__form select {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  padding-right: 3rem;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  will-change: border-color, box-shadow, background;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
}

.contact__form select:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.contact__form select option {
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #0f172a;
  font-weight: 500;
}

.contact__form select option:checked {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

[data-theme="light"] .contact__form input,
[data-theme="light"] .contact__form textarea {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .contact__form select {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .contact__form select:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15), 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .contact__form select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .contact__form select option:checked {
  background: #2563eb;
  color: #ffffff;
}

.telegram-consent {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(88, 28, 135, 0.3);
  background: rgba(88, 28, 135, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Согласие на обработку персональных данных в форме контактов */
.contact__consent {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact__consent-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex-shrink: 0;
}

.contact__consent-checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact__consent-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  font-weight: bold;
}

.contact__consent-checkbox:hover {
  border-color: rgba(37, 99, 235, 0.6);
  transform: scale(1.05);
}

.contact__consent-checkbox:focus {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.contact__consent-text {
  flex: 1;
}

.contact__consent-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.contact__consent-link:hover {
  text-decoration-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .contact__consent-label {
  color: rgba(241, 245, 249, 0.7);
}

[data-theme="dark"] .contact__consent-checkbox {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(241, 245, 249, 0.3);
}

[data-theme="dark"] .contact__consent-checkbox:checked {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
  border-color: rgba(59, 130, 246, 0.8);
}

[data-theme="dark"] .contact__consent-link {
  color: rgba(96, 165, 250, 0.9);
  text-decoration-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .contact__consent-link:hover {
  color: rgba(147, 197, 253, 1);
  text-decoration-color: rgba(96, 165, 250, 0.6);
}

.telegram-consent.is-visible {
  display: block;
}

.telegram-consent__label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}

.telegram-consent__label input {
  margin-top: 0.2rem;
}

[data-theme="dark"] .telegram-consent {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(79, 70, 229, 0.15);
  color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .contact__form input,
[data-theme="dark"] .contact__form textarea {
  border: 1px solid rgba(241, 245, 249, 0.15);
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
}

[data-theme="dark"] .contact__form select {
  border: 1px solid rgba(241, 245, 249, 0.15);
  background-color: rgba(30, 41, 59, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  color: #f1f5f9;
}

[data-theme="dark"] .contact__form select:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background-color: rgba(30, 41, 59, 0.8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .contact__form select option {
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
}

[data-theme="dark"] .contact__form select option:checked {
  background: #3b82f6;
  color: #ffffff;
}

[data-theme="dark"] .contact__form input::placeholder,
[data-theme="dark"] .contact__form textarea::placeholder {
  color: rgba(241, 245, 249, 0.5);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.25);
}

.contact__form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 24px rgba(37, 99, 235, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 10L8 6L4 10' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
}

[data-theme="light"] .contact__form input:focus,
[data-theme="light"] .contact__form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 2px 4px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .contact__form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(37, 99, 235, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 10L8 6L4 10' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
}

[data-theme="dark"] .contact__form select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15), 0 0 24px rgba(96, 165, 250, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 10L8 6L4 10' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px 16px;
}

.footer {
  margin-top: 6rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(42, 18, 75, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Отключаем анимацию появления в темной теме для обычных reveal элементов */
[data-theme="dark"] .reveal:not(.process-card) {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

[data-theme="dark"] .reveal:not(.process-card).visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация процесса работает в обеих темах */
[data-theme="dark"] .process-card.process-card--animated {
  animation: processCardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  border-radius: 50%;
  left: 0;
  top: 0;
}

.cursor--outer {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease;
}

.cursor--inner {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor--hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes gridPulse {
  0% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.25;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    padding: 0 0 4rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero {
    padding: 4rem 1rem 3rem;
  }
  
  .stats-section,
  .services,
  .solutions,
  .industries,
  .cases,
  .about,
  .process-section {
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .about-contact {
    padding: 0 1rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav {
    position: sticky;
    top: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 5vw;
    margin: 0 auto 1.5rem;
    max-width: calc(100% - 10vw);
    width: 100%;
  }

  .nav__logo {
    font-size: 0.9rem;
  }

  .nav__logo-icon {
    width: 2rem;
    height: 2rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  }

  .nav__logo-text {
    font-size: 1rem;
  }

  .nav__links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .nav__links a {
    padding: 0.4rem 0.75rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-left: auto;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  /* Сворачивание header при скролле на мобильных */
  .nav--scrolled {
    padding: 0.5rem 1rem !important;
    min-height: auto !important;
    transition: padding 0.3s ease, min-height 0.3s ease;
    justify-content: center !important;
  }

  .nav--scrolled .nav__links {
    display: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .nav--scrolled .btn {
    display: none !important;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-width 0.3s ease;
  }

  .nav--scrolled .nav__logo {
    margin: 0 auto;
    flex-shrink: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 3rem;
  }

  .hero__content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero__features {
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .hero__features li {
    font-size: 0.9rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__visual {
    min-height: 280px;
    margin-top: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__visual img,
  .hero__visual svg {
    max-width: 100%;
    height: auto;
  }

  .hero-chat,
  .hero__chat {
    height: auto;
    max-height: none;
    min-height: 360px;
    overflow: visible;
  }

  .chat-shell,
  .chat-window {
    height: auto;
    min-height: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
  }

  .chat-log {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: none !important;
    overscroll-behavior: contain;
  }

  .hero__chat {
    max-width: 100%;
    padding: 1.25rem;
  }

  .hero__mockup {
    width: 100%;
    padding: 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__mockup img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-description {
    font-size: 0.95rem;
  }

  .services-grid,
  .solutions-grid,
  .industries-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
  }

  .service-card,
  .solution-card,
  .industry-card,
  .process-card {
    padding: 1.5rem;
  }
  
  .service-card__icon,
  .industry-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .service-card__icon svg,
  .industry-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-card {
    min-height: auto;
    overflow: hidden;
  }
  
  .case-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .case-card__header {
    height: 60px;
  }
  
  .case-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    max-width: 100%;
  }
  
  .case-card__eyebrow {
    font-size: 1rem;
    bottom: 0.5rem;
  }

  .case-card h3 {
    font-size: 1rem;
  }

  .case-card__description {
    font-size: 0.8rem;
  }
  
  .case-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    max-width: 100%;
  }
  
  .case-card__open {
    width: 28px;
    height: 28px;
  }
  
  .case-card__open svg {
    width: 16px;
    height: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card__value {
    font-size: 2rem;
  }

  .contact {
    padding: 2rem 1.5rem;
    border-radius: 24px;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .about-contact .contact {
    margin-top: 0;
    padding: 2rem 1.5rem;
  }

  .contact__content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .contact__form {
    gap: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .contact__form input,
  .contact__form textarea,
  .contact__form select {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .channel-options {
    flex-direction: column;
  }

  .channel-option {
    width: 100%;
    text-align: center;
  }

  .case-modal__content {
    max-width: calc(100vw - 1.5rem);
    border-radius: 20px;
    margin: 0.75rem;
  }

  .case-modal__header {
    padding: 1.25rem 1rem 0.75rem;
  }

  .case-modal__header h2 {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
    line-height: 1.2;
  }

  .case-modal__eyebrow {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .case-modal__details {
    padding: 1rem;
  }

  .case-modal__section {
    margin-bottom: 1.5rem;
  }

  .case-modal__section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .case-modal__section p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .case-modal__info {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .case-modal__label {
    font-size: 0.7rem;
  }

  .case-modal__value {
    font-size: 0.9rem;
  }

  .case-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .case-modal__close-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .case-modal__cta {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .hero::after {
    background-size: 80px 80px;
  }

  .hero::before {
    width: 60vw;
    height: 60vw;
  }
}

/* Оптимизация графики для мобильных устройств */
@media (max-width: 768px) {
  /* Уменьшаем blur эффекты для лучшей производительности */
  .nav,
  [data-theme="dark"] .nav {
    backdrop-filter: blur(8px) !important;
  }

  .hero::before {
    filter: blur(30px) !important; /* Уменьшаем blur с 60px до 30px */
  }

  .hero__halo {
    filter: blur(40px) !important; /* Уменьшаем blur с 80px до 40px */
  }

  .chat-shell {
    backdrop-filter: blur(10px) saturate(110%) !important; /* Уменьшаем blur */
  }

  .chat-window {
    backdrop-filter: blur(10px) saturate(120%) !important; /* Уменьшаем blur */
  }

  .hero__window {
    backdrop-filter: blur(10px) !important; /* Уменьшаем blur */
  }

  /* Упрощаем градиенты */
  [data-theme="light"] body {
    background: linear-gradient(160deg, #dbeafe 0%, #93c5fd 100%) !important;
    background-attachment: scroll !important; /* Отключаем fixed для мобильных */
  }

  /* Уменьшаем box-shadow */
  .nav,
  [data-theme="dark"] .nav {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  }

  .btn--primary:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2) !important;
  }

  /* Упрощаем анимации фона */
  .hero::after {
    animation: none !important; /* Отключаем анимацию gridPulse на мобильных */
  }

  .hero::before {
    animation: none !important; /* Отключаем анимацию pulse на мобильных */
  }

  /* Упрощаем code-background */
  .code-background {
    opacity: 0.2 !important; /* Уменьшаем непрозрачность */
  }

  [data-theme="dark"] .code-background {
    opacity: 0.25 !important;
  }

  .code-background__line {
    text-shadow: none !important; /* Убираем text-shadow для производительности */
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0.75rem 3rem;
    font-size: 15px;
    background-attachment: scroll !important; /* Отключаем fixed background */
  }

  .nav {
    top: 0.5rem;
    padding: 0.6rem 5vw;
    border-radius: 16px;
    margin: 0 auto 1rem;
    max-width: calc(100% - 10vw);
    width: 100%;
    min-height: 15vh;
  }

  .nav__logo-text {
    font-size: 0.85rem;
  }

  .nav__logo-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .nav__links {
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .nav__links a {
    padding: 0.4rem 0.5rem;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
    min-height: 44px;
  }

  /* Сворачивание header при скролле на мобильных */
  .nav--scrolled {
    padding: 0.5rem 1rem !important;
    min-height: auto !important;
    transition: padding 0.3s ease, min-height 0.3s ease;
    justify-content: center !important;
  }

  .nav--scrolled .nav__links {
    display: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .nav--scrolled .btn {
    display: none !important;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-width 0.3s ease;
  }

  .nav--scrolled .nav__logo {
    margin: 0 auto;
    flex-shrink: 0;
  }

  .hero {
    padding: 1.5rem 0.75rem 2rem;
    gap: 1.5rem;
  }

  .hero__content h1 {
    font-size: clamp(1.5rem, 8vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero__features {
    gap: 0.6rem;
    margin: 1.25rem 0;
  }

  .hero__features li {
    font-size: 0.85rem;
  }

  .hero__actions {
    gap: 0.6rem;
  }

  .hero__actions .btn {
    width: 100%;
    font-size: 0.85rem;
  }

  .hero__chat {
    padding: 0.9rem;
    border-radius: 24px;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__chat img,
  .hero__chat svg {
    max-width: 100%;
    height: auto;
  }

  .hero-chat,
  .hero__chat {
    height: auto;
    max-height: none;
    min-height: 300px;
  }

  .chat-shell,
  .chat-window {
    padding: 0.75rem;
    height: auto;
    min-height: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
  }

  .chat-log {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: none !important;
    overscroll-behavior: contain;
  }

  .stats-section,
  .services,
  .solutions,
  .industries,
  .cases,
  .about,
  .process-section {
    padding: 0 0.75rem;
    margin: 4rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    line-height: 1.2;
  }

  .section-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .service-card,
  .solution-card,
  .industry-card,
  .process-grid {
    grid-template-columns: repeat(6, minmax(260px, 1fr));
    gap: 1rem;
  }
  
  .process-card,
  .stat-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .stat-card__value {
    font-size: 1.75rem;
  }

  .case-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .case-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.9rem;
    min-height: 36px;
  }

  .case-card__header {
    height: 70px;
    padding: 0.6rem;
  }

  .case-card__eyebrow {
    font-size: 0.9rem;
    bottom: 0.5rem;
    left: 0.6rem;
    right: 0.6rem;
    width: calc(100% - 1.2rem);
    padding-right: 2.5rem;
  }
  
  .case-card__header {
    height: 100px;
  }

  .case-card h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .case-card__description {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Дополнительная оптимизация графики для маленьких экранов */
  .nav,
  [data-theme="dark"] .nav {
    backdrop-filter: blur(4px) !important; /* Еще больше уменьшаем blur */
  }

  .hero::before {
    filter: blur(20px) !important; /* Еще больше уменьшаем blur */
    width: 30vw !important;
    height: 30vw !important;
  }

  .hero__halo {
    filter: blur(25px) !important; /* Еще больше уменьшаем blur */
  }

  .chat-shell,
  .chat-window {
    backdrop-filter: blur(6px) !important; /* Минимальный blur */
  }

  /* Отключаем все анимации для максимальной производительности */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }

  /* Упрощаем градиенты до минимума */
  [data-theme="light"] body {
    background: #dbeafe !important; /* Простой цвет вместо градиента */
  }

  main {
    background: var(--bg) !important; /* Упрощаем градиент */
  }

  [data-theme="dark"] main {
    background: var(--bg) !important;
  }

  [data-theme="light"] main {
    background: var(--bg) !important;
  }

  /* Уменьшаем тяжелые box-shadow */
  .nav,
  [data-theme="dark"] .nav {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .btn--primary {
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2) !important;
  }

  .btn--primary:hover {
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25) !important;
  }

  /* Уменьшаем тени у карточек */
  .service-card,
  .solution-card,
  .case-card,
  .stat-card,
  .process-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  /* Отключаем code-background полностью на маленьких экранах */
  .code-background {
    display: none !important;
  }

  .contact {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  .contact__content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .contact__description {
    font-size: 0.9rem;
    padding: 0;
  }

  .contact__form {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .contact__form input,
  .contact__form textarea,
  .contact__form select {
    padding: 0.85rem;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .contact__form label {
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .channel-options {
    width: 100%;
    box-sizing: border-box;
  }

  .channel-option {
    padding: 0.6rem 1rem;
    min-height: 44px;
    font-size: 0.8rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .privacy-note {
    font-size: 0.8rem;
    padding: 0.7rem 0.9rem;
  }

  .about-contact {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    margin: 2rem 0 0;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
  }

  .about-contact .about {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .about-contact .contact {
    width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  .about__features li {
    font-size: 0.9rem;
  }

  .process-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .process-card__content h3 {
    font-size: 1.25rem;
  }

  .process-card__content p {
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem 0.75rem;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__visual,
  .hero__mockup {
    transform: none !important;
  }
}

