/* --- ЕТАП 0: GLOBAL STYLES & VARIABLES --- */
:root {
  /* MINT PALETTE & COLORS */
  --color-primary: #3eb489; /* Mint */
  --color-primary-light: #98ff98; /* Light Mint */
  --color-primary-dark: #2e8b69; /* Darker Mint */
  --color-accent: #1a3c34; /* Deep Forest Green for text/contrast */
  --color-bg: #f5f9f7; /* Very light minty white */
  --color-surface: #ffffff;
  --color-text: #2c3e38;
  --color-text-light: #6b7c76;

  /* FONTS */
  --font-main: "Outfit", sans-serif;
  --font-display: "Space Grotesk", sans-serif;

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

  /* SHADOWS & GLASS */
  --shadow-soft: 0 10px 40px -10px rgba(62, 180, 137, 0.15);
  --shadow-hover: 0 20px 50px -10px rgba(62, 180, 137, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px);

  /* TRANSITIONS */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

/* --- ЕТАП 1: HEADER STYLES --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-full);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.header__logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-light);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.header__menu {
  display: flex;
  gap: 30px;
}

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

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

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

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

.header__cta {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.header__cta:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(62, 180, 137, 0.4);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 1002;
}

/* HEADER MOBILE ADAPTIVE */
@media (max-width: 992px) {
  .header__container {
    padding: 10px 20px;
    margin: 0 10px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 1001;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__burger {
    display: block;
  }
}

/* --- ЕТАП 2: FOOTER STYLES --- */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 20px;
  margin-top: 80px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid rgba(62, 180, 137, 0.1);
}

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

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

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

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

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

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

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  transform: scale(1.1);
}

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

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

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

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

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

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

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

.footer__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  background: var(--color-primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* FOOTER MOBILE ADAPTIVE */
@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .footer {
    text-align: center;
  }

  .footer__logo,
  .footer__socials {
    justify-content: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__desc {
    margin: 0 auto 24px;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: 140px; /* Відступ під фіксований хедер */
  padding-bottom: 80px;
  min-height: 90vh; /* Майже на весь екран */
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

/* Badge "Платформа року" */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(62, 180, 137, 0.1);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(62, 180, 137, 0.2);
}

/* Typography */
.hero__title {
  font-size: 3.5rem; /* Великий заголовок */
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 600;
}

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

/* Декоративне підкреслення */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-primary-light);
  opacity: 0.4;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

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

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

.hero__btn {
  background-color: var(--color-accent); /* Темна кнопка для контрасту */
  color: var(--color-surface);
  padding: 18px 36px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}

.hero__btn:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

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

/* Велика розмита пляма на фоні */
.hero__blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--color-primary-light) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.6;
  border-radius: 50%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Загальні стилі для плаваючих карток */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg); /* Гіпер-округлення */
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.1s linear; /* Плавність для JS анімації */
}

/* Індивідуальне позиціонування елементів */
.card-1 {
  top: 10%;
  left: 5%;
  width: 200px;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.card-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.card-2 {
  top: 30%;
  right: 0;
  width: 260px;
  height: 320px;
  padding: 10px;
  z-index: 2;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px; /* Внутрішнє скруглення */
}

.card-3 {
  bottom: 15%;
  left: 15%;
  padding: 25px 40px;
  border-radius: 60px; /* Овал */
}

.card-stat {
  text-align: center;
}

.card-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card-stat small {
  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__actions {
    justify-content: center;
  }

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

  /* На мобільних вимикаємо складний леяут паралаксу, робимо простіше */
  .card-1 {
    top: 0;
    left: 5%;
  }
  .card-2 {
    top: 20%;
    right: 10%;
    width: 220px;
    height: 280px;
  }
  .card-3 {
    bottom: 0;
    left: 10%;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__visual {
    display: none; /* Можна приховати складну анімацію на дуже малих екранах або спростити */
  }
}

/* --- CAPABILITIES (BENTO GRID) --- */
.capabilities {
  padding: 100px 0;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

/* GRID LAYOUT */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* Автоматична висота рядків */
  gap: 24px;
}

/* Styles for Items */
.bento-item {
  background: var(--color-bg);
  border-radius: var(--radius-lg); /* Гіпер-округлення 40px */
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.bento-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item h3 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.bento-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--color-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
}

/* SIZING MODIFIERS */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, #e0f7fa 0%, #f5f9f7 100%);
}

.bento-item--tall {
  grid-column: span 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento-item--wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* THEME MODIFIERS */
.feature-mint {
  background-color: var(--color-primary-light);
  color: var(--color-accent);
}
.feature-mint .icon-wrapper {
  background-color: rgba(255, 255, 255, 0.6);
}
.feature-mint p {
  color: var(--color-accent);
  opacity: 0.8;
}

.feature-dark {
  background-color: var(--color-accent);
  color: white;
}
.feature-dark h3 {
  color: white;
}
.feature-dark p {
  color: rgba(255, 255, 255, 0.7);
}
.feature-dark .link-arrow {
  color: var(--color-primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feature-dark .link-arrow:hover {
  gap: 12px;
}

/* DECOR & SPECIFICS */
.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-list span {
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
}

.bento-decor {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  background: var(--color-primary);
  filter: blur(60px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 1;
}

.feature-stat {
  margin-top: auto;
  background: white;
  padding: 15px;
  border-radius: 20px;
  text-align: center;
}
.feature-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1;
}
.feature-stat span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.row-content {
  flex-direction: row;
  align-items: center;
}
.text-side {
  flex: 1;
}
.giant-icon {
  width: 80px;
  height: 80px;
  color: var(--color-primary-light);
  opacity: 0.2;
  transform: rotate(15deg);
  transition: var(--transition);
}

.bento-item:hover .giant-icon {
  opacity: 0.8;
  transform: rotate(0deg) scale(1.1);
}

/* RESPONSIVE BENTO */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-item--large {
    grid-column: span 2;
  }
  .bento-item--tall {
    grid-column: span 1; /* Або 2, залежно від контенту */
    grid-row: span 1;
  }
  .bento-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .row-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .giant-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
}

/* --- EDUCATION SECTION (TABS) --- */
.education {
  padding: 100px 0;
  background-color: var(--color-bg); /* Світлий фон */
}

.education__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Ліва колонка вужча */
  gap: 60px;
  align-items: start;
}

/* Sidebar Styles */
.education__header {
  margin-bottom: 40px;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  background: transparent;
  border: 2px solid rgba(62, 180, 137, 0.1);
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.tab-btn i {
  color: var(--color-primary);
  transition: var(--transition);
}

.tab-btn:hover {
  background: rgba(62, 180, 137, 0.05);
  border-color: var(--color-primary);
  transform: translateX(10px);
}

.tab-btn.active {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
  transform: translateX(10px);
}

.tab-btn.active i {
  color: var(--color-primary-light);
}

.education__help {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-primary);
}

.education__help p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--color-text-light);
}

.link-highlight {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-primary-light);
  font-size: 0.95rem;
}

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

/* Content Area Styles */
.education__content {
  position: relative;
  min-height: 400px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

.tab-pane.active {
  display: block;
}

.tab-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg); /* Гіпер-округлення 40px */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  padding: 10px; /* Відступ всередині для ефекту рамки */
}

.tab-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 30px; /* Внутрішнє скруглення */
  margin-bottom: 20px;
}

.tab-text {
  padding: 10px 30px 30px;
}

.tab-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.check-list {
  margin: 20px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text);
}

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

.tab-cta {
  background-color: var(--color-primary-light);
  color: var(--color-accent);
}

.tab-cta:hover {
  background-color: var(--color-primary);
  color: white;
}

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

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

  .tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tab-btn {
    width: auto;
    white-space: nowrap;
    padding: 15px 25px;
  }

  .tab-btn:hover,
  .tab-btn.active {
    transform: translateY(-5px); /* На мобільному рухаємо вгору */
  }
}

@media (max-width: 576px) {
  .tabs-nav {
    flex-direction: column;
    width: 100%;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- DAILY USE (TIMELINE) --- */
.daily-use {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

/* Вертикальна лінія */
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-primary-light),
    var(--color-primary),
    var(--color-primary-light)
  );
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 0;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 50px;
  margin-bottom: 60px;
  z-index: 1;
}

.timeline__item.left {
  left: 0;
  text-align: right;
}

.timeline__item.right {
  left: 50%;
  text-align: left;
}

/* Маркер (Кружечок з цифрою) */
.timeline__marker {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-surface);
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-accent);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8); /* Ефект обводки */
}

.timeline__item.left .timeline__marker {
  right: -25px;
}

.timeline__item.right .timeline__marker {
  left: -25px;
}

/* Контент блоку таймлайну */
.timeline__content {
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: var(--transition);
}

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

.timeline__tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 10px;
}

.timeline__item h3 {
  margin-bottom: 10px;
}

.timeline__note {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end; /* Для лівого блоку */
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}
.timeline__item.right .timeline__note {
  justify-content: flex-start;
}

/* --- TOOLS SECTION --- */
.tools {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--color-bg) 0%, #e8f5f1 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tools__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}

.btn--white {
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}
.btn--white:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.tool-card {
  background: var(--color-surface);
  border-radius: var(--radius-md); /* 24px */
  padding: 30px;
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
}

.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.tool-icon--mint {
  background: var(--color-primary-light);
  color: var(--color-accent);
}

.tool-icon--dark {
  background: var(--color-accent);
  color: var(--color-primary-light);
}

.tool-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Спеціальна картка-хайлайт */
.tool-card--highlight {
  background: var(--color-primary);
  color: var(--color-surface);
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.tool-card--highlight h4,
.tool-card--highlight p {
  color: white;
  position: relative;
  z-index: 2;
}
.tool-card--highlight p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.tool-blob {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 1;
}

.btn--dark {
  background: var(--color-accent);
  color: white;
  position: relative;
  z-index: 2;
}
.btn--dark:hover {
  background: #000;
}

/* RESPONSIVE TIMELINE & TOOLS */
@media (max-width: 768px) {
  /* Timeline Mobile */
  .timeline__line {
    left: 20px;
    transform: none;
  }

  .timeline__item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .timeline__item.left,
  .timeline__item.right {
    left: 0;
    text-align: left;
  }

  .timeline__marker {
    left: -5px !important;
    right: auto !important;
  }

  .timeline__note {
    justify-content: flex-start;
  }

  /* Tools Mobile */
  .tools__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: radial-gradient(
    circle at top left,
    #f0fdf9 0%,
    var(--color-bg) 100%
  );
}

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

/* Info Side */
.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

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

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

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

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

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

.contact__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(26, 60, 52, 0.05);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Card Styles */
.contact__form-card {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  position: relative;
}

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

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 10px;
}

.input-wrapper {
  position: relative;
}

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

.form__input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Padding for icon */
  border: 2px solid #eaeaea;
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: #fafafa;
  transition: var(--transition);
  outline: none;
  font-family: var(--font-main);
}

.form__input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(62, 180, 137, 0.1);
}

.form__input:focus + .input-icon {
  /* Note: doesn't work with current HTML order, usually handled via JS or specific order */
}
.form__input:focus ~ .input-icon {
  color: var(--color-primary);
}

/* Validation Styles */
.form__input.error {
  border-color: #ff6b6b;
  background: #fff0f0;
}

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

.form__input.error ~ .error-msg,
.captcha-error.visible,
.privacy-error.visible {
  display: block;
}

/* Custom Captcha */
.form__captcha {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px; /* Less rounded for boxy feel */
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.form__captcha:hover {
  background: #f0f0f0;
}

.captcha__box {
  width: 24px;
  height: 24px;
  border: 2px solid #c0c0c0;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.form__captcha.checked .captcha__box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.captcha__check {
  width: 16px;
  height: 16px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.form__captcha.checked .captcha__check {
  opacity: 1;
  transform: scale(1);
}

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

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

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid #eaeaea;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: var(--transition);
}

.checkbox-container 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: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

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

/* Submit Button */
.btn--submit {
  width: 100%;
  background: var(--color-accent);
  color: white;
  justify-content: space-between;
}

.btn--submit:hover {
  background: var(--color-primary);
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

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

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

  .contact__info {
    text-align: center;
  }

  .contact__details {
    align-items: center;
  }
}

/* --- COOKIE POPUP STYLES --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  border: 1px solid rgba(62, 180, 137, 0.2);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

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

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

.btn--cookie {
  background: var(--color-accent);
  color: white;
  margin-left: auto;
  white-space: nowrap;
}

.btn--cookie:hover {
  background: var(--color-primary);
}

@media (max-width: 576px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .btn--cookie {
    margin: 0;
    width: 100%;
  }
}

/* --- LEGAL PAGES STYLES (privacy.html etc) --- */
/* Ці стилі застосуються, коли ти створиш окремі файли .html з структурою <main><section class="pages">... */

.pages {
  padding: 140px 0 80px; /* Відступ під хедер */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для читабельності */
  background: var(--color-surface);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

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

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

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