/* --- Variables & Reset --- */
:root {
  /* Palette */
  --color-bg: #f2f0e9;
  --color-bg-dark: #121212;
  --color-text: #1c1c1c;
  --color-text-light: #f2f0e9;
  --color-text-muted: #666666;
  --color-accent: #d4f23d; /* Lime */
  --color-accent-hover: #bce600;
  --color-primary: #1c1c1c;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --container-width: 1240px;
  --header-height: 80px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 12px;
}

*,
*::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;
}

ul {
  list-style: none;
}

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

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

/* --- Utilities --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 50px;
  font-size: 0.9rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(242, 240, 233, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.header__logo-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.header__nav {
  display: none; /* Mobile first hidden */
}

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

.header__list {
  display: flex;
  gap: 40px;
}

.header__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-hover); /* Using hover color for visibility */
  transition: width 0.3s ease;
}

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

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
  }
}

.header__burger {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

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

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  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 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
}

.footer__desc {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 300px;
}

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

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer__social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer__list li {
  margin-bottom: 0.8rem;
}

.footer__link {
  color: #a0a0a0;
  font-size: 0.95rem;
}

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

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

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

.footer__bottom {
  max-width: var(--container-width);
  margin: 60px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid #222;
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 140px 0 60px; /* Отступ сверху учитывает фиксированный хедер */
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

/* Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 242, 61, 0.2); /* Прозрачный лайм */
  color: #5d6b1f;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 242, 61, 0.5);
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.8rem;
  }
}

.text-accent {
  color: var(--color-accent-hover); /* Темнее лайма для читаемости на светлом */
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-accent);
  z-index: -1;
  opacity: 0.6;
  transform: skewX(-15deg);
}

.text-outline {
  -webkit-text-stroke: 1px var(--color-text);
  color: transparent;
}

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

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

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

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #888;
}

.hero__note i {
  width: 16px;
  height: 16px;
}

/* Visual & Parallax Cards */
.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: rotate(3deg); /* Легкий наклон для динамики */
  border: 2px solid var(--color-text);
  box-shadow: 10px 10px 0px var(--color-accent);
  transition: transform 0.5s ease;
}

.hero__image-wrapper:hover {
  transform: rotate(0deg);
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  background-color: #ddd;
}

.hero__card {
  position: absolute;
  background: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 240px;
}

.hero__card--1 {
  top: 10%;
  left: -40px;
}

.hero__card--2 {
  bottom: 15%;
  right: -30px;
}

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

.hero__card-icon--lime {
  background: var(--color-accent);
  color: var(--color-text);
}

.hero__card-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero__card-sub {
  font-size: 0.75rem;
  color: #888;
}

/* Ticker (Бегущая строка) */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-dark);
  color: var(--color-accent);
  padding: 12px 0;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.05); /* Стильный наклон */
  transform-origin: left bottom;
}

.ticker__track {
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* Responsive adjustments for cards */
@media (max-width: 991px) {
  .hero__card {
    padding: 10px 16px;
  }
  .hero__card--1 {
    left: -10px;
    top: 5%;
  }
  .hero__card--2 {
    right: -10px;
    bottom: 10%;
  }
}

/* --- Global Section Styles --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

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

.section__header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 700;
}

.section__label--dark {
  color: var(--color-text-muted);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.text-dark {
  color: var(--color-text);
}
.text-muted {
  color: var(--color-text-muted);
}

.section__subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #a0a0a0;
}

.section--dark .section__subtitle {
  color: #ccc;
}
.section__subtitle strong {
  color: var(--color-accent);
}

.mt-4 {
  margin-top: 2rem;
}

/* --- Bento Grid (Methodology) --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@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: repeat(3, 1fr);
  }
}

.bento-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

/* Specific Sizes */
@media (min-width: 992px) {
  .bento-card--large {
    grid-column: span 1;
    grid-row: span 2;
  }
  .bento-card--wide {
    grid-column: span 2;
  }
}

.bento-card__num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.bento-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.bento-card p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

.visual-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.2;
  position: absolute;
  bottom: -50px;
  right: -50px;
  filter: blur(20px);
}

/* --- Sticky Layout (Perspectives) --- */
.sticky-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 992px) {
  .sticky-wrapper {
    flex-direction: row;
    align-items: flex-start; /* Crucial for sticky */
    gap: 80px;
  }
}

.sticky-content {
  flex: 1;
}

@media (min-width: 992px) {
  .sticky-content {
    position: sticky;
    top: 120px; /* Offset from header */
  }
}

.scroll-cards {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-muted);
}

.feature-card--accent {
  background: var(--color-primary);
  color: #fff;
}

.feature-card--accent h3,
.feature-card--accent p {
  color: #fff;
}

/* --- Blog (Horizontal Scroll Snap) --- */
.blog-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Space for scrollbar or shadow */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox hide scrollbar */
  margin: 0 -20px; /* Expand to edges on mobile */
  padding: 0 20px 40px; /* Restore padding */
}

.blog-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari hide scrollbar */
}

.blog-card {
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .blog-card {
    min-width: 380px;
    max-width: 380px;
  }
}

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

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

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

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}

.blog-card__content {
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
}

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

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.blog-scroll__spacer {
  min-width: 1px; /* To allow scrolling to the very end */
}

/* --- Reviews (Grid) --- */
.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.review-card__user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.review-card__avatar--accent {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.review-card__name {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.review-card__role {
  color: #777;
  font-size: 0.8rem;
}

.review-card__stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.review-card__text {
  color: #ccc;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

.review-card__text strong {
  color: #fff;
  font-style: normal;
}


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

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

.mb-4 { margin-bottom: 2rem; }

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item i {
    color: var(--color-accent);
}

/* Form Styles */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

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

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fafafa;
}

.captcha-group input {
    width: 100px; /* Small input for captcha */
}

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

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-primary);
}

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

.form-btn {
    width: 100%;
    padding: 16px;
}

.form-message {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    min-height: 24px;
}

.form-message.success { color: #2ecc71; }
.form-message.error { color: #e74c3c; }

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 20px;
    right: 20px;
    background: var(--color-bg-dark);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
}

@media (min-width: 768px) {
    .cookie-popup {
        left: 20px;
        right: auto;
    }
}

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

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.btn--sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* --- Legal Pages Styling (.pages) --- */
/* Ці стилі працюватимуть на privacy.html, terms.html і т.д. */
.pages {
    padding: 120px 0 80px; /* More top padding for fixed header */
}

.pages .container {
    max-width: 800px; /* Narrower for reading */
}

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

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

.pages p {
    margin-bottom: 20px;
    color: #444;
}

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

.pages li {
    margin-bottom: 10px;
    color: #444;
}

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