/* --- ЗМІННІ ТА НАЛАШТУВАННЯ --- */
:root {
  --color-bg: #0a0a0a;
  --color-text: #f0f0f0;
  --color-muted: #a0a0a0;

  --aurora-1: #ff00cc; /* Magenta */
  --aurora-2: #333399; /* Deep Purple */
  --aurora-3: #00d4ff; /* Cyan */

  --font-heading: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
  --radius-pill: 50px;
}

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

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

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

/* --- AURORA BACKGROUND --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #050505;
}

.aurora-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: moveBlob 20s infinite alternate;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: var(--aurora-1);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  background: var(--aurora-2);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  background: var(--aurora-3);
  top: 40%;
  left: 40%;
  animation-delay: -10s;
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+");
  pointer-events: none;
  z-index: 1;
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

/* --- UI COMPONENTS --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: var(--font-heading);
  font-weight: 700;
}

.btn--fluid {
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-blob);
  color: #fff;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn--fluid:hover {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.header__glass-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 70px;
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.header__link {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

.header__link:hover {
  color: #fff;
}

.header__link::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--aurora-1);
  border-radius: 50%;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header__link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* --- BURGER --- */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

/* --- FOOTER --- */
.footer {
  margin-top: 100px;
  padding: 80px 0 30px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px 50px 0 0; /* Rounded top */
}

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

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--aurora-1), var(--aurora-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  display: block;
}

.footer__tagline {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer__sub {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer__heading {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer__wrapper ul li {
  list-style: none;
  margin-bottom: 12px;
}

.footer__wrapper a {
  color: var(--color-muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer__wrapper a:hover {
  color: var(--aurora-3);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  stroke: var(--aurora-1);
}

.footer__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--aurora-3);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  width: fit-content;
}

.footer__note svg {
  width: 14px;
  height: 14px;
}

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

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 100px;
    left: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 30px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header__burger {
    display: flex;
  }

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

@media (max-width: 576px) {
  .header__glass-pill {
    padding: 0 15px;
  }
  .footer__wrapper {
    grid-template-columns: 1fr;
  }
  .footer {
    border-radius: 30px 30px 0 0;
  }
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Відступ для фіксованого хедера */
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

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

/* Typography & Content */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  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.9rem;
  color: var(--aurora-3);
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--aurora-3);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 212, 255, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--aurora-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

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

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.btn--lg {
  padding: 18px 45px;
  font-size: 1.1rem;
}

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

.avatars {
  display: flex;
  padding-left: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -10px;
  background-color: #333; /* Fallback */
  background-size: cover;
}

.trust-text {
  font-size: 0.9rem;
  line-height: 1.2;
}

.trust-text span {
  display: block;
  color: #fff;
  font-weight: 600;
}

.stars {
  color: #ffd700;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* Visual / Animation Area */
.hero__visual {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#liquid-orb {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 50px rgba(51, 51, 153, 0.3));
}

/* Glass Cards Floating */
.glass-card {
  position: absolute;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  left: 10%;
  animation-delay: -3s;
}

.glass-card span {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 5px;
}

.glass-card strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__visual {
    order: 1;
    height: 400px;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* --- SECTION UTILS --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

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

/* --- VISION SECTION --- */
.vision {
  padding: 100px 0;
  position: relative;
}

.vision__header {
  text-align: center;
  margin-bottom: 80px;
}

.vision__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  perspective: 1000px;
}

/* Blob Cards */
.blob-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  transition: all 0.5s ease-out;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Унікальні форми для кожного блоку */
.blob-card--1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-card--2 {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  margin-top: 50px; /* Зміщення по вертикалі для асиметрії */
}

.blob-card--3 {
  border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}

/* Hover Effects */
.blob-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px; /* Перетворення на більш правильну форму */
}

.blob-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blob-card__icon svg {
  color: #fff;
  width: 28px;
  height: 28px;
}

.blob-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.blob-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blob-card__number {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  transition: 0.3s;
}

.blob-card:hover .blob-card__number {
  color: rgba(255, 255, 255, 0.1);
  transform: scale(1.2) rotate(-10deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--aurora-3);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.3s;
}

.link-arrow:hover {
  gap: 10px;
  color: #fff;
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .blob-card {
    border-radius: 30px !important; /* На мобільному прибираємо складні форми для економії місця */
    margin-top: 0;
    min-height: auto;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  padding: 100px 0;
  overflow: hidden; /* Щоб приховати скролбар */
}

.solutions__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  padding-right: 20px;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aurora-3);
  font-size: 0.9rem;
  animation: bounceRight 2s infinite;
}

@keyframes bounceRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* Slider Container */
.solutions__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 20px 60px 20px; /* Місце для тіней та ховерів знизу */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Приховуємо скролбар */
  scrollbar-width: none;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.solutions__slider::-webkit-scrollbar {
  display: none;
}

/* Solution Card */
.sol-card {
  flex: 0 0 350px; /* Фіксована ширина картки */
  height: 450px;
  position: relative;
  scroll-snap-align: center;
}

.sol-card__inner {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

/* Fluid Hover Effect */
.sol-card:hover .sol-card__inner {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Icons */
.sol-card__icon {
  width: 50px;
  height: 50px;
  color: #fff;
  margin-bottom: 20px;
}

.sol-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

/* Typography */
.sol-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  z-index: 2;
}

.sol-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  z-index: 2;
  margin-bottom: auto;
}

.btn-text {
  color: var(--aurora-3);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 20px;
  z-index: 2;
}

/* Abstract Backgrounds inside cards */
.sol-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    var(--aurora-1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.sol-card--2 .sol-card__bg {
  background: radial-gradient(
    circle at 0% 100%,
    var(--aurora-2),
    transparent 60%
  );
}
.sol-card--3 .sol-card__bg {
  background: radial-gradient(
    circle at 100% 0%,
    var(--aurora-3),
    transparent 60%
  );
}
.sol-card--4 .sol-card__bg {
  background: radial-gradient(circle at 0% 0%, #fff, transparent 70%);
  opacity: 0.05;
}

.sol-card:hover .sol-card__bg {
  opacity: 0.2;
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .sol-card {
    flex: 0 0 85vw; /* Картка займає майже весь екран на мобільному */
    height: 400px;
  }

  .scroll-hint {
    display: none; /* Ховаємо підказку на мобільному, там це інтуїтивно */
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: 100px 0;
}

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.btn-link {
  color: var(--color-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.btn-link:hover {
  color: var(--aurora-1);
  gap: 10px;
}

/* Grid Layout */
.blog__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

/* Cards General */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 15px;
}

.highlight {
  color: var(--aurora-3); /* Cyan accent text */
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card__excerpt {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--aurora-1);
  text-underline-offset: 4px;
  transition: 0.3s;
}

.read-more:hover {
  text-decoration-color: var(--aurora-3);
  color: var(--aurora-3);
}

/* Fluid Image Wrappers */
.blog-card__image-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
  transition: transform 0.5s ease;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.1);
}

/* Main Article Specifics */
.blog-card--main .blog-card__image-wrapper {
  height: 400px;
  /* Велика рідка форма */
  border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%;
}

.blog-card--main .blog-card__title {
  font-size: 2rem;
}

/* Sidebar Articles Specifics */
.blog__sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-card--side {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.blog-card--side:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.blog-card--side .blog-card__content {
  flex: 1;
}

.blog-card--side .blog-card__title {
  font-size: 1.2rem;
}

.blog-card__image-wrapper--small {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-bottom: 0;
  /* Маленькі бульбашки */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

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

  .blog-card--main .blog-card__image-wrapper {
    height: 300px;
    border-radius: 20px; /* Спрощуємо форму на мобільному */
  }

  .blog-card--side {
    border-radius: 20px;
  }
}
/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden by default */
  width: 90%;
  max-width: 600px;
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  z-index: 9999;
  padding: 20px;
  border-radius: 4px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
}

.cookie-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-grid {
    flex-direction: row;
    text-align: left;
  }
}

.cookie-icon {
  color: var(--accent-primary);
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-btn {
  background: var(--accent-secondary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--accent-primary);
  color: #000;
}

/* --- Pages Styling (Privacy, Terms, etc.) --- */
.pages {
  padding: 40px 0 80px;
  background: var(--bg-main);
  min-height: 80vh;
}

.pages h1 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.pages h2 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pages p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.pages li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.pages li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-family: monospace;
}

.pages strong {
  color: #fff;
}

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

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

/* --- Contact Page Specific Styles --- */
.contact-page {
  padding: 60px 0 100px;
  position: relative;
  min-height: 80vh; /* Робить сторінку на весь екран по висоті */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.contact-page__header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  margin: 16px 0;
  text-transform: uppercase;
}

.contact-page__header p {
  color: var(--text-secondary);
}

/* Grid Layout */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

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

/* Contact Module Cards */
.contact-card {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  background: rgba(20, 20, 25, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-secondary),
    transparent
  );
  opacity: 0.5;
  transition: 0.3s;
}

.contact-card:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
  opacity: 1;
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.contact-card:hover .contact-card__icon {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: scale(1.1);
}

.contact-card__title {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card__data {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}

.contact-card__link {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: 0.3s;
}

.contact-card__link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
}

.contact-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* --- CONTACT SECTION & FORM STYLES --- */

/* Контейнер секції */
.contact {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

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

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

/* Ліва частина (Текст) */
.contact__info h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact__desc {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 255, 128, 0.1);
  border: 1px solid rgba(0, 255, 128, 0.2);
  border-radius: 20px;
  color: #00ff80;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff80;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff80;
}

/* Деталі контактів */
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.detail-item a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.detail-item a:hover {
  color: #bfaee3; /* Світло-фіолетовий акцент */
}

/* --- FORM WRAPPER --- */
.contact__form-wrapper {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.fluid-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Поля вводу */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-family: "Space Grotesk", sans-serif;
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: #475569;
}

.form-input:focus {
  border-color: #7b2cbf; /* Акцентний колір */
  background: rgba(123, 44, 191, 0.05);
  box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
}

/* Чекбокси */
.form-checkbox-group {
  margin-top: 5px;
}

.custom-checkbox {
  display: flex;
  align-items: center; /* Центрування по вертикалі */
  cursor: pointer;
  position: relative;
  padding-left: 32px;
  user-select: none;
  min-height: 24px; /* Мінімальна висота для кліку */
}

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

.checkmark {
  position: absolute;
  top: 50%; /* Центрування */
  left: 0;
  transform: translateY(-50%); /* Центрування */
  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: 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #7b2cbf;
  border-color: #7b2cbf;
}

.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 white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.label-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.small-text .label-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.custom-checkbox a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.custom-checkbox a:hover {
  color: #bfaee3;
}

/* Кнопка */
.btn--submit {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff00cc 0%, #333399 100%);
  color: white;
  border: none;
  font-weight: 600;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(123, 44, 191, 0.3);
}

/* Лоадер (прихований за замовчуванням) */
.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

/* Повідомлення форми */
.form-message {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
}

.form-message.success {
  color: #00ff80;
}

.form-message.error {
  color: #ff4d4d;
}

/* Адаптив для мобільних */
@media (max-width: 768px) {
  .contact__form-wrapper {
    padding: 24px;
  }

  .contact__info h2 {
    font-size: 2.2rem;
  }
}
