/* --- Global Variables & Reset --- */
:root {
  --bg-dark: #0a0b10;
  --bg-card: #13151f;
  --color-primary: #00f3ff; /* Cyan Neon */
  --color-secondary: #bc13fe; /* Purple Neon */
  --color-text: #e0e0e0;
  --color-text-muted: #8b9bb4;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;

  --border-radius-lg: 30px;
  --border-radius-sm: 15px;

  --glow: 0 0 20px rgba(0, 243, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

ul {
  list-style: none;
}

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

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

/* --- Typography Helpers --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 50%; /* Rounded Logic */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: var(--glow);
}

.header__logo-icon svg {
  width: 20px;
  height: 20px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__nav {
  display: flex;
}

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

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.header__link:not(.header__link--cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition);
  border-radius: 2px;
}

.header__link:not(.header__link--cta):hover::after {
  width: 100%;
}

.header__link:hover {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.header__link--cta {
  background: transparent;
  border: 2px solid var(--color-primary);
  padding: 10px 25px;
  border-radius: var(--border-radius-lg);
  color: var(--color-primary);
  transition: var(--transition);
}

.header__link--cta:hover {
  background: var(--color-primary);
  color: var(--bg-dark);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  transition: var(--transition);
  border-radius: 2px;
}

.header__burger span:nth-child(1) {
  top: 0;
}
.header__burger span:nth-child(2) {
  top: 9px;
}
.header__burger span:nth-child(3) {
  bottom: 0;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
  top: 9px;
}

/* --- FOOTER --- */
.footer {
  background: #050608;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  margin-top: 50px;
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer__title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

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

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 1px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer__contact-item i {
  color: var(--color-primary);
  min-width: 20px;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 40px;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__burger {
    display: block;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- UI COMPONENTS (Buttons & Badges) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px; /* Hyper-rounded */
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Фоновое свечение */
.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(188, 19, 254, 0.15) 0%,
    rgba(10, 11, 16, 0) 70%
  );
  z-index: -1;
  filter: blur(80px);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Content Column */
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 900;
}

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

.hero__description strong {
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.hero__info i {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* Visual Column & Canvas */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(19, 21, 31, 0.5);
  border-radius: 60px; /* Hyper-rounded shapes */
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Glass Card */
.hero__card-glass {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px var(--color-secondary);
}

.hero__card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero__card-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.hero__card-text strong {
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__visual {
    height: 400px;
    order: -1; /* Image on top for mobile */
  }

  .hero__canvas-wrapper {
    border-radius: 40px;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.2rem;
  }
}

/* --- SECTION UTILS --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 900;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}

.section-subtitle strong {
  color: #fff;
}

/* --- EVOLUTION SECTION --- */
.evolution {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Broken Grid Layout */
.evolution__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  align-items: center;
}

/* Card Styles */
.evo-card {
  background: var(--bg-card);
  border-radius: 40px; /* Hyper-rounded per requirement */
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.evo-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Positioning in Grid (Asymmetry) */
.evo-card:nth-child(1) {
  grid-column: 1 / 5;
  min-height: 350px;
}

.evo-card:nth-child(2) {
  grid-column: 5 / 9;
  margin-top: 80px; /* Breaking the horizontal line */
  min-height: 350px;
}

.evo-card:nth-child(3) {
  grid-column: 9 / 13;
  min-height: 450px; /* Larger accent card */
  background: linear-gradient(145deg, #1a1d2b, #0f1119);
  border: 1px solid var(--color-secondary);
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.15);
}

/* Card Elements */
.evo-card__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
}

.evo-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-primary);
}

.evo-card--accent .evo-card__icon {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 15px var(--color-secondary);
}

.evo-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.evo-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.evo-card__desc strong {
  color: var(--color-primary);
}

/* Accent Card specifics */
.evo-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-secondary);
  color: #fff;
  padding: 8px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom-right-radius: 20px;
}

.evo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.evo-card__link:hover {
  gap: 12px;
  color: #fff;
}

.evo-card__bg-blur {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--color-secondary);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .evolution__grid {
    grid-template-columns: 1fr 1fr;
  }

  .evo-card:nth-child(1) {
    grid-column: 1 / 2;
  }
  .evo-card:nth-child(2) {
    grid-column: 2 / 3;
    margin-top: 40px;
  }
  .evo-card:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .evolution__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .evo-card:nth-child(2) {
    margin-top: 0;
  }
}

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

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

/* Grid Cell Styles */
.tech-item {
  background: #0e1016;
  border-radius: 35px; /* Hyper-rounded */
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.tech-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Cell Variants (The "Breaking Grid" part) */
.tech-item--large {
  grid-column: span 2;
  background: linear-gradient(135deg, #0e1016 0%, #151824 100%);
}

.tech-item--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: rgba(188, 19, 254, 0.05);
  border: 1px solid rgba(188, 19, 254, 0.2);
}

.tech-item--wide {
  grid-column: span 2;
  background: radial-gradient(
    circle at top right,
    rgba(0, 243, 255, 0.1),
    #0e1016
  );
}

/* Content Styling */
.tech-item__icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-primary);
  transition: var(--transition);
}

.tech-item:hover .tech-item__icon-wrap {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 15px var(--color-primary);
}

.tech-item--tall .tech-item__icon-wrap {
  color: var(--color-secondary);
}
.tech-item--tall:hover .tech-item__icon-wrap {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 15px var(--color-secondary);
}

.tech-item__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
}

.tech-item__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-item__desc strong {
  color: #fff;
  font-weight: 600;
}

/* Tall Item Specifics */
.tech-item__visual-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.dashed-line {
  flex-grow: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-secondary) 0,
    var(--color-secondary) 5px,
    transparent 5px,
    transparent 10px
  );
  margin: 0 10px;
}

.tech-item__note {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Wide Item Specifics */
.tech-item__flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.tech-item__text {
  max-width: 65%;
}

.tech-item__chart-icon {
  font-size: 0; /* Clear space */
}
.tech-item__chart-icon svg {
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.1);
  stroke-width: 1px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  border-bottom-color: var(--color-primary);
  gap: 12px;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .tech-item--large {
    grid-column: span 2;
  }
  .tech-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  } /* Reset tall height */
  .tech-item:nth-child(3) {
    grid-column: span 1;
  }
  .tech-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-item--large,
  .tech-item--tall,
  .tech-item--wide,
  .tech-item:nth-child(3) {
    grid-column: span 1;
  }

  .tech-item__flex {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .tech-item__text {
    max-width: 100%;
  }

  .tech-item__chart-icon {
    margin-bottom: 20px;
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: 100px 0;
  overflow: hidden; /* Prevent horizontal page scroll */
}

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.blog__arrows {
  display: flex;
  gap: 10px;
}

.blog__arrows i {
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 8px;
  width: 40px;
  height: 40px;
  cursor: default; /* Декоративные */
  opacity: 0.5;
}

/* Horizontal Scroller */
.blog__scroller {
  width: 100%;
  overflow-x: auto;
  /* Скрываем скроллбар, но оставляем функционал */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding-bottom: 40px; /* Space for shadows */
  cursor: grab;
}

.blog__scroller::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.blog__track {
  display: flex;
  gap: 30px;
  padding: 0 max(20px, calc((100vw - 1240px) / 2)); /* Center alignment trick */
  width: max-content;
}

/* Blog Card Styles */
.blog-card {
  width: 380px;
  background: rgba(19, 21, 31, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Snap Logic */
  scroll-snap-align: start;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

.blog-card__image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.blog-card__tag--neon {
  background: var(--color-secondary);
  box-shadow: 0 0 15px var(--color-secondary);
}

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

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

.blog-card__meta i {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #fff;
}

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

.blog-card__text strong {
  color: var(--color-primary);
}

.blog-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.blog-card__link i {
  color: var(--color-secondary);
  transition: var(--transition);
}

.blog-card__link:hover {
  color: var(--color-secondary);
}

.blog-card__link:hover i {
  transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-card {
    width: 300px;
  }

  .blog__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog__nav {
    width: 100%;
    justify-content: space-between;
  }
}
/* --- FAQ SECTION --- */
.faq {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(
    circle at top left,
    rgba(188, 19, 254, 0.05),
    transparent 40%
  );
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

/* Decoration in left column */
.faq__decoration {
  position: relative;
  height: 200px;
  margin-top: 50px;
}

.faq__circle {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: float 8s ease-in-out infinite reverse;
}

.faq__circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-primary);
}

.faq__circle--small {
  width: 80px;
  height: 80px;
  border-color: rgba(188, 19, 254, 0.3);
  top: 80px;
  left: 80px;
  animation-delay: 1s;
}

/* Accordion Styles */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-item {
  background: var(--bg-card);
  border-radius: 30px; /* Hyper-rounded */
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.accordion-header {
  width: 100%;
  padding: 25px 30px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: var(--transition);
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding-right: 20px;
}

.accordion-item.active .accordion-title {
  color: var(--color-primary);
}

.accordion-icon {
  min-width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #000;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-body {
  padding: 0 30px 30px 30px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-body strong {
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__decoration {
    display: none; /* Hide decorative circles on mobile */
  }
}

.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact__glow-bg {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(0, 243, 255, 0.1) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(80px);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact__icon {
  color: var(--color-primary);
}

.contact__form-card {
  background: rgba(19, 21, 31, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.form__title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-left: 15px;
}

.form__input {
  width: 100%;
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  user-select: none;
}

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

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

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

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

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 15px 15px 45px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.captcha-box .checkmark {
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
}

.captcha-icon {
  color: var(--color-text-muted);
  opacity: 0.5;
  width: 20px;
}

.form__submit {
  width: 100%;
  font-size: 1rem;
}

.form__message {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 20px;
}
.form__message.success {
  color: #0f0;
}
.form__message.error {
  color: #f00;
}

@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
    margin-bottom: 30px;
  }
  .contact__list {
    align-items: center;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  max-width: 400px;
  background: rgba(19, 21, 31, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  padding: 25px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-popup.show {
  transform: translateY(0);
}

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

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

.cookie-btn {
  align-self: flex-start;
  padding: 10px 25px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn:hover {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 0 15px var(--color-secondary);
}

/* --- LEGAL PAGES STYLES (privacy.html etc) --- */
/* Этот класс оборачивает контент на доп. страницах */
.pages {
  padding: 140px 0 80px; /* Большой отступ сверху, т.к. хедер фиксирован */
  min-height: 80vh;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff;
}

.pages p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 800px;
}

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

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

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

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

.pages a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cookie-popup {
    left: 20px;
    right: 20px;
    max-width: none;
    bottom: 20px;
  }
  .pages h1 {
    font-size: 2.2rem;
  }
}
