/* --- ГЛОБАЛЬНЫЕ СТИЛИ (ЭТАП 0) --- */
:root {
  --bg-dark: #050a10;
  --bg-accent: #0a1622;
  --primary: #00f2ff;
  --primary-dim: rgba(0, 242, 255, 0.1);
  --text-main: #e0e6ed;
  --text-muted: #8899a6;
  --border-color: rgba(0, 242, 255, 0.2);
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Эффект сетки на фоне */
body.hud-theme::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1300px;
  padding: 0 20px;
  margin: 0 auto;
}

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

/* --- ХЕДЕР (ЭТАП 1) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 10, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo__icon svg {
  filter: drop-shadow(0 0 5px var(--primary));
}

.nav__list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link--cta {
  border: 1px solid var(--primary);
  padding: 8px 16px;
  background: var(--primary-dim);
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.nav__link--cta:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Бургер */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary);
  left: 0;
  transition: var(--transition);
}

.burger::before {
  top: 0;
}
.burger span {
  top: 9px;
}
.burger::after {
  bottom: 0;
}

/* --- ФУТЕР (ЭТАП 2) --- */
.footer {
  background: var(--bg-accent);
  padding: 80px 0 30px;
  margin-top: 100px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer::after {
  content: "+";
  position: absolute;
  top: -10px;
  left: 50%;
  color: var(--primary);
  font-family: var(--font-mono);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__title {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer__description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    transition: var(--transition);
    padding: 40px;
  }
  .nav--active {
    right: 0;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
  .burger {
    display: block;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
}

/* Bento Grid Setup */
.hero__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.bento-item {
  background: rgba(10, 22, 34, 0.6);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.bento-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-dim);
}

.hero__main-box {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}

.bento-item__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-item__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero__title span {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-dim);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 20px;
}

/* Кнопки */
.btn {
  font-family: var(--font-mono);
  padding: 15px 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-dark);
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn--outline {
  border: 1px solid var(--border-color);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

/* Side boxes */
.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.stats__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.hero__mini-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-indicator__dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: 1fr;
  }
  .hero__main-box {
    grid-column: span 1;
  }
}

/* --- SECTION TECH --- */
.tech {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
}

.section-header__line {
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 20px;
}

.section-header__title {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.section-header__subtitle {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Bento Grid for Tech */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 20px;
}

.tech-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.tech-card--large {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    var(--bg-accent) 0%,
    rgba(0, 242, 255, 0.05) 100%
  );
}

.tech-card--accent {
  border-color: var(--primary);
  background: rgba(0, 242, 255, 0.03);
}

/* Hover эффекты (Микроанимации) */
.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.tech-card:hover .tech-card__icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary);
}

.tech-card__icon {
  margin-bottom: 30px;
  color: var(--text-muted);
  transition: var(--transition);
}

.tech-card__icon svg {
  width: 40px;
  height: 40px;
}

.tech-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: var(--font-mono);
}

.tech-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-card__meta,
.tech-card__status,
.tech-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.6;
  margin-top: auto;
}

.tech-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 20px;
}

/* Декоративные элементы в углах карточек */
.tech-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.tech-card:hover::after {
  opacity: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
  .tech__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tech-card--large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .tech__grid {
    grid-template-columns: 1fr;
  }
  .tech-card--large {
    grid-column: span 1;
  }
  .section-header__title {
    font-size: 2rem;
  }
}

/* --- SECTION BOTS (ARCHITECTURE) --- */
.bots {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-accent));
}

.section-header--right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bots__scheme {
  position: relative;
  max-width: 900px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Центральная линия */
.bots__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  z-index: 1;
  transform: translateX(-50%);
  opacity: 0.3;
}

.scheme-step {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.scheme-step--reverse {
  flex-direction: row-reverse;
}

.scheme-step__number {
  width: 80px;
  height: 80px;
  background: var(--bg-dark);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--primary-dim);
  clip-path: polygon(
    20% 0%,
    80% 0%,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0% 80%,
    0% 20%
  );
}

.scheme-step__content {
  width: 42%;
  padding: 30px;
  background: rgba(10, 22, 34, 0.8);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.scheme-step__content:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.scheme-step__title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
  text-transform: uppercase;
}

.scheme-step__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scheme-step__icon {
  width: 42%;
  display: flex;
  justify-content: center;
  color: var(--primary-dim);
  transition: var(--transition);
}

.scheme-step:hover .scheme-step__icon {
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
}

.scheme-step__icon svg {
  width: 60px;
  height: 60px;
}

.scheme-step__btn {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  text-decoration: underline;
}

/* Адаптивность для схемы */
@media (max-width: 768px) {
  .bots__line {
    left: 20px;
  }
  .scheme-step,
  .scheme-step--reverse {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }
  .scheme-step__number {
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .scheme-step__content,
  .scheme-step__icon {
    width: 100%;
    text-align: left;
  }
  .scheme-step__icon {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

/* --- SECTION AI-LAB (BENTO) --- */
.ai-lab {
  padding: 100px 0;
}

.ai-lab__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 15px;
}

.ai-widget {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ai-widget:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 255, 0.02);
}

/* Специфические размеры для Bento */
.ai-widget--main {
  grid-column: span 2;
  grid-row: span 2;
}

.ai-widget--income {
  grid-column: span 2;
}

.ai-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ai-widget__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ai-widget__icon {
  width: 18px;
  color: var(--primary);
}

.ai-widget__value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  color: var(--primary);
  font-family: var(--font-mono);
}

.ai-widget__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 80%;
}

.ai-widget__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ai-widget__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Декоративный чарт (анимация столбиков) */
.ai-widget__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 20px;
}

.ai-widget__chart .bar {
  flex: 1;
  background: var(--primary-dim);
  border-top: 2px solid var(--primary);
  transition: height 1s ease-in-out;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid #00ff66;
  color: #00ff66;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.ai-widget--cta {
  background: var(--primary-dim);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.75rem;
  margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .ai-lab__bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .ai-widget--main {
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .ai-lab__bento {
    grid-template-columns: 1fr;
  }
  .ai-widget--main,
  .ai-widget--income {
    grid-column: span 1;
  }
}

/* --- SECTION BLOG (EDITORIAL + HUD) --- */
.blog {
  padding: 100px 0;
  position: relative;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  margin-top: 60px;
}

.blog-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Featured Card (Large) */
.blog-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.blog-card__image {
  width: 45%;
  position: relative;
  overflow: hidden;
  background: #111;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--transition);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
  opacity: 1;
}

.blog-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 4px 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.blog-card__date {
  color: var(--text-muted);
}
.blog-card__category {
  color: var(--primary);
}

.blog-card__title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 700;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  flex-grow: 1;
}

.blog-card__more,
.blog-card__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Декоративные цифры для обычных карточек */
.blog-card__decor {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

/* Blog Footer */
.blog__footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog__stats {
  display: flex;
  gap: 30px;
}

.blog__stats-item {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog__stats-item strong {
  color: var(--primary);
}

/* Адаптивность */
@media (max-width: 1100px) {
  .blog-card--featured {
    flex-direction: column;
  }
  .blog-card__image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 900px) {
  .blog__grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }
  .blog-card--featured {
    grid-column: span 1;
  }
  .blog__footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

/* --- SECTION CONTACT (HUD TERMINAL) --- */
.contact {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(to top, var(--bg-accent), var(--bg-dark));
}

.contact__bento {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: stretch;
}

.contact__info {
  background: rgba(0, 242, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.contact__title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.contact__text {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact__status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.status-item {
  padding: 15px;
  border-left: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.02);
}

.status-item__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-item__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Form Styles */
.contact__form-wrapper {
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  padding: 50px;
}

.form {
  display: grid;
  gap: 25px;
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 15px;
  color: #fff;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-dim);
}

/* Custom Captcha HUD style */
.form__captcha {
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  margin: 10px 0;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.captcha-box input {
  display: none;
}

.captcha-box__checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.captcha-box input:checked + .captcha-box__checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.captcha-box input:checked + .captcha-box__checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-dark);
  font-weight: 900;
}

.captcha-box__text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.captcha-box__logo {
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Privacy Check */
.privacy-check {
  display: flex;
  gap: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.privacy-check input {
  margin-top: 3px;
}

/* Success/Error Message */
.form__message {
  padding: 15px;
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid transparent;
}

.form__message--success {
  display: block;
  border-color: #00ff66;
  color: #00ff66;
  background: rgba(0, 255, 102, 0.05);
}

.form__message--error {
  display: block;
  border-color: #ff4444;
  color: #ff4444;
}

.form__submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* Адаптивность */
@media (max-width: 992px) {
  .contact__bento {
    grid-template-columns: 1fr;
  }
}

/* Стили валидации */
.form__input.is-invalid {
  border-color: #ff4444 !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3) !important;
  animation: shake 0.4s ease-in-out;
}

.form__error-msg {
  display: none;
  color: #ff4444;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-top: 5px;
}

.form__input.is-invalid + .form__error-msg {
  display: block;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Зеленый свет при успехе */
.form__input.is-valid {
  border-color: #00ff66 !important;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2) !important;
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  background: var(--bg-accent);
  border: 1px solid var(--primary);
  padding: 20px;
  z-index: 9999;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, 98% 0, 100% 20%, 100% 100%, 2% 100%, 0 80%);
}

.cookie-popup--active {
  bottom: 20px;
}

.cookie-popup__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-popup__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-popup__text a {
  color: var(--primary);
  text-decoration: underline;
}

/* --- СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИК (PAGES) --- */
.pages {
  padding: 160px 0 100px;
}

.pages h1 {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 40px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 40px 0 20px;
}

.pages p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.pages ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.pages li {
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  list-style: square;
}

.pages li strong {
  color: var(--primary);
}

.pages a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }
}
