/* ============================================
   COMPONENTS — Кнопки, навигация, карточки
   ============================================ */

/* ══════════════════════════════════════════════
   ПОРТФОЛИО ПЛИТКИ С АНИМИРОВАННЫМИ КАРТИНКАМИ
   ══════════════════════════════════════════════ */

.portfolio-tile-media {
  position: relative;
  overflow: hidden;
  height: 240px;
  border-bottom: 1px solid var(--tile-border);
}

.portfolio-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.tile:hover .portfolio-tile-img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.portfolio-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 16, 0.7) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tile:hover .portfolio-tile-overlay {
  opacity: 0.6;
}

/* ── Горизонтальный блок портфолио (3 проекта) ── */
.portfolio-showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-showcase-card {
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.portfolio-showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 0 1px var(--accent-cyan),
    0 0 20px rgba(0, 200, 255, 0.15),
    0 20px 60px rgba(0, 200, 255, 0.1);
}

.portfolio-showcase-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-showcase-card:hover .portfolio-showcase-media img {
  transform: scale(1.1);
}

/* Анимированная полоска свечения поверх картинки */
.portfolio-showcase-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.15), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.portfolio-showcase-card:hover .portfolio-showcase-media::after {
  left: 100%;
}

.portfolio-showcase-body {
  padding: 20px;
}

.portfolio-showcase-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.portfolio-showcase-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-showcase-body .tags {
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card-compact,
.portfolio-card-modal {
  display: flex;
  flex-direction: column;
}

.news-card-media {
  height: 180px;
}

.news-card-body,
.portfolio-card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.news-card-title,
.portfolio-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.news-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.article-page {
  overflow: hidden;
  padding: 0;
}

.article-page-media {
  position: relative;
  max-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--tile-border);
}

.article-page-image {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-page-video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
}

.article-page-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-page-content h2 {
  margin: 28px 0 12px;
}

.article-page-content h2:first-child {
  margin-top: 0;
}

.article-page-content p {
  margin: 0 0 16px;
}

.article-vk-embed {
  position: relative;
  display: block;
  width: calc(100% + 56px);
  max-width: calc(100% + 56px);
  margin: 32px -28px;
  padding-top: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tile-border);
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.article-vk-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.article-inline-media {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tile-border);
}

.article-page-content .article-inline-media {
  width: calc(100% + 56px);
  max-width: calc(100% + 56px);
  margin: 32px -28px;
  border-radius: 14px;
}

.article-inline-image,
.article-inline-video {
  width: 100%;
  display: block;
  max-height: none;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.media-cover {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-cover--video .portfolio-tile-img,
.media-cover--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.45);
}

.portfolio-showcase-media .media-cover,
.portfolio-showcase-media img,
.portfolio-showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-page-body {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.article-page-excerpt {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.article-page-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-page-tags {
  margin-top: 4px;
}

.article-page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.content-modal[hidden] {
  display: none;
}

.content-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.content-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.content-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 0;
}

.content-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8, 14, 28, 0.72);
  color: var(--text-primary);
  cursor: pointer;
}

.content-modal-media {
  max-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--tile-border);
}

.content-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.content-modal-media video {
  width: 100%;
  max-height: 320px;
  display: block;
  background: #000;
  object-fit: cover;
}

.content-modal-body {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.content-modal-body h2 {
  margin: 0;
}

.content-modal-excerpt {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.7;
}

.content-modal-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-showcase-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-tile-media {
    height: 180px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card-body,
  .portfolio-card-body,
  .article-page-body,
  .content-modal-body {
    padding: 16px;
  }

  .article-vk-embed,
  .article-page-content .article-inline-media {
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .content-modal {
    padding: 10px;
  }

  .content-modal-dialog {
    max-height: 92vh;
  }

  .content-modal-media,
  .content-modal-media img {
    max-height: 220px;
  }
}

/* ══════════════════════════════════════════════
   HEADER / НАВИГАЦИЯ
   ══════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tile-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: headerSlideDown 0.6s ease 0.2s both;
}

.site-header.scrolled {
  background: rgba(5, 8, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Бренд ── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.3));
  animation: logoSpin 20s linear infinite;
  transition: filter 0.3s ease;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.6))
          drop-shadow(0 0 40px rgba(0, 200, 255, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ── Навигация ── */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, background 0.3s ease;
}

.nav a i {
  color: var(--accent-cyan);
  font-style: normal;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background: rgba(0, 200, 255, 0.05);
}

.nav a:hover i,
.nav a.active i {
  opacity: 1;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--accent-cyan);
}

/* ── Мобильное меню (гамбургер) ── */
.theme-toggle,
.nav-toggle {
  background: none;
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  background: rgba(0, 200, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.theme-toggle:hover,
.nav-toggle:hover {
  background: rgba(0, 200, 255, 0.1);
  border-color: var(--tile-border-hover);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.12);
}

.theme-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.theme-toggle-icon-sun {
  display: none;
}

body[data-theme='light'] .theme-toggle-icon-sun {
  display: inline;
}

body[data-theme='light'] .theme-toggle-icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  font-size: 1.4rem;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   КНОПКИ
   ══════════════════════════════════════════════ */

.btn-primary,
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 200, 255, 0.06);
  color: var(--accent-cyan);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.1), inset 0 0 12px rgba(0, 200, 255, 0.05);
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
  letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-cyber:hover {
  color: var(--bg-primary);
  background: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4),
              0 8px 30px rgba(0, 200, 255, 0.25);
  text-shadow: none;
}

.btn-primary:active,
.btn-cyber:active {
  transform: translateY(0) scale(0.98);
}

.btn-cyber-primary {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(0, 200, 255, 0.22);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.1), inset 0 0 16px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Кнопка со свечением ── */
.btn-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* ── CTA кнопка (максимальное свечение) ── */
.btn-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.24);
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  animation: glowPulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.14),
              0 0 40px rgba(0, 200, 255, 0.04),
              inset 0 0 20px rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-cta:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.5),
              0 0 80px rgba(0, 200, 255, 0.25);
  text-shadow: none;
}

/* ── Auth кнопка ── */
.btn-auth {
  padding: 8px 18px;
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.btn-auth:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
}

/* ══════════════════════════════════════════════
   HERO СЕКЦИЯ — Полноэкранный
   ══════════════════════════════════════════════ */

.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 4rem;
  z-index: 1;
}

.hero-center {
  text-align: center;
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.hero-center-panel {
  padding: 38px 34px;
  border-radius: 28px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  animation: heroPanelFloat 6.5s ease-in-out infinite;
}

/* ── Glow-сферы как фон всей страницы ── */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
}

body::before {
  width: 320px;
  height: 320px;
  top: -220px;
  right: -220px;
  background: rgba(0, 200, 255, 0.02);
}

body::after {
  width: 360px;
  height: 360px;
  left: -160px;
  bottom: 4%;
  background: rgba(123, 47, 255, 0.035);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.glow-orb-1 {
  width: 380px;
  height: 380px;
  background: rgba(0, 200, 255, 0.08);
  top: 12%;
  right: -6%;
}

.glow-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(123, 47, 255, 0.08);
  bottom: 18%;
  left: -4%;
}

.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-logo-mini {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.35));
  animation: logoSpinGold 14s linear infinite, floatSlow 4s ease-in-out infinite;
}

.hero-badge-inline {
  margin-bottom: 0;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulseSoft 2s infinite;
}

/* ── Hero Title ── */
.hero-main-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 28px rgba(0, 200, 255, 0.14);
  animation: heroTextFloat 5.5s ease-in-out infinite;
}

.hero-main-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Description ── */
.hero-main-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  animation: heroTextFloat 6.3s ease-in-out infinite;
}

/* ── Hero Buttons ── */
.hero-main-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroButtonsFloat 6s ease-in-out infinite;
}

/* ── Парящие плитки под hero ── */
.hero-floating-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 2;
}

.floating-tile {
  animation: floatingTile 5.5s ease-in-out infinite;
}

.floating-tile:nth-child(2) { animation-delay: 0.5s; }
.floating-tile:nth-child(3) { animation-delay: 1s; }
.floating-tile:nth-child(4) { animation-delay: 1.5s; }

.hero-stat-card,
.feature-adv-card {
  padding: 24px;
}

.hero-stat-card {
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-stat-icon {
  margin: 0 auto 14px;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.features-floating-grid .feature-adv-card:nth-child(1) { animation-delay: 0.2s; }
.features-floating-grid .feature-adv-card:nth-child(2) { animation-delay: 0.6s; }
.features-floating-grid .feature-adv-card:nth-child(3) { animation-delay: 1s; }
.features-floating-grid .feature-adv-card:nth-child(4) { animation-delay: 1.4s; }

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-mono);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Responsive Hero ── */
@media (max-width: 1024px) {
  .hero-floating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-fullscreen {
    padding: 96px 0.75rem 1.5rem;
    min-height: auto;
  }

  .hero-center-panel {
    padding: 12px 10px;
  }

  .hero-logo-badge {
    margin-bottom: 10px;
    gap: 10px;
  }

  .hero-main-title {
    margin-bottom: 0.8rem;
    line-height: 1.02;
  }

  .hero-main-desc {
    margin: 0 auto 1.25rem;
    line-height: 1.5;
  }

  .hero-main-buttons {
    gap: 0.65rem;
  }

  .hero-floating-grid {
    width: min(100%, calc(100% - 16px));
    grid-template-columns: 1fr;
    margin-top: 12px;
    gap: 10px;
  }

  .hero-stat-number {
    font-size: 1.45rem;
  }

  .hero-stat-card {
    min-height: 148px;
    padding: 16px;
  }

  .glow-orb {
    opacity: 0.45;
  }

  .scroll-indicator {
    bottom: 1rem;
  }
}

/* ── Старый hero (совместимость) ── */
.hero {
  padding: 120px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.2);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-kicker::before,
.page-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulseSoft 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text,
.page-subtitle,
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ── Логотип в hero ── */
.hero-logo-stage {
  position: relative;
  margin-top: 38px;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.hero-logo-stage::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 200, 255, 0.1), rgba(0, 200, 255, 0.03) 58%, transparent);
  border: 1px solid rgba(0, 200, 255, 0.15);
  box-shadow: 0 0 0 16px rgba(0, 200, 255, 0.03),
              0 0 0 42px rgba(0, 200, 255, 0.02),
              0 0 60px rgba(0, 200, 255, 0.1);
}

.hero-logo,
.hero-logo-small {
  position: relative;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 200, 255, 0.3));
}

.hero-logo-small {
  width: 40px;
  height: 40px;
  animation: logoSpinGold 10s linear infinite;
}

.hero-logo-micro {
  width: 28px;
  height: 28px;
  animation: logoSpinGold 8s linear infinite;
}

.hero-logo-stage-compact {
  margin-top: 0;
  min-height: 132px;
}

.hero-logo-stage-compact::before {
  width: 118px;
  height: 118px;
  box-shadow: 0 0 0 10px rgba(0, 200, 255, 0.04),
              0 0 0 26px rgba(0, 200, 255, 0.02),
              0 0 40px rgba(0, 200, 255, 0.08);
}

.hero-logo-stage-compact .orbit-1 {
  width: 86px;
  height: 86px;
}

.hero-logo-stage-compact .orbit-2 {
  width: 112px;
  height: 112px;
}

.hero-logo-stage-compact .gold-flare {
  width: 82px;
  height: 10px;
}

/* ── Орбиты и вспышки ── */
.gold-flare,
.orbit {
  position: absolute;
  pointer-events: none;
}

.gold-flare {
  width: 120px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0), rgba(0, 200, 255, 0.7), rgba(0, 200, 255, 0));
  filter: blur(2px);
  opacity: 0.5;
  z-index: 2;
  animation: flareSweep 4.8s ease-in-out infinite;
}

.gold-flare-1 { transform: rotate(26deg); }
.gold-flare-2 { transform: rotate(-34deg); animation-delay: 1.6s; }

.orbit {
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.15);
  z-index: 1;
}

.orbit-1 {
  width: 138px;
  height: 138px;
  animation: spinOrbit 11s linear infinite;
}

.orbit-2 {
  width: 172px;
  height: 172px;
  border-color: rgba(123, 47, 255, 0.2);
  animation: spinOrbitReverse 14s linear infinite;
}

/* ── Feature Cloud ── */
.hero-feature-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: center;
  position: relative;
}

.hero-feature-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   КАРТОЧКИ / ПЛИТКИ КОНТЕНТА
   ══════════════════════════════════════════════ */

.hero-mini-card,
.feature-float-card,
.feature-tile,
.contact-tile {
  padding: 24px;
  min-height: 180px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-float-card,
.glass-panel,
.feature-tile,
.contact-tile,
.portfolio-tile,
.hero-mini-card {
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-tile);
  position: relative;
  overflow: hidden;
}

.feature-float-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  animation: tileCascadeIn 0.6s ease both;
}

.feature-float-card:nth-child(2) { animation-delay: 0.7s; }
.feature-float-card:nth-child(3) { animation-delay: 0.9s; }
.feature-float-card:nth-child(4) { animation-delay: 1.1s; }
.feature-float-card:nth-child(5) { animation-delay: 1.3s; }

.feature-card-wide {
  min-height: 200px;
}

.feature-float-card .tile-icon {
  margin-bottom: 0;
}

/* ── Hover эффекты карточек ── */
.hero-mini-card:hover,
.feature-float-card:hover,
.feature-tile:hover,
.glass-panel:hover,
.contact-tile:hover,
.portfolio-tile:hover {
  transform: translateY(-4px);
  border-color: var(--tile-border-hover);
  box-shadow: var(--shadow-tile-hover);
}

/* ── Декоративное свечение внутри карточки ── */
.glass-panel::after,
.feature-tile::after,
.contact-tile::after,
.portfolio-tile::after,
.hero-mini-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -55% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.06), transparent 68%);
  pointer-events: none;
}

/* ── Иконки плиток ── */
.tile-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-shadow: inset 0 0 20px rgba(0, 200, 255, 0.12),
              0 0 20px rgba(0, 200, 255, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 200, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tile:hover .tile-icon {
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 20px rgba(0, 200, 255, 0.2),
              0 0 30px rgba(0, 200, 255, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-tile {
  overflow: hidden;
  text-align: center;
}

.service-tile .tile-title,
.service-tile .tile-text,
.service-tile .meta-info {
  text-align: center;
}

.service-tile-icon {
  position: relative;
  width: min(100%, 220px);
  height: min(100%, 220px);
  aspect-ratio: 1 / 1;
  flex: none;
  margin: 8px auto 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(7, 17, 30, 0.96), rgba(16, 31, 54, 0.92));
  border: 1px solid rgba(0, 200, 255, 0.28);
  box-shadow: inset 0 0 28px rgba(0, 200, 255, 0.16),
              0 14px 30px rgba(0, 0, 0, 0.3),
              0 0 26px rgba(0, 200, 255, 0.12);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.service-tile-icon-image {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: cover;
  border-radius: 22px;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.24);
}

.service-tile-icon-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  filter: drop-shadow(0 8px 22px rgba(0, 200, 255, 0.32));
}

.service-tile-icon-shine {
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 70%);
  transform: translateX(-150%) rotate(14deg);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.tile:hover .service-tile-icon {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 0 46px rgba(0, 200, 255, 0.2),
              0 24px 52px rgba(0, 0, 0, 0.4),
              0 0 48px rgba(0, 200, 255, 0.18);
}

@media (max-width: 767px) {
  .service-tile-icon {
    width: min(100%, 160px);
    height: min(100%, 160px);
    border-radius: 22px;
  }

  .service-tile-icon-image {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 16px;
  }
}

.tile-icon-brain { background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(123, 47, 255, 0.1)); }
.tile-icon-cloud { background: linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(0, 102, 255, 0.12)); }
.tile-icon-speed { background: linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(123, 47, 255, 0.08)); }
.tile-icon-shield { background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 102, 255, 0.1)); }

.tile-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tile-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════
   СЕКЦИИ
   ══════════════════════════════════════════════ */

.section {
  padding: 48px 0 84px;
  position: relative;
  z-index: 1;
}

.section-tight {
  padding-top: 12px;
  padding-bottom: 36px;
}

.section-header,
.page-hero {
  text-align: center;
  margin-bottom: 34px;
}

.page-hero {
  padding: 130px 0 30px;
  position: relative;
  z-index: 1;
}

.page-hero h1,
.section-header h2 {
  margin-bottom: 14px;
}

.section-subtitle,
.page-subtitle {
  max-width: 760px;
  margin: 0 auto;
}

.section-about-company {
  padding-top: 10px;
}

.company-stats-grid {
  margin-top: 0;
}

.company-stat-card {
  min-height: 190px;
}

.about-company-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.about-company-code,
.about-company-content {
  padding: 30px;
}

.about-company-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-code-block {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(0, 200, 255, 0.05), rgba(123, 47, 255, 0.04)),
    rgba(5, 11, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.company-code-block pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
}

.company-code-block code {
  display: block;
  color: #9be7ff;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.about-company-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-company-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.about-company-copy {
  display: grid;
  gap: 16px;
}

.about-company-copy p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-feature-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--tile-border);
  background: rgba(0, 200, 255, 0.04);
  color: var(--text-primary);
}

.about-feature-item .tile-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-bottom: 0;
  font-size: 1.2rem;
}

body[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(65, 117, 183, 0.08);
}

body[data-theme='light'] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme='light'] .hero-center-panel,
body[data-theme='light'] .glass-panel,
body[data-theme='light'] .feature-tile,
body[data-theme='light'] .contact-tile,
body[data-theme='light'] .portfolio-tile,
body[data-theme='light'] .portfolio-showcase-card,
body[data-theme='light'] .feature-float-card,
body[data-theme='light'] .hero-mini-card,
body[data-theme='light'] .contact-row,
body[data-theme='light'] .about-feature-item,
body[data-theme='light'] .company-code-block,
body[data-theme='light'] .contact-captcha-box,
body[data-theme='light'] .footer-card-clean {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(44, 92, 148, 0.12);
}

body[data-theme='light'] .btn-primary,
body[data-theme='light'] .btn-cyber,
body[data-theme='light'] .theme-toggle {
  background: rgba(0, 119, 255, 0.05);
  box-shadow: 0 10px 22px rgba(0, 119, 255, 0.1), inset 0 0 12px rgba(255, 255, 255, 0.35);
}

body[data-theme='light'] .btn-primary:hover,
body[data-theme='light'] .btn-cyber:hover,
body[data-theme='light'] .btn-cta:hover {
  color: #ffffff;
}

body[data-theme='light'] .portfolio-showcase-media::after {
  background: linear-gradient(90deg, transparent, rgba(0, 119, 255, 0.12), transparent);
}

body[data-theme='light'] .company-code-block code {
  color: #2156a3;
}

body[data-theme='light'] .scroll-indicator span {
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   GLASS PANEL (универсальная карточка)
   ══════════════════════════════════════════════ */

.glass-panel,
.feature-tile,
.contact-tile,
.portfolio-tile {
  padding: 28px;
}

.glass-panel h3,
.feature-tile h3,
.contact-tile h3,
.portfolio-tile h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.glass-panel p,
.feature-tile p,
.contact-tile p,
.portfolio-tile p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   МЕДИА
   ══════════════════════════════════════════════ */

.media-wrap {
  margin: -28px -28px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--tile-border);
}

.media-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-panel:hover .media-wrap img,
.portfolio-tile:hover .media-wrap img {
  transform: scale(1.04);
}

/* ── Мета-информация ── */
.meta-info {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.08);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 200, 255, 0.15);
}

/* ── Теги ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.15);
  background: rgba(0, 200, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tags span:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 200, 255, 0.1);
}

/* ── Пустое состояние ── */
.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 200, 255, 0.2);
  background: rgba(0, 200, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════
   ПОРТФОЛИО
   ══════════════════════════════════════════════ */

.portfolio-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-portfolio-carousel {
  padding-top: 10px;
}

.portfolio-carousel-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.portfolio-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carouselRun 34s linear infinite;
}

.portfolio-carousel-card {
  width: 320px;
  flex: 0 0 320px;
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-tile);
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.portfolio-carousel-card:hover {
  border-color: var(--tile-border-hover);
  box-shadow: var(--shadow-tile-hover);
}

.portfolio-carousel-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.portfolio-carousel-body {
  padding: 20px;
}

.portfolio-carousel-body h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.portfolio-carousel-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

.portfolio-tile {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
  gap: 0;
  padding: 0;
}

.portfolio-tile-elevated {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-media-rich {
  position: relative;
}

.portfolio-glow {
  position: absolute;
  inset: auto -20% -18% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.15), transparent);
  filter: blur(8px);
}

.portfolio-tile .media-wrap {
  margin: 0;
  border-bottom: none;
  border-right: 1px solid var(--tile-border);
}

.portfolio-tile .media-wrap img {
  height: 100%;
  min-height: 320px;
}

.portfolio-content {
  padding: 28px;
}

/* ══════════════════════════════════════════════
   КОНТАКТЫ
   ══════════════════════════════════════════════ */

.contacts-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.contact-list-clean {
  display: grid;
  gap: 12px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-card-wide {
  height: 100%;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

.contact-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.03);
  border: 1px solid var(--tile-border);
  transition: all 0.3s ease;
}

.contact-row:hover {
  border-color: var(--tile-border-hover);
  background: rgba(0, 200, 255, 0.06);
}

.contact-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-row p,
.contact-row a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-row a:hover {
  color: var(--accent-cyan);
}

.contact-map-clean {
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

.contact-map-surface {
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(10, 18, 35, 0.9), rgba(10, 18, 35, 0.7));
  background-size: 34px 34px, 34px 34px, cover;
  border: 1px solid var(--tile-border);
  padding: 28px;
  display: flex;
  align-items: end;
}

.map-note {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--tile-bg);
  border: 1px solid rgba(0, 200, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.map-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.map-note p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-form-modern {
  display: grid;
  gap: 16px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form-field {
  display: grid;
  gap: 8px;
}

.contact-form-field label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 200, 255, 0.16);
  background: rgba(5, 11, 22, 0.72);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  outline: none;
  font: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: rgba(122, 155, 181, 0.65);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.2), 0 0 18px rgba(0, 200, 255, 0.08);
  background: rgba(8, 15, 28, 0.9);
}

.contact-form-captcha {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: end;
}

.contact-captcha-box {
  min-height: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.16);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.06), rgba(123, 47, 255, 0.04));
  display: grid;
  align-content: center;
  gap: 8px;
}

.contact-captcha-box strong {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.contact-form-status {
  min-height: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form-status.is-success {
  color: #66f3b0;
}

.contact-form-status.is-error {
  color: #ff7a9f;
}

.contact-form-status.is-pending {
  color: var(--accent-cyan);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.site-footer {
  margin-top: 6px;
  padding: 0 0 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 200, 255, 0.012) 100%);
}

.footer-content {
  padding-top: 0;
}

.footer-content-compact {
  max-width: 980px;
}

.footer-card-clean {
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-tile);
  padding: 26px;
}

.footer-brand-only {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand-only .brand {
  justify-content: center;
}

.footer-brand-only p {
  margin-top: 16px;
}

.footer-brand-only .brand-subtitle {
  text-align: left;
}

.footer-card-clean h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer-card-clean p,
.footer-card-clean a {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-card-clean a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-card-clean a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  margin-top: 0;
  padding: 10px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--tile-border);
}

.footer-bottom-tight {
  max-width: 980px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ══════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .hero-float-layout,
  .contacts-layout,
  .portfolio-grid-clean {
    grid-template-columns: 1fr;
  }

  .hero-main-card,
  .hero-logo-card-main {
    min-height: 400px;
  }
}

@media (max-width: 920px) {
  .hero-feature-cloud,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-tile {
    grid-template-columns: 1fr;
  }

  .portfolio-tile .media-wrap {
    border-right: none;
    border-bottom: 1px solid var(--tile-border);
  }

  .header-inner {
    padding: 14px 0;
    min-height: auto;
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--tile-border);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
  }
}

@media (max-width: 760px) {
  .nav {
    gap: 4px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-feature-cloud,
  .hero-float-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-main-card,
  .hero-logo-card-main {
    padding: 18px;
    min-height: auto;
  }

  .hero-logo-shell {
    margin: 0 auto;
    width: 168px;
    height: 168px;
  }

  .hero-logo {
    width: 82px;
    height: 82px;
  }

  .hero-side-stack,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-form-grid,
  .contact-form-captcha,
  .about-company-grid,
  .about-feature-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .theme-toggle-text {
    display: none;
  }

  .tile,
  .contact-tile,
  .portfolio-tile,
  .portfolio-item,
  .contact-form-clean,
  .contact-map-clean,
  .footer-card,
  .about-company-content,
  .about-company-code {
    padding: 16px;
    min-height: auto;
  }

  .section {
    padding: 24px 0 36px;
  }

  .section-header,
  .page-hero {
    margin-bottom: 20px;
  }

  .page-hero {
    padding-top: 96px;
    padding-bottom: 12px;
  }

  .page-hero h1,
  .section-header h2 {
    margin-bottom: 8px;
  }

  .portfolio-grid-clean,
  .portfolio-carousel-track,
  .contacts-layout,
  .contact-list,
  .company-stats-grid {
    gap: 10px;
  }

  .portfolio-content,
  .portfolio-showcase-body,
  .portfolio-carousel-body,
  .map-note {
    padding: 16px;
  }

  .contact-map-embed {
    min-height: 260px;
  }

  .contact-form-field textarea {
    min-height: 104px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ===== SITE IMPROVEMENTS ===== */
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-bottom: 18px;
}

.footer-links-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: var(--accent-primary);
}

.sticky-telegram {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(123, 47, 255, 0.22));
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 200, 255, 0.18);
}

.sticky-telegram-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 18, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.portfolio-filters--bottom {
  margin-top: 40px;
  margin-bottom: 0;
  padding-top: 28px;
  border-top: 1px solid var(--tile-border);
}

.portfolio-filters-label {
  width: 100%;
  margin-bottom: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portfolio-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.portfolio-filter-chip:hover,
.portfolio-filter-chip.is-active {
  color: var(--text-primary);
  border-color: rgba(0, 200, 255, 0.35);
  background: rgba(0, 200, 255, 0.08);
}

.blog-featured-carousel {
  padding-top: 0;
  padding-bottom: 10px;
}

.blog-carousel-track {
  animation-duration: 42s;
}

.blog-carousel-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-carousel-media {
  overflow: hidden;
  height: 190px;
  background: rgba(0, 0, 0, 0.15);
}

.blog-carousel-media img,
.blog-carousel-media video,
.blog-carousel-media .media-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.blog-carousel-media .media-cover--video {
  position: relative;
}

.article-page-tags--bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--tile-border);
}

.tag-link {
  text-decoration: none;
}

.tag-link span {
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-link:hover span {
  border-color: rgba(0, 200, 255, 0.35);
  color: var(--accent-primary);
}

.section-related {
  padding-top: 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-feature-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.legal-content h2 {
  margin: 24px 0 10px;
  font-size: 1.15rem;
}

.legal-content ul {
  margin: 0 0 12px 18px;
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--accent-primary);
}

body.lightbox-open,
body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .sticky-telegram-text {
    display: none;
  }

  .sticky-telegram {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── КП и лендинги ── */
.kp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.kp-actions-inline {
  display: contents;
}

.kp-actions-hero {
  margin-top: 4px;
}

.kp-actions-center {
  justify-content: center;
}

.landing-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.landing-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.landing-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan, #00c8ff);
  font-weight: 700;
}

/* ── Модальное окно КП ── */
.kp-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.kp-modal[hidden] {
  display: none !important;
}

.kp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(6px);
}

.kp-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 28px 28px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 200, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 14, 26, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(123, 47, 255, 0.08);
}

.kp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
}

.kp-modal-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.kp-modal-subtitle {
  margin: 0 0 22px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.kp-form {
  display: grid;
  gap: 16px;
}

.kp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kp-form-field {
  display: grid;
  gap: 8px;
}

.kp-form-field span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.kp-form-field input,
.kp-form-field textarea,
.kp-form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.14);
  background: rgba(6, 12, 22, 0.82);
  color: var(--text-primary);
  font: inherit;
}

.kp-form-field select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-cyan) 50%),
    linear-gradient(135deg, var(--accent-cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.kp-form-field select option,
.kp-form-field select optgroup {
  background: #0a1424;
  color: var(--text-primary);
}

.kp-form-field textarea {
  resize: vertical;
  min-height: 88px;
}

.kp-form-field input:focus,
.kp-form-field textarea:focus,
.kp-form-field select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.18);
}

.kp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kp-captcha-refresh {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.kp-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kp-antibot-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.14);
  background: rgba(6, 12, 22, 0.72);
}

.kp-antibot-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.kp-antibot-status {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.kp-antibot-status.is-ok {
  color: #66f3b0;
}

.kp-antibot-status.is-pending {
  color: var(--accent-cyan);
}

.kp-antibot-widget {
  min-height: 84px;
}

.kp-antibot-frame {
  display: block;
  width: 100%;
  min-height: 84px;
  height: 84px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
}

.kp-antibot-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.kp-antibot-note a {
  color: var(--accent-cyan);
}

.header-search-btn {
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: rgba(6, 12, 22, 0.72);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.search-modal[hidden] {
  display: none !important;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
}

.search-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 255, 0.18);
  background: rgba(8, 14, 24, 0.96);
}

.search-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.search-form,
.search-page-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.search-form input,
.search-page-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.14);
  background: rgba(6, 12, 22, 0.82);
  color: var(--text-primary);
  font: inherit;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result-item {
  padding: 22px;
}

.search-result-item .tile-title a {
  color: inherit;
  text-decoration: none;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  padding: 22px;
}

.process-step-num {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.service-tile-actions {
  margin-top: 18px;
}

.price-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-calculator-result {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 12px;
}

.price-calculator-value {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.price-calculator-note {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .process-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .kp-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-captcha {
    grid-template-columns: 1fr;
  }

  .process-steps-grid,
  .price-calculator-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRODUCT CARDS — карточки продуктов (products.php)
   ============================================ */
.product-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 200, 255, 0.12), rgba(7, 17, 30, 0) 70%),
    linear-gradient(145deg, rgba(7, 17, 30, 0.96), rgba(16, 31, 54, 0.92));
  border-bottom: 1px solid rgba(0, 200, 255, 0.18);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0) 55%, rgba(5, 8, 16, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-media-img {
  transform: scale(1.05);
}

.product-media-emoji {
  font-size: 3.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.45));
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 26px;
  flex: 1 1 auto;
}

.product-tagline {
  display: block;
  margin: 0 0 2px;
}

.product-title {
  margin: 0;
}

.product-text {
  margin: 0;
  flex: 1 1 auto;
}

.product-cta {
  margin-top: 18px;
  align-self: flex-start;
}

/* ═══ Экосистема — промо-баннеры продуктов (fpvsim / persona360) ═══ */
.eco-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.eco-banner {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--tile-border);
  background: var(--eco-img) center/cover no-repeat, var(--tile-bg-solid);
  box-shadow: var(--shadow-tile);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.eco-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.08) 0%, rgba(5, 8, 16, 0.5) 52%, rgba(5, 8, 16, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 8, 16, 0.6) 0%, rgba(5, 8, 16, 0) 62%);
}
.eco-banner:hover {
  transform: translateY(-6px);
  border-color: var(--tile-border-hover);
  box-shadow: var(--shadow-tile-hover);
}
.eco-banner-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
}
.eco-banner-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid var(--accent-cyan-mid);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.eco-banner-body h3 {
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.eco-banner-cta {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 15px;
}
.eco-banner:hover .eco-banner-cta {
  text-shadow: 0 0 12px var(--accent-glow);
}
.eco-banner-desc {
  margin: 8px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .eco-banners { grid-template-columns: 1fr; }
  .eco-banner { min-height: 220px; }
  .eco-banner-desc { display: none; }
}
