/* --- VARIABLES & RESET --- */
:root {
  /* Neubrutalism Palette */
  --c-bg: #fffbf0; /* Warm off-white paper */
  --c-text: #1a1a1a;
  --c-primary: #8b5cf6; /* Vivid Violet */
  --c-secondary: #bef264; /* Acid Lime */
  --c-accent: #ff4785; /* Hot Pink */
  --c-black: #121212;
  --c-white: #ffffff;

  /* Borders & Shadows (The Core of the Style) */
  --border-thick: 3px solid var(--c-black);
  --border-thin: 2px solid var(--c-black);
  --shadow-hard: 6px 6px 0px var(--c-black);
  --shadow-hard-hover: 2px 2px 0px var(--c-black);
  --radius-s: 8px;

  /* Typography */
  --f-head: "Syne", sans-serif;
  --f-body: "Public Sans", sans-serif;

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

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--c-black);
  text-transform: uppercase;
  line-height: 1.1;
}

.highlight {
  color: var(--c-primary);
}

.highlight-text {
  background: var(--c-secondary);
  padding: 0 4px;
  font-weight: 700;
  border: 1px solid var(--c-black);
}

/* --- BUTTONS (Neubrutalism Style) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  transform: skewX(-10deg); /* Diagonal theme */
}

.btn__content {
  transform: skewX(10deg); /* Counter-skew text */
}

.btn--primary {
  background-color: var(--c-primary);
  color: var(--c-white);
}

.btn--primary:hover {
  box-shadow: var(--shadow-hard-hover);
  transform: skewX(-10deg) translate(4px, 4px);
  background-color: var(--c-accent); /* Color shift */
}

.btn--secondary {
  background-color: var(--c-secondary);
  color: var(--c-black);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--c-white);
  border-bottom: var(--border-thick);
  z-index: 1000;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-black);
  text-transform: uppercase;
}

.logo__icon-box {
  width: 40px;
  height: 40px;
  background: var(--c-secondary);
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--c-black);
}

.logo__img {
  width: 24px;
  height: 24px;
}

/* Nav */
.header__nav {
  display: block;
}

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

.nav__link {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav__link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px; /* Thick underline */
  background-color: var(--c-accent);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.burger-btn {
  display: none;
  background: none;
  border: var(--border-thin);
  padding: 8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--c-black);
}

/* --- MAIN OFFSET --- */
.main {
  padding-top: var(--header-height);
  min-height: 50vh;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--c-white);
  border-top: var(--border-thick);
  padding: 80px 0 0;
  position: relative;
}

/* Diagonal Separator via CSS Clip Path or Pseudo */
.footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    45deg,
    var(--c-primary),
    var(--c-primary) 10px,
    var(--c-white) 10px,
    var(--c-white) 20px
  );
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: var(--border-thin);
}

.footer__brand {
  padding-right: 20px;
}

.logo--footer {
  margin-bottom: 20px;
  font-size: 28px;
}

.footer__mission {
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer__badge {
  display: inline-block;
  background: var(--c-black);
  color: var(--c-secondary);
  padding: 5px 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.footer__title {
  font-size: 18px;
  margin-bottom: 24px;
  background: var(--c-secondary);
  display: inline-block;
  padding: 2px 8px;
  border: var(--border-thin);
  box-shadow: 4px 4px 0 var(--c-black);
}

.footer__menu,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-weight: 500;
  position: relative;
  width: fit-content;
}

.footer__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--c-primary);
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.icon-sm {
  width: 20px;
  height: 20px;
  color: var(--c-primary);
  stroke-width: 2.5;
}

.footer__link-bold {
  font-weight: 700;
}

.footer__link-bold:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.eu-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary);
}

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

@media (max-width: 768px) {
  .header__nav {
    display: none; /* Logic will be added in JS */
  }
  .burger-btn {
    display: block;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 60px 0 100px;
  background-color: var(--c-bg);
  overflow: hidden;
  /* Diagonal Cut at the bottom */
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  border-bottom: var(--border-thick);
}

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

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--c-secondary);
  border: var(--border-thin);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--c-black);
  margin-bottom: 24px;
}

/* Typography */
.hero__title {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.highlight-bg {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: 0 10px;
  box-shadow: 6px 6px 0 var(--c-black);
  display: inline-block;
  transform: skewX(-5deg);
}

.hero__desc {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--f-head);
  color: var(--c-black);
  margin-bottom: 16px;
  min-height: 1.5em; /* Prevent layout jump */
}

.cursor {
  animation: blink 1s infinite;
  color: var(--c-primary);
}

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

.hero__sub-desc {
  font-size: 18px;
  color: #4b5563;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 16px;
}

.hero__note {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
}

/* Visual Cards (CSS Composition) */
.hero__visual {
  position: relative;
  padding: 20px;
}

.visual-card {
  background: var(--c-white);
  border: var(--border-thick);
  border-radius: var(--radius-s);
  aspect-ratio: 4/3;
  position: relative;
  z-index: 2;
}

.visual-card--main {
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visual-card__header {
  height: 40px;
  border-bottom: var(--border-thin);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 15px;
  background: #f1f5f9;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-black);
}
.red {
  background: #ef4444;
}
.yellow {
  background: #eab308;
}
.green {
  background: #22c55e;
}

.visual-card__body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--c-black);
  color: var(--c-secondary);
  padding: 5px 15px;
  font-family: monospace;
  font-weight: bold;
  border: 2px solid var(--c-white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(-5deg);
}

.visual-card--back {
  position: absolute;
  top: 0;
  left: 40px;
  width: 100%;
  height: 100%;
  background-color: var(--c-primary);
  z-index: 1;
  transform: rotate(3deg);
}

/* Marquee (Running Line) */
.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-black);
  color: var(--c-white);
  padding: 15px 0;
  overflow: hidden;
  border-top: var(--border-thick);
  transform: rotate(-1deg) scale(1.05); /* Slight diagonal */
  transform-origin: left bottom;
}

.marquee__content {
  display: flex;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.marquee__content span {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 20px;
  padding-right: 40px;
}

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

/* Animations Classes (JS triggers these) */
.fade-in-up,
.fade-in-right,
.skew-element {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up {
  transform: translateY(30px);
}
.fade-in-right {
  transform: translateX(30px);
}
.skew-element {
  transform: skewY(5deg) translateY(20px);
}

.is-visible {
  opacity: 1;
  transform: translate(0) skew(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__actions {
    align-items: center;
  }
  .hero__title {
    font-size: 3rem;
  }
  .visual-card--back {
    left: 10px;
    top: 10px;
  }
}

/* --- SECTIONS COMMON --- */
.section-skew {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

/* Underline decoration */
.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 6px;
  background: var(--c-primary);
  margin-top: 5px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.section-subtitle {
  font-size: 18px;
  color: #4b5563;
}

/* --- PROGRAM SECTION (Cards) --- */
.program {
  background-color: var(--c-bg);
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--c-white);
  border: var(--border-thick);
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --accent-color: var(--c-primary); /* Default */
}

/* Card Hover Effect */
.course-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 8px 8px 0 var(--c-black);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-color);
  border-bottom: var(--border-thick);
}

.course-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.course-tag {
  font-size: 12px;
  font-weight: 800;
  background: var(--c-black);
  color: var(--c-white);
  padding: 4px 8px;
  text-transform: uppercase;
}

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

.course-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.course-desc {
  color: #52525b;
  margin-bottom: 25px;
  font-size: 15px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed #cbd5e1;
  padding-top: 15px;
}

.course-time {
  font-weight: 700;
  font-size: 14px;
}

.btn-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-color);
  text-transform: uppercase;
}

.btn-link:hover {
  text-decoration: underline;
}

/* --- ADVANTAGES SECTION (Bento Grid) --- */
.advantages {
  position: relative;
  background-color: var(--c-white);
  padding: 0 0 100px;
}

/* Diagonal Separator */
.diagonal-separator {
  height: 100px;
  background: var(--c-bg);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  margin-bottom: 60px;
  border-bottom: var(--border-thick);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

.bento-item {
  background: var(--c-bg);
  border: var(--border-thick);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
}

.bento-item:hover {
  transform: scale(1.02);
}

/* Bento Variants */
.bento-item--large {
  grid-column: span 2;
  background: var(--c-primary);
  color: var(--c-white);
}

.bento-item--large h3,
.bento-item--large p {
  color: var(--c-white);
}

.bento-item--tall {
  grid-row: span 2;
  justify-content: space-between;
}

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

.bg-dark {
  background: var(--c-black);
  color: var(--c-white);
}
.bg-dark h3 {
  color: var(--c-white);
}
.bg-dark p {
  color: #94a3b8;
}

.bg-secondary {
  background: var(--c-secondary);
}
.bg-accent {
  background: var(--c-accent);
}

/* Bento Content */
.bento-icon-box {
  width: 48px;
  height: 48px;
  background: var(--c-white);
  color: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thick);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.bento-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.bento-item p {
  font-size: 15px;
  line-height: 1.4;
}

.bento-icon-lg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--c-secondary);
}

.badge-outline {
  border: 1px solid var(--c-white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  width: fit-content;
}

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

.flex-row-center i {
  width: 40px;
  height: 40px;
}

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

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item--large,
  .bento-item--wide {
    grid-column: span 1;
  }
}

/* --- MENTORS SECTION --- */
.mentors {
  background-color: #f3f4f6;
  border-bottom: var(--border-thick);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.mentor-card {
  background: var(--c-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.mentor-card:hover {
  transform: translateY(-10px);
}

.mentor-card__img-box {
  position: relative;
  height: 300px;
  border-bottom: var(--border-thick);
  overflow: hidden;
}

.mentor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* Stylish monotone */
  transition: filter 0.3s ease;
}

.mentor-card:hover .mentor-img {
  filter: grayscale(0%); /* Color on hover */
}

.mentor-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 5px 10px;
  font-weight: 800;
  font-size: 12px;
  border: var(--border-thin);
  box-shadow: 2px 2px 0 var(--c-black);
}

.mentor-card__content {
  padding: 25px;
}

.mentor-name {
  font-size: 22px;
  margin-bottom: 5px;
}

.mentor-role {
  font-size: 14px;
  color: var(--c-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.mentor-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mentor-stack li {
  background: var(--c-black);
  color: var(--c-white);
  font-size: 12px;
  padding: 4px 8px;
  font-family: monospace;
}

.mentor-bio {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

/* --- FAQ SECTION --- */
.faq {
  padding: 0 0 100px;
  background: var(--c-bg);
  overflow: hidden;
}

.marquee-line {
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 800;
  padding: 10px 0;
  white-space: nowrap;
  margin-bottom: 60px;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  transform: rotate(2deg) scale(1.05); /* Skew effect */
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.faq-item {
  margin-bottom: 20px;
  border: var(--border-thick);
  background: var(--c-white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-black);
  transition: background 0.2s ease;
}

.faq-trigger:hover {
  background: #f8fafc;
}

.faq-trigger[aria-expanded="true"] {
  background: var(--c-secondary);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg); /* Turn + into x */
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--c-black);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq-trigger[aria-expanded="true"] + .faq-content {
  grid-template-rows: 1fr;
  border-top: var(--border-thin);
}

.faq-inner {
  overflow: hidden;
  padding: 0 20px;
}

.faq-trigger[aria-expanded="true"] + .faq-content .faq-inner {
  padding: 20px; /* Add padding only when open to avoid jump */
}

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

/* --- CONTACT SECTION --- */
.contact {
  background-color: var(--c-primary); /* Bright background for contrast */
  padding: 80px 0;
  position: relative;
  /* Top diagonal cut reversed */
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px; /* Overlap previous section */
  padding-top: 130px;
}

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

/* Info Side */
.contact__info .section-title {
  color: var(--c-white);
  text-shadow: 4px 4px 0 var(--c-black);
}

.contact__info .section-title::after {
  background: var(--c-black);
}

.contact__benefits {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.benefit-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border: 2px solid var(--c-black);
  box-shadow: 4px 4px 0 var(--c-black);
}

.benefit-icon {
  background: var(--c-black);
  color: var(--c-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.benefit-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 14px;
  color: #1f2937;
}

.decor-box {
  margin-top: 40px;
  font-family: monospace;
  font-weight: 700;
  padding: 10px;
  border: 1px dashed var(--c-black);
  display: inline-block;
}

.status-blink {
  color: #b91c1c; /* Dark Red */
  animation: blink 1s infinite;
}

/* Form Side */
.contact__form-box {
  background: var(--c-white);
  padding: 40px;
  border: var(--border-thick);
  box-shadow: 10px 10px 0 var(--c-black);
  position: relative;
}

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

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

.form-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.form-input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  font-family: var(--f-body);
  font-size: 16px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-black);
  background: var(--c-white);
  box-shadow: 4px 4px 0 var(--c-black);
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-msg {
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  display: none;
}

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

.custom-captcha {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  user-select: none;
}

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

.custom-captcha.checked .captcha-checkbox {
  border-color: #4caf50;
}

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

.captcha-text {
  font-size: 14px;
  color: #555;
  font-family: sans-serif;
  flex-grow: 1;
  margin-right: 20px;
}

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

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--c-black);
  background: var(--c-white);
  position: relative;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.custom-checkbox input:checked + .checkmark {
  background: var(--c-secondary);
}

.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--c-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.btn--full {
  width: 100%;
  margin-top: 10px;
}

.btn__loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--c-white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading .btn__text {
  display: none;
}
.btn.loading .btn__loader {
  display: block;
}

/* Success Message */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid var(--c-black);
  box-shadow: 4px 4px 0 var(--c-black);
}

.success-message h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.success-message p {
  color: #6b7280;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  .contact {
    clip-path: none;
    margin-top: 0;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;

  background: var(--c-black);
  color: var(--c-white);
  padding: 20px;
  border: 2px solid var(--c-white);
  box-shadow: 6px 6px 0 var(--c-primary);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;

  max-width: 600px;
  margin: 0 auto;

  transform: translateY(150%);
  opacity: 0; /* Для краси додамо прозорість */
  visibility: hidden;

  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

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

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

@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    bottom: 10px; /* Трохи нижче на мобільному */
    left: 10px;
    right: 10px;
  }
  .cookie-content {
    flex-direction: column;
  }
}

.btn--sm {
  padding: 8px 20px;
  font-size: 13px;
  white-space: nowrap;
}

.pages {
  padding: 100px 0;
  background-color: var(--c-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  background: var(--c-white);
  padding: 60px;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
}

.pages h1 {
  font-size: 36px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--c-primary);
}

.pages h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--c-secondary);
  padding: 5px 10px;
  border: var(--border-thin);
}

.pages p {
  margin-bottom: 15px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

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

.pages li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
}

.pages li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 800;
}

.pages a {
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.pages a:hover {
  background: var(--c-primary);
  color: var(--c-white);
  text-decoration: none;
}

/* Responsive for pages */
@media (max-width: 768px) {
  .pages .container {
    padding: 30px;
  }
  .cookie-popup {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
  .cookie-content {
    flex-direction: column;
  }
}

/* --- MOBILE MENU STYLES --- */
@media (max-width: 768px) {
  /* 1. Header Changes */
  .header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  /* Hide the CTA button on mobile if needed, or keep it small */
  .header__actions .btn {
    display: none; /* Hiding big button to save space */
  }

  /* Burger Button Style */
  .burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--c-secondary);
    border: var(--border-thick);
    box-shadow: 4px 4px 0 var(--c-black);
    cursor: pointer;
    z-index: 1001; /* Above everything */
    transition: transform 0.2s ease;
  }

  .burger-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--c-black);
  }

  /* 2. Nav Menu (Mobile Overlay) */
  .header__nav {
    display: flex; /* Always display for transition, but hide visually */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--c-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-top: var(--border-thick);

    /* Animation State: Hidden */
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 999;
  }

  /* Animation State: Active */
  .header__nav.is-active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
  }

  .nav__link {
    font-size: 24px; /* Bigger text for mobile */
    text-align: center;
    display: block;
    width: 100%;
  }
}
