/* --- VARIABLES & THEME SETUP (Tech/Utilitarian + Bento) --- */
:root {
  /* Colors */
  --color-bg: #f4f5f7; /* Light technical grey */
  --color-surface: #ffffff; /* Clean white */
  --color-text-main: #1a1a1a; /* Almost black */
  --color-text-muted: #555555; /* Dark grey */
  --color-accent: #0052ff; /* Tech Blue */
  --color-border: #d1d5db; /* Structural lines */

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing & Grid */
  --container-width: 1280px;
  --header-height: 80px;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;

  /* Decoration */
  --radius-sm: 4px; /* Small radius for tech feel */
  --radius-md: 8px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: var(--font-mono); /* Monospace base for utilitarian vibe */
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Background grid pattern */
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-text-main);
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 1px solid var(--color-text-main);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  color: var(--color-surface);
  border-color: var(--color-accent);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(244, 245, 247, 0.85); /* Semi-transparent bg */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

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

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

.header__link {
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

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

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

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

.header__burger {
  display: none;
  color: var(--color-text-main);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-text-main);
  padding: 60px 0 30px;
  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;
}

.footer__col--brand {
  padding-right: 20px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 15px;
}

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

.footer__copy {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

.footer__title {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 10px;
  display: inline-block;
}

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

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

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

.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__menu {
    display: none; /* Prepare for JS toggle */
  }

  .header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .header__nav.active {
    transform: translateY(0);
  }

  .header__menu.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .header__burger {
    display: block;
  }

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

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

/* --- HERO SECTION (Bento Grid) --- */
.hero {
  padding: calc(var(--header-height) + 40px) 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap-sm);
}

.bento-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover Effect: Tech Lift */
.bento-item:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--color-text-main); /* Brutalist shadow */
  border-color: var(--color-text-main);
}

/* Decor corners for tech feel */
.bento-item::before,
.bento-item::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid transparent;
  transition: 0.3s;
}
.bento-item:hover::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.bento-item:hover::after {
  bottom: 5px;
  right: 5px;
  border-bottom: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}

/* Layout Specifics */
.bento-item--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* Spans full height on left */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__visual {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  min-height: 250px;
  background-color: var(--color-text-main); /* Dark block contrast */
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__feature {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.hero__ticker {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  background-color: var(--color-accent);
  color: white;
  padding: 0; /* Remove padding for ticker */
}

/* Content Styling */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}

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

.hero__title {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

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

.highlight {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.9rem;
  display: block;
  margin-top: 10px;
}

.hero__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.hero__h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* Abstract Tech Visual Animation */
.tech-circle {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: relative;
  animation: spin 10s linear infinite;
}

.tech-circle__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.tech-circle__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform-origin: left center;
  animation: radar 3s linear infinite;
}

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

.hero__stat-box {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

/* Ticker Animation */
.scrolling-text {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.scrolling-text span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* RESPONSIVE HERO */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-item--large {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .hero__visual {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  .hero__feature {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .hero__ticker {
    grid-column: 1 / 3;
    grid-row: 3;
    padding: 15px;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }
  .hero__title {
    font-size: 2.5rem;
  }
}

/* --- SHARED SECTION STYLES --- */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 15px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-text {
  max-width: 500px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

/* --- ABOUT SECTION (Tech Grid) --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.tech-list li i {
  color: var(--color-accent);
  width: 20px;
}

.btn--outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
}
.btn--outline:hover {
  background: var(--color-text-main);
  color: var(--color-surface);
}

/* Tech Card Visual */
.tech-card {
  background: #fff;
  border: 1px solid var(--color-text-main);
  box-shadow: 8px 8px 0 var(--color-border); /* Brutalist offset shadow */
  padding: 0;
}

.tech-card__header {
  background: var(--color-text-main);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tech-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  margin-left: 4px;
}
.tech-dots span:nth-child(1) {
  background: #ff5f56;
}
.tech-dots span:nth-child(2) {
  background: #ffbd2e;
}
.tech-dots span:nth-child(3) {
  background: #27c93f;
}

.tech-card__body {
  padding: 30px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-border);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.data-val {
  font-weight: 700;
}
.text-success {
  color: #00a651;
}

.tech-graph {
  margin: 20px 0;
  height: 50px;
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-accent);
}

.graph-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.graph-svg path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawGraph 3s ease forwards;
}

@keyframes drawGraph {
  to {
    stroke-dashoffset: 0;
  }
}

.tech-card__footer-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: 15px;
}

/* --- PROGRAMS (Accordion) --- */
.section-programs {
  background-color: #fff;
}

.accordion {
  max-width: 800px;
  border-top: 2px solid var(--color-text-main);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__header {
  width: 100%;
  padding: 25px 0;
  display: flex;
  align-items: center;
  text-align: left;
  transition: 0.3s;
}

.accordion__header:hover {
  padding-left: 10px;
  background-color: rgba(0, 82, 255, 0.05); /* Light blue tint on hover */
}

.accordion__num {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-right: 20px;
  font-size: 0.9rem;
}

.accordion__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  flex-grow: 1;
}

.accordion__icon {
  margin-left: 20px;
  transition: transform 0.3s;
}

/* Active State Styles */
.accordion__item.active .accordion__icon {
  transform: rotate(45deg); /* Turn plus into x */
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion__body {
  padding: 0 0 25px 50px; /* Indent to align with text */
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.text-link:hover {
  border-bottom-color: var(--color-accent);
}

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

/* --- TECHNOLOGY SECTION --- */
.section-tech {
  position: relative;
  overflow: hidden;
  background-color: #f9fafb; /* Slightly lighter bg */
}

/* Infinite Marquee */
.marquee-wrapper {
  width: 100%;
  background: var(--color-text-main);
  color: #fff;
  padding: 10px 0;
  margin-bottom: 60px;
  overflow: hidden;
  white-space: nowrap;
  transform: rotate(-1deg) scale(1.05); /* Slight chaotic tilt */
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-right: 50px;
  letter-spacing: 0.2em;
}

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

/* Tech Layout */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.link-arrow i {
  width: 18px;
}

/* Chip Grid */
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chip-item {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 25px;
  transition: 0.3s;
  position: relative;
}

.chip-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

/* Corner markers for chips */
.chip-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--color-text-main) transparent transparent;
  opacity: 0;
  transition: 0.3s;
}
.chip-item:hover::after {
  opacity: 1;
}

.chip-icon {
  margin-bottom: 15px;
  color: var(--color-accent);
}

.chip-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.chip-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- REVIEWS (Terminal Style) --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.review-card {
  background: #1a1a1a; /* Dark terminal bg */
  color: #00ff00; /* Classic Terminal Green Text */
  padding: 25px;
  font-family: var(--font-mono);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.review-body {
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #dddddd; /* Readable white/grey */
}

.review-body code {
  display: block;
  font-style: italic;
}

.review-body code::before {
  content: "> ";
  color: var(--color-accent);
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.review-author {
  font-weight: 700;
  color: #fff;
}

.stars {
  color: #ffbd2e;
  letter-spacing: 2px;
}

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

/* --- TECH FORM (FINAL FIXED VERSION) --- */

.form-wrapper {
  position: relative;
  width: 100%;
}

.tech-form {
  background: #f4f5f7;
  border: 1px solid var(--color-text-main);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 10px 0 var(--color-border); /* Тінь праворуч і вниз */
  position: relative;
  overflow: hidden;
}

/* Header styling */
.form-header {
  background: var(--color-text-main);
  color: #fff;
  padding: 15px 30px; /* Відступи всередині хедера */
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
  width: 100%;
}

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

/* Content Container - KEY TO SYMMETRY */
.form-content {
  padding: 30px; /* Рівномірний відступ з усіх боків */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Однаковий відступ між усіма елементами */
}

/* General Input Group */
.form-group {
  width: 100%;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-main);
  border-radius: 0;
  transition: 0.2s;
  box-sizing: border-box; /* Важливо, щоб padding не ламав ширину */
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

/* --- FIX FOR DOUBLE CHECKBOXES --- */
.hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* --- CAPTCHA CARD STYLE --- */
.tech-checkbox-card {
  display: flex;
  align-items: center;
  width: 100%;
  background: #e5e7eb;
  border: 1px solid var(--color-border);
  padding: 15px;
  cursor: pointer;
  transition: 0.2s;
  box-sizing: border-box;
  margin: 0; /* Скидаємо margin, бо контролюємо через gap */
}

.tech-checkbox-card:hover {
  background: #fff;
  border-color: var(--color-text-main);
}

.tech-checkbox-visual {
  margin-right: 15px;
  flex-shrink: 0;
}

.checkbox-frame {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-text-main);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.checkbox-frame i {
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: 0.2s;
}

.tech-checkbox-info {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.info-desc {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

/* Captcha Logic: коли hidden input checked, змінюємо label */
.hidden-input:checked + .tech-checkbox-card .checkbox-frame {
  background: #00a651;
  border-color: #00a651;
}
.hidden-input:checked + .tech-checkbox-card .checkbox-frame i {
  opacity: 1;
  transform: scale(1);
}
.hidden-input:checked + .tech-checkbox-card .info-title {
  color: #00a651;
}
.hidden-input:checked + .tech-checkbox-card {
  border-color: #00a651;
}

/* --- CONSENT STYLE --- */
.tech-consent-row {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.consent-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-text-main);
  background: #fff;
  margin-right: 12px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s;
}

.consent-inner {
  width: 10px;
  height: 10px;
  background-color: var(--color-text-main);
  transform: scale(0);
  transition: 0.2s;
}

.consent-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Consent Logic */
.hidden-input:checked + .tech-consent-row .consent-box .consent-inner {
  transform: scale(1);
}
.tech-consent-row:hover .consent-box {
  border-color: var(--color-accent);
}

/* --- BUTTON --- */
.btn--full {
  width: 100%;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: var(--color-text-main);
  color: #fff;
  border: none;
  transition: 0.3s;
  box-sizing: border-box;
}

.btn--full:hover {
  background: var(--color-accent);
}

.btn--full i {
  transition: transform 0.3s;
}
.btn--full:hover i {
  transform: translateX(5px);
}

/* --- ERROR STATES --- */
.error-msg {
  display: none;
  color: #e63946;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-top: 5px;
  text-align: right;
}

.form-group.error input[type="text"],
.form-group.error input[type="email"],
.form-group.error input[type="tel"] {
  border-color: #e63946;
  background: rgba(230, 57, 70, 0.05);
}

.form-group.error .tech-checkbox-card {
  border-color: #e63946;
  background: rgba(230, 57, 70, 0.05);
}

.form-group.error .error-msg {
  display: block;
}

/* --- SUCCESS OVERLAY --- */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 10;
}
.form-success.active {
  opacity: 1;
  visibility: visible;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--color-text-main);
  padding: 20px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1); /* Hard shadow */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

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

.cookie-title {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 5px;
  color: var(--color-text-muted);
}

.cookie-text p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-main);
}

.cookie-text a {
  text-decoration: underline;
  font-weight: 700;
}

.cookie-btn {
  align-self: flex-end;
  background: var(--color-text-main);
  color: #fff;
  border: none;
  cursor: pointer;
}
.cookie-btn:hover {
  background: var(--color-accent);
}

/* --- LEGAL PAGES STYLING (privacy.html etc.) --- */
.section-page {
  padding: 120px 0 80px; /* Space for fixed header */
  min-height: 80vh;
}

.pages {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 5px 5px 0 var(--color-border);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-text-main);
}

.pages h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  font-family: var(--font-heading);
}

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

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.pages li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
  .pages {
    padding: 30px;
  }
  .pages h1 {
    font-size: 1.8rem;
  }
}
