/* --- RESET & VARIABLES --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-main: #e0e0e0;
  --text-muted: #8a8a8a;
  --accent-neon: #ccff00; /* Lime Neon */
  --accent-secondary: #7000ff; /* Electric Purple */
  --white: #ffffff;

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

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

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- GLOBAL LAYOUT --- */
.main {
  flex: 1;
}

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

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.header__list {
  display: flex;
  gap: 30px;
}

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

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

.header__link:hover {
  color: var(--accent-neon);
}
.header__link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 10px 24px;
  border: 1px solid var(--accent-neon);
  color: var(--accent-neon);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.header__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-neon);
  z-index: -1;
  transition: var(--transition);
}

.header__cta:hover {
  color: var(--bg-dark);
}
.header__cta:hover::before {
  width: 100%;
}

/* Mobile Menu Logic */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.header__burger-line {
  width: 30px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background-color: #050505;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
}

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

.footer__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__list li {
  margin-bottom: 12px;
}

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

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.footer__contact-item i {
  width: 20px;
  height: 20px;
  color: var(--accent-neon);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__burger {
    display: flex;
  }

  .header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
  }
  .header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

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

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

/* Асимметричный фон */
.hero__bg-element {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.15) 0%,
    rgba(10, 10, 10, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Асимметричная сетка */
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Контентная часть */
.hero__content {
  padding-top: 40px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--accent-neon);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
}

.hero__title {
  font-family: var(--font-head);
  font-size: 5rem; /* Очень крупный заголовок */
  line-height: 0.95;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 30px;
  text-transform: uppercase;
}

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

/* Эффект "глюка" и смещения для слова Апгрейд */
.hero__title--highlight::after {
  content: "Апгрейд";
  position: absolute;
  top: 4px;
  left: 4px;
  color: var(--accent-secondary);
  -webkit-text-stroke: 0;
  z-index: -1;
  opacity: 0.7;
  filter: blur(2px);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 50px;
  border-left: 2px solid var(--accent-secondary);
  padding-left: 20px;
}

/* Кнопки и действия */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background-color: var(--accent-neon);
  color: var(--bg-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
}

.btn-primary i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

/* Статистика рядом с кнопкой */
.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

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

/* Визуальная часть (Canvas) */
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Скролл индикатор */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 1;
  color: var(--accent-neon);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-neon), transparent);
}

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

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

  .hero__subtitle {
    border-left: none;
    padding-left: 0;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__visual {
    min-height: 300px; /* Уменьшаем высоту канваса на планшете */
    order: -1; /* Ставим анимацию выше текста на мобильных для вау-эффекта */
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__actions {
    flex-direction: column;
    gap: 20px;
  }
  .hero__scroll {
    display: none;
  } /* Скрываем на очень маленьких экранах */
}

/* --- GLOBAL SECTION STYLES --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

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

.section__title {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

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

.text-neon {
  color: var(--accent-neon);
}
.text-purple {
  color: var(--accent-secondary);
}
.mb-large {
  margin-bottom: 60px;
}
.highlight {
  color: var(--white);
  border-bottom: 1px solid var(--accent-neon);
}

/* --- METHODOLOGY --- */
.methodology__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-neon);
  transform: scale(1.01);
}

.step-card__number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step-card:hover .step-card__number {
  color: var(--accent-neon);
  opacity: 0.5;
}

.step-card__title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

.step-card__text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.step-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(112, 0, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.step-card:hover .step-card__icon {
  background: var(--accent-secondary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--accent-neon);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.link-arrow i {
  width: 16px;
}

/* --- MARQUEE (Бегущая строка) --- */
.marquee {
  background: var(--accent-neon);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transform: rotate(-2deg) scale(1.05); /* Легкий наклон для динамики */
  margin: 40px 0;
}

.marquee__content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bg-dark);
  font-size: 1.5rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.divider {
  margin: 0 30px;
}

/* --- TRENDS GRID (Bento) --- */
.trends__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.trend-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.trend-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 1) 0%,
    rgba(112, 0, 255, 0.2) 100%
  );
  justify-content: flex-end;
}

.trend-card--wide {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-neon); /* Акцентная обводка */
}

.trend-card__title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
  font-family: var(--font-head);
}

.trend-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.trend-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.trend-card__tags span {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-right: 5px;
  color: var(--white);
}

.btn-outline {
  padding: 10px 24px;
  border: 1px solid var(--white);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

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

/* Animations Trigger Class */
.reveal-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .trends__grid {
    grid-template-columns: 1fr 1fr;
  }
  .trend-card--large {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 250px;
  }
  .trend-card--wide {
    grid-column: 1 / 3;
  }
}

@media (max-width: 600px) {
  .step-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .step-card__icon {
    display: none;
  }
  .trends__grid {
    grid-template-columns: 1fr;
  }
  .trend-card--large,
  .trend-card--wide {
    grid-column: 1;
  }
  .section__title {
    font-size: 2rem;
  }
}

/* --- SKILLS SECTION --- */
.skills {
  background-color: #0d0d0d;
  overflow: hidden;
}

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

.skills__bg-decoration {
  position: absolute;
  left: -200px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.mt-4 {
  margin-top: 30px;
}

/* Terminal Style */
.skills__terminal {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: "Courier New", monospace; /* Моноширинный шрифт для терминала */
}

.terminal__header {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.terminal__title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: #888;
}

.terminal__body {
  padding: 30px;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-item__header {
  display: flex;
  justify-content: space-between;
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.skill-item__bar-bg {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 3px;
  overflow: hidden;
}

.skill-item__bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-secondary),
    var(--accent-neon)
  );
  border-radius: 3px;
  /* Анимация заполнения */
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Этот класс будет добавляться JS-ом при скролле для запуска анимации бара */
.reveal-anim.visible .skill-item__bar-fill {
  /* Ширина задается инлайново в HTML, здесь просто триггерим переход */
}

.terminal__footer {
  color: var(--accent-neon);
  font-size: 0.8rem;
  margin-top: 20px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* --- REVIEWS SECTION (Scroll Snap) --- */
.text-center {
  text-align: center;
}

.reviews__slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
  /* Скрываем скроллбар */
  scrollbar-width: none;
}

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

.review-card {
  flex: 0 0 400px; /* Фиксированная ширина карточки */
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 0; /* Острые углы по стилю */
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card:hover {
  border-color: var(--accent-neon);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Аватарки круглые для контраста с острыми блоками */
  object-fit: cover;
  border: 2px solid var(--accent-secondary);
}

.review-card__name {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

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

.review-card__text {
  font-size: 0.95rem;
  color: #ccc;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 20px;
}

.review-card__rating {
  color: var(--accent-neon);
  font-size: 1.2rem;
}

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

@media (max-width: 600px) {
  .review-card {
    flex: 0 0 85vw;
  } /* На мобилках карточка почти на весь экран */
}

/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  padding-bottom: 150px; /* Большой отступ снизу */
}

.contact__glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(112, 0, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--accent-neon);
}

/* Form Styles */
.contact__form-wrapper {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  /* Убираем border-radius для стиля */
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  padding: 12px 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-neon);
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.75rem;
  position: absolute;
  bottom: -20px;
  left: 0;
  opacity: 0;
  transition: 0.3s;
}

.form-group.error .form-input {
  border-color: #ff4d4d;
}
.form-group.error .error-msg {
  opacity: 1;
  bottom: -18px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #444;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

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

.custom-checkbox:checked::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-dark);
  font-size: 14px;
}

.check-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.check-label a {
  color: var(--white);
  text-decoration: underline;
}

.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  width: fit-content;
  min-width: 250px;
}

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

.captcha-label {
  color: #000;
  font-weight: 500;
}

.captcha-logo {
  width: 32px;
  opacity: 0.5;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s;
}

.form-success i {
  color: var(--accent-neon);
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.form-success h3 {
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 10px;
}

.w-100 {
  width: 100%;
  justify-content: center;
}

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

.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 15px 20px;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s ease;
  display: flex;
  justify-content: center;
}

.cookie-popup.show {
  bottom: 0;
}

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

.cookie-content p {
  color: var(--bg-dark);
  font-size: 0.9rem;
  margin: 0;
}

.cookie-content a {
  color: var(--bg-dark);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-btn {
  background: var(--bg-dark);
  color: var(--white);
  padding: 8px 24px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
}

.cookie-btn:hover {
  background: var(--accent-secondary);
}

/* --- STYLES FOR POLICY PAGES (privacy.html etc) --- */
.pages {
  padding: 150px 0 80px;
}
.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 30px;
}
.pages h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent-neon);
  margin: 30px 0 15px;
}
.pages p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1rem;
  max-width: 800px;
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-muted);
}
.pages li {
  margin-bottom: 10px;
}
.pages a {
  color: var(--accent-neon);
  text-decoration: underline;
}

/* Responsive Contact */
@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Додай це в розділ CONTACT SECTION */

.form-check.error .custom-checkbox,
.captcha-box.error {
  border-color: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
  animation: shake 0.4s ease-in-out;
}

.captcha-box.error {
  border: 1px solid #ff4d4d;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.8s ease;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.form-success.active {
  display: flex;
}

.success-icon-box {
  margin-bottom: 20px;
  color: var(--accent-neon);
}
.success-icon-box svg {
  width: 64px;
  height: 64px;
}

.form-success h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

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