/* --- Global Styles & Variables --- */
:root {
  --color-bg: #f7f7f5; /* Paper White */
  --color-text: #1a1c20; /* Deep Ink */
  --color-text-light: #585c66;
  --color-accent: #4f46e5; /* Electric Indigo */
  --color-border: #e5e5e0;
  --color-white: #ffffff;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;

  --container-width: 1280px;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

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

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: var(--color-text);
  color: var(--color-white);
}

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

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

.header__container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.header__nav {
  display: none;
}

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

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

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

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

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

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

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

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

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

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

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

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

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

.mobile-menu__cta {
  display: block;
  text-align: center;
  background-color: var(--color-accent);
  color: white;
  padding: 16px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background-color: #121214; /* Dark footer layout */
  color: #a0a0a0;
  padding: 80px 0 20px;
  margin-top: auto; /* Push to bottom if content is short */
}

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

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

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

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__title {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-body); /* Modern stylistic choice */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.footer__link {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer__contact-item i {
  width: 18px;
  height: 18px;
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #555;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 0.8rem;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Відступ зверху враховує фіксований хедер */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(79, 70, 229, 0.08) 0%,
    rgba(247, 247, 245, 0) 60%
  );
}

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

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

/* Ліва частина - Текст */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний шрифт */
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--color-text);
}

.text-accent {
  color: var(--color-accent);
  font-style: italic; /* Стиль Playfair Display Italic */
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

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

.hero__btn {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 16px 32px;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.hero__btn:hover {
  background-color: #3b34c9;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  line-height: 1.3;
}

.hero__note i {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Права частина - Візуал */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img-wrapper {
  position: relative;
  width: 80%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px; /* Невелика скругленість для суворості */
  z-index: 2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%);
}

.hero__overlay {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--color-white);
  padding: 20px 30px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-accent);
  animation: float 4s ease-in-out infinite;
}

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

.hero__stat-val {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.hero__stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

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

/* Декоративні фігури */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(60px);
  opacity: 0.6;
}

.hero__shape--1 {
  top: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(79, 70, 229, 0.2);
}

.hero__shape--2 {
  bottom: 0;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(26, 28, 32, 0.1);
}

/* --- Strategies Section (Sticky Layout) --- */
.strategies {
  padding: 120px 0;
  background-color: var(--color-bg);
}

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

@media (min-width: 992px) {
  .strategies__layout {
    grid-template-columns: 1fr 1.5fr; /* Sidebar вужчий, контент ширший */
    gap: 100px;
  }
}

/* Sidebar Styling */
.strategies__sidebar {
  position: relative;
}

@media (min-width: 992px) {
  .strategies__sticky-content {
    position: sticky;
    top: calc(var(--header-height) + 40px); /* Відступ від хедера */
  }
}

.strategies__title {
  font-size: 3rem;
  margin-bottom: 24px;
}

.strategies__desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 400px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
}

.btn-text i {
  width: 20px;
  transition: transform 0.3s ease;
}

.btn-text:hover i {
  transform: translateX(5px);
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* List Items Styling */
.strategy-item {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.strategy-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.strategy-item:hover {
  /* Легкий ефект при наведенні */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.strategy-item__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
}

.strategy-item__num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-accent);
  font-style: italic;
}

.strategy-item__title {
  font-size: 1.8rem;
  font-weight: 400; /* Тонкий шрифт для елегантності */
}

.strategy-item__body {
  padding-left: 50px; /* Відступ під заголовок */
  max-width: 600px;
}

.strategy-item__body p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.strategy-item__highlight {
  display: block;
  margin-top: 10px;
  color: var(--color-text);
  font-weight: 600;
}

/* Анімація появи (JS Reveal) */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mini Chart Decoration */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 20px;
}

.mini-chart__bar {
  width: 6px;
  background-color: var(--color-accent);
  opacity: 0.2;
  border-radius: 2px;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.strategy-item:hover .mini-chart__bar {
  opacity: 1;
}

/* Різна затримка для стовпчиків графіка */
.strategy-item:hover .mini-chart__bar:nth-child(1) {
  transition-delay: 0.05s;
}
.strategy-item:hover .mini-chart__bar:nth-child(2) {
  transition-delay: 0.1s;
}
.strategy-item:hover .mini-chart__bar:nth-child(3) {
  transition-delay: 0.15s;
}
.strategy-item:hover .mini-chart__bar:nth-child(4) {
  transition-delay: 0.2s;
}

/* --- Innovations Section (Accordion) --- */
.innovations {
  padding: 100px 0;
  background-color: var(--color-white); /* Контрастний фон до попередньої секції */
}

.innovations__header {
  margin-bottom: 60px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.innovations__title {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

/* Accordion Styles */
.accordion {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.accordion__item.is-active {
  background-color: #fafafa; /* Легке виділення активного блоку */
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

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

.accordion__num {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-right: 30px;
  opacity: 0.6;
}

.accordion__label {
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-heading);
  flex-grow: 1;
}

.accordion__icon {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

/* Поворот іконки при активному стані */
.accordion__item.is-active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion__body {
  padding: 0 20px 40px 70px; /* Відступ зліва під номер */
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .accordion__body {
    grid-template-columns: 1.5fr 1fr; /* Текст ширший, картинка вужча */
  }
}

.accordion__text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.accordion__text p {
  margin-bottom: 20px;
}

.accordion__visual {
  border-radius: 4px;
  overflow: hidden;
  height: 200px;
}

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

/* Check list decoration */
.check-list {
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-text);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 10px;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* --- Analytics Section (Bento Grid) --- */
.analytics {
  padding: 100px 0;
  background-color: #1a1c20; /* Темний фон для контрасту з попередньою секцією */
  color: var(--color-white);
}

.analytics__header {
  margin-bottom: 50px;
}

.analytics__title {
  font-size: 3rem;
  color: var(--color-white);
}

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

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto; /* Автоматична висота */
  }
}

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

/* Bento Boxes */
.bento-box {
  background-color: #25282e;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modifiers */
.bento-box--main {
  background-color: var(--color-accent);
  color: var(--color-white);
}

@media (min-width: 992px) {
  .bento-box--main {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Високий блок зліва */
  }

  .bento-box--accent {
    grid-column: 2 / 3;
  }

  .bento-box--vertical {
    grid-column: 3 / 4;
  }

  .bento-box--wide {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
  }
}

/* Content Styles */
.bento-box__label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin: 20px 0;
}

.bento-box__desc {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 300px;
}

.bento-box--accent {
  background: linear-gradient(135deg, #333 0%, #25282e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-box__heading {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-text);
  margin-top: 20px;
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
}

.btn--white:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Circular Chart */
.stat-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  /* Анімація SVG через CSS */
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0, 100;
  }
}

.stat-circle__val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Wide Box Stats */
.bento-box__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 100%;
  flex-wrap: wrap;
}

.stat-item__val {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.stat-item__label {
  font-size: 0.8rem;
  color: #888;
}

.stat-item--info {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
  color: #ccc;
}

.bento-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.3;
}

/* --- Contact Section --- */
.contact {
  padding: 120px 0;
  background-color: var(--color-white);
}

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

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

.contact__title {
  font-size: 3rem;
  margin-bottom: 24px;
}

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

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

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

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Form Styles */
.contact__form {
  background-color: #fafafa;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  position: relative;
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: var(--color-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

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

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

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

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

/* Captcha */
.captcha-input {
  width: 100px;
}

/* Button Loader */
.contact__submit {
  width: 100%;
  position: relative;
}

.contact__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.contact__submit.is-loading .btn-text-content {
  visibility: hidden;
}

.contact__submit.is-loading .btn-loader {
  display: block;
}

/* Success Message */
.form-success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fafafa;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: #10b981; /* Green */
  margin-bottom: 20px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Схований */
  left: 0;
  width: 100%;
  background-color: #1a1c20;
  color: var(--color-white);
  padding: 20px;
  z-index: 2000;
  transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-popup.is-visible {
  bottom: 0;
}

.cookie-popup__content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-popup__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

/* --- Policy Pages Styles (Етап 5) --- */
.pages {
  padding: 140px 0 80px; /* Великий відступ зверху бо хедер фіксований */
  background-color: var(--color-white);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для читання */
}

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

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

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

.pages ul {
  margin-bottom: 30px;
  padding-left: 20px;
  list-style: disc;
  color: var(--color-text-light);
}

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

/* --- About Section --- */
.about {
  padding: 0 0 120px 0;
  background-color: var(--color-bg);
  overflow: hidden; /* Щоб рухомий рядок не створював горизонтальний скрол */
}

/* Marquee Effect (Рухомий рядок) */
.marquee {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 15px 0;
  margin-bottom: 80px;
  position: relative;
  transform: rotate(-2deg) scale(1.05); /* Легкий нахил для динаміки */
  width: 105%;
  left: -2.5%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.marquee__content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee__content span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.marquee__divider {
  margin: 0 40px;
  opacity: 0.5;
}

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

/* Main Layout */
.about__header {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.about__title {
  font-size: 3rem;
  white-space: nowrap;
}

.about__line {
  height: 1px;
  background-color: var(--color-border);
  width: 100%;
}

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

@media (min-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Visual Part */
.about__visual {
  position: relative;
}

.about__img-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  height: 500px;
}

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

.about__quote-box {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background-color: var(--color-white);
  padding: 30px;
  width: 80%;
  box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
  border-left: 4px solid var(--color-accent);
}

@media (max-width: 768px) {
  .about__quote-box {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    margin-top: -40px;
  }
}

.about__quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--color-text);
}

.about__author {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Content Part */
.about__content {
  padding-left: 0;
}

@media (min-width: 992px) {
  .about__content {
    padding-left: 40px;
  }
}

.about__subtitle {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.about__content p {
  margin-bottom: 24px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.about__stats-row {
  display: flex;
  gap: 60px;
  margin: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

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

.about__stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 5px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.1rem;
  transition: gap 0.3s ease;
}

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