/* --- VARIABLES & RESET --- */
:root {
  --bg-color: #f7f9f8; /* М'який кремово-білий */
  --text-main: #2c3e38; /* Темний лісовий */
  --text-light: #5f736d;
  --primary: #4a6c60; /* Шавлій */
  --primary-hover: #365248;
  --accent: #d9e4e0; /* Світло-м'ятний */
  --white: #ffffff;

  --radius-lg: 30px; /* Гіпер-округлення */
  --radius-md: 20px;

  --font-main: "Manrope", sans-serif;

  --shadow-soft: 0 10px 40px -10px rgba(74, 108, 96, 0.1);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 249, 248, 0.85);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

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

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

/* Unique Hover: Scale + Opacity change */
.nav__link:not(.nav__link--cta):hover {
  color: var(--primary);
  transform: translateY(-2px);
  display: inline-block;
}

.nav__link:not(.nav__link--cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav__link:not(.nav__link--cta):hover::after {
  width: 100%;
}

/* CTA Button in Header */
.nav__link--cta {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition);
}

.nav__link--cta:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 20px -6px rgba(74, 108, 96, 0.4);
  transform: scale(1.05);
}

/* --- BURGER --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--white);
  padding: 80px 0 30px;
  border-top-left-radius: 60px; /* Stylistic curve */
  border-top-right-radius: 60px;
  margin-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer__logo-img {
  height: 28px;
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__link {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.footer__bottom {
  border-top: 1px solid var(--accent);
  padding-top: 30px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__logo {
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav.is-active {
    right: 0;
  }

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

  .nav__link {
    font-size: 1.5rem;
  }

  .burger {
    display: flex;
  }

  /* Burger Animation */
  .burger.is-active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger.is-active .burger__line:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

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

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

  .footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

/* --- BUTTONS (Global) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px; /* Pill shape */
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 15px 30px -5px rgba(74, 108, 96, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  background-color: var(--primary-hover);
  box-shadow: 0 20px 40px -5px rgba(74, 108, 96, 0.4);
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 100px; /* Padding top to clear fixed header */
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

/* Content Side */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #27ae60; /* Green active status */
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero__title .text-accent {
  color: var(--primary);
  font-weight: 300; /* Contrast in weight */
  font-style: italic;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero__stat-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Visual Side (Parallax Area) */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__blob {
  position: absolute;
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #d9e4e0 0%, #f0f4f3 100%);
  border-radius: 45% 55% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
  z-index: -1;
  transition: transform 0.1s linear;
}

.hero__img-wrapper {
  width: 380px;
  height: 480px;
  overflow: hidden;
  border-radius: 60px; /* Hyper-rounded */
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
  transition: transform 0.1s linear;
}

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

/* Floating Cards */
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
  z-index: 2;
  transition: transform 0.1s linear;
}

.hero__card--top {
  top: 40px;
  right: -20px;
}

.hero__card--bottom {
  bottom: 60px;
  left: -30px;
}

.hero__icon {
  color: var(--primary);
  width: 20px;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

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

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

  .hero__desc {
    margin: 0 auto 40px;
  }

  .hero__visual {
    margin-top: 40px;
    height: 400px;
  }

  .hero__img-wrapper {
    width: 300px;
    height: 380px;
  }

  .hero__card--top {
    right: 10px;
  }
  .hero__card--bottom {
    left: 10px;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__card {
    display: none;
  } /* Hide floating elements on very small screens to save space */
}

/* --- SECTIONS GLOBAL --- */
.section {
  padding: 100px 0;
}

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

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.text-light {
  color: var(--text-light);
  font-weight: 400;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* --- BENTO GRID --- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
}

.bento__item {
  padding: 40px;
  border-radius: 40px; /* Hyper-rounded */
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

/* Grid Spans */
.bento__item--large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento__item--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento__item--wide {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  flex-direction: row; /* Horizontal layout for this card */
  align-items: center;
  justify-content: space-between;
}

/* Themes */
.theme-mint {
  background-color: #e8f3f1;
  color: var(--text-main);
}

.theme-dark {
  background-color: var(--text-main);
  color: var(--white);
}

.theme-cream {
  background-color: #fff8f0;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Content Styles */
.bento__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bento__icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.theme-dark .bento__icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.bento__icon-box i {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.bento__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.bento__desc {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.5;
  max-width: 90%;
}

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--primary);
  transition: gap 0.3s;
}

.bento__link:hover {
  gap: 12px;
}

.bento__link i {
  width: 18px;
}

/* Wide Card Specifics */
.bento__item--wide .bento__content {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

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

.bento__header-row .bento__icon-box {
  margin-bottom: 0;
}

.bento__plus-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  flex-shrink: 0;
}

.bento__plus-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

/* Decorations */
.bento__deco-circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.theme-dark .bento__visual-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

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

  .bento__item--tall {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
  }

  .bento__item--tall .bento__content {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento__item {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }

  .bento__item--tall .bento__content,
  .bento__item--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .bento__plus-btn {
    margin-top: 20px;
    align-self: flex-end;
  }
}

/* --- APPROACH SECTION --- */
.section--approach {
  background: linear-gradient(180deg, var(--bg-color) 0%, #f0f4f3 100%);
}

.steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Central Line */
.steps__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary) 0,
    var(--primary) 10px,
    transparent 10px,
    transparent 20px
  ); /* Dashed line */
  transform: translateX(-50%);
  opacity: 0.3;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Alternating Layout */
.step--left {
  justify-content: flex-start;
}

.step--right {
  justify-content: flex-end;
  text-align: right;
}

/* Step Number Bubble */
.step__number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: 0 0 0 10px var(--bg-color); /* Faux gap around line */
  z-index: 3;
}

/* The Content Card */
.step__card {
  width: 45%;
  background-color: var(--white);
  padding: 30px;
  border-radius: 30px; /* Rounded corners */
  border-bottom-right-radius: 0; /* Asymmetry detail */
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.step--right .step__card {
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 0;
}

.step__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px -10px rgba(74, 108, 96, 0.2);
}

.step__title {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.step__desc {
  font-size: 1rem;
  color: var(--text-light);
}

.step__desc strong {
  color: var(--primary);
  font-weight: 600;
}

/* Animation State (Hidden by default) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .steps__line {
    left: 20px; /* Move line to left */
  }

  .step {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .step--right {
    text-align: left;
  }

  .step__number {
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step__card {
    width: 100%;
    border-radius: 20px; /* Reset asymmetry */
  }
}

/* --- INSIGHTS SECTION --- */
.section__header--flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

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

.btn-link:hover {
  border-bottom-color: var(--primary);
}

/* Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 30px;
}

/* Base Card Styles */
.blog-card {
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

/* Featured Card (Large) */
.blog-card--featured {
  height: 500px; /* Fixed height for visual impact */
  display: flex;
  align-items: flex-end;
  position: relative;
}

.blog-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card--featured:hover .blog-card__bg {
  transform: scale(1.05);
}

.blog-card__overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: var(--white);
  border-radius: 0 0 40px 40px;
}

.blog-card__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-card__title {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-card__desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Side Column */
.blog-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Horizontal Card */
.blog-card--horizontal {
  background-color: var(--white);
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 20px;
  height: 160px;
  box-shadow: var(--shadow-soft);
}

.blog-card--horizontal:hover {
  transform: translateX(5px);
}

.blog-card__img-box {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 25px;
  overflow: hidden;
}

.blog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
}

.blog-link-sm {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* CTA Block in Blog */
.blog-cta {
  background-color: var(--primary);
  border-radius: 40px;
  padding: 30px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1; /* Fills remaining space */
}

.blog-cta p {
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 150px;
}

.btn--white {
  background-color: var(--white);
  color: var(--primary);
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn--white:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

  .blog-card--featured {
    height: 400px;
  }

  .blog-col {
    flex-direction: column;
  }

  .blog-card--horizontal {
    height: auto;
  }
}

@media (max-width: 576px) {
  .section__header--flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .blog-card--horizontal {
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
  }

  .blog-card__img-box {
    width: 100%;
    height: 180px;
  }
}

/* --- CONTACT SECTION --- */
.section--contact {
  background-color: var(--white);
  border-radius: 60px 60px 0 0; /* Reverse curve to blend with footer */
  padding-bottom: 0; /* Let footer handle bottom spacing */
}

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

/* Contact Info */
.contact__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.contact__icon-box {
  width: 50px;
  height: 50px;
  background-color: #e8f3f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact__label {
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.contact__link:hover {
  color: var(--primary);
}

/* Form Styling */
.contact__form-wrapper {
  background-color: var(--bg-color);
  padding: 50px;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.3s ease;
}

.form.is-hidden {
  display: none;
}

/* Floating Inputs */
.form__group {
  position: relative;
}

.form__input {
  width: 100%;
  padding: 18px 24px;
  background-color: var(--white);
  border: 2px solid transparent;
  border-radius: 30px; /* Theme requirement */
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-main);
}

.form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 108, 96, 0.1);
}

.form__input:placeholder-shown + .form__label {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
}

.form__label {
  position: absolute;
  left: 24px;
  top: 18px; /* Adjusted for floating state */
  font-size: 0.8rem;
  color: var(--primary);
  pointer-events: none;
  transition: all 0.2s ease;
  transform: translateY(-190%); /* Move up */
}

/* Validation Styles */
.form__input.is-invalid {
  border-color: #e74c3c;
  background-color: #fff5f5;
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 5px;
  margin-left: 20px;
}

.form__input.is-invalid ~ .form__error {
  display: block;
}

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

.error-msg.is-visible {
  display: block;
}

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

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-label input {
  display: none;
}

.captcha-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #fff;
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

.captcha-label input:checked + .captcha-custom {
  border-color: #4a90e2;
}

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

.captcha-text {
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #000;
}

.captcha-icon {
  opacity: 0.6;
}

.consent-box {
  margin-bottom: 10px;
}

.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

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

.btn--full {
  width: 100%;
  border-radius: 30px;
}

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

.form-success.is-visible {
  display: flex;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #e8f3f1;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon i {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

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

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact__form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .contact__form-wrapper {
    padding: 20px;
    border-radius: 30px;
  }

  .captcha-box {
    max-width: 100%;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px 30px;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.cookie-popup.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-popup {
    bottom: 20px;
    border-radius: 30px;
  }
}

/* --- LEGAL PAGES STYLES (privacy.html etc.) --- */
/* Ці стилі працюватимуть, коли ти створиш окремі html файли */

.pages {
  padding: 160px 0 80px; /* Space for fixed header */
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 40px;
  text-align: center;
}

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

.pages p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 1.05rem;
}

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

.pages li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.pages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.pages a {
  color: var(--primary);
  border-bottom: 1px solid rgba(74, 108, 96, 0.3);
  transition: var(--transition);
}

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

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