/* --- VARIABLES --- */
:root {
  --bg-dark: #050505;
  --bg-panel: #0f0f11;
  --text-main: #e6e6e6;
  --text-muted: #888888;

  --neon-blue: #00f0ff;
  --neon-glow: rgba(0, 240, 255, 0.5);

  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: rgba(0, 240, 255, 0.3);

  --font-tech: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;

  --header-h: 80px;
  --container: 1240px;
}

/* --- RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

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

/* TECH GRID BACKGROUND */
.tech-grid {
  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: 50px 50px;
  background-position: center top;
}

/* --- UTILS --- */
.container,
.header__container,
.footer__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.text-neon {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-glow);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

.header__list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.header__link {
  font-family: var(--font-tech);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

.header__link::before {
  content: "[";
  margin-right: 5px;
  opacity: 0;
  color: var(--neon-blue);
  transition: 0.3s;
}
.header__link::after {
  content: "]";
  margin-left: 5px;
  opacity: 0;
  color: var(--neon-blue);
  transition: 0.3s;
}

.header__link:hover {
  color: var(--neon-blue);
}
.header__link:hover::before,
.header__link:hover::after {
  opacity: 1;
}

/* --- ACTIONS & BUTTONS --- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--neon-blue);
  border: 1px solid var(--border-active);
  padding: 4px 10px;
}
@media (min-width: 768px) {
  .status-indicator {
    display: flex;
  }
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  animation: blink 2s infinite;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  transition: all 0.3s;
  overflow: hidden;
}

.btn:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 20px var(--neon-glow);
}

.burger-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
}
@media (min-width: 992px) {
  .burger-btn {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 200;
  padding: 30px;
  border-left: 2px solid var(--neon-blue);
  transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active {
  right: 0;
}

.mobile-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}
.mobile-menu__title {
  font-family: var(--font-tech);
  color: var(--neon-blue);
  letter-spacing: 2px;
}
.mobile-menu__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu__link {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-menu__link.highlight {
  color: var(--neon-blue);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 20px;
  margin-top: auto;
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.footer__brand {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer__eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__eu-badge i {
  width: 16px;
  height: 16px;
  color: var(--neon-blue);
}

.footer__title {
  font-family: var(--font-tech);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  border-left: 2px solid var(--neon-blue);
  padding-left: 10px;
}

.footer__links,
.footer__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}
.footer__links a:hover {
  color: var(--neon-blue);
  transform: translateX(5px);
  display: inline-block;
}

.footer__contacts li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  align-items: flex-start;
}
.footer__contacts i {
  color: var(--neon-blue);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h); /* Compensate fixed header */
  overflow: hidden;
}

/* Background Animation Canvas */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Gradient Overlay to darken canvas */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--bg-dark) 80%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__content {
  max-width: 800px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--neon-blue);
  margin-bottom: 25px;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--neon-blue);
  letter-spacing: 2px;
}

/* Title & Typography */
.hero__title {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 30px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  border-left: 2px solid var(--neon-blue);
  padding-left: 20px;
}

.hero__subtitle strong {
  color: #fff;
}

.hero__subtitle-note {
  font-size: 0.85rem;
  color: var(--neon-blue);
  opacity: 0.8;
  display: block;
  margin-top: 10px;
}

/* Buttons variations */
.btn--primary {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
}
.btn--outline:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.hero__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Stats Block */
.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 3;
}

@media (max-width: 768px) {
  .scroll-down {
    display: none;
  }
}

.scroll-down__text {
  writing-mode: vertical-rl;
  font-family: var(--font-tech);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-down__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
}

/* GLITCH EFFECT ANIMATION */
.glitched-text {
  position: relative;
  display: inline-block;
}

.glitched-text::before,
.glitched-text::after {
  content: "НОВОГО ПОКОЛЕНИЯ"; /* Must match text */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}

.glitched-text::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip-path: inset(44% 0 61% 0);
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitched-text::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip-path: inset(50% 0 30% 0);
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
  }
  20% {
    clip-path: inset(60% 0 10% 0);
  }
  40% {
    clip-path: inset(40% 0 50% 0);
  }
  60% {
    clip-path: inset(80% 0 5% 0);
  }
  80% {
    clip-path: inset(10% 0 70% 0);
  }
  100% {
    clip-path: inset(30% 0 40% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 60% 0);
  }
  20% {
    clip-path: inset(30% 0 20% 0);
  }
  40% {
    clip-path: inset(70% 0 10% 0);
  }
  60% {
    clip-path: inset(20% 0 50% 0);
  }
  80% {
    clip-path: inset(50% 0 30% 0);
  }
  100% {
    clip-path: inset(5% 0 80% 0);
  }
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-tech);
  color: var(--neon-blue);
  font-size: 0.9rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-tech);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  border-left: 1px solid var(--neon-blue);
  padding-left: 20px;
}

.section-desc strong {
  color: #fff;
  font-weight: 400;
}

/* --- SOLUTIONS GRID --- */
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

  /* BREAK THE GRID: Asymmetric Layout */
  .sol-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .sol-card--wide {
    grid-column: span 3;
  }
}

/* CARD STYLES */
.sol-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Hover Effect: Neon Border & Lift */
.sol-card:hover {
  border-color: var(--neon-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Background decoration on hover */
.sol-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 95%, rgba(0, 240, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
}
.sol-card:hover::before {
  opacity: 1;
}

.sol-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--neon-blue);
}

.sol-card__title {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.sol-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.sol-card__text strong {
  color: #fff;
}

.sol-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-blue);
  font-family: var(--font-tech);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}
.sol-card__link i {
  width: 16px;
  transition: transform 0.3s;
}
.sol-card__link:hover i {
  transform: translateX(5px);
}

/* WIDE CARD SPECIFICS */
.sol-card--wide {
  flex-direction: column;
  border-color: var(--border-active); /* Subtle highlight by default */
  background: linear-gradient(
    90deg,
    var(--bg-panel) 0%,
    rgba(0, 240, 255, 0.03) 100%
  );
}

@media (min-width: 768px) {
  .sol-card--wide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .sol-card--wide .sol-card__content {
    max-width: 60%;
  }
}

/* FADE IN ANIMATION CLASS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- TECHNOLOGY SECTION --- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 100px;
}

@media (min-width: 992px) {
  .tech-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Feature List */
.tech-features {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tech-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main);
  font-size: 1rem;
}

.tech-features i {
  color: var(--neon-blue);
  width: 20px;
  height: 20px;
}

/* Data Visualization Panel */
.data-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.data-title {
  font-family: var(--font-tech);
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* CSS Bar Chart */
.chart-container {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.bar-group {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  gap: 10px;
}

.bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  height: 0; /* Start at 0 for animation */
  transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Animate bars when section is visible */
.fade-in.visible .bar {
  height: var(--h);
}

.bar--active {
  background: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-glow);
}

.data-footer {
  display: flex;
  justify-content: space-between;
}

.data-stat {
  display: flex;
  flex-direction: column;
}

.data-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.data-value {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* --- STEPS PIPELINE --- */
.steps-wrapper {
  border-top: 1px solid var(--border-light);
  padding-top: 60px;
}

.steps-title {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 40px;
  text-transform: uppercase;
  text-align: left;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

.step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 25px;
  position: relative;
  transition: 0.3s;
}

.step-card:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.02);
}

.step-num {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  line-height: 1;
}

.step-card:hover .step-num {
  color: var(--neon-blue);
}

.step-content h4 {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Connector Line (Desktop only) */
.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--border-light);
    margin-top: 50px; /* Align with middle of cards roughly */
  }
}

/* --- BLOG SECTION --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

/* Blog Card Style */
.blog-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Top colored line on hover */
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card__date {
  padding: 20px 25px 0;
  font-family: var(--font-tech);
  color: var(--neon-blue);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.blog-card__content {
  padding: 20px 25px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__title {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card__excerpt strong {
  color: #fff;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: 0.3s;
}

.blog-card__link i {
  width: 16px;
  height: 16px;
  color: var(--neon-blue);
  transition: transform 0.3s;
}

.blog-card__link:hover {
  border-bottom-color: var(--neon-blue);
}

.blog-card__link:hover i {
  transform: translate(3px, -3px);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Left Column Info */
.contact-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-text .value {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.contact-text a.value:hover {
  color: var(--neon-blue);
}

.contact-status {
  margin-top: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border-active);
  background: rgba(0, 240, 255, 0.05);
  font-size: 0.85rem;
  color: var(--neon-blue);
}

/* --- FORM STYLES --- */
.contact-form-wrapper {
  background: var(--bg-panel);
  padding: 40px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.tech-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: 0.3s;
}

.tech-form input[type="text"],
.tech-form input[type="email"],
.tech-form input[type="tel"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 15px 15px 15px 45px; /* space for icon */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
  border-radius: 0;
}

.tech-form input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.tech-form input:focus + .input-icon,
.tech-form input:focus ~ .input-icon {
  color: var(--neon-blue);
}

/* Error State */
.form-group.error input {
  border-color: #ff3366;
}
.error-msg {
  color: #ff3366;
  font-size: 0.8rem;
  display: none;
  margin-top: -5px;
}
.form-group.error .error-msg {
  display: block;
}

/* Custom Checkbox (GDPR) */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  position: relative;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  position: relative;
  transition: 0.3s;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--neon-blue);
  border-color: var(--neon-blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.gdpr-text a {
  color: var(--neon-blue);
  text-decoration: underline;
}

/* Captcha Fake */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 15px;
  cursor: pointer;
  width: fit-content;
}

.captcha-container input {
  display: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  transition: 0.3s;
  position: relative;
}

.captcha-container input:checked ~ .captcha-box {
  border-color: var(--neon-blue);
  background: var(--neon-blue);
}

/* Button & Loader */
.full-width {
  width: 100%;
  margin-top: 10px;
}

.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top: 2px solid #000;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn.loading .btn__text {
  display: none;
}
.btn.loading .loader {
  display: block;
}

/* Success Message */
.form-success {
  display: none; /* hidden by default */
  text-align: center;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.form-success.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  color: var(--neon-blue);
  margin-bottom: 20px;
}
.success-icon svg {
  width: 100%;
  height: 100%;
}

.form-success h3 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -150px; /* Hidden initially */
  right: 20px;
  max-width: 400px;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-blue);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-icon {
  min-width: 24px;
  color: var(--neon-blue);
}

.cookie-text {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--neon-blue);
  text-decoration: underline;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* --- POLICY PAGES STYLING (privacy.html etc) --- */
/* Ці стилі працюватимуть для будь-якої сторінки з структурою <section class="pages"> */

.pages {
  padding: 140px 0 80px; /* Padding for fixed header */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Better readability width */
}

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

.pages h2 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pages h2::before {
  content: "//";
  color: var(--neon-blue);
  font-size: 1rem;
}

.pages p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.pages ul {
  margin-bottom: 25px;
  padding-left: 20px;
  list-style: none;
}

.pages ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.6;
}

.pages ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--neon-blue);
  font-family: var(--font-tech);
  font-weight: 700;
}

.pages a {
  color: var(--neon-blue);
  text-decoration: underline;
  transition: color 0.3s;
}

.pages a:hover {
  color: #fff;
}
