/* --- Global Variables & Reset --- */
:root {
  /* Colors: Minimal Dark + Neon */
  --bg-dark: #0b0c10;
  --bg-card: #1f2833;
  --text-main: #c5c6c7;
  --text-light: #ffffff;
  --accent: #66fcf1; /* Neon Cyan */
  --accent-hover: #45a29e;
  --border-color: rgba(102, 252, 241, 0.2);

  /* Fonts */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-width: 1240px;
  --header-height: 80px;
}

*,
*::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(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: -1;
  transition: left 0.4s ease-in-out;
}

.btn:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent);
}

.btn:hover::before {
  left: 0;
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

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

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

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.logo-pulse {
  animation: pulse 2s infinite;
}

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

/* Nav */
.nav__list {
  display: flex;
  gap: 30px;
}

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

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

.nav__link:hover {
  color: var(--text-light);
}

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

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

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  width: 30px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

/* --- Mobile Nav Logic --- */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease-in-out;
    z-index: 999;
  }

  .nav--active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-head);
  }

  .burger {
    display: flex;
  }

  .header__btn {
    display: none; /* Hide CTA button on mobile header to save space, relies on burger or footer */
  }

  /* Burger Animation */
  .burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger.active .burger__line:nth-child(2) {
    opacity: 0;
  }
  .burger.active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* --- Main Content Placeholder --- */
.main {
  flex: 1;
  padding-top: var(--header-height); /* Space for fixed header */
}

/* --- Footer --- */
.footer {
  background-color: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 60px;
  margin-top: auto;
}

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

.footer__title {
  font-family: var(--font-head);
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.footer__desc {
  font-size: 0.9rem;
  margin-top: 20px;
  max-width: 300px;
  opacity: 0.8;
}

.footer__logo {
  font-size: 1.8rem;
}

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

.footer__link {
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--accent);
  padding-left: 5px;
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.footer__contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer__bottom {
  background-color: #000;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Фон */
  background: radial-gradient(
    circle at center,
    #1b2028 0%,
    var(--bg-dark) 100%
  );
}

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

.hero__content {
  max-width: 800px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

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

/* Typography */
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний розмір */
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 24px;
}

.text-highlight {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  position: relative;
  display: inline-block;
}

/* Ефект заливки тексту */
.text-highlight::before {
  content: "нового поколения";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: var(--accent);
  overflow: hidden;
  border-right: 2px solid var(--accent);
  animation: fillText 4s cubic-bezier(0.8, 0, 0.2, 1) forwards;
  animation-delay: 0.5s;
  white-space: nowrap;
}

@keyframes fillText {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
    border-right-color: transparent;
  }
}

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

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.btn--large {
  padding: 16px 40px;
  font-size: 1rem;
}

.hero__note {
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__note i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.6;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 0.8rem;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__stats {
    gap: 20px;
  }
}

/* --- Common Section Styles --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--text-light);
}

.text-accent {
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* --- Features Grid --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Glassmorphism Card */
.feature-card {
  position: relative;
  background: rgba(31, 40, 51, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(102, 252, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Gradient Glow Effect on Hover */
.feature-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(102, 252, 241, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover .feature-card__bg {
  opacity: 1;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.feature-card__icon svg {
  width: 32px;
  height: 32px;
}

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

.feature-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Accent Card Style */
.feature-card--accent {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  position: relative;
  grid-column: span 1; /* Або span 2 якщо хочеться зробити її ширшою */
}

@media (min-width: 992px) {
  /* Робимо акцентну картку ширшою на великих екранах, якщо карток непарна кількість */
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-card--accent {
    grid-column: span 3; /* На всю ширину знизу */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .feature-card--accent .feature-card__content {
    max-width: 60%;
  }
}

.feature-card--accent .feature-card__title {
  color: var(--bg-dark);
  font-size: 2rem;
}

.feature-card--accent .feature-card__text {
  color: rgba(11, 12, 16, 0.8);
  margin-bottom: 30px;
  font-weight: 500;
}

.feature-card__decoration {
  position: absolute;
  right: -20px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  opacity: 0.1;
  pointer-events: none;
}

.btn--white {
  border-color: var(--bg-dark);
  color: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--white:hover {
  background: var(--bg-dark);
  color: var(--accent);
}

.btn--white::before {
  background: var(--bg-dark);
}

/* --- Animation Classes --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Steps / How It Works --- */
.center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.steps__wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Neon Line */
.steps__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.steps__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Анімована частина лінії */
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.5;
}

/* Individual Step */
.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 100px;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

/* Dots on the line */
.step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent);
}

.step__content {
  width: 45%;
  padding: 20px;
  position: relative;
}

.step__number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -40px;
  left: 0;
  line-height: 1;
  z-index: -1;
}

.step__title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.step__text {
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Images Styling */
.step__image-box {
  width: 45%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(102, 252, 241, 0.3);
}

/* "Glitch" effect decoration on image */
.step__image-box::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  z-index: -1;
  opacity: 0.5;
  transition: transform 0.3s;
}

.step:hover .step__image-box::before {
  transform: translate(5px, -5px);
}

.step__img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.2); /* Чорно-білі фото */
  transition: filter 0.5s;
  display: block;
}

.step:hover .step__img {
  filter: grayscale(0%) contrast(1); /* Колір при наведенні */
}

.step__img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(102, 252, 241, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Zigzag Logic (Reverse for even items) */
.step--reverse {
  flex-direction: row-reverse;
}

.step--reverse .step__content {
  text-align: right;
}

.step--reverse .step__number {
  left: auto;
  right: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .steps__line {
    left: 20px;
    transform: none;
  }

  .step::after {
    left: 20px;
    transform: translate(-50%, -50%);
  }

  .step,
  .step--reverse {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 40px; /* Відступ для лінії */
    gap: 30px;
  }

  .step__content,
  .step__image-box {
    width: 100%;
  }

  .step--reverse .step__content {
    text-align: left;
  }

  .step--reverse .step__number {
    left: 0;
    right: auto;
  }

  .section-header.center-text {
    text-align: left;
  }
}

/* --- Bento Grid Showcase --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 24px;
}

.bento-item {
  position: relative;
  background: rgba(31, 40, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 30px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item:hover {
  border-color: rgba(102, 252, 241, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Specific Sizes */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
}

.bento-item--wide {
  grid-column: span 3;
  background: linear-gradient(
    135deg,
    rgba(31, 40, 51, 0.8),
    rgba(11, 12, 16, 0.9)
  );
}

.bento-item--dark {
  background: #000;
}

/* Content Styling */
.bento-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.bento-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.bento-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.bento-item--large .bento-title {
  font-size: 2.5rem;
}

.bento-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto; /* Push content down */
  color: var(--accent);
}

/* Background Image for Large Item */
.bento-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}

.bento-item:hover .bento-bg-img {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95), transparent);
  z-index: 1;
}

/* Wide Item Layout */
.bento-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bento-decoration {
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.02);
  transform: rotate(-15deg);
}

.bento-decoration svg {
  width: 120px;
  height: 120px;
}

/* Link Style */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
  border-bottom: 1px solid transparent;
}

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

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

  .bento-item--large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 350px;
  }

  .bento-item--wide {
    grid-column: span 2;
  }
}

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

  .bento-item--large,
  .bento-item--wide {
    grid-column: span 1;
  }

  .bento-item--large .bento-title {
    font-size: 1.8rem;
  }
}

/* --- Contact Section --- */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Info Side */
.contact__content {
  padding-right: 20px;
}

.contact__info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.contact__icon {
  width: 50px;
  height: 50px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 4px;
}

.contact__link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
}

.contact__link:hover {
  color: var(--accent);
}

/* Form Styling */
.contact__form-wrapper {
  background: rgba(31, 40, 51, 0.4);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

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

.form__group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.form__input.error {
  border-color: #ff4d4d;
}

.form__error {
  font-size: 0.8rem;
  color: #ff4d4d;
  height: 14px; /* Fix layout shift */
}

.checkbox-group {
  margin-top: 10px;
}

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

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

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s;
}

.checkmark--small {
  height: 20px;
  width: 20px;
  top: 2px;
}

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

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

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

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

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox .checkmark--small:after {
  left: 7px;
  top: 3px;
}

.checkbox-text {
  font-size: 0.95rem;
  color: var(--text-main);
}

.small-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

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

.recaptcha-widget {
  width: 304px;
  height: 78px;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);

  /* Flex-структура */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin: 20px 0;
  box-sizing: border-box;
  position: relative;

  line-height: normal;
}

.recaptcha-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
}

/* Прихований інпут */
.recaptcha-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.recaptcha-box {
  position: relative;
  height: 28px;
  width: 28px;
  background-color: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  transition: border 0.3s;
  flex-shrink: 0; /* Щоб не стискався */
}

.recaptcha-check:hover .recaptcha-box {
  border-color: #b2b2b2;
}

.recaptcha-box:after {
  content: "";
  position: absolute;
  display: none;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 13px;
  border: solid #009c55;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.recaptcha-check input:checked ~ .recaptcha-box {
  border-color: #c1c1c1;
}

.recaptcha-check input:checked ~ .recaptcha-box:after {
  display: block;
}

.recaptcha-text {
  color: #000 !important; /* Чорний колір обов'язково */
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-left: 12px;
  white-space: nowrap;
}

.recaptcha-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 70px;
  text-align: center;
}

.recaptcha-brand svg {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 2px;
}

.brand-text {
  color: #555 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 10px;
  display: block;
}

.policy-text {
  color: #555 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 8px !important;
  line-height: 10px;
  margin-top: 2px;
  display: block;
  cursor: default;
}

.policy-text:hover {
  text-decoration: underline;
}

.recaptcha-widget .form__error {
  position: absolute;
  bottom: 2px;
  left: 12px;
  font-size: 10px;
  color: #ff4d4d;
  height: auto;
}
.btn--submit {
  width: 100%;
  margin-top: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

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

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

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

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

.success-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

  .contact__content {
    padding-right: 0;
    text-align: center;
  }

  .contact__info {
    align-items: center;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Схований знизу */
  width: 90%;
  max-width: 600px;
  background: rgba(31, 40, 51, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

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

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

/* Ці стилі спрацюють, коли ти створиш сторінки з класом <section class="pages"> */

.pages {
  padding: 120px 0 60px; /* Відступ зверху під хедер */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужча колонка для зручного читання тексту */
  background: rgba(31, 40, 51, 0.3);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-light);
  margin-top: 40px;
  margin-bottom: 15px;
}

.pages p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.8;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.pages li {
  margin-bottom: 10px;
}

.pages strong {
  color: var(--text-light);
}

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

.pages a:hover {
  text-decoration: none;
}
