/* --- Global Variables --- */
:root {
  --color-bg: #f4f5f7;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-primary: #1a1a2e; /* Dark Navy */
  --color-accent: #c4f934; /* Electric Lime */
  --color-accent-hover: #a8d920;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --container-width: 1240px;
  --header-height: 80px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.main {
  flex: 1;
  padding-top: var(--header-height); /* Компенсация фикс хедера */
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 100px; /* Pill shape */
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.btn--primary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 249, 52, 0.3);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(244, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo__icon {
  color: var(--color-accent);
  /* Если фон белый, акцент может теряться, сделаем лого темным, а элемент акцентным */
  color: var(--color-primary);
  fill: var(--color-accent); /* Пример заливки части логотипа */
}

/* Nav Desktop */
.nav__list {
  display: flex;
  gap: 32px;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 24px;
  margin-top: 80px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

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

.logo--light .logo__text {
  color: var(--color-white);
}

.logo--light .logo__icon {
  stroke: var(--color-white);
  fill: transparent;
}

.footer__desc {
  margin-top: 20px;
  color: #94a3b8; /* Slate-400 */
  font-size: 0.9rem;
  max-width: 300px;
}

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

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

.footer__link {
  color: #cbd5e1; /* Slate-300 */
  font-size: 0.9rem;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

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

.footer__note {
  margin-top: 20px;
  font-size: 0.75rem;
  background: rgba(196, 249, 52, 0.1);
  color: var(--color-accent);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer__copy {
  color: #64748b;
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--color-border);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .header__actions .header__btn {
    display: none; /* Скрываем кнопку в хедере на моб, она может быть в меню */
  }

  .header__burger {
    display: flex;
  }

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

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
  min-height: 85vh; /* Занимает почти весь экран */
  display: flex;
  align-items: center;
}

/* Декоративный фон (размытое пятно) */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 249, 52, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(60px);
  z-index: -1;
}

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

/* Typography & Content */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26, 26, 46, 0.05);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero__label i {
  width: 16px;
  height: 16px;
  color: #8eb322; /* Darker Lime */
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__word-wrap {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero__word-wrap:nth-child(1) {
  animation-delay: 0.4s;
}
.hero__word-wrap:nth-child(2) {
  animation-delay: 0.6s;
}
.hero__word-wrap:nth-child(3) {
  animation-delay: 0.8s;
}

.text-accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Эффект заливки текста */
.text-accent::after {
  content: 'апгрейд';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  width: 0%;
  overflow: hidden;
  white-space: nowrap;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  animation: fillText 1.5s ease forwards 1s;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1s;
}

/* Actions */
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.2s;
}

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

.btn--outline:hover {
  border-color: var(--color-primary);
  background: transparent;
}

.hero__note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.4s;
}

/* Visual (SVG) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.5s;
}

.hero__graph {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
}

.hero__orbit {
  transform-origin: center;
  animation: rotate 60s linear infinite;
}

.hero__orbit--2 {
  animation-direction: reverse;
  animation-duration: 40s;
}

/* Animations Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillText {
  to {
    width: 100%;
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Адаптив Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__label,
  .hero__actions,
  .hero__note {
    justify-content: center;
  }

  .hero__desc {
    margin: 0 auto 40px;
  }

  .hero__visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

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

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* --- Dark Section Utility --- */
.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 100px 0;
}

.text-white {
  color: var(--color-white);
}
.text-muted-light {
  color: #94a3b8;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin-bottom: 60px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- Strategy List (Accordion Style) --- */
.strategy__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.strategy__item:hover,
.strategy__item:focus-within {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Head (Visible part) */
.strategy__head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 32px 0;
  transition: padding 0.3s ease;
}

.strategy__num {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.strategy__name {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-white);
  transition: color 0.3s ease;
}

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

.strategy__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.strategy__item:hover .strategy__icon-wrap {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  transform: rotate(-45deg);
}

/* Body (Hidden part) */
.strategy__body {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding-left: 80px; /* Align with title */
  padding-right: 60px;
}

/* Hover/Focus State to open */
.strategy__item:hover .strategy__body,
.strategy__item:focus-within .strategy__body {
  max-height: 300px; /* Достаточно для контента */
  opacity: 1;
  padding-bottom: 40px;
}

.strategy__content p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 700px;
}

.strategy__content strong {
  color: var(--color-white);
  font-weight: 600;
}

.strategy__tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.strategy__tags li {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.strategy__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .strategy__head {
    grid-template-columns: 50px 1fr auto;
    padding: 24px 0;
  }

  .strategy__name {
    font-size: 1.25rem;
  }

  .strategy__body {
    padding-left: 0;
    padding-right: 0;
  }

  .strategy__item:hover .strategy__body,
  .strategy__item:focus-within .strategy__body {
    max-height: 500px; /* Больше высоты для мобилок, так как текст узкий */
  }
}

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

.text-highlight {
  position: relative;
  z-index: 1;
}

.text-highlight::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background-color: rgba(196, 249, 52, 0.5); /* Semi-transparent Lime */
  z-index: -1;
  border-radius: 4px;
}

/* Grid Setup */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-auto-rows: minmax(220px, auto); /* Мин. высота строки */
  gap: 24px;
  margin-top: 40px;
}

/* Bento Item Base */
.bento-item {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Modifiers for Size */
.bento-item--large {
  grid-column: span 2; /* Занимает 2 колонки */
}

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

.bento-item--tall {
  grid-row: span 2; /* Занимает 2 строки по высоте */
  justify-content: space-between;
}

/* Colors & Styles */
.bg-light {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
}

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

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

.bg-image {
  padding: 0;
}

/* Content Styling */
.bento-content h3,
.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.bento-content p {
  font-size: 0.95rem;
  color: inherit;
  opacity: 0.8;
  line-height: 1.5;
}

/* Badge inside card */
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  background: rgba(26, 26, 46, 0.05);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bento-icon-lg {
  margin-bottom: auto;
  padding-bottom: 20px;
}

.bento-icon-lg i {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

/* Button inside card */
.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  margin-top: 16px;
  width: fit-content;
}

/* Stat Block Styling */
.bento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

.stat-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

/* Visual Elements */
.bento-visual {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 60%;
  z-index: 0;
  pointer-events: none;
}

.spacer {
  flex: 1;
}

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

.bento-item:hover .bento-img {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile Adaptation for Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-item--large,
  .bento-item--wide {
    grid-column: span 2;
  }

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

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .bento-item {
    min-height: auto;
  }

  .bento-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .stat-block {
    align-items: flex-start;
    width: 100%;
  }
}

/* --- Methodology / Tabs --- */
.methodology {
  padding: 100px 0;
  background-color: #f8fafc; /* Slightly different white */
}

.text-accent-dark {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.text-center {
  text-align: center;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn__num {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.5;
}

.tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.tab-btn.active .tab-btn__num {
  color: var(--color-accent);
  opacity: 1;
}

/* Tabs Content */
.tabs-body {
  position: relative;
  min-height: 400px; /* Чтобы не прыгала высота */
}

.tab-content {
  display: none;
  animation: fadeInTab 0.5s ease forwards;
}

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

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

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Tab Text Styling */
.tab-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.tab-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

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

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.check-list li i {
  color: var(--color-accent-hover); /* Darker lime for visibility on white */
  width: 20px;
  height: 20px;
}

/* UI Card Visuals (CSS Only Art) */
.tab-visual {
  display: flex;
  justify-content: center;
}

.ui-card {
  width: 100%;
  max-width: 400px;
  height: 300px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.ui-header {
  height: 40px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.bg-red {
  background: #ff5f56;
}
.bg-yellow {
  background: #ffbd2e;
}
.bg-green {
  background: #27c93f;
}

.ui-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ui-body.center {
  align-items: center;
  justify-content: center;
}

.ui-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
}
.w-70 {
  width: 70%;
}
.w-60 {
  width: 60%;
}
.w-50 {
  width: 50%;
}
.w-80 {
  width: 80%;
}
.mt-4 {
  margin-top: 16px;
}

.ui-graph {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
  margin-top: auto;
}

.ui-bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}

.ui-bar.active {
  background: var(--color-primary);
}

.ui-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ui-circle i {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

.ui-success-icon i {
  color: #ffbd2e;
  width: 64px;
  height: 64px;
}

.tab-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.tab-cta-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px !important;
  color: var(--color-primary) !important;
}

/* Mobile Tabs */
@media (max-width: 992px) {
  .tab-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .tab-visual {
    order: -1; /* Картинка сверху */
    margin-bottom: 24px;
  }

  .ui-card {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .tabs-nav {
    flex-direction: column;
    width: 100%;
  }

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

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.contact::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
  z-index: 0;
  pointer-events: none;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* Contact Info (Left) */
.contact__title {
  font-size: 3rem;
  margin-bottom: 24px;
}

.contact__desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 60px;
}

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

.contact__icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.contact__text,
.contact__link {
  font-size: 1.1rem;
  font-weight: 500;
}

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

.contact__stat {
  padding: 24px;
  border: 1px solid rgba(196, 249, 52, 0.3);
  border-radius: var(--radius-md);
  background: rgba(196, 249, 52, 0.05);
}

.contact__stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.contact__stat-text {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Form Wrapper (Right) */
.contact__form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--color-text);
}

.form__title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--color-primary);
}

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

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

.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

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

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
}

.form__input.error + .form__error {
  display: block;
}

/* Checkbox */
.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 32px;
}

.form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form__checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

.form__btn {
  width: 100%;
}

/* Form Success State */
.form__success {
  display: none;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: #27c93f;
  margin: 0 auto 16px;
}

.form__success h4 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* Captcha */
.form__group--captcha {
  max-width: 200px;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-popup__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

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

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

/* --- Pages Styles (Privacy Policy etc.) --- */
/* Стилі для сторінок політик, як просили */
.pages {
  padding: 60px 0 100px;
  min-height: 60vh;
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

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

.pages p {
  margin-bottom: 16px;
  color: var(--color-text);
}

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

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

.pages a {
  color: #4f46e5; /* Blue link for text pages */
  text-decoration: underline;
}

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

  .contact__info {
    text-align: center;
  }

  .contact__list {
    align-items: center;
  }

  .contact__item {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Insights Section --- */
.section-dark-accent {
  background-color: #161625; /* Трохи світліший за основний темний, для глибини */
  color: var(--color-white);
  padding: 0 0 100px 0;
  overflow: hidden;
}

/* Marquee (Running Line) */
.marquee-wrapper {
  background: var(--color-accent);
  padding: 16px 0;
  margin-bottom: 80px;
  transform: rotate(-1deg) scale(1.05); /* Легкий нахил для динаміки */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.marquee-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-content .divider {
  color: var(--color-primary);
  opacity: 0.4;
}

.insights__header {
  margin-bottom: 60px;
}

/* Insight Cards (Holographic / Glass style) */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Ефект світіння при наведенні */
.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(196, 249, 52, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.insight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 249, 52, 0.3);
}

.insight-card:hover::before {
  opacity: 1;
}

.insight-card--accent {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border-color: rgba(196, 249, 52, 0.2);
}

.insight-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.insight-card__head i {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.insight-card__percent {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  opacity: 0.9;
}

.insight-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.insight-card__text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .insights__grid {
    grid-template-columns: 1fr;
  }

  .marquee-wrapper {
    transform: rotate(0) scale(1); /* Прибираємо нахил на мобільному */
  }
}
