/* --- VARIABLES --- */
:root {
  /* Palette: Airy Pastel */
  --color-bg: #f8f9fd;
  --color-surface: #ffffff;
  --color-primary: #8b5cf6; /* Soft Violet */
  --color-primary-light: #ddd6fe;
  --color-accent: #14b8a6; /* Teal Mint */
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;

  /* Geometry: Hyper-rounded */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-container: 1280px;
  --header-height: 90px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(139, 92, 246, 0.1);
  --shadow-hover: 0 20px 50px -12px rgba(139, 92, 246, 0.2);
}

/* --- 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);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background-color: #7c3aed;
}

/* --- HEADER --- */
.header {
  height: var(--header-height);
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s;
}

.header__container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

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

.header__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

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

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

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
  }

  .header__actions {
    width: 100%;
    margin-top: 20px;
  }

  .header__btn {
    width: 100%;
  }
}

/* --- MAIN (Padding for Fixed Header) --- */
.main {
  padding-top: calc(var(--header-height) + 60px);
  min-height: 60vh; /* Temporary visual placeholder */
}

/* --- FOOTER --- */
.footer {
  background-color: #fff;
  padding: 80px 0 30px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-top: 80px;
  border: 1px solid var(--color-border);
}

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

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

.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
}

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

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s;
}

.footer__socials a:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

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

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

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

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

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

/* Footer Responsive */
@media (max-width: 992px) {
  .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;
    padding: 50px 0 20px;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
  /* Легкий градієнт фону */
  background: linear-gradient(135deg, #f8f9fd 0%, #f0f4ff 100%);
}

/* Background Abstract Shapes */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.hero__bg-shape--1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  top: -10%;
  right: -10%;
}

.hero__bg-shape--2 {
  width: 300px;
  height: 300px;
  background: #ccfbf1; /* Mint light */
  bottom: 10%;
  left: -5%;
}

.hero__container {
  position: relative;
  z-index: 1;
  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;
  padding: 8px 16px;
  background: #fff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

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

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

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

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

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.5);
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

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

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

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

/* Visual Side (Parallax) */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* Для 3D ефекту */
}

.hero__img-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg); /* Hyper rounded */
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Floating Cards */
.hero__card {
  position: absolute;
  background: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.hero__card--1 {
  top: 15%;
  right: -20px;
}

.hero__card--2 {
  bottom: 20%;
  left: -20px;
}

.hero__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.bg-accent {
  background-color: var(--color-accent);
}
.bg-primary {
  background-color: var(--color-primary);
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

.hero__card-text strong {
  font-size: 1.1rem;
  color: var(--color-text);
}

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

/* Responsive Hero */
@media (max-width: 992px) {
  .hero__title {
    font-size: 2.8rem;
  }

  .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__visual {
    height: 450px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__actions {
    justify-content: center;
    width: 100%;
  }

  .hero__btn {
    width: 100%;
  }

  .hero__card {
    display: none; /* Ховаємо картки на мобільних для чистоти */
  }
}

/* --- EXPERTISE (BENTO GRID) --- */
.expertise {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.expertise__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.expertise__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

/* Grid Layout */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  /* Grid Template Areas define the layout structure */
  grid-template-areas:
    "large wide wide"
    "large standard1 standard2";
}

/* Bento Card Base */
.bento-card {
  background: #fff;
  border-radius: 32px; /* Hyper-rounded */
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 92, 246, 0.2);
}

/* Specific Card Positioning */
.bento-card--large {
  grid-area: large;
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.bento-card--wide {
  grid-area: wide;
  display: flex;
  align-items: center;
}

/* Card Content Styling */
.bento-card__icon-box {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-text);
}

.bento-card__icon-box i {
  width: 28px;
  height: 28px;
}

/* Icon Background Colors */
.bg-soft-primary {
  background-color: #ede9fe;
  color: var(--color-primary);
}
.bg-soft-accent {
  background-color: #ccfbf1;
  color: var(--color-accent);
}
.bg-soft-blue {
  background-color: #dbeafe;
  color: #2563eb;
}
.bg-soft-orange {
  background-color: #ffedd5;
  color: #ea580c;
}

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

.bento-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.bento-card--wide .bento-card__content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.bento-card--wide .bento-card__icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Visual Decoration for Large Card */
.bento-card__visual {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 100px;
  opacity: 0.8;
}

.graph-bar {
  width: 30%;
  background: var(--color-primary);
  border-radius: 10px 10px 0 0;
  transition: height 0.5s ease;
}

.graph-bar--1 {
  height: 40%;
  opacity: 0.4;
}
.graph-bar--2 {
  height: 70%;
  opacity: 0.7;
}
.graph-bar--3 {
  height: 100%;
  opacity: 1;
}

.bento-card:hover .graph-bar--1 {
  height: 60%;
}
.bento-card:hover .graph-bar--2 {
  height: 90%;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .expertise__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "large large"
      "wide wide"
      "standard1 standard2";
  }
}

@media (max-width: 576px) {
  .expertise__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wide"
      "large"
      "standard1"
      "standard2";
  }

  .expertise__title {
    font-size: 2rem;
  }

  .bento-card--wide .bento-card__content {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- SOLUTIONS (STEPS) --- */
.solutions {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.solutions__header {
  text-align: center;
  margin-bottom: 80px;
}

.solutions__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.highlight {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Steps Container */
.steps-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 30px;
  margin-bottom: 60px;
}

/* Connecting Line */
.steps-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border) 0,
    var(--color-border) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 0;
  transform: translateY(-50%);
}

/* Step Card */
.step-card {
  flex: 1;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

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

/* Center card offset */
.step-card--center {
  margin-top: -40px; /* Moves the center card up */
}

.step-card__content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.1); /* Very transparent primary */
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  transition: all 0.3s;
}

.step-card:hover .step-card__number {
  color: rgba(139, 92, 246, 0.2);
  transform: translateX(-50%) scale(1.1);
}

.step-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.step-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.step-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.solutions__footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.solutions__note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  opacity: 0.8;
}

/* Responsive Solutions */
@media (max-width: 992px) {
  .steps-wrapper {
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  .steps-line {
    width: 2px;
    height: 80%;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
      180deg,
      var(--color-border) 0,
      var(--color-border) 10px,
      transparent 10px,
      transparent 20px
    );
  }

  .step-card {
    width: 100%;
    max-width: 400px;
  }

  .step-card--center {
    margin-top: 0;
  }

  .step-card__number {
    top: -40px;
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: 100px 0;
  background-color: #f0f4ff; /* Very light blueish tint */
}

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 30px;
}

.blog__title {
  font-size: 2.5rem;
  flex: 1;
}

.blog__subtitle {
  flex: 1;
  font-size: 1.1rem;
  color: var(--color-text-light);
  padding-bottom: 5px;
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
}

/* Grid Layout */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Blog Card Style */
.blog-card {
  background: #fff;
  border-radius: 30px; /* Hyper-rounded */
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

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

/* Image Area */
.blog-card__image-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  margin: 10px; /* Inner spacing for floating look */
  border-radius: 24px;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card__tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  backdrop-filter: blur(4px);
}

/* Content Area */
.blog-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.blog-card__meta i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex-grow: 1; /* Pushes link to bottom */
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-top: auto;
}

.blog-card__link:hover {
  gap: 10px; /* Icon slides right */
}

.blog__footer {
  text-align: center;
}

/* Responsive Blog */
@media (max-width: 992px) {
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .blog__subtitle {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 650px) {
  /* Horizontal Scroll for Mobile */
  .blog__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px; /* Space for scrollbar/shadow */
    margin-right: -20px; /* Offset container padding */
    padding-right: 20px;
  }

  .blog-card {
    min-width: 280px;
    scroll-snap-align: start;
  }

  .blog__title {
    font-size: 2rem;
  }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
  background-color: #fff;
  overflow: hidden;
}

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

.about__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about__title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about__desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* Values List */
.about__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.about__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
}

.about__icon {
  color: var(--color-accent); /* Teal color for checks */
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Founder Block */
.about__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.about__author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

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

.about__author-name {
  font-weight: 700;
  color: var(--color-text);
}

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

/* Visual Side with Blob Shape */
.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__img-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  /* Unique Blob Shape */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: blob-bounce 8s infinite ease-in-out;
  background: #f0f0f0;
}

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

/* Animation for the blob shape */
@keyframes blob-bounce {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  33% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  66% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}

/* Floating Badge on Image */
.about__badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  color: var(--color-text);
  z-index: 2;
  /* Скасовуємо анімацію батька для бейджа, щоб він не деформувався, але рухався */
  /* Насправді бейдж всередині wrapper теж обріжеться, якщо вийде за межі, 
       тому краще робити wrapper без overflow:hidden або виносити бейдж.
       В даному випадку, для простоти, ми розміщуємо його так, щоб він не обрізався. */
}

.about__badge i {
  color: var(--color-primary);
}

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

  .about__visual {
    order: -1; /* Image first on mobile? Or keep text first. Let's keep text first for storytelling */
    order: 0;
  }

  .about__img-wrapper {
    height: 400px;
    max-width: 100%;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fd 0%, #ffffff 100%);
}

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

/* Info Side */
.contact__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.contact__feature strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text);
}

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

/* Form Wrapper */
.contact__form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

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

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

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border-radius: 999px; /* Pill shape */
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* Custom Captcha Style */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 24px;
  min-width: 260px;
}

.captcha-checkbox-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

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

.captcha-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.captcha-input:checked + .captcha-label {
  background: #fff;
  border-color: transparent;
}

/* Green checkmark simulation */
.captcha-input:checked + .captcha-label::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 6px;
  height: 14px;
  border: solid #00a84d;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
}

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

.captcha-logo span {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

/* Policy Checkbox */
.policy-box {
  margin-bottom: 24px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

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

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

/* Success Message */
.success-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.success-message.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5; /* Soft Green */
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

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

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

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

  .contact__info {
    text-align: center;
    margin-bottom: 20px;
  }

  .contact__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .contact__features {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- COOKIE POP-UP --- */
.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.6);
  padding: 20px 30px;
  border-radius: 20px; /* Rounded pill */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.cookie-icon {
  font-size: 24px;
  color: var(--color-primary);
  animation: spin-slow 10s linear infinite;
}

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

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

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

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

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

  .cookie-content {
    flex-direction: column;
  }

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

/* --- LEGAL PAGES STYLES (privacy.html etc.) --- */
.pages {
  padding: 60px 0 100px;
  background-color: #fff;
}

.pages .container {
  max-width: 800px; /* Narrower for reading */
}

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

.pages h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

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

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

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

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

.pages ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

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

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

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