/* --- Global Variables & Theme Setup (Airy Pastel + Round) --- */
:root {
  /* Colors */
  --color-bg: #fdfbf7; /* Теплый кремовый, "airy" */
  --color-surface: #ffffff;
  --color-text-main: #2d2d35; /* Графитовый для контраста */
  --color-text-muted: #6b6b78;
  --color-accent: #6c63ff; /* Мягкий фиолетовый */
  --color-accent-hover: #5a52d5;
  --color-secondary: #d4e4e6; /* Пастельный голубой */
  --color-border: #e8e8f0;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Spacing & Shapes */
  --container-width: 1240px;
  --radius-l: 32px; /* Hyper-rounded */
  --radius-m: 20px;
  --radius-s: 12px;
  --shadow-soft: 0 10px 40px -10px rgba(108, 99, 255, 0.1);
  --shadow-hover: 0 20px 50px -10px rgba(108, 99, 255, 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-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-m);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px; /* Fully rounded pills */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn--header {
  background-color: var(--color-text-main);
  color: var(--color-surface);
}

.btn--header:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 45, 53, 0.2);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px 32px;
  border-radius: 50px; /* Hyper-rounded navbar */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
  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.25rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: none; /* Mobile first hidden */
}

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

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

  .header__link {
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
  }

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

  /* Hover effect: dot appears below */
  .header__link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .header__link:hover::after {
    transform: translateX(-50%) scale(1);
  }
}

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

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

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 2000;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu__content {
  text-align: center;
  width: 100%;
}

.mobile-menu__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--color-surface);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.mobile-menu__link--cta {
  color: var(--color-accent);
}

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

.footer__container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

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

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text-main);
  display: block;
  margin-bottom: 16px;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: 0.3s;
}

.social-link:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

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

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

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

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

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

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

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 100px; /* Great top padding for fixed header */
  overflow: hidden;
  background: radial-gradient(
    circle at 90% 10%,
    #f3f0ff 0%,
    var(--color-bg) 60%
  );
}

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

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

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

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

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

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

/* Underline decoration for accent text */
.text-accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--color-secondary);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.6;
}

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

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

/* Hero Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

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

.btn--primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.35);
}

.btn--lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
}

/* Trust Elements */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -15px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

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

/* Hero Visual & Parallax */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-wrapper {
  width: 100%;
  max-width: 450px;
  height: 550px;
  overflow: hidden;
  /* Custom organic shape */
  border-radius: 200px 200px 40px 40px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-hover);
}

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

/* Floating Cards */
.floater {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.1s linear; /* Smooth mouse follow */
}

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

.floater__icon {
  background: #e0e7ff;
  color: var(--color-accent);
  padding: 8px;
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.floater__icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.floater__label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.floater__value {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

/* Position Floating Cards */
.floater--1 {
  top: 10%;
  right: 0;
}

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

.hero__decor--circle {
  position: absolute;
  top: 40%;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--color-secondary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

/* --- Strategies Section (Elastic Cards) --- */
.strategies {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, #b4e4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Elastic Cards Wrapper */
.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
}

@media (min-width: 992px) {
  .cards-wrapper {
    flex-direction: row;
    height: 500px; /* Fixed height for desktop to allow expansion */
  }
}

/* Individual Card Styling */
.elastic-card {
  position: relative;
  border-radius: 40px; /* Hyper-rounded per design sys */
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);

  /* Mobile Default */
  height: 300px;
  flex: none;
  width: 100%;
}

@media (min-width: 992px) {
  .elastic-card {
    height: 100%;
    flex: 1; /* All cards start equal width */
    width: auto;
  }

  /* Hover Interaction Logic */
  .elastic-card:hover {
    flex: 3.5; /* Expands significantly */
  }

  /* Optional: Keep middle card expanded by default if no hover (controlled by JS or simple css preference) */
  .elastic-card.active {
    flex: 2; /* Slightly larger by default if desired, otherwise 1 */
  }
  .cards-wrapper:hover .elastic-card.active {
    flex: 1; /* Reset when hovering wrapper */
  }
  .cards-wrapper:hover .elastic-card:hover {
    flex: 3.5; /* Target specific hover */
  }
}

/* Card Backgrounds (Subtle Gradients) */
.card--1 .elastic-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f3f0ff 0%, #ffffff 100%);
  opacity: 0.6;
  z-index: 0;
}

.card--2 .elastic-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  opacity: 0.6;
  z-index: 0;
}

.card--3 .elastic-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fdf4ff 0%, #ffffff 100%);
  opacity: 0.6;
  z-index: 0;
}

/* Content Layout */
.elastic-card__content {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Text at bottom */
  align-items: flex-start;
}

.elastic-card__icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto; /* Pushes icon to top */
  color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.elastic-card__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  white-space: nowrap; /* Keep title on one line initially */
  color: var(--color-text-main);
}

.elastic-card__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  opacity: 0; /* Hidden by default on desktop */
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  max-width: 400px;
  display: none; /* Hidden on mobile initially to save space or show depending on design */
}

/* Show description on hover (Desktop) or always on Mobile if needed */
@media (min-width: 992px) {
  .elastic-card__desc {
    display: block;
  }
  .elastic-card:hover .elastic-card__desc {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .elastic-card__desc {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 20px;
  }
  .elastic-card {
    height: auto;
    min-height: 280px;
  }
}

.elastic-card__link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease 0.2s;
}

@media (min-width: 992px) {
  .elastic-card:hover .elastic-card__link {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 991px) {
  .elastic-card__link {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Mentorship Roadmap Section --- */
.mentorship {
  padding: 100px 0;
  background-color: #f8f9fc; /* Slightly different shade to separate sections */
  overflow: hidden;
}

.roadmap {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 20px 0;
}

/* The vertical connecting line */
.roadmap__line {
  position: absolute;
  left: 20px; /* Mobile alignment */
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    var(--color-accent) 50%,
    transparent 50%
  );
  background-size: 100% 20px; /* Dashed effect */
  opacity: 0.3;
}

@media (min-width: 768px) {
  .roadmap__line {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Roadmap Items Container */
.roadmap__item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-start; /* Default mobile: align right of line */
  padding-left: 60px; /* Space for marker */
}

.roadmap__item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .roadmap__item {
    justify-content: flex-start; /* Desktop: items on left */
    padding-left: 0;
    width: 50%; /* Take half width */
    padding-right: 50px; /* Space from center */
  }

  /* Even items go to the right */
  .roadmap__item--reverse {
    margin-left: auto; /* Push to right side */
    justify-content: flex-end; /* Content aligns appropriately inside, but we need flex-direction actually */
    padding-right: 0;
    padding-left: 50px;
    flex-direction: row-reverse; /* Flip content direction for easy alignment? No, simpler to just use margin-left: auto */
  }
}

/* The Number Marker */
.roadmap__marker {
  position: absolute;
  left: 0; /* Mobile position */
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: 0 0 0 8px #f8f9fc; /* Fake border to cut the line */
  z-index: 2;
}

@media (min-width: 768px) {
  .roadmap__marker {
    left: auto;
    right: -20px; /* Position exactly on center line for left items */
  }

  .roadmap__item--reverse .roadmap__marker {
    right: auto;
    left: -20px; /* Position on center line for right items */
  }
}

/* The Content Card */
.roadmap__content {
  width: 100%;
}

.roadmap__card {
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform 0.3s;
  position: relative;
}

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

.roadmap__card--highlight {
  background: linear-gradient(135deg, white 0%, #f0f4ff 100%);
  border-color: var(--color-secondary);
}

.roadmap__icon-box {
  width: 50px;
  height: 50px;
  background: #f3f0ff;
  border-radius: 16px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.roadmap__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.roadmap__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.roadmap__desc strong {
  color: var(--color-accent);
}

.roadmap__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- Blog Section (Horizontal Snap) --- */
.blog {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header-text {
  max-width: 600px;
}

/* Custom Nav Buttons */
.blog-nav {
  display: flex;
  gap: 12px;
}

.blog-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.blog-nav__btn:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Scroller Container */
.blog-scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px; /* Space for shadow/scroll bar */
  -webkit-overflow-scrolling: touch;
  /* Hide Scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
}

.blog-scroller::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Blog Cards */
.blog-card {
  flex: 0 0 85%; /* Mobile: show most of one card */
  scroll-snap-align: start;
  background: var(--color-surface);
  border-radius: 32px; /* Rounded shapes */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

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

@media (min-width: 768px) {
  .blog-card {
    flex: 0 0 400px; /* Desktop: fixed width */
  }

  /* Featured card is wider on desktop */
  .blog-card--featured {
    flex: 0 0 600px;
    flex-direction: row; /* Horizontal layout for featured */
  }
}

/* Image Area */
.blog-card__image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card--featured .blog-card__image-box {
  height: 250px; /* Mobile height */
  flex: 1; /* Reset for flex row later */
}

@media (min-width: 768px) {
  .blog-card--featured .blog-card__image-box {
    height: auto;
    width: 45%;
  }
}

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

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

.blog-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  z-index: 2;
}

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

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.meta-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.blog-card--featured .blog-card__title {
  font-size: 1.5rem;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.blog-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.blog-card__link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.blog-card:hover .blog-card__link::after {
  width: 100%;
}

/* CTA Card Variant */
.blog-card--cta {
  background: var(--color-text-main); /* Dark card */
  border: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.blog-card__content--center {
  align-items: center;
  justify-content: center;
}

.cta-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.text-white {
  color: white !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.btn--white {
  background: white;
  color: var(--color-text-main);
  margin-top: 20px;
}

.btn--white:hover {
  background: var(--color-secondary);
}

/* --- About Section (Bento Grid) --- */
.about {
  padding: 100px 0;
  background-color: #f8f9fc;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Responsive Grid Layout */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  /* Layout Logic: 
       [ 1 ] [ 2 ]
       [ 1 ] [ 3 ]
       [ 4 ] [ 5 ]
    */
  .bento-box--large {
    grid-row: span 2; /* Takes 2 rows height */
  }
}

@media (min-width: 992px) {
  .bento-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
  }

  /* Desktop Layout:
       [ 1 (large) ] [ 2 ] [ 5 (img) ]
       [ 1 (large) ] [ 3 ] [ 4 ]
    */
  .bento-box--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .bento-box--image {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

/* Generic Box Styles */
.bento-box {
  background: var(--color-surface);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform 0.3s;
  overflow: hidden;
  position: relative;
}

.bento-box:hover {
  transform: translateY(-5px);
}

/* Specific Box Modifiers */
.bento-box--large {
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
}

.bento-box--accent {
  background: var(--color-accent);
  color: white;
  border: none;
}

.bento-box--dark {
  background: var(--color-text-main);
  color: white;
  border: none;
}

.bento-box--image {
  padding: 0;
}

/* Content Styles */
.bento-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

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

.bento-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 90%;
}

.bento-footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Counters */
.counter-wrapper {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
}

.bento-box--accent .counter-wrapper {
  color: white;
}

.counter-value {
  color: var(--color-accent);
}

.bento-box--accent .counter-value {
  color: white;
}

.counter-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.bento-box--accent .counter-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark Box Elements */
.bento-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.bento-subtitle {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: white;
}

.bento-text-sm {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Image Box */
.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.bento-box:hover .bento-img {
  transform: scale(1.1);
}

.bento-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fc 0%, var(--color-bg) 100%);
}

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

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

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

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

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.contact__icon-box {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.contact__label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

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

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

/* --- Form Styles --- */
.contact__form-wrapper {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid white;
  position: relative;
  overflow: hidden;
}

.form__title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.form__group {
  margin-bottom: 24px;
}

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

.form__input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: #f8f9fc;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form__input:focus {
  background: white;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrapper input {
  display: none;
}

.custom-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: white;
}

.checkbox-icon {
  width: 18px;
  height: 18px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}

/* Checked State */
.custom-checkbox-wrapper input:checked + .custom-checkbox {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-checkbox-wrapper input:checked + .custom-checkbox .checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

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

.custom-checkbox--sm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}

.custom-checkbox--sm .checkbox-icon {
  width: 14px;
  height: 14px;
}

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

.checkbox-text--sm a {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

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

.form.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

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

.success-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.success-desc {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

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

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden initially */
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 20px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--color-border);
}

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

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

.cookie-icon {
  font-size: 1.5rem;
}

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

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

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

/* --- Pages Styles (Privacy, Terms etc) --- */
.pages {
  padding: 140px 0 80px; /* Space for fixed header */
}

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

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

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

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

.pages li {
  list-style: disc;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

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

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

/* --- Error Handling Styles --- */

.input-wrapper {
  position: relative;
}

/* Стан помилки для інпуту */
.form__input.error {
  border-color: #ef4444; /* Червоний */
  background-color: #fef2f2;
  padding-right: 40px; /* Місце для іконки */
  animation: shake 0.4s ease-in-out;
}

/* Текст помилки */
.form__error-text {
  display: block;
  height: 0;
  overflow: hidden;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-5px);
}

.form__error-text.active {
  height: auto;
  margin-top: 6px;
  opacity: 1;
  transform: translateY(0);
}

/* Іконка помилки всередині поля */
.error-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.form__input.error + .error-icon {
  opacity: 1;
}

/* Анімація трясіння при помилці */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
