/* --- Global Variables & Reset --- */
:root {
  /* Colors: Airy Pastel + Soft Shadows */
  --bg-color: #f9fafb; /* Очень светлый серый/белый */
  --surface-color: #ffffff;
  --primary-color: #2c3e50; /* Темный серо-синий для текста */
  --accent-color: #7dcea0; /* Пастельный мятный */
  --accent-hover: #52be80;
  --text-color: #4a5568;
  --heading-color: #1a202c;

  /* Typography */
  --font-heading: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Spacing & Borders */
  --border-radius-lg: 32px; /* Hyper-rounded concept */
  --border-radius-md: 20px;
  --border-radius-btn: 50px;
  --container-width: 1240px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

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

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

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

.header__container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-btn);
  padding: 15px 30px;
  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: 10px;
}

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

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

.header__nav {
  display: flex;
}

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

.header__link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

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

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

/* CTA Button in Header */
.header__cta {
  background-color: var(--heading-color);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header__cta:hover {
  background-color: var(--accent-color);
  color: var(--heading-color);
  transform: translateY(-2px);
}

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

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

.footer__container {
  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: 800;
  font-size: 1.5rem;
  color: var(--heading-color);
  display: block;
  margin-bottom: 20px;
}

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

.footer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 25px;
}

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

.footer__link {
  font-size: 0.95rem;
  opacity: 0.8;
}

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

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

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

.footer__note {
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-top: 15px;
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Mobile Adaptation --- */
@media (max-width: 992px) {
  .header__container {
    padding: 10px 20px;
    width: 90%;
    margin: 0 auto;
  }

  .header__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--surface-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1; /* Behind the container, logical via js */
  }

  .header__menu.active {
    right: 0;
  }

  .header__burger {
    display: block;
  }

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

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo,
  .footer__contacts li {
    justify-content: center;
  }

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

/* --- UI Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

.btn--primary:hover {
  background-color: var(--heading-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.3);
}

.btn--text {
  color: var(--heading-color);
  background: transparent;
  padding: 16px 24px;
}

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

.btn__play-icon {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn__play-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--heading-color);
  stroke: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 100px; /* Space for fixed header */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(125, 206, 160, 0.15);
  border-radius: 30px;
  color: #2d8a56;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 138, 86, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(45, 138, 86, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 138, 86, 0);
  }
}

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 25px;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--accent-color);
  position: relative;
  z-index: 1;
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background: rgba(125, 206, 160, 0.2);
  z-index: -1;
  border-radius: 10px;
  transform: rotate(-2deg);
}

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

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

/* Visual Card */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 40px;
  border-radius: 40px; /* Hyper rounded */
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 400px;
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.hero__card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

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

.hero__card-label {
  font-size: 0.9rem;
  color: var(--text-color);
  display: block;
}

.hero__card-value {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--heading-color);
}

.hero__graph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  margin-bottom: 30px;
}

.hero__graph-bar {
  width: 14%;
  background: #e2e8f0;
  border-radius: 20px;
  transition: height 1s ease;
}

.hero__graph-bar.active {
  background: var(--accent-color);
  box-shadow: 0 4px 15px rgba(125, 206, 160, 0.4);
}

.hero__card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.stars {
  color: #f59e0b;
}

/* Background Animation Elements */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__blob--1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(125, 206, 160, 0.3);
}

.hero__blob--2 {
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(44, 62, 80, 0.08);
}

.hero__blob--3 {
  top: 40%;
  right: 40%;
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.1);
}

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

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none; /* Hide complex visual on mobile for cleaner look */
  }
}

/* --- Sections General --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

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

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

/* --- Features Grid (Bento Style) --- */
.features {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
}

/* Base Card Style */
.feature-card {
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

.feature-card__icon {
  width: 60px;
  height: 60px;
  background: #f0fdf4;
  color: var(--accent-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Variations */

/* Large Card: Spans 2 columns */
.feature-card--large {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.feature-card__tag {
  margin-top: auto;
  display: inline-block;
  padding: 6px 14px;
  background: var(--heading-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
}

/* Tall Card: Spans 2 rows vertical */
.feature-card--tall {
  grid-row: span 2;
  background-color: var(--primary-color);
  color: #fff;
  justify-content: space-between;
}

.feature-card--tall .feature-card__title,
.feature-card--tall .feature-card__text {
  color: #fff;
}

.feature-card--tall .feature-card__text {
  opacity: 0.9;
  margin-bottom: 30px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 600;
}

.feature-link:hover {
  gap: 12px;
}

.circle-deco {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  bottom: -40px;
  right: -40px;
}

/* Wide Card: Spans full width at bottom */
.feature-card--wide {
  grid-column: span 2;
  background: var(--accent-color);
  color: var(--heading-color);
}

.feature-card--wide .feature-card__title,
.feature-card--wide .feature-card__text {
  color: #1a202c;
}

.feature-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-circle:hover {
  transform: scale(1.1) rotate(10deg);
}

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

  .feature-card--large {
    grid-column: span 2;
  }

  .feature-card--tall {
    grid-row: auto; /* reset */
    grid-column: span 1;
  }

  .feature-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .features__grid {
    display: flex;
    flex-direction: column;
  }
}

/* --- Mentorship / Zig-Zag Section --- */
.mentorship {
  padding: 100px 0;
  overflow: hidden;
}

.zigzag-block {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.zigzag-block:last-child {
  margin-bottom: 0;
}

.zigzag-block--reverse {
  flex-direction: row-reverse;
}

/* Content Side */
.zigzag-block__content {
  flex: 1;
}

.badge-soft {
  display: inline-block;
  padding: 8px 16px;
  background: #fff7ed; /* Light orange/cream */
  color: #c05621;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-soft--blue {
  background: #ebf8ff;
  color: #2b6cb0;
}

.zigzag-block__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.zigzag-block__text {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--heading-color);
}

.check-list li svg {
  color: var(--accent-color);
  width: 20px;
  height: 20px;
}

/* Visual Side */
.zigzag-block__visual {
  flex: 1;
  position: relative;
}

.abstract-visual {
  width: 100%;
  height: 400px;
  border-radius: 60px; /* Hyper rounded */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visual 1: Tech */
.abstract-visual--1 {
  background: #f1f5f9;
  background-image: radial-gradient(
      circle at 20% 20%,
      #e2e8f0 0%,
      transparent 20%
    ),
    radial-gradient(circle at 80% 80%, #cbd5e1 0%, transparent 20%);
}

.float-card {
  background: #fff;
  padding: 20px 30px;
  border-radius: 30px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--heading-color);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.float-card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px dashed #cbd5e1;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

/* Visual 2: Survey */
.abstract-visual--2 {
  background: #f0fdf4;
}

.survey-card {
  background: #fff;
  padding: 40px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(125, 206, 160, 0.15);
  width: 280px;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

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

.survey-card__row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.survey-card__checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.survey-card__checkbox.checked {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.survey-card__line {
  height: 10px;
  width: 100%;
  background: #f1f5f9;
  border-radius: 5px;
}

.survey-card__line.short {
  width: 60%;
}

/* Quiz Preview specific styles */
.quiz-preview {
  margin-bottom: 30px;
}

.quiz-preview__bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.quiz-preview__progress {
  width: 75%;
  height: 100%;
  background: var(--heading-color);
  border-radius: 4px;
}

.quiz-preview__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-hover);
}

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

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

/* Responsive */
@media (max-width: 992px) {
  .zigzag-block {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
  }

  .zigzag-block--reverse {
    flex-direction: column;
  }

  .abstract-visual {
    height: 300px;
  }
}

/* --- Blog Section --- */
.blog {
  padding: 100px 0;
  background-color: #f8fafc; /* Slightly different shade for separation */
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.blog-card {
  background: var(--surface-color);
  border-radius: 32px; /* Hyper rounded */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.blog-card__image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background-color: #e2e8f0; /* Fallback color for placeholder */
}

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

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

.blog-card__content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.blog-card__meta svg {
  width: 14px;
  height: 14px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: auto;
  transition: gap 0.3s ease;
}

.blog-card__link:hover {
  gap: 12px;
  color: var(--accent-hover);
}

/* Mobile Blog */
@media (max-width: 768px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }
}

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

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

/* Contact Info Side */
.contact__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

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

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  gap: 15px;
}

.benefit-item__icon {
  width: 44px;
  height: 44px;
  background: #f0fdf4;
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.contact__note {
  font-size: 0.85rem;
  color: var(--text-color);
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border: 2px solid #f1f5f9;
  border-radius: 50px; /* Rounded inputs */
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--heading-color);
  transition: all 0.3s ease;
  background: #f8fafc;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(125, 206, 160, 0.15);
}

.form-input:focus + .input-icon, /* This selector needs JS logic or change order in HTML to work perfectly with CSS only, keeping it simple for now */
.input-wrapper:focus-within .input-icon {
  color: var(--accent-color);
}

/* Error States */
.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  margin-left: 15px;
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-input.error + .error-msg,
.form-group.error .error-msg {
  display: block;
}

/* Custom Captcha */
.captcha-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.captcha-label input {
  display: none;
}

.captcha-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

.captcha-label input:checked + .captcha-custom {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

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

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

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: #94a3b8;
}

.captcha-logo svg {
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}

/* Terms Checkbox */
.terms-box {
  margin-bottom: 30px;
}

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

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

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

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

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

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

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

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}

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

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

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden by default */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px 30px;
  border-radius: 50px; /* Hyper rounded pill shape */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.cookie-popup__icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.cookie-popup__text {
  font-size: 0.9rem;
  color: var(--heading-color);
  margin: 0;
}

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

.cookie-popup__btn {
  background: var(--heading-color);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.cookie-popup__btn:hover {
  background: var(--accent-color);
  color: var(--heading-color);
}

@media (max-width: 576px) {
  .cookie-popup {
    flex-direction: column;
    border-radius: 30px;
    padding: 25px;
    bottom: 20px;
  }
  .cookie-popup__btn {
    width: 100%;
  }
}

/* --- Generic Page Styles (Privacy, Terms, etc.) --- */
/* Ці стилі будуть працювати на окремих сторінках: privacy.html тощо */

.pages {
  padding: 160px 0 100px; /* More top padding because of fixed header */
  min-height: 80vh;
}

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

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

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

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

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

.pages ul li {
  margin-bottom: 10px;
  color: var(--text-color);
  padding-left: 10px;
}

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

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

.pages a:hover {
  text-decoration: none;
}

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