/*
Theme Name: Theseus Lab
Theme URI: https://theseuslab.ru
Author: Theseus Lab
Author URI: https://theseuslab.ru
Description: AI-компания — разработка решений на базе компьютерного зрения и автоматизации
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theseus-lab
*/

/* === CSS Variables === */
:root {
  /* Палитра из Readdy-макета */
  --color-bg: #0C0C0C;
  --color-bg-card: #111111;
  --color-bg-card-hover: #161616;
  --color-surface: #111111;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.1);

  --color-text: rgba(255, 255, 255, 0.85);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-text-accent: #E8FF47;

  --color-primary: #E8FF47;
  --color-primary-hover: #B8CC00;
  --color-primary-light: rgba(232, 255, 71, 0.1);
  --color-primary-text: #0C0C0C;

  --color-white: #ffffff;
  --color-cyan: #00F0FF;

  /* Типографика — Syne для заголовков, Inter для текста */
  --font-display: 'Syne', sans-serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Отступы (Readdy: py-32 = 8rem) */
  --section-padding: 8rem 0;
  --container-width: 1400px;
  --container-padding: 0 1.5rem;

  /* Скругления */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Анимации */
  --transition: 0.3s ease;
}

/* === Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* === Типографика === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--color-text-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--color-text-accent);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: var(--text-6xl);
  }
}

.section-title span.text-accent {
  font-family: inherit;
  font-weight: inherit;
}

/* Шум-оверлей (Readdy) */
.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* === Глобальные анимации (Readdy) === */
@keyframes flow-right {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

@keyframes flow-down {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

@keyframes scan-line {
  0% { top: 0%; }
  100% { top: 100%; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Flow-line — анимированные линии */
.flow-line-h {
  position: relative;
}

.flow-line-h::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-text-accent), transparent);
  animation: flow-right 2.5s ease-in-out infinite;
}

.flow-line-v {
  position: relative;
}

.flow-line-v::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 40%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-text-accent), transparent);
  animation: flow-down 2.5s ease-in-out infinite;
}

/* Reveal — появление при скролле (JS добавляет .revealed) */
.reveal-item {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.4);
  max-width: 20rem;
  line-height: 1.625;
}

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

/* === Секции === */
.section {
  padding: var(--section-padding);
}

.section.use-cases,
.section.tech,
.section.cta {
  background: var(--color-surface);
}

/* === Карточки === */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-text-accent);
}

/* === Tags / Badges === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-text-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* === Metric === */
.metric {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-accent);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === Утилиты === */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-text-accent); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* === Grid === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === Responsive === */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-3xl); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.5rem; }
}

/* === Попап === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.popup-content {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition);
}

.popup-close:hover {
  color: var(--color-white);
}

/* === CF7 стилизация === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--text-base);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.75rem;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-primary-hover);
}

/* CF7 — сообщения и валидация */
.wpcf7-response-output {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-top: 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.wpcf7-not-valid-tip {
  color: #f87171;
  font-size: var(--text-xs);
  margin-top: -0.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 0.75rem auto 0;
}

/* CF7 лейблы */
.wpcf7 label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  font-weight: 500;
}

/* === Фолбэк-форма (без CF7) === */
.theseus-form label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.theseus-form input[type="text"],
.theseus-form input[type="email"],
.theseus-form input[type="tel"],
.theseus-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 1rem;
}

.theseus-form input:focus,
.theseus-form textarea:focus {
  outline: none;
  border-color: rgba(232, 255, 71, 0.3);
  box-shadow: 0 0 0 3px rgba(232, 255, 71, 0.1);
}

.theseus-form button[type="submit"] {
  box-shadow: 0 0 32px rgba(232, 255, 71, 0.15);
}

/* Сообщения формы */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ========================
   HEADER / NAV (Readdy)
   ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(24px);
  border-bottom-color: transparent;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .nav {
    padding: 0 3.5rem;
  }
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo-icon {
  font-size: 1.5rem;
  color: var(--color-text-accent);
}

.nav-logo img {
  height: 2rem;
  width: auto;
  display: block;
}

.nav-center {
  display: none;
}

@media (min-width: 769px) {
  .nav-center {
    display: flex;
    align-items: center;
  }
}

.nav-right {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

@media (min-width: 769px) {
  .nav-right {
    display: flex;
  }
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-phone:hover {
  color: var(--color-white);
}

.nav-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.nav-tg:hover {
  color: var(--color-white);
}

.nav-tg i {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
  color: var(--color-white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.nav-burger:hover {
  color: var(--color-white);
}

.nav-burger-icon,
.nav-burger-close {
  font-size: 1.25rem;
}

.nav-burger-close {
  display: none;
}

.nav-burger.active .nav-burger-icon {
  display: none;
}

.nav-burger.active .nav-burger-close {
  display: block;
}

.nav-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav-mobile-menu.active {
    display: flex;
  }

  .nav-mobile-menu .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-phone-mobile {
    color: rgba(255, 255, 255, 0.6);
  }

  .nav-cta-mobile {
    justify-content: center;
    padding: 0.75rem 1.25rem;
    margin-top: 0.5rem;
  }
}

/* ========================
   HERO
   ======================== */
.hero {
  padding: 10rem 0 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Canvas: точечная сетка (JS рисует) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Grid-линии поверх canvas */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
}

/* Glow за курсором — позиция через JS */
.hero-glow {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(
    circle,
    rgba(232, 255, 71, 0.12) 0%,
    rgba(232, 255, 71, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 3;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Bottom fade — градиент внизу секции */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 5;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 2.5rem;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 32rem;
}

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

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
  .hero-desc {
    font-size: var(--text-base);
  }
}

/* ========================
   DIRECTION CARDS (Readdy)
   ======================== */
.directions-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .directions-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.directions-desc {
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-base);
  line-height: 1.625;
}

/* "нашей экспертизы" — приглушённый, не accent */
.text-muted-30 {
  color: rgba(255, 255, 255, 0.3);
}

/* Grid: gap-px + bg для зазоров */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .directions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.direction-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

.direction-card:hover {
  background: var(--color-bg-card-hover);
}

.direction-card-image {
  position: relative;
  width: 100%;
  height: 13rem;
  overflow: hidden;
}

.direction-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.direction-card:hover .direction-card-image img {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Gradient overlay */
.direction-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(17, 17, 17, 0.4) 50%,
    var(--color-bg)
  );
  pointer-events: none;
}

.direction-card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-card-icon i {
  font-size: 1.25rem;
  color: var(--color-text-accent);
}

.direction-card-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
}

.direction-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.direction-card-body h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.direction-card:hover .direction-card-body h3 {
  color: var(--color-text-accent);
}

.direction-card-body p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Pill-теги: rounded-full, border, hover -> lime */
.direction-tag {
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.direction-card:hover .direction-tag {
  border-color: rgba(232, 255, 71, 0.3);
  color: rgba(232, 255, 71, 0.7);
}

.direction-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.direction-card:hover .direction-link {
  color: var(--color-text-accent);
}

/* Accent line снизу при hover */
.direction-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-text-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.direction-card:hover .direction-accent-line {
  transform: scaleX(1);
}

/* ========================
   USE CASES (Readdy)
   ======================== */
.cases-header {
  margin-bottom: 5rem;
}

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

.case-card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.5s ease;
}

.case-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.case-card-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .case-card-inner {
    grid-template-columns: 1fr 420px;
  }
}

.case-card-content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.case-card-header {
  display: flex;
  gap: 1.5rem;
}

.case-card-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.case-card-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.case-card:hover .case-card-header h3 {
  color: var(--color-text-accent);
}

.case-card-header p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 36rem;
}

/* Pipeline: border rounded-lg, линии между с hover */
.case-pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-left: 2.5rem;
}

.pipeline-step {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.case-card:hover .pipeline-step {
  border-color: rgba(232, 255, 71, 0.25);
  color: rgba(255, 255, 255, 0.6);
}

.pipeline-line {
  position: relative;
  width: 2rem;
  height: 1px;
  margin: 0 0.125rem;
  background: rgba(255, 255, 255, 0.1);
}

.pipeline-line-hover {
  position: absolute;
  inset: 0;
  background: rgba(232, 255, 71, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-card:hover .pipeline-line-hover {
  opacity: 1;
}

.case-metric {
  margin-left: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.case-metric .metric {
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-accent);
}

.case-metric .metric-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
}

/* Картинка справа с gradient overlay */
.case-card-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .case-card-image {
    height: auto;
    min-height: 280px;
  }
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.5;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.case-card:hover .case-card-image img {
  opacity: 0.7;
  transform: scale(1.05);
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-surface),
    rgba(17, 17, 17, 0.2) 50%,
    transparent
  );
  pointer-events: none;
}

@media (max-width: 1023px) {
  .case-card-overlay {
    background: linear-gradient(
      to top,
      var(--color-surface),
      transparent 50%,
      transparent
    );
  }

  .case-card-content {
    padding: 1.5rem;
  }

  .case-pipeline {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .pipeline-line {
    display: none;
  }

  .case-metric {
    margin-left: 0;
  }
}

/* ========================
   PROCESS (Readdy)
   ======================== */
.process {
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-primary);
  filter: blur(120px);
  opacity: 0.04;
  pointer-events: none;
}

.process-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .process-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.process-desc {
  max-width: 24rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* Desktop: кружки 104px, progress-line */
.process-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .process-desktop {
    display: block;
    position: relative;
  }

  /* Обёртка без высоты в потоке: линия top:52px совпадает с центром кружков (104px) в .process-stages */
  .process-progress-wrap {
    position: relative;
    margin-bottom: 0;
    pointer-events: none;
  }

  .process-progress-bg {
    position: absolute;
    top: 52px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
  }

  .process-progress-fill {
    position: absolute;
    top: 52px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-accent);
    transform: translateY(-50%);
    transition: width 0.45s ease, left 0.45s ease;
  }

  .process-stages {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .process-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 0 0.25rem;
  }

  .process-stage-circle {
    position: relative;
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-card);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
  }

  .process-stage:hover .process-stage-circle,
  .process-stage.active .process-stage-circle {
    border-color: var(--color-text-accent);
    background: var(--color-text-accent);
    box-shadow: 0 0 32px rgba(232, 255, 71, 0.25);
  }

  .process-stage-circle i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
  }

  .process-stage:hover .process-stage-circle i,
  .process-stage.active .process-stage-circle i {
    color: var(--color-bg);
  }

  .process-stage-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-display);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }

  .process-stage:hover .process-stage-badge,
  .process-stage.active .process-stage-badge {
    background: var(--color-bg);
    color: var(--color-text-accent);
  }

  .process-stage-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
  }

  .process-stage:hover .process-stage-tag,
  .process-stage.active .process-stage-tag {
    color: var(--color-text-accent);
  }

  .process-stage h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
  }

  .process-stage:hover h3,
  .process-stage.active h3 {
    color: var(--color-white);
  }

  /* Под заголовком: текст всегда в потоке (без max-height), видимость — opacity → без скачка */
  .process-stage-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .process-stage-desc {
    font-size: var(--text-xs);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    padding: 0 0.25rem;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .process-stage:hover .process-stage-desc,
  .process-stage.active .process-stage-desc {
    opacity: 1;
  }

  .process-stage-duration {
    margin-top: 0;
    padding: 0.25rem 0.75rem;
    font-size: 10px;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  }

  .process-stage:hover .process-stage-duration,
  .process-stage.active .process-stage-duration {
    opacity: 1;
    background: rgba(232, 255, 71, 0.1);
    border-color: rgba(232, 255, 71, 0.2);
    color: var(--color-text-accent);
  }
}

/* Mobile: вертикальные карточки */
.process-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .process-mobile {
    display: none;
  }
}

.process-mobile-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-bg-card);
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.process-mobile-card:hover {
  border-color: rgba(232, 255, 71, 0.3);
}

.process-mobile-num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  display: block;
  margin-bottom: 0.5rem;
}

.process-mobile-content {
  margin-top: -0.5rem;
}

.process-mobile-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.process-mobile-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 255, 71, 0.1);
  border-radius: 0.5rem;
}

.process-mobile-icon i {
  font-size: 1rem;
  color: var(--color-text-accent);
}

.process-mobile-content .process-stage-tag {
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: var(--color-text-accent);
}

.process-mobile-content .process-stage-duration {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.3);
}

.process-mobile-content h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.375rem;
}

.process-mobile-content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.process-mobile-connector {
  position: absolute;
  bottom: -1rem;
  left: 2.5rem;
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================
   ARCHITECTURE
   ======================== */
.architecture-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .architecture-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.architecture-desc {
  max-width: 20rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* Desktop: горизонтальный ряд со стрелками */
.architecture-layers {
  display: none;
}

@media (min-width: 1024px) {
  .architecture-layers {
    display: flex;
    align-items: stretch;
    gap: 0;
  }

  .architecture-layer {
    display: flex;
    align-items: stretch;
    flex: 1;
  }

  .architecture-card {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-bg-card-hover);
    cursor: pointer;
    transition: all 0.4s ease;
  }

  .architecture-card:hover {
    border-color: rgba(232, 255, 71, 0.3);
    background: var(--color-surface);
  }

  .architecture-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .architecture-num {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.15);
  }

  .architecture-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .architecture-icon i {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease;
  }

  .architecture-card:hover .architecture-icon i {
    color: var(--color-text-accent);
  }

  .architecture-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .architecture-card:hover h3 {
    color: var(--color-text-accent);
  }

  .architecture-card p {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
    flex: 1;
  }

  .architecture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .architecture-tag {
    padding: 0.125rem 0.5rem;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
  }

  .architecture-card:hover .architecture-tag {
    border-color: rgba(232, 255, 71, 0.2);
    color: rgba(255, 255, 255, 0.5);
  }

  .architecture-arrow {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    flex-shrink: 0;
  }

  .architecture-arrow i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
  }
}

/* Mobile: вертикальный стек */
.architecture-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .architecture-mobile {
    display: none;
  }
}

.architecture-mobile-item {
  margin-bottom: 0.75rem;
}

.architecture-mobile .architecture-card {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--color-bg-card-hover);
  transition: border-color 0.3s ease;
}

.architecture-mobile .architecture-card:hover {
  border-color: rgba(232, 255, 71, 0.3);
}

.architecture-mobile-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.architecture-mobile .architecture-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.architecture-mobile .architecture-icon i {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.25);
}

.architecture-mobile .architecture-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
  margin-right: 0.5rem;
}

.architecture-mobile .architecture-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  display: inline;
}

.architecture-mobile .architecture-card p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

.architecture-arrow-down {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}

.architecture-arrow-down i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.15);
}

/* ========================
   TECH BADGES (Readdy)
   ======================== */
.tech-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .tech-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.tech-desc {
  max-width: 18rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* 6 колонок, gap-px, bg для зазоров */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--color-bg-card);
}

.tech-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-badge-icon i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.tech-badge:hover .tech-badge-icon i {
  color: var(--color-text-accent);
}

.tech-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-xs);
  text-align: center;
  transition: color 0.3s ease;
}

.tech-badge:hover .tech-name {
  color: rgba(255, 255, 255, 0.7);
}

.tech-cat {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s ease;
}

.tech-badge:hover .tech-cat {
  color: rgba(232, 255, 71, 0.5);
}

/* ========================
   PORTFOLIO (Readdy)
   ======================== */
.portfolio-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .portfolio-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

.portfolio-card:hover {
  background: var(--color-bg-card-hover);
}

.portfolio-card-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.5;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  opacity: 0.7;
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg),
    rgba(17, 17, 17, 0.4) 50%,
    transparent
  );
  pointer-events: none;
}

/* Tag на картинке с backdrop-blur */
.portfolio-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  background: rgba(12, 12, 12, 0.6);
}

.portfolio-card-content {
  padding: 2rem;
}

.portfolio-card-content h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-content h3 {
  color: var(--color-text-accent);
}

.portfolio-card-content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-metric .metric {
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-accent);
}

.portfolio-metric .metric-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

/* Accent line снизу при hover */
.portfolio-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-text-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-accent-line {
  transform: scaleX(1);
}

/* ========================
   CTA (Readdy)
   ======================== */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(232, 255, 71, 0.05) 0%,
    transparent 70%
  );
}

.cta-block {
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .cta-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 5rem;
    gap: 3rem;
  }
}

.cta-content {
  max-width: 36rem;
}

.cta-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: 1.5rem;
}

.cta-form-wrap {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .cta-form-wrap {
    width: 480px;
    flex-shrink: 0;
  }
}

.cta-form,
.cta-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form input,
.cta-form-wrap .wpcf7 input[type="text"],
.cta-form-wrap .wpcf7 input[type="tel"],
.cta-form-wrap .wpcf7 input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease;
}

.cta-form input::placeholder,
.cta-form-wrap .wpcf7 input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-form input:focus,
.cta-form-wrap .wpcf7 input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-form .btn,
.cta-form-wrap .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-form .btn:hover,
.cta-form-wrap .wpcf7 input[type="submit"]:hover {
  background: var(--color-white);
}

.cta-privacy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-top: 2rem;
}

/* ========================
   FOOTER (Readdy)
   ======================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo i {
  font-size: 1.5rem;
  color: var(--color-text-accent);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  max-width: 20rem;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
}

.footer-links,
.footer-contacts {
  list-style: none;
}

.footer-links li,
.footer-contacts li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contacts li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

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

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contacts li i {
  font-size: 0.875rem;
  color: rgba(232, 255, 71, 0.6);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  color: var(--color-text-accent);
  border-color: rgba(232, 255, 71, 0.3);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .cta-block { padding: 2rem 1.5rem; }
  .footer-grid { text-align: left; }
  .footer-brand-desc { max-width: none; }
  .footer-brand-logo { justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; }
  .footer-bottom-links { flex-wrap: wrap; }
}

/* ============================================================
   EXPERTISE / MACHINE VISION — Страница услуги
   ============================================================ */

/* ========================
   EXP-HERO
   ======================== */
.exp-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 11rem 0 6rem;
}

.exp-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.exp-hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
}

.exp-hero-glow {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(232, 255, 71, 0.20) 0%,
    rgba(232, 255, 71, 0.08) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 3;
}

.exp-hero-content-wrap {
  position: relative;
  z-index: 10;
}

.exp-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  font-size: var(--text-xs);
}

.exp-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition);
}

.exp-hero-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.exp-hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}

.exp-hero-breadcrumb span.current {
  color: rgba(255, 255, 255, 0.6);
}

.exp-hero-breadcrumb i {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.exp-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .exp-hero-layout {
    flex-direction: row;
    gap: 6rem;
    align-items: flex-start;
  }
}

.exp-hero-main {
  flex: 1;
  min-width: 0;
}

.exp-hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.exp-hero-title span {
  color: var(--color-primary);
}

.exp-hero-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.45);
  max-width: 32rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 3rem;
}

.exp-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 5;
}

@media (max-width: 768px) {
  .exp-hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
}

/* ========================
   EXP-PROBLEMS
   ======================== */
.exp-problems-header {
  margin-bottom: 4rem;
}

.exp-problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exp-problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .exp-problems-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-problem-card {
  background: var(--color-bg);
  padding: 2rem;
  transition: background 0.3s ease;
  cursor: default;
}

.exp-problem-card:hover {
  background: #131313;
}

.exp-problem-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.exp-problem-icon i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.exp-problem-card:hover .exp-problem-icon i {
  color: var(--color-primary);
}

.exp-problem-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.exp-problem-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.625;
}

/* ========================
   EXP-SOLUTION
   ======================== */
.exp-solution {
  background: var(--color-surface);
}

.exp-solution-header {
  margin-bottom: 4rem;
}

.exp-solution-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .exp-solution-layout {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
}

.exp-solution-list {
  flex: 1;
  min-width: 0;
}

.exp-solution-lead {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.625;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.exp-solution-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.exp-solution-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(232, 255, 71, 0.10);
  margin-top: 0.125rem;
}

.exp-solution-item-icon i {
  font-size: 1.125rem;
  color: var(--color-primary);
}

.exp-solution-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.exp-solution-item p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.625;
}

.exp-solution-image {
  width: 100%;
}

@media (min-width: 1024px) {
  .exp-solution-image {
    width: 520px;
    flex-shrink: 0;
  }
}

.exp-solution-image-wrap {
  width: 100%;
  height: 440px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.exp-solution-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.exp-solution-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.55) 0%, transparent 60%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .exp-solution-image-wrap {
    height: 280px;
  }
}

/* ========================
   EXP-HOW-IT-WORKS
   ======================== */
.exp-hiw-header {
  margin-bottom: 4rem;
}

.exp-hiw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exp-hiw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .exp-hiw-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.exp-hiw-step {
  background: var(--color-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  cursor: default;
  transition: background 0.3s ease;
}

.exp-hiw-step:hover {
  background: #131313;
}

.exp-hiw-step-num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.exp-hiw-step-num span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(232, 255, 71, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exp-hiw-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.exp-hiw-step:hover .exp-hiw-step-line {
  background: rgba(232, 255, 71, 0.25);
}

.exp-hiw-step-duration {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.exp-hiw-step:hover .exp-hiw-step-duration {
  border-color: rgba(232, 255, 71, 0.25);
  color: rgba(232, 255, 71, 0.7);
}

.exp-hiw-step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.exp-hiw-step:hover h3 {
  color: var(--color-primary);
}

.exp-hiw-step p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.625;
}

.exp-hiw-step-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.exp-hiw-step:hover .exp-hiw-step-accent {
  transform: scaleX(1);
}

/* ========================
   EXP-SCENARIOS
   ======================== */
.exp-scenarios {
  background: var(--color-surface);
}

.exp-scenarios-header {
  margin-bottom: 4rem;
}

.exp-scenarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .exp-scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .exp-scenarios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-scenario-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  cursor: default;
  transition: border-color 0.3s ease;
}

.exp-scenario-card:hover {
  border-color: rgba(232, 255, 71, 0.3);
}

.exp-scenario-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.exp-scenario-card:hover .exp-scenario-icon {
  background: rgba(232, 255, 71, 0.1);
}

.exp-scenario-icon i {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.exp-scenario-card:hover .exp-scenario-icon i {
  color: var(--color-primary);
}

.exp-scenario-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.exp-scenario-card:hover h3 {
  color: var(--color-primary);
}

.exp-scenario-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.625;
  margin-bottom: 1.25rem;
}

.exp-scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-scenario-tag {
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.exp-scenario-card:hover .exp-scenario-tag {
  border-color: rgba(232, 255, 71, 0.25);
  color: rgba(232, 255, 71, 0.6);
}

/* ========================
   EXP-INDUSTRIES
   ======================== */
.exp-industries-header {
  margin-bottom: 4rem;
}

.exp-industries-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .exp-industries-panel {
    flex-direction: row;
  }
}

.exp-industries-tabs {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .exp-industries-tabs {
    flex-direction: column;
    width: 16rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: visible;
  }
}

.exp-industries-tab {
  flex: 1;
  padding: 1.25rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

@media (min-width: 1024px) {
  .exp-industries-tab {
    flex: none;
    white-space: normal;
  }
}

.exp-industries-tab:last-child {
  border-bottom: none;
}

.exp-industries-tab:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.exp-industries-tab.active {
  color: var(--color-primary);
  background: rgba(232, 255, 71, 0.05);
}

.exp-industries-tab-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
  display: none;
}

@media (min-width: 1024px) {
  .exp-industries-tab-bar {
    display: block;
  }
}

.exp-industries-content {
  display: none;
  flex: 1;
}

.exp-industries-content.active {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .exp-industries-content.active {
    flex-direction: row;
  }
}

.exp-industries-image {
  width: 100%;
  height: 14rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .exp-industries-image {
    width: 400px;
    height: auto;
  }
}

.exp-industries-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.exp-industries-info {
  flex: 1;
  padding: 2.5rem;
}

.exp-industries-info h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.exp-industries-info > p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.exp-industries-info ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.exp-industries-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.exp-industries-info li i {
  color: var(--color-primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.exp-industries-case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}

.exp-industries-case-link:hover {
  color: var(--color-primary);
}

/* ========================
   EXP-BENEFITS
   ======================== */
.exp-benefits {
  background: var(--color-surface);
}

.exp-benefits-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .exp-benefits-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.exp-benefits-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  max-width: 20rem;
  line-height: 1.625;
}

.exp-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .exp-benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.exp-benefit-card {
  background: var(--color-surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
  transition: background 0.3s ease;
}

.exp-benefit-card:hover {
  background: #151515;
}

.exp-benefit-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-benefit-icon i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s ease;
}

.exp-benefit-card:hover .exp-benefit-icon i {
  color: var(--color-primary);
}

.exp-benefit-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.exp-benefit-metric-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.375rem;
  line-height: 1.3;
}

.exp-benefit-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.exp-benefit-card p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.625;
}

/* ========================
   EXP-IMPLEMENTATION
   ======================== */
.exp-impl-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .exp-impl-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.exp-impl-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  max-width: 20rem;
  line-height: 1.625;
}

.exp-impl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .exp-impl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .exp-impl-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.exp-impl-card {
  background: var(--color-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.3s ease;
}

.exp-impl-card:hover {
  background: var(--color-surface);
}

.exp-impl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.exp-impl-card-num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
}

.exp-impl-card-duration {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.exp-impl-card:hover .exp-impl-card-duration {
  border-color: rgba(232, 255, 71, 0.25);
  color: rgba(232, 255, 71, 0.6);
}

.exp-impl-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.exp-impl-card:hover h3 {
  color: var(--color-primary);
}

.exp-impl-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.exp-impl-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.exp-impl-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232, 255, 71, 0.4);
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.exp-impl-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.exp-impl-card:hover .exp-impl-card-accent {
  transform: scaleX(1);
}


/* ============================================
   BLOG / CASES / CONTACT / ARTICLE PAGES
   ============================================ */

/* --- Утилиты --- */
.container-wide {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 4rem; }
}

.text-muted-25 { color: rgba(255, 255, 255, 0.25); }
.text-muted-30 { color: rgba(255, 255, 255, 0.30); }
.text-accent { color: var(--color-primary); }
.text-accent-lg {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-main);
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-accent:hover { background: var(--color-white); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: rgba(232, 255, 71, 0.5);
  color: var(--color-primary);
}

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 0.625rem 1rem; font-size: var(--text-xs); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.section-label__line {
  width: 1.5rem;
  height: 1px;
  background: var(--color-primary);
}
.section-label__text {
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-main);
}

/* --- Blog / Cases Hero --- */
.blog-hero {
  position: relative;
  padding: 12rem 0 7rem;
  overflow: hidden;
  background: var(--color-bg);
}
.blog-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.blog-hero__glow {
  position: absolute;
  top: 40%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(232,255,71,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero__glow--left { left: 30%; }
.blog-hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}
.blog-hero__inner { position: relative; z-index: 2; }
.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 2rem;
  max-width: 48rem;
}
.blog-hero__desc {
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.4);
  max-width: 32rem;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Rubricator --- */
.blog-rubricator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.blog-rubricator__btn {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.blog-rubricator__btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}
.blog-rubricator__btn.is-active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}
.blog-rubricator__count {
  margin-left: auto;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
}

/* --- Blog / Cases listing --- */
.blog-listing {
  padding: 5rem 0;
  background: var(--color-bg);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
.blog-grid--related { margin-top: 2.5rem; }

/* --- Blog card --- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.blog-card:hover { background: var(--color-bg-card); }

.blog-card__image {
  position: relative;
  height: 15rem;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.5;
  transition: all 0.7s;
}
.blog-card:hover .blog-card__img {
  opacity: 0.7;
  transform: scale(1.05);
}
.blog-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(12,12,12,0.2), var(--color-bg));
}
.blog-card__image-overlay--surface {
  background: linear-gradient(to bottom, transparent, rgba(17,17,17,0.2), var(--color-surface));
}
.blog-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(8px);
}
.blog-card__num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.blog-card__result {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}
.blog-card__result-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}
.blog-card__result-label {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.4);
}

.blog-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s;
}
.blog-card:hover .blog-card__title { color: var(--color-primary); }
.blog-card__title--sm { font-size: var(--text-lg); }

.blog-card__excerpt {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-sm);
  font-family: var(--font-main);
  line-height: 1.6;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
}
.blog-card__date {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
}
.blog-card__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s;
  white-space: nowrap;
}
.blog-card:hover .blog-card__link { color: var(--color-primary); }

.blog-card__hover-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card__hover-line { transform: scaleX(1); }

/* Скрытые карточки при фильтрации / пагинации */
.blog-card.is-hidden { display: none; }

.blog-show-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
  text-align: center;
}
.blog-empty i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
}
.blog-empty p {
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-main);
  font-size: var(--text-sm);
}

/* --- CTA strip --- */
.cta-strip {
  padding: 5rem 0;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.cta-strip__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}
.cta-strip__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .cta-strip__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .cta-strip__title { font-size: var(--text-4xl); }
}

/* --- Article Hero --- */
.article-hero {
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
  background: var(--color-bg);
}
.article-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.article-hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}
.article-hero__content { max-width: 48rem; }
.article-hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid rgba(232, 255, 71, 0.3);
  color: var(--color-primary);
  background: rgba(232, 255, 71, 0.08);
  margin-bottom: 1.5rem;
}
.article-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.article-hero__desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-base);
  font-family: var(--font-main);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 40rem;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
}
.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-hero__meta-item i { color: rgba(255, 255, 255, 0.2); }

.article-hero__result {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 255, 71, 0.2);
  background: rgba(232, 255, 71, 0.05);
}
.article-hero__result-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
}
.article-hero__result-label {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.4);
}

.article-hero__image {
  position: relative;
  width: 100%;
  height: 26.25rem;
  overflow: hidden;
}
.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.55;
}
.article-hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,12,12,0.3), transparent, var(--color-bg));
}

/* --- Breadcrumb --- */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
}
.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.article-breadcrumb a:hover { color: var(--color-primary); }
.article-breadcrumb__current { color: var(--color-primary); }

/* --- Article layout (content + TOC) --- */
.article-content {
  padding: 4rem 0;
  background: var(--color-bg);
}
.article-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}
.article-body {
  flex: 1;
  min-width: 0;
}

/* Стили Gutenberg-контента внутри .article-body */
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-base);
  font-family: var(--font-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}
.article-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  font-family: var(--font-main);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.article-body li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  border-left: 2px solid var(--color-primary);
  background: rgba(232, 255, 71, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.article-body blockquote p {
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin-bottom: 0;
}
.article-body pre {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-body pre code {
  display: block;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(232, 255, 71, 0.8);
  line-height: 1.6;
  overflow-x: auto;
  background: var(--color-surface);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

/* --- Article footer --- */
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.article-footer__back:hover { color: var(--color-primary); }
.article-footer__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.2);
}
.article-footer__copy-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition);
}
.article-footer__copy-link:hover {
  border-color: rgba(232, 255, 71, 0.3);
  color: rgba(232, 255, 71, 0.6);
}

/* --- TOC sidebar --- */
.article-toc {
  display: none;
}
@media (min-width: 1280px) {
  .article-toc {
    display: block;
    width: 16rem;
    flex-shrink: 0;
    position: sticky;
    top: 7rem;
    align-self: flex-start;
  }
}
.article-toc__label {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.article-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.article-toc__item {
  width: 100%;
  text-align: left;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  line-height: 1.3;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border-radius: 0.5rem;
  border-left: 2px solid transparent;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}
.article-toc__item:hover { color: rgba(255, 255, 255, 0.6); }
.article-toc__item.is-active {
  color: var(--color-primary);
  background: rgba(232, 255, 71, 0.08);
  border-left: 2px solid var(--color-primary);
}

.article-toc__cta {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-surface);
}
.article-toc__cta p {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.article-toc__result-card {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 255, 71, 0.15);
  background: rgba(232, 255, 71, 0.05);
}
.article-toc__result-card-label {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.25rem;
}
.article-toc__result-value {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.article-toc__result-sublabel {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.35);
}
.article-toc__result-meta {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
}

/* --- Related section --- */
.article-related {
  padding: 5rem 0;
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.blog-card--related { background: var(--color-surface); }
.blog-card--related:hover { background: var(--color-bg-card); }

/* --- Contact page --- */
.contact-title {
  padding: 5rem 0 2.5rem;
  background: var(--color-bg);
}
.contact-title__label {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}
.contact-title__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-4xl);
  color: var(--color-white);
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .contact-title__heading { font-size: var(--text-5xl); }
}

/* Contact strip */
.contact-strip { background: var(--color-bg); }
.contact-strip__row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.contact-strip__item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.5);
}
.contact-strip__item--link {
  text-decoration: none;
  transition: color var(--transition);
}
.contact-strip__item--link:hover { color: var(--color-white); }
.contact-strip__icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-strip__icon i { color: var(--color-primary); }
.contact-strip__link {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-strip__link:hover { color: var(--color-white); }
.contact-strip__messengers {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: 0.25rem;
}
.contact-strip__messenger {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border-radius: 0.25rem;
  transition: color var(--transition);
  text-decoration: none;
}
.contact-strip__messenger:hover { color: var(--color-white); }

@media (max-width: 768px) {
  .contact-strip__row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact-strip__item { justify-content: flex-start; }
}

/* Contact form + map */
.contact-main {
  padding: 2.5rem 0 5rem;
  background: var(--color-bg);
}
.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .contact-main__grid { grid-template-columns: 1fr 1fr; }
}

.contact-form-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 231, 235, 0.1);
  background: var(--color-bg-card);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}
.contact-form-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
  .contact-form-card__title { font-size: var(--text-4xl); }
}
.contact-form-card__desc {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 20rem;
}

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #1C1C1C;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: var(--color-white);
  transition: background var(--transition);
  outline: none;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  background: #222222;
}
.contact-form__textarea { resize: none; }
.contact-form__textarea-wrap { position: relative; }
.contact-form__counter {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transition: color var(--transition);
}
.contact-form__counter.is-warning { color: rgba(232, 255, 71, 0.6); }

.contact-form__disclaimer {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}
.contact-form__status {
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: var(--font-main);
  text-align: center;
}
.contact-form__status--ok {
  border: 1px solid rgba(232, 255, 71, 0.2);
  color: rgba(232, 255, 71, 0.8);
}
.contact-form__status--error {
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgba(239, 68, 68, 0.8);
}

/* Contact map */
.contact-map {
  flex: 1;
  min-height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.1);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85);
}
.contact-map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 500px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  text-align: center;
  padding: 2rem;
}
.contact-map__placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- Case gallery --- */
.case-gallery {
  padding-bottom: 5rem;
  background: var(--color-bg);
}
.case-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.case-gallery__count {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.25);
}
.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.case-gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg);
  height: 220px;
  transition: background var(--transition);
}
.case-gallery__item:hover { background: var(--color-bg-card); }
.case-gallery__item--wide {
  grid-column: span 2;
  height: 280px;
}
.case-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.5s;
}
.case-gallery__item:hover .case-gallery__img {
  opacity: 0.85;
  transform: scale(1.05);
}
.case-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-gallery__item:hover .case-gallery__overlay { opacity: 1; }
.case-gallery__zoom {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: var(--text-lg);
}
.case-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.case-gallery__item:hover .case-gallery__caption { transform: translateY(0); }
.case-gallery__caption p {
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .case-gallery__grid { grid-template-columns: 1fr 1fr; }
  .case-gallery__item--wide { grid-column: span 2; }
  .case-gallery__item { height: 180px; }
  .case-gallery__item--wide { height: 220px; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}
.lightbox__close:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.lightbox__counter {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.lightbox__body {
  max-width: 64rem;
  width: 100%;
  margin: 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__img-wrap {
  max-height: 75vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox__caption {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  max-width: 32rem;
}
.lightbox__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.lightbox__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.lightbox__dot:hover { background: rgba(255, 255, 255, 0.4); }
.lightbox__dot.is-active {
  width: 1rem;
  height: 6px;
  border-radius: 3px;
  background: var(--color-primary);
}

/* --- Reveal animation --- */
.reveal-item {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   COOKIE BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .cookie-banner__inner {
    padding: 0 4rem;
  }
}

.cookie-banner__text {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 255, 71, 0.3);
  transition: border-color var(--transition);
}

.cookie-banner__link:hover {
  border-color: var(--color-primary);
}

.cookie-banner__accept {
  flex-shrink: 0;
  padding: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-main);
  background: var(--color-primary);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cookie-banner__accept:hover {
  background: var(--color-white);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }
  .cookie-banner__accept {
    width: 100%;
  }
}

/* ========================
   SCROLL TO TOP
   ======================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top i {
  font-size: 1.25rem;
  line-height: 1;
}

.scroll-top:hover {
  border-color: rgba(232, 255, 71, 0.5);
  color: var(--color-primary);
  background: rgba(232, 255, 71, 0.08);
}

/* Сдвигаем кнопку вверх, когда cookie-баннер виден */
.cookie-banner.is-visible ~ .scroll-top {
  bottom: 5.5rem;
}

@media (max-width: 640px) {
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .cookie-banner.is-visible ~ .scroll-top {
    bottom: 6.5rem;
  }
}

/* ===== Language Switcher (Polylang) ===== */

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.lang-switcher li {
  display: inline-flex;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-switcher--mobile {
  margin-bottom: 0.5rem;
}

.lang-switcher--mobile a {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
}

/* === FAQ Section === */

.section.faq {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.faq-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

.section.faq .container {
  max-width: 860px;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.faq-label-line {
  width: 1.5rem;
  height: 1px;
  background: var(--color-primary);
}

.faq-lead {
  font-size: var(--text-sm);
  font-family: var(--font-main);
  line-height: 1.6;
  max-width: 28rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.4);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.faq-question i {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-question {
  color: var(--color-primary);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--text-sm);
  font-family: var(--font-main);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* === Section CTA Row (inline кнопка после секций) === */

.section-cta-row {
  text-align: center;
  margin-top: 3rem;
}
