/* --- VARIABLES: Clean Corporate --- */
:root {
  /* Colors - Restrained & Professional */
  --color-bg: #f8fafc; /* Slate 50 - Soft White */
  --color-surface: #ffffff; /* Pure White */

  --color-text-main: #1e293b; /* Slate 800 - Soft Black */
  --color-text-muted: #64748b; /* Slate 500 */

  --color-primary: #2563eb; /* Royal Blue - Trustworthy */
  --color-primary-dark: #1d4ed8;

  --color-border: #e2e8f0; /* Light Gray Border */
  --color-footer-bg: #0f172a; /* Slate 900 - Dark Footer */
  --color-footer-text: #94a3b8;

  /* Spacing & Layout */
  --container-width: 1160px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 8px; /* Standard gentle radius */

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.2s ease-in-out;
}

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

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* --- BADGE --- */
.badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8; /* Light Blue */
  margin-bottom: 8px;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.header__logo-img {
  height: 28px;
  width: auto;
}

/* Desktop Nav */
.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }

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

  .header__link {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 500;
  }

  .header__link:hover,
  .header__link--active {
    color: var(--color-primary);
  }
}

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

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu--open .header__nav {
  display: flex;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-surface);
  padding: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu--open .header__menu {
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.mobile-menu--open .header__link {
  font-size: 1.125rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

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

/* --- MAIN PLACEHOLDER --- */
.main {
  min-height: 60vh;
}

/* --- FOOTER (Dark Theme) --- */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 24px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer__logo-light {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer__logo-img {
  filter: brightness(0) invert(1); /* SVG білим */
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer__title {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer__link {
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: white;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 2px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #eff6ff; /* Very light blue */
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Typography */
.hero__title {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-text-main) 0%,
    var(--color-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  gap: 8px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__note-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

/* Trust Indicators */
.hero__trust {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.hero__trust p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero__avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e2e8f0;
  border: 2px solid var(--color-surface);
  margin-right: -10px;
  background-image: url("img/placeholder.png"); /* Placeholder logic */
  background-size: cover;
}

.avatar:nth-child(1) {
  background-color: #cbd5e1;
}
.avatar:nth-child(2) {
  background-color: #94a3b8;
}
.avatar:nth-child(3) {
  background-color: #64748b;
}

.avatar-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
  margin-left: -10px;
  z-index: 2;
}

/* --- VISUAL ANIMATION AREA --- */
.hero__visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero__blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(248, 250, 252, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  position: absolute;
  transition: transform 0.1s ease-out; /* Smooth JS movement */
}

/* Main Mockup Card */
.hero__card--main {
  width: 320px;
  height: 220px;
  padding: 20px;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Base position handled by JS later */
}

.card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background-color: #ef4444;
}
.yellow {
  background-color: #f59e0b;
}
.green {
  background-color: #10b981;
}

.skeleton-line {
  height: 10px;
  background-color: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 10px;
}
.w-70 {
  width: 70%;
}
.w-50 {
  width: 50%;
}
.skeleton-box {
  margin-top: 20px;
  height: 80px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

/* Floating Elements */
.hero__card--floating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  z-index: 20;
}

.hero__card--1 {
  top: 20%;
  left: 10%;
}

.hero__card--2 {
  bottom: 20%;
  right: 5%;
}

.icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff;
}

.icon-primary {
  color: var(--color-primary);
  width: 18px;
}
.icon-accent {
  color: #10b981;
  width: 18px;
}

/* --- SHARED SECTION STYLES --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

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

/* --- CAPABILITIES SECTION --- */
.capabilities {
  padding: 100px 0;
  background-color: var(--color-bg); /* Matches body bg (light slate) */
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capabilities__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature Card - Clean Tech Style */
.feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3); /* Subtle blue tint on border */
}

.feature-card__icon-box {
  width: 48px;
  height: 48px;
  background-color: #eff6ff; /* Light Blue bg */
  border-radius: 8px; /* Slightly rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-card__icon-box {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.1) rotate(-3deg);
}

.feature-card__icon {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.text-sm-muted {
  font-size: 0.8rem;
  color: #94a3b8;
}

.d-block {
  display: block;
}
.mt-2 {
  margin-top: 8px;
}

/* Section Footer / Mini CTA */
.capabilities__footer {
  text-align: center;
  margin-top: 60px;
  font-weight: 500;
  color: var(--color-text-main);
}

.link-arrow {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.link-arrow:hover {
  border-bottom-color: var(--color-primary);
  gap: 8px; /* Slide arrow effect */
}

.icon-inline {
  width: 16px;
  height: 16px;
}

/* --- PRACTICE SECTION --- */
.practice {
  padding: 100px 0;
  background-color: var(--color-surface); /* Pure White */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .steps-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
  }
}

/* Connecting Line */
.steps-line {
  display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 24px; /* Half height of the number circle (48px / 2) */
    left: 16%; /* Start after first circle */
    right: 16%; /* End before last circle */
    height: 2px;
    background: linear-gradient(
      90deg,
      var(--color-primary) 0%,
      rgba(37, 99, 235, 0.2) 100%
    );
    z-index: 0;
  }
}

/* Step Item */
.step-item {
  position: relative;
  z-index: 1; /* Above the line */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Mobile: left align */
}

@media (min-width: 768px) {
  .step-item {
    align-items: center; /* Desktop: center align */
  }
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  box-shadow: 0 0 0 8px var(--color-surface); /* White "halo" to break the line */
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.highlight {
  color: var(--color-primary);
  font-weight: 500;
}

/* Practice CTA Box */
.practice-cta {
  background-color: var(--color-bg); /* Slate bg */
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  border: 1px dashed var(--color-border);
}

@media (min-width: 768px) {
  .practice-cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 40px 60px;
  }
}

.practice-cta__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.practice-cta__content p {
  color: var(--color-text-muted);
}

/* --- FAQ SECTION --- */
.faq {
  padding: 100px 0;
  background-color: var(--color-bg); /* Matches Hero bg */
}

.faq__wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  border-color: #cbd5e1; /* Slightly darker border on hover */
}

/* Accordion Header (Button) */
.faq__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.2s;
}

.faq__header:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.faq__question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.faq__icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

/* Open State */
.faq__item.open .faq__icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq__item.open .faq__question {
  color: var(--color-primary);
}

/* Accordion Body */
.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq__content {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background-color: #f1f5f9; /* Slate 100 - slightly darker than practice section */
}

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

@media (min-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

/* Left Side Info */
.contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #dcfce7; /* Light Green */
  color: #166534; /* Dark Green */
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #166534;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 101, 52, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 101, 52, 0);
  }
}

.contact__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.contact__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-text-main);
}

.list-icon {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.contact__note {
  background-color: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.note-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Right Side Form Card */
.contact__form-box {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px 12px 42px; /* Space for icon */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 6px;
  display: block;
}

.custom-captcha {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.captcha-checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-input {
  opacity: 0;
  position: absolute;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
}

.captcha-label-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}

.captcha-input:checked + .captcha-label-box {
  border-color: transparent;
}

.captcha-input:checked + .captcha-label-box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 18px;
  border: solid #4caf50;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  top: -2px;
  left: 7px;
}

.captcha-text {
  font-size: 0.9rem;
  color: #000;
  margin-left: 12px;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #555;
}

.error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.show-error {
  display: block;
}

/* Policy */
.policy-group {
  margin-top: 10px;
}

.policy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.policy-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.policy-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

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

.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-surface);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-message.active {
  display: flex;
  opacity: 1;
}

.success-icon-box {
  width: 60px;
  height: 60px;
  background-color: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #166534;
}

.success-icon {
  width: 30px;
  height: 30px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .cookie-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

.pages {
  padding: 120px 0 80px; /* Відступ зверху для фіксованого хедера */
  background-color: var(--color-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для зручного читання тексту */
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.pages h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.pages h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 40px;
  margin-bottom: 16px;
}

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

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

.pages li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.pages strong {
  color: var(--color-text-main);
  font-weight: 600;
}

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

/* --- ОНОВЛЕННЯ КНОПОК (Робимо їх вищими) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Збільшуємо внутрішні відступи */
  padding: 18px 36px;
  font-weight: 600;
  /* Встановлюємо мінімальну висоту, щоб не були тонкими */
  min-height: 56px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1.05rem; /* Трохи більший шрифт */
  line-height: 1;
}

/* Якщо кнопка на всю ширину - додаємо ще трохи відступу */
.btn--full {
  width: 100%;
  margin-top: 16px;
  padding: 20px 32px;
}

.btn:active {
  transform: scale(0.98);
}

/* --- ВАЛІДАЦІЯ ТЕЛЕФОНУ --- */
.input-wrapper.error .form-input {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.input-wrapper.error .input-icon {
  color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none; /* Приховано за замовчуванням */
  padding-left: 2px;
}

.input-wrapper.error ~ .error-message {
  display: block;
}

/* --- АНІМАЦІЯ ЗАВАНТАЖЕННЯ (Loading Spinner) --- */
.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  display: none; /* Приховано */
}

.btn.loading .btn-loader {
  display: inline-block;
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
  opacity: 0.7;
}

.btn.loading {
  cursor: not-allowed;
  opacity: 0.9;
}

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