/* --- Global & Reset --- */
:root {
  /* Palette */
  --color-bg: #f9fafb;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-primary: #2a2d43; /* Глубокий Индиго */
  --color-accent: #00f0b5; /* Электрик Лайм/Мята */
  --color-accent-hover: #00cc99;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  /* Fonts */
  --font-main: 'Manrope', sans-serif;
  --font-head: 'Space Grotesk', sans-serif;

  /* Spacing & Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

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

/* --- Container --- */
.header__container,
.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition);
}

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

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

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

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

.nav__link {
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 4px;
}

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

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

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

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 40px;
  margin-top: auto; /* Push to bottom if content is short */
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

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

.logo--footer .logo__text {
  color: var(--color-white);
  font-size: 24px;
}

.logo--footer .logo__icon rect {
  fill: var(--color-white);
}
.logo--footer .logo__icon path {
  stroke: var(--color-primary);
}
.logo--footer .logo__icon circle[fill='var(--color-accent)'] {
  fill: var(--color-primary);
}

.footer__tagline {
  margin-top: 16px;
  color: #a0a3bd;
  font-size: 14px;
  max-width: 300px;
}

.footer__copyright {
  margin-top: 32px;
  font-size: 12px;
  color: #6b6d85;
}

.footer__title {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--color-accent);
}

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

.footer__link {
  color: #d1d5db;
  font-size: 14px;
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
}

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

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-white);
    overflow: hidden;
    transition: height 0.4s ease;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .header__nav.is-open {
    height: auto;
    padding-bottom: 20px;
  }

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

  .header__burger {
    display: block;
  }

  .header__actions .btn {
    display: none; /* Hide desktop CTA button on mobile header */
  }

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

  .footer__col--brand {
    order: 4; /* Logo at bottom on mobile */
    text-align: center;
  }

  .logo--footer {
    justify-content: center;
  }

  .footer__tagline {
    margin: 16px auto;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 140px 0 100px; /* Отступ сверху для хедера */
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f9fafb 0%, #e0e7ff 100%);
  overflow: hidden;
}

/* Фоновое свечение */
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 181, 0.2) 0%, rgba(42, 45, 67, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(80px);
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(42, 45, 67, 0.05);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  border: 1px solid rgba(42, 45, 67, 0.1);
}

.badge__dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 240, 181, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 181, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 240, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 181, 0);
  }
}

/* Typography */
.hero__title {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-weight: 700;
}

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

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

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

.btn--large {
  padding: 16px 32px;
  font-size: 16px;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(42, 45, 67, 0.15);
}

.btn--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 240, 181, 0.25);
}

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

.hero__stat-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.hero__stat-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Chat Interface Animation Styles --- */
.hero__visual {
  position: relative;
  perspective: 1000px;
}

.chat-interface {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 450px;
  height: 500px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.chat-interface:hover {
  transform: rotateY(0) rotateX(0);
}

.chat-header {
  padding: 16px 20px;
  background: rgba(243, 244, 246, 0.8);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-dots {
  display: flex;
  gap: 6px;
}

.chat-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
}

.chat-dots span:nth-child(1) {
  background-color: #ef4444;
}
.chat-dots span:nth-child(2) {
  background-color: #f59e0b;
}
.chat-dots span:nth-child(3) {
  background-color: #10b981;
}

.chat-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.chat-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  /* Скроллбар скрываем для красоты */
  scrollbar-width: none;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  animation: messagePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(10px);
}

.chat-message--bot {
  align-self: flex-start;
  background-color: #f3f4f6;
  color: var(--color-text-main);
  border-bottom-left-radius: 2px;
}

.chat-message--user {
  align-self: flex-end;
  background-color: var(--color-primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-input-fake {
  padding: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.typing-indicator {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
}

.typing-indicator.active {
  opacity: 1;
}

/* Floating Elements */
.float-card {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.icon-box {
  color: var(--color-accent);
  background: rgba(0, 240, 181, 0.1);
  padding: 8px;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.float-card small {
  display: block;
  color: var(--color-text-muted);
  font-size: 12px;
}

@keyframes messagePop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 40px;
  }

  .chat-interface {
    margin: 0 auto;
    height: 400px;
  }

  .float-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: max-content;
  }
}

/* --- Sections Common --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section__title {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.section__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto); /* Автоматична висота */
  gap: 24px;
}

.bento-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

/* Модифікатори розмірів */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-item--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: var(--color-primary);
  color: white;
  border: none;
}

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

/* Стилізація контенту */
.bento-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-icon {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
}

.bento-icon-sm {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.bento-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bento-item--tall .bento-title,
.bento-item--tall .bento-desc {
  color: white;
}

.bento-item--tall .bento-desc {
  opacity: 0.8;
}

/* Теги */
.bento-tags {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.bento-tags li {
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Специфіка високого блоку */
.badge--white {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  margin-bottom: 20px;
  width: fit-content;
}

.bento-visual-bottom {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.income-graph {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 80px;
  margin-bottom: 16px;
}

.bar {
  width: 20px;
  background: var(--color-accent);
  border-radius: 4px 4px 0 0;
  animation: growBar 2s ease-out infinite alternate;
}

.bar-1 {
  height: 40%;
  animation-delay: 0s;
}
.bar-2 {
  height: 70%;
  animation-delay: 0.2s;
}
.bar-3 {
  height: 100%;
  animation-delay: 0.4s;
}

@keyframes growBar {
  from {
    transform: scaleY(0.9);
    opacity: 0.8;
  }
  to {
    transform: scaleY(1.1);
    opacity: 1;
  }
}

.bento-note {
  font-size: 12px;
  color: var(--color-accent);
}

/* Специфіка широкого блоку */
.bento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.bento-mini-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  padding: 10px 20px;
  border-radius: 12px;
  color: #059669;
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

/* --- Blog Section --- */
.section--grey {
  background-color: #f3f4f6;
}

.section__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* Slider Controls */
.slider-nav {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* Carousel Track */
.carousel-wrapper {
  overflow: hidden; /* Ховаємо скролбар */
  margin: 0 -20px; /* Компенсація паддінгів контейнера для мобілки */
  padding: 20px 20px 40px; /* Паддінг для тіней */
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide Scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Cards Common */
.card {
  flex: 0 0 400px; /* Фіксована ширина картки */
  background: white;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Featured Card (Wide) */
.card--featured {
  flex: 0 0 824px; /* Ширина як дві звичайні + відступ */
  background: var(--color-primary);
  color: white;
  flex-direction: row;
  align-items: center;
}

.card--featured .card__content {
  padding: 40px;
  flex: 1;
}

.card--featured .card__image {
  flex: 1;
  height: 100%;
  background: #373b54;
  position: relative;
  overflow: hidden;
}

.card--featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.card__badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.card__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

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

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

/* Regular Cards */
.card__image-top {
  height: 200px;
  background: #e5e7eb;
}

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

.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card__meta i {
  width: 14px;
  height: 14px;
}

.card__title-sm {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.card__desc-sm {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.link-arrow {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.link-arrow:hover {
  color: var(--color-accent-hover);
  gap: 12px;
}

/* Adaptive Blog */
@media (max-width: 992px) {
  .section__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .card--featured {
    flex: 0 0 85vw; /* На планшеті трохи менше екрану */
    flex-direction: column;
  }

  .card--featured .card__image {
    height: 200px;
    width: 100%;
  }

  .card {
    flex: 0 0 85vw;
  }
}

/* --- Technologies Section --- */
.tech-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Feature List */
.tech-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-feature {
  display: flex;
  gap: 16px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon i {
  width: 14px;
  height: 14px;
  stroke-width: 3px;
}

.tech-feature strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.tech-feature p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --- Orbit Animation --- */
.tech-visual {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(224, 231, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  position: relative;
}

.orbit-system {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Core */
.orbit-core {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  z-index: 10;
  position: relative;
  box-shadow: 0 0 30px rgba(42, 45, 67, 0.2);
}

.core-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: pulseCore 2s infinite;
}

/* Rings */
.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(42, 45, 67, 0.15);
  border-radius: 50%;
  animation: spin linear infinite;
}

.orbit-ring--inner {
  width: 220px;
  height: 220px;
  animation-duration: 20s;
}

.orbit-ring--outer {
  width: 380px;
  height: 380px;
  animation-duration: 35s;
  animation-direction: reverse; /* Зовнішнє кільце крутиться в інший бік */
}

/* Orbit Items (Tags) */
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0; /* Важливо для позиціонування */
}

/* Позиціонування елементів на колі */
.orbit-ring--inner .item-1 {
  transform: rotate(0deg) translate(110px) rotate(0deg);
}
.orbit-ring--inner .item-2 {
  transform: rotate(180deg) translate(110px) rotate(-180deg);
}

.orbit-ring--outer .item-3 {
  transform: rotate(0deg) translate(190px) rotate(0deg);
}
.orbit-ring--outer .item-4 {
  transform: rotate(120deg) translate(190px) rotate(-120deg);
}
.orbit-ring--outer .item-5 {
  transform: rotate(240deg) translate(190px) rotate(-240deg);
}

/* Стиль самих плашок */
.tech-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  white-space: nowrap;

  /* Counter-rotation to keep text horizontal */
  animation: counterSpin linear infinite;
}

.tech-tag--accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* Animations */
.orbit-ring--inner .tech-tag {
  animation-duration: 20s;
}
/* Для outer кільця (яке крутиться в реверс) треба крутити текст нормально */
.orbit-ring--outer .tech-tag {
  animation: spinNormal linear infinite 35s;
}

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

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

@keyframes spinNormal {
  0% {
    transform: rotate(360deg);
  } /* Оскільки батько reverse, тут компенсуємо */
  100% {
    transform: rotate(0deg);
  }
}

@keyframes pulseCore {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

  .tech-features {
    align-items: flex-start;
    text-align: left;
  }

  .tech-visual {
    height: 350px; /* Зменшуємо на мобілці */
  }

  .orbit-system {
    transform: scale(0.8); /* Просто масштабуємо всю систему */
  }
}

/* --- FAQ Section --- */
.faq-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sidebar */
.faq-sidebar {
  position: sticky;
  top: 120px; /* Відступ, щоб не перекривався хедером */
}

.faq-cta-card {
  background: var(--color-primary);
  color: white;
  padding: 30px;
  border-radius: 20px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

/* Декор для картки CTA */
.faq-cta-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

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

.faq-cta-title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 10px;
}

.faq-cta-text {
  font-size: 14px;
  margin-bottom: 24px;
  opacity: 0.8;
  line-height: 1.5;
}

.award-badge {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.award-badge i {
  color: #f59e0b; /* Gold */
}

/* Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: #d1d5db;
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-main);
  padding-right: 20px;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg); /* Перетворюємо плюс на хрестик */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Mobile FAQ */
@media (max-width: 992px) {
  .faq-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-sidebar {
    position: static;
    text-align: center;
  }

  .faq-cta-card {
    text-align: left;
  }
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: white;
  padding: 60px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.contact-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

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

/* Form Styles */
.contact-form-wrapper {
  position: relative;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 16px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 240, 181, 0.1);
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.form-checkbox-group input {
  margin-top: 3px;
  cursor: pointer;
}

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

/* Success Message */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.success-message.visible {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.success-message h3 {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  z-index: 9999;
  border: 1px solid var(--color-border);
  transform: translateY(150%); /* Сховано за замовчуванням */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-content p {
  font-size: 14px;
  color: var(--color-text-muted);
}

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

/* --- Pages Styling (Privacy, Terms etc.) --- */
.pages {
  padding: 120px 0 80px; /* Відступ для фіксованого хедера */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.pages h2 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.pages p {
  font-size: 16px;
  color: var(--color-text-main);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

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

.pages a {
  color: #4f46e5;
  text-decoration: underline;
}

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

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

  .cookie-popup {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}
