/* --- VARIABLES --- */
:root {
  /* Palette: Bauhaus inspired (Paper, Ink, Primary Red/Blue) */
  --color-bg: #f2f2f0; /* Off-white paper */
  --color-text: #111111;
  --color-accent-blue: #0044cc;
  --color-accent-red: #e63946;
  --color-accent-yellow: #f4a261;
  --color-border: #bbbbbb; /* Visible grid lines */

  /* Typography */
  --font-main: "Manrope", sans-serif;
  --font-tech: "JetBrains Mono", monospace;

  /* Spacing */
  --container-width: 1440px;
  --header-height: 80px;
  --gap-grid: 1px; /* Gap creates the border effect */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-border); /* Grid lines color */
  color: var(--color-text);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- UTILS --- */
.header__container,
.footer__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--color-bg);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 2rem;
  position: relative;
}

/* Logo Styling */
.header__logo {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo-shape {
  width: 20px;
  height: 20px;
  background-color: var(--color-accent-blue);
  border-radius: 50%; /* Circle shape (Bauhaus) */
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__list {
  display: flex;
  height: 100%;
}

.header__item {
  display: flex;
  align-items: center;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  height: 100%;
}

.header__link {
  padding: 0 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA Button in Header */
.header__cta-wrapper {
  margin-left: 2rem;
}

.header__cta {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  background: var(--color-text);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-text);
  transition: all 0.3s ease;
}

.header__cta:hover {
  background: transparent;
  color: var(--color-text);
  box-shadow: 4px 4px 0 var(--color-accent-yellow);
  transform: translate(-2px, -2px);
}

/* Burger */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- MAIN --- */
.main {
  margin-top: var(--header-height); /* Offset for fixed header */
  min-height: 60vh; /* Temporary */
  background: var(--color-bg);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-border); /* Creates the grid lines */
  padding-top: 1px; /* Gap for top border */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 1px; /* Grid lines */
  background: var(--color-border);
}

.footer__col {
  background: var(--color-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
}

/* Col 1 Brand */
.footer__logo {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer__tagline {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  font-family: var(--font-tech);
}

.footer__decoration {
  margin-top: auto;
  width: 60px;
  height: 60px;
  background: var(--color-accent-red);
  clip-path: polygon(0 0, 0% 100%, 100% 100%); /* Triangle */
}

/* Columns Headings */
.footer__heading {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Links */
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 1rem;
  position: relative;
  width: fit-content;
}

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

/* Contacts */
.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent-blue);
}

.footer__note {
  margin-top: 2rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: #666;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Copyright */
.footer__bottom {
  background: var(--color-bg);
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin: 0 auto;
  max-width: var(--container-width);
}

.footer__copy {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: #888;
}

/* --- ADAPTIVE / MOBILE --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid var(--color-border);
  }

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

  .header__list {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .header__item {
    border: none;
    height: auto;
  }

  .header__link {
    font-size: 1.5rem;
    padding: 0;
  }

  .header__cta-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .header__cta {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- HERO SECTION --- */
.hero {
  min-height: calc(100vh - var(--header-height));
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
}

.hero__container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Тексту більше місця */
  background: var(--color-bg);
}

/* Content Side */
.hero__content {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--color-accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 68, 204, 0.1);
  animation: pulse 2s infinite;
}

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

.hero__title {
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-transform: uppercase;
}

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

.hero__title-outline::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: -10px;
  width: 100%;
  height: 40%;
  background: var(--color-accent-yellow);
  z-index: -1;
  opacity: 0.6;
}

.hero__description {
  font-size: 1.125rem;
  max-width: 500px;
  margin-bottom: 3rem;
  color: #444;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero__btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-red);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--color-accent-red);
  transition: all 0.3s ease;
}

.hero__btn-main:hover {
  background: transparent;
  color: var(--color-accent-red);
  gap: 1rem; /* Іконка відїжджає */
}

.hero__note {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: #888;
}

/* Visual Side (Art) */
.hero__visual {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  perspective: 1000px;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

/* Shapes */
.shape {
  position: absolute;
  mix-blend-mode: multiply; /* Ефект накладання як у друку */
  opacity: 0.8;
  transition: transform 0.1s linear;
}

.shape--circle {
  width: 200px;
  height: 200px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  top: 20%;
  right: 20%;
}

.shape--rect {
  width: 180px;
  height: 280px;
  background: var(--color-accent-red);
  bottom: 15%;
  left: 20%;
}

.shape--triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 180px solid var(--color-accent-yellow);
  top: 40%;
  left: 50%;
}

.hero__big-letter {
  position: absolute;
  font-size: 25rem;
  font-weight: 900;
  font-family: var(--font-main);
  color: rgba(0, 0, 0, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Mobile Hero */
@media (max-width: 900px) {
  .hero__container {
    grid-template-columns: 1fr;
  }

  .hero__content {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 1.5rem;
  }

  .hero__visual {
    min-height: 400px;
  }

  .hero__title {
    font-size: 2.5rem;
  }
}

/* --- SECTION UTILS --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-tech);
  color: #666;
  margin-bottom: 3rem;
}

.advantages {
  background: var(--color-bg);
  padding: 6rem 0;
  max-width: var(--container-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
}

.advantages__header {
  padding: 0 2rem;
  max-width: 800px;
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  /* 3 колонки на десктопі */
  grid-template-columns: repeat(3, 1fr);
  /* Автоматичні ряди */
  grid-auto-rows: minmax(300px, auto);
  background: var(--color-border); /* Колір ліній сітки */
  gap: 1px; /* Товщина ліній */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.bento-card {
  background: var(--color-bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.bento-card:hover {
  background: #ffffff; /* Легке підсвічування при наведенні */
}

/* Card Types (Sizes) */
.bento-card--large {
  grid-column: span 2;
}

.bento-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.bento-card--tall {
  grid-row: span 2; /* Висока картка справа */
}

/* Specific Styles */
.bento-card__icon-box {
  width: 50px;
  height: 50px;
  background: var(--color-accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 50%;
}

.bento-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.bento-card__text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-card__num {
  font-family: var(--font-tech);
  font-size: 3rem;
  color: #e0e0e0;
  font-weight: 700;
  line-height: 1;
  margin-bottom: auto;
  display: block;
}

/* Accent Card (Blue) */
.bento-card--accent {
  background: var(--color-accent-blue);
  color: white;
}
.bento-card--accent:hover {
  background: var(--color-accent-blue); /* No hover change for accent */
}
.text-white {
  color: white;
}
.text-white-alpha {
  color: rgba(255, 255, 255, 0.8);
}

.bento-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.bento-card--accent i {
  stroke: white;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

/* List Style */
.bento-list {
  margin-top: 2rem;
}
.bento-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.bento-list i {
  stroke: var(--color-accent-red);
  width: 20px;
}

/* Wide Card Visuals */
.bento-card__visual-side {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.geo-circle {
  width: 100px;
  height: 100px;
  background: var(--color-accent-red);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  mix-blend-mode: multiply;
}

.geo-rect {
  width: 100px;
  height: 100px;
  background: var(--color-accent-blue);
  position: absolute;
  bottom: 0;
  right: 0;
  mix-blend-mode: multiply;
}

.link-underline {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-accent-red);
  padding-bottom: 2px;
}

/* Stat */
.bento-card__stat {
  margin-top: auto;
  font-family: var(--font-tech);
  display: flex;
  flex-direction: column;
}
.bento-card__stat span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-blue);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--large {
    grid-column: span 2;
  }
  .bento-card--wide {
    grid-column: span 2;
  }
  .bento-card--tall {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--large,
  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
  }
  .bento-card--wide {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* --- PROCESS SECTION --- */
.process {
  padding: 6rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.process__container {
  max-width: 1000px; /* Вужчий контейнер для фокусу */
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.process__header {
  text-align: center;
  margin-bottom: 5rem;
}

/* Timeline Structure */
.timeline {
  position: relative;
  padding: 2rem 0;
}

/* Central Line */
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
  z-index: 1;
}

/* Items */
.timeline__item {
  display: flex;
  justify-content: flex-end; /* Default: Left side content (push content to left of center) */
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline__item--right {
  justify-content: flex-start; /* Right side content */
  padding-right: 0;
  padding-left: 50%;
}

/* Markers (Geometric Shapes) */
.timeline__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.timeline__item:hover .timeline__marker {
  transform: translateX(-50%) scale(1.2) rotate(15deg);
}

.marker--circle {
  border-radius: 50%;
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.marker--square {
  border-radius: 0;
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
}

.marker--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid var(--color-accent-yellow);
}
.marker--triangle:hover {
  /* Different hover for triangle to keep center */
  transform: translateX(-50%) scale(1.2);
}

/* Content Box */
.timeline__content {
  width: 90%;
  max-width: 400px;
  padding: 0 2rem;
  text-align: right;
}

.timeline__item--right .timeline__content {
  text-align: left;
}

/* Typography inside timeline */
.timeline__step-num {
  display: block;
  font-family: var(--font-tech);
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.timeline__text {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline__text strong {
  color: var(--color-accent-blue);
  font-weight: 600;
}

/* Decor */
.process__barcode {
  font-family:
    "Libre Barcode 39", cursive; /* Fallback to monospace if not loaded */
  font-family: var(--font-tech);
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 5px;
  opacity: 0.3;
  margin-top: 4rem;
  user-select: none;
}

/* --- RESPONSIVE TIMELINE --- */
@media (max-width: 768px) {
  .timeline__line {
    left: 20px;
  }

  .timeline__item {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px; /* Space for marker */
    text-align: left;
  }

  .timeline__item--right {
    padding-left: 60px;
  }

  .timeline__marker {
    left: 20px;
  }

  .timeline__content {
    text-align: left;
    width: 100%;
    padding: 0;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 600px;
}

/* Info Side */
.contact__info {
  padding: 6rem 4rem;
  background: var(--color-accent-blue);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.contact__desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 400px;
  margin-bottom: 4rem;
  line-height: 1.6;
}

.contact__meta {
  font-family: var(--font-tech);
  display: flex;
  gap: 3rem;
}

.contact__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__meta-item .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.7;
}

.contact__meta-item .value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact__meta-item .value.active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact__meta-item .value.active::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-accent-yellow);
  border-radius: 50%;
  animation: pulse-white 2s infinite;
}

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

/* Form Side */
.contact__form-wrapper {
  padding: 6rem 4rem;
  background: white;
  position: relative;
}

.form {
  max-width: 450px;
  position: relative;
}

.form__group {
  margin-bottom: 2rem;
  position: relative;
}

.form__label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #555;
  text-transform: uppercase;
}

.form__input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #ddd;
  background: transparent;
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--color-text);
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

.form__input:focus {
  border-bottom-color: var(--color-accent-blue);
}

.form__input::placeholder {
  color: #ccc;
}

/* Valid/Error states */
.form__input.error {
  border-bottom-color: var(--color-accent-red);
}
.form__error {
  display: none;
  color: var(--color-accent-red);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--font-tech);
}
.form__input.error + .form__error {
  display: block;
}
.form__group.error .form__error {
  /* For checkbox/captcha */
  display: block;
}

/* Custom Captcha */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.5rem;
  user-select: none;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  cursor: pointer;
  background: white;
  position: relative;
}

.captcha-checkbox.checked {
  border-color: #00a000;
}

.captcha-checkbox.checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #00a000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-label {
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #333;
}

.captcha-logo {
  margin-left: auto;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
}
.captcha-logo svg {
  width: 20px;
  height: 20px;
}

/* Custom Checkbox (Terms) */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 0.75rem;
  font-size: 0.9rem;
  user-select: none;
}

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

.checkmark {
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid #ddd;
  flex-shrink: 0;
  position: relative;
}

.checkbox-wrapper:hover input ~ .checkmark {
  border-color: #999;
}

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

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

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

.checkbox-wrapper .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

/* Submit Btn */
.form__submit {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  background: var(--color-text);
  color: white;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.form__submit:hover {
  background: var(--color-accent-blue);
  gap: 1rem;
}

.form__note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  font-family: var(--font-tech);
}

/* Success Message Overlay */
.form__success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: none; /* hidden default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
}

.form__success.visible {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e6fcf5;
  color: #0ca678;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.success-icon svg {
  width: 40px;
  height: 40px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__info {
    padding: 4rem 2rem;
  }
  .contact__form-wrapper {
    padding: 4rem 2rem;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

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

.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-popup__text {
  font-size: 0.9rem;
  max-width: 600px;
}

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

.cookie-popup__btn {
  background: var(--color-text);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-tech);
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.cookie-popup__btn:hover {
  background: var(--color-accent-blue);
}

@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-popup__btn {
    width: 100%;
  }
}

/* --- POLICY PAGES STYLING (Standardized) --- */
/* Цей клас .pages обгортає контент на privacy.html, terms.html і т.д. */
.pages {
  padding: 8rem 0 6rem; /* Top padding for fixed header */
  background: var(--color-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-accent-blue);
  font-family: var(--font-tech);
}

.pages p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #444;
}

.pages ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-accent-yellow);
}

.pages li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.pages a {
  color: var(--color-accent-red);
  border-bottom: 1px solid rgba(230, 57, 70, 0.3);
}

.pages a:hover {
  border-bottom-color: var(--color-accent-red);
}

/* Mobile Typography */
@media (max-width: 768px) {
  .pages h1 {
    font-size: 2rem;
  }
  .pages h2 {
    font-size: 1.25rem;
  }
}
