/* --- VARIABLES --- */
:root {
  /* Palette: Minimal Dark + Neon Lime */
  --bg-dark: #0a0a0f;
  --bg-card: #14141e;
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --accent-neon: #ccff00; /* Lime Neon */
  --accent-hover: #b3e600;

  /* Shapes */
  --radius-xl: 30px; /* Hyper-rounded */
  --radius-full: 999px; /* Capsules */

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Glassmorphism */
  --glass-bg: rgba(20, 20, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --backdrop: blur(16px);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BUTTONS & UI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27),
    opacity 0.3s;
  border: none;
  font-size: 1rem;
}

.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  background-color: var(--accent-neon);
  color: var(--bg-dark);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.header__logo svg {
  transition: transform 0.5s ease;
}

.header__logo:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.header__nav {
  display: none;
}

.header__menu {
  display: flex;
  gap: 40px;
}

.header__link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.header__link:hover {
  color: var(--text-main);
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-neon);
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__cta {
  display: none;
}

.header__burger {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.is-active {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-menu__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-menu__link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-menu__link:hover {
  color: var(--accent-neon);
}

/* --- FOOTER --- */
.footer {
  background-color: #050508;
  padding: 80px 0 30px;
  margin-top: auto; /* Push to bottom */
  border-top: 1px solid var(--glass-border);
}

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

.footer__logo {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-neon);
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer__link:hover {
  color: var(--accent-neon);
  transform: translateX(5px);
  display: inline-block;
}

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

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

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-neon);
  flex-shrink: 0;
}

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

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
  .header__burger {
    display: none;
  }

  .header__nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 140px 0 80px; /* Відступ зверху враховує фіксований хедер */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background Glow Effect */
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(204, 255, 0, 0.15) 0%,
    rgba(10, 10, 15, 0) 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

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

/* Content Side */
.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: var(--radius-full);
  font-size: 0.9rem;
  color: var(--accent-neon);
  margin-bottom: 24px;
  font-weight: 500;
}

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

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

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Велика типографіка */
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-gradient {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, #ffffff, #ccff00);
}

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

.hero__subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

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

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

.hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.hero__stat-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

/* Visual Side (Chat Card) */
.hero__visual {
  position: relative;
  perspective: 1000px; /* Для 3D ефекту */
}

.chat-card {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out; /* Плавність для JS паралаксу */
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.chat-card__avatar {
  width: 48px;
  height: 48px;
  background: rgba(204, 255, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
}

.chat-card__info {
  display: flex;
  flex-direction: column;
}

.chat-card__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.chat-card__status {
  font-size: 0.8rem;
  color: var(--accent-neon);
}

.chat-card__body {
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  overflow: hidden; /* Сховаємо скрол для чистоти */
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27) forwards;
  opacity: 0;
  transform: scale(0.9);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
  color: var(--text-muted);
}

.message--user {
  align-self: flex-end;
  background: var(--accent-neon);
  color: var(--bg-dark);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-card__input-area {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-card__input-fake {
  flex-grow: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-full);
}

.chat-card__send {
  width: 40px;
  height: 40px;
  background: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
}

/* Floating Elements */
.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-icon--1 {
  top: -20px;
  right: 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-icon--2 {
  bottom: 40px;
  left: -30px;
  animation: float 5s ease-in-out infinite 1s;
}

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

/* Responsive */
@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero {
    padding-top: 120px;
    text-align: center;
  }
  .hero__actions,
  .hero__badge,
  .hero__stats {
    justify-content: center;
  }
  .hero__subtitle {
    margin: 0 auto 40px;
  }
  .chat-card {
    max-width: 100%;
  }
  .floating-icon {
    display: none; /* Сховати на мобільному щоб не заважали */
  }
}

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

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

.tech__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

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

/* BENTO GRID LAYOUT */
.tech__grid {
  display: grid;
  gap: 24px;
  /* Mobile first: 1 column */
  grid-template-columns: 1fr;
}

/* Cards Styling */
.tech-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Hover Effect: Lift & Glow */
.tech-card:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.tech-card:hover .tech-card__icon-box {
  background-color: var(--accent-neon);
  color: var(--bg-dark);
  transform: scale(1.1) rotate(5deg);
}

.tech-card__icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  font-size: 24px; /* Lucide icon size control */
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.tech-card__icon-box i {
  width: 30px;
  height: 30px;
}

.tech-card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

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

/* List inside Tall Card */
.tech-card__list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 500;
}

.tech-card__list li i {
  color: var(--accent-neon);
  width: 18px;
  height: 18px;
}

/* Background Decorative Icon */
.tech-card__bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.03;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.tech-card__bg-icon i {
  width: 200px;
  height: 200px;
}

.tech-card:hover .tech-card__bg-icon {
  transform: rotate(-10deg) scale(1.1);
  opacity: 0.05;
}

/* DESKTOP GRID (Breaking the Grid) */
@media (min-width: 992px) {
  .tech__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
  }

  /* Wide card spans 2 columns */
  .tech-card--wide {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  /* Tall card spans 2 rows */
  .tech-card--tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  /* Standard card fills the gap */
  .tech-card:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  padding: 100px 0;
  background-color: var(--bg-dark); /* Продовження темної теми */
}

.solutions__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.solutions__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.solutions__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.solutions__subtitle strong {
  color: var(--accent-neon);
}

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

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

/* Card Styling */
.sol-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.sol-card:hover {
  border-color: var(--accent-neon);
  transform: translateY(-5px);
}

/* Big Number Background */
.sol-card__num {
  position: absolute;
  top: -20px;
  right: -20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.3s ease;
}

.sol-card:hover .sol-card__num {
  -webkit-text-stroke-color: rgba(204, 255, 0, 0.1);
}

.sol-card__icon {
  width: 50px;
  height: 50px;
  background: var(--accent-neon);
  border-radius: 50%; /* Кругла іконка */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.sol-card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.sol-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.sol-card__desc em {
  color: var(--text-main);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent-neon);
}

.sol-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-neon);
  position: relative;
  z-index: 1;
  transition: gap 0.3s ease;
}

.sol-card__link i {
  width: 18px;
  height: 18px;
}

.sol-card__link:hover {
  gap: 12px;
  color: var(--accent-hover);
}

/* Desktop Styles (Breaking the Grid) */
@media (min-width: 768px) {
  .solutions__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start; /* Важливо для offset */
  }

  /* Зміщення правої колонки вниз */
  .solutions__col--offset {
    margin-top: 120px;
  }
}

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

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

.blog__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.blog__subtitle {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 1rem;
}

.blog__subtitle strong {
  color: var(--text-main);
}

/* Blog List Styles */
.blog__list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  display: grid;
  grid-template-columns: 1fr; /* Mobile first */
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
}

/* Останній елемент закриваємо лінією знизу */
.blog-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Interaction */
.blog-item:hover {
  border-color: var(--accent-neon);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 100%
  );
  padding-left: 20px; /* Зсув вправо */
}

.blog-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-item__tag {
  color: var(--accent-neon);
  border: 1px solid rgba(204, 255, 0, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-item__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-item__title {
  font-size: 1.8rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.blog-item:hover .blog-item__title {
  color: var(--accent-neon);
}

.blog-item__desc {
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.blog-item__desc strong {
  color: var(--text-main);
  font-weight: 500;
}

.blog-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.blog-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0.5;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

/* Показуємо кнопку яскравіше при наведенні на весь блок */
.blog-item:hover .blog-item__link {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-neon);
}

.blog__footer {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog__footer p {
  color: var(--text-muted);
}

.blog__footer strong {
  color: var(--accent-neon);
}

/* Desktop Layout */
@media (min-width: 992px) {
  .blog-item {
    grid-template-columns: 200px 1fr 200px;
    align-items: start;
  }

  .blog-item__action {
    justify-content: flex-end;
  }
}

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

/* Background Glows */
.contact__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(204, 255, 0, 0.08) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
}

.contact__glow--1 {
  top: 10%;
  left: -10%;
}
.contact__glow--2 {
  bottom: 10%;
  right: -10%;
}

.contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
  margin-bottom: 50px;
}

.contact__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.contact__desc {
  color: var(--text-muted);
}

.contact__desc strong {
  color: var(--text-main);
}

/* Form Card */
.contact__card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.form-group {
  margin-bottom: 24px;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full); /* Capsule shape */
  padding: 16px 20px 16px 50px; /* Padding for icon */
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-neon);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-neon);
}

.form-input.is-invalid {
  border-color: #ff4d4d;
}
.form-input.is-valid {
  border-color: var(--accent-neon);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}

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

.checkmark {
  height: 24px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

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

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.captcha-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.captcha-text {
  font-weight: 500;
}

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

/* Consent Specific */
.consent-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.consent-text a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.consent-text a:hover {
  color: var(--accent-neon);
  text-decoration-color: var(--accent-neon);
}

.checkmark--small {
  height: 18px;
  width: 18px;
  border-radius: 4px;
}

.checkmark--small::after {
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
}

.form-btn {
  width: 100%;
  margin-top: 20px;
  justify-content: space-between;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon i {
  width: 40px;
  height: 40px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-error-text {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 6px;
  margin-left: 12px;
  display: none; /* За замовчуванням приховано */
  animation: slideDown 0.3s ease;
}

.form-error-text.is-visible {
  display: block;
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #ff4d4d !important;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стиль для загального блоку помилки (якщо потрібно) */
.general-error {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  color: #ff4d4d;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  display: none; /* Приховано */
}

.general-error.is-visible {
  display: flex;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 60px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-popup.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.cookie-popup__content {
  background: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.cookie-popup__btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
}

/* --- STANDARD TEXT PAGES (Privacy, Terms, etc.) --- */
/* Цей блок стилізує <section class="pages"> */

.pages {
  padding: 140px 0 80px; /* Відступ під фіксований хедер */
  min-height: 60vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для кращого читання тексту */
}

.pages h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 40px;
  color: var(--accent-neon);
  line-height: 1.1;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--text-main);
  border-left: 4px solid var(--accent-neon);
  padding-left: 16px;
}

.pages h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 16px;
  color: var(--text-main);
}

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

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

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

/* Булети списку */
.pages ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-neon);
  border-radius: 50%;
}

.pages a {
  color: var(--accent-neon);
  text-decoration: none;
  transition: color 0.2s;
}

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

.pages strong {
  color: var(--text-main);
  font-weight: 600;
}
