/* --- Variables & Setup --- */
:root {
  --font-heading: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Palette: Airy Pastel & Clean */
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-text-main: #2d3748;
  --color-text-light: #718096;

  --color-primary: #667eea; /* Soft Indigo */
  --color-primary-hover: #5a67d8;
  --color-secondary: #38b2ac; /* Soft Teal */

  --radius-soft: 20px;
  --radius-pill: 50px; /* Hyper-rounded */

  --shadow-soft: 0 10px 25px -5px rgba(102, 126, 234, 0.1),
    0 8px 10px -6px rgba(102, 126, 234, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(102, 126, 234, 0.2),
    0 10px 10px -5px rgba(102, 126, 234, 0.1);

  --container-width: 1200px;
  --gutter: 20px;
  --header-height: 80px;
}

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

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

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

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

ul {
  list-style: none;
}

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px; /* Floating header effect */
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header__container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

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

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

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

/* Micro-interaction: Scale & Color */
.header__link:not(.header__link--cta):hover {
  color: var(--color-primary);
  transform: scale(1.05);
}

.header__link:not(.header__link--cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.header__link:not(.header__link--cta):hover::after {
  width: 100%;
  left: 0;
}

/* CTA Button in Header */
.header__link--cta {
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.header__link--cta:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

/* Burger Menu */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__burger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 30px;
  margin-top: 80px;
  border-top-left-radius: 60px; /* Big rounded corners at top */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

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

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

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

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

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

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

.footer__link:hover {
  color: var(--color-primary);
  transform: translateX(5px); /* Micro-animation: Slide right */
}

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

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-surface);
    padding: 100px 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    justify-content: center;
    align-items: center;
  }

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

  .header__list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

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

  /* Burger Animation */
  .header__burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .header__burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .footer {
    border-radius: 40px 40px 0 0;
  }

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

@media (max-width: 576px) {
  .header__container {
    padding: 12px 20px;
    border-radius: 16px; /* Slightly less rounded on very small screens to save space */
  }

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

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 100px; /* Padding top to clear fixed header */
  overflow: hidden;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
}

/* Background Shapes for Parallax */
.hero__shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--color-primary) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: -100px;
  right: -100px;
}

.shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--color-secondary) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  bottom: 50px;
  left: -100px;
}

.shape--3 {
  width: 200px;
  height: 200px;
  background: #e2e8f0;
  top: 40%;
  left: 40%;
  opacity: 0.4;
}

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

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

.hero__badge i {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 4.5rem; /* Giant Typography */
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Custom underline shape */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(56, 178, 172, 0.2); /* Secondary color transparent */
  border-radius: 10px;
  z-index: -1;
}

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

.hero__desc strong {
  color: var(--color-text-main);
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn--primary {
  background-color: var(--color-text-main); /* Dark button for contrast */
  color: #fff;
  box-shadow: 0 10px 30px rgba(45, 55, 72, 0.3);
}

.btn--primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(45, 55, 72, 0.4);
  background-color: #000;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.hero__info i {
  color: var(--color-secondary);
}

/* Visual Side */
.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  z-index: 1;
}

.hero__img-main {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 200px 200px 40px 40px; /* Unique hyper-rounded shape */
  box-shadow: var(--shadow-hover);
}

/* Floating Card Element */
.hero__card {
  position: absolute;
  bottom: 60px;
  left: -40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 260px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero__card-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hero__card-title {
  display: block;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

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

/* 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-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__image-wrapper {
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__img-main {
    height: 400px;
  }

  .hero__card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    /* Disable float animation on mobile to save battery/performance */
    animation: none;
  }
}

/* --- Shared Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

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

/* --- Solutions Section --- */
.solutions {
  padding: 100px 0;
  position: relative;
}

.solutions__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 120px; /* Big spacing for airy feel */
}

/* Decorative vertical dashed line */
.solutions__line {
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 50%;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    var(--color-primary) 50%,
    transparent 50%
  );
  background-size: 2px 20px;
  transform: translateX(-50%);
  opacity: 0.2;
  z-index: 0;
}

.solution__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* Reverse layout for even items */
.solution__item--reverse {
  flex-direction: row-reverse;
}

/* Visual Side (Image) */
.solution__visual {
  flex: 1;
  position: relative;
}

.solution__img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  /* Hyper-rounded varied corners */
  border-radius: 60px 140px 60px 140px;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s ease;
}

.solution__item--reverse .solution__img {
  border-radius: 140px 60px 140px 60px; /* Mirror shape */
}

/* Hover Effect: Image Morph */
.solution__item:hover .solution__img {
  border-radius: 100px; /* Transforms to pill/circle */
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.solution__icon-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
}

.solution__icon-badge i {
  width: 32px;
  height: 32px;
}

.solution__icon-badge--alt {
  color: var(--color-secondary);
  right: auto;
  left: 30px;
}

/* Content Side */
.solution__content {
  flex: 1;
  padding: 20px;
}

.solution__step {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: #e2e8f0; /* Very light subtle color */
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.solution__title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.solution__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
  max-width: 480px;
}

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

.solution__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text-main);
}

.solution__list li i {
  color: var(--color-secondary);
  width: 20px;
  height: 20px;
}

.solution__quote {
  padding: 20px 30px;
  background: #fff;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 20px 20px 0;
  font-style: italic;
  color: var(--color-text-main);
  box-shadow: var(--shadow-soft);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

.btn-link:hover {
  gap: 12px; /* Micro-animation: arrow moves away */
}

/* Responsive */
@media (max-width: 992px) {
  .solutions__line {
    display: none;
  }

  .solutions__grid {
    gap: 80px;
  }

  .solution__item,
  .solution__item--reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .solution__img {
    max-width: 100%;
    height: 300px;
  }

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

  .solution__list {
    align-items: flex-start; /* List items still look better left-aligned usually, but centered in container */
    text-align: left;
  }
}

/* --- Technology Section --- */
.tech {
  padding: 80px 0;
}

.tech__wrapper {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-radius: 60px; /* Hyper-rounded container */
  padding: 80px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Background decorative glow */
.tech__wrapper::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.4) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.tech__subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.tech__title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.tech__desc {
  font-size: 1.1rem;
  color: #cbd5e0; /* Light gray for dark background */
  line-height: 1.7;
  max-width: 600px;
}

.tech__desc strong {
  color: var(--color-secondary);
}

/* Grid for Cards */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.tech__card {
  background: rgba(255, 255, 255, 0.05); /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.tech__card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
}

.tech__icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  border-radius: 16px; /* Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tech__card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.tech__card-text {
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.5;
}

/* Stats Row */
.tech__stats {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech__stat-item {
  display: flex;
  flex-direction: column;
}

.tech__stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  line-height: 1;
}

.tech__stat-label {
  font-size: 0.85rem;
  color: #a0aec0;
  margin-top: 5px;
}

.tech__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .tech__wrapper {
    padding: 60px 30px;
    border-radius: 40px;
  }

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

  .tech__title {
    font-size: 2.2rem;
  }

  .tech__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    border-radius: 30px;
  }

  .tech__stat-divider {
    display: none;
  }
}

/* --- Benefits Section (Bento Grid) --- */
.benefits {
  padding: 100px 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Base Card Style */
.b-card {
  background-color: #fff;
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.b-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Card Variations (Breaking the grid) */
.b-card--large {
  grid-column: span 2;
  grid-row: span 2;
  background-color: #fff;
  position: relative;
}

.b-card--medium {
  grid-column: span 1;
  min-height: 280px;
}

.b-card--wide {
  grid-column: span 1;
  background-color: var(--color-surface);
  border: 2px dashed #e2e8f0;
  box-shadow: none;
}

.b-card--wide:hover {
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
}

/* Specific Styles */
.color-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  color: #fff;
}

.text-white {
  color: #fff;
}
.text-white-opacity {
  color: rgba(255, 255, 255, 0.8);
}

.b-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.b-card__icon--sec {
  color: var(--color-secondary);
  background-color: rgba(56, 178, 172, 0.1);
}

.b-card__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.b-card__text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.b-card__text strong {
  color: var(--color-text-main);
}

.color-primary .b-card__text strong {
  color: #fff;
}

/* Image in Large Card */
.b-card__img {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 40px;
  object-fit: cover;
  transform: rotate(-10deg);
  transition: transform 0.4s ease;
}

.b-card--large:hover .b-card__img {
  transform: rotate(0deg) scale(1.05);
}

/* Flex helper for Wide card */
.flex-row-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Circular Button */
.btn-circle {
  width: 60px;
  height: 60px;
  background-color: var(--color-text-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.btn-circle:hover {
  background-color: var(--color-primary);
  transform: rotate(45deg);
}

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

  .b-card--large,
  .b-card--medium,
  .b-card--wide {
    grid-column: span 1;
    grid-row: auto;
  }

  .b-card__img {
    display: none; /* Hide decorative image on mobile to save space */
  }
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background-color: #fff; /* Clean break */
  position: relative;
  /* Soft gradient background to blend */
  background: linear-gradient(to top, #fff 0%, var(--color-bg) 100%);
}

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

/* Info Side */
.contact__title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 400px;
}

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

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

.contact__check {
  width: 24px;
  height: 24px;
  background-color: rgba(56, 178, 172, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.contact__check i {
  width: 14px;
  height: 14px;
}

/* Form Wrapper */
.contact__form-wrapper {
  background: #fff;
  padding: 50px;
  border-radius: 50px; /* Hyper-rounded */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-left: 20px; /* Align with input padding */
}

.form-input {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--color-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Custom Captcha Style */
.captcha-box {
  background-color: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  width: fit-content;
  min-width: 250px;
}

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

.captcha-input {
  display: none; /* Hide default checkbox */
}

.captcha-box__visual {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.captcha-input:checked + .captcha-box__visual {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.captcha-box__check {
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  margin-bottom: 2px;
}

.captcha-input:checked + .captcha-box__visual .captcha-box__check {
  opacity: 1;
}

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

.captcha-logo {
  height: 24px;
  opacity: 0.5;
}

/* Privacy Checkbox */
.privacy-box {
  margin-bottom: 30px;
}

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

.privacy-input {
  margin-top: 4px;
  accent-color: var(--color-primary);
}

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

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

/* Button & Loader */
.btn--full {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.btn.is-loading .btn-text {
  opacity: 0;
}

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

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

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

.success-message.is-active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(56, 178, 172, 0.1);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

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

.success-text {
  color: var(--color-text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

  .contact__form-wrapper {
    padding: 30px;
    border-radius: 30px;
  }

  .contact__title {
    font-size: 2.2rem;
  }
}

/* style.css (Додайте в кінець файлу) */

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden by default */
  width: calc(100% - 40px);
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 2000;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f7fafc;
}

.cookie-popup.is-active {
  transform: translateX(-50%) translateY(0);
}

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

.cookie-popup__icon {
  color: var(--color-primary);
}

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

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

.btn--sm {
  padding: 12px 24px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    bottom: 20px;
    width: calc(100% - 40px);
  }

  .btn--sm {
    width: 100%;
  }
}

/* --- Legal Pages Styles (privacy.html, etc.) --- */
.pages {
  padding: 160px 0 80px; /* Big top padding for fixed header */
  min-height: 60vh;
}

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

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

.pages p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

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

.pages li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--color-text-main);
}

.pages li strong {
  color: var(--color-primary);
}

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

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

/* Wrapper for better reading comfort on legal pages */
.pages .container {
  max-width: 800px; /* Narrower width for text readability */
  background: #fff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
}

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

/* --- Error Validations Styles --- */

/* Контейнер для тексту помилки */
.form-error {
  display: block;
  font-size: 0.85rem;
  color: #e53e3e; /* Soft Red */
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding-left: 20px; /* Align with input text */
}

/* Стан активної помилки (показуємо текст) */
.form-error.is-visible {
  margin-top: 8px;
  max-height: 40px;
  opacity: 1;
}

/* Червона обводка для input */
.form-input.is-invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
  animation: shake 0.4s ease-in-out;
}

.form-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}

/* Обводка для блоку капчі при помилці */
.captcha-box.is-invalid {
  border-color: #e53e3e;
  background-color: #fff5f5;
  animation: shake 0.4s ease-in-out;
}

/* Wrapper for Captcha to align error message */
.captcha-wrapper {
  margin-bottom: 24px;
}
.captcha-wrapper .form-error {
  padding-left: 0;
}

/* Анімація тряски (Shake) для привернення уваги */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
