/* --- Variables & Theme Setup (Earthen / Fluid) --- */
:root {
  /* Palette */
  --color-bg: #f9f7f2; /* Теплий пісочний фон */
  --color-text: #2c2b29; /* Темно-графітовий для тексту */
  --color-primary: #586f58; /* Натуральний оливковий */
  --color-secondary: #c89f83; /* Теракота/Глина */
  --color-accent: #e8e3d9; /* Світлий камінь */
  --color-white: #ffffff;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --border-radius-fluid: 2rem 1rem 2rem 1rem; /* Асиметричні кути */
}

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

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

ul {
  list-style: none;
}

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

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(249, 247, 242, 0.9); /* Прозорий фон */
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(88, 111, 88, 0.1);
}

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

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

.header__logo-icon {
  width: 32px;
  height: 32px;
}

/* Navigation - Mobile First hidden */
.header__nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  padding: 2rem;
  transform: translateY(-150%);
  transition: transform 0.5s ease-in-out;
  border-bottom: 2px solid var(--color-primary);
  z-index: 999;
}

.header__nav.is-active {
  transform: translateY(0);
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.header__link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

.header__link:hover {
  color: var(--color-secondary);
  transform: skewX(-10deg); /* Мікроанімація */
}

/* CTA Button - Fluid Shape */
.header__cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 50px 20px 50px 20px; /* Органічна форма */
  font-weight: 600;
  margin-top: 1rem;
  transition: border-radius 0.3s ease, background-color 0.3s ease;
}

.header__cta:hover {
  background-color: var(--color-secondary);
  border-radius: 20px 50px 20px 50px; /* Морфінг форми при ховері */
}

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

/* Desktop Navigation */
@media (min-width: 992px) {
  .header__nav {
    position: static;
    transform: none;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .header__list {
    flex-direction: row;
    gap: 2rem;
  }

  .header__link {
    font-size: 1rem;
  }

  .header__cta {
    margin-top: 0;
  }

  .header__burger {
    display: none;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 4rem 0 1rem;
  border-top-left-radius: 60px; /* Плавний вхід */
  border-top-right-radius: 60px;
  margin-top: 4rem;
}

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

.footer__col--brand .header__logo-text {
  color: var(--color-white);
}

.footer__desc {
  margin-top: 1rem;
  opacity: 0.8;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link:hover {
  color: var(--color-white);
  padding-left: 5px; /* Мікроанімація зсуву */
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}

.footer__bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

@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;
  }
}

/* --- UI Components (Buttons & Badges) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  /* Асиметрична форма кнопки (Fluid Style) */
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 10px 20px rgba(88, 111, 88, 0.2);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; /* Морфінг форми */
  background-color: var(--color-text);
  box-shadow: 0 15px 30px rgba(88, 111, 88, 0.3);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background Canvas */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6; /* Щоб не заважало тексту */
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Content */
.hero__tag {
  display: inline-block;
  background-color: rgba(200, 159, 131, 0.2); /* Прозорий теракотовий */
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.text-highlight {
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: var(--color-secondary);
  z-index: -1;
  opacity: 0.3;
  border-radius: 4px;
  transform: skewX(-10deg);
}

.hero__desc {
  font-size: 1.25rem;
  color: #555;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #777;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 8px;
}

.hero__note svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* Right Visual (Fluid Blob Image) */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-mask {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* Ключовий момент стилю Fluid & Organic - "пляма" */
  border-radius: 61% 39% 53% 47% / 61% 45% 55% 39%;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
  animation: blob-bounce 8s infinite ease-in-out;
  background-color: #fff;
}

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

/* Floating Badge */
.hero__badge {
  position: absolute;
  bottom: 10%;
  right: 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 2rem 2rem 0 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

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

.hero__badge-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes blob-bounce {
  0%,
  100% {
    border-radius: 61% 39% 53% 47% / 61% 45% 55% 39%;
  }
  33% {
    border-radius: 43% 57% 38% 62% / 67% 33% 67% 33%;
  }
  66% {
    border-radius: 64% 36% 62% 38% / 37% 65% 35% 63%;
  }
}

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

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

  .hero__title {
    font-size: 4.5rem; /* Гігантський заголовок на десктопі */
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* --- Common Section Styles --- */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-align: center;
}

.text-italic {
  font-style: italic;
  font-family: serif; /* Контрастний шрифт для акценту */
  color: var(--color-primary);
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: #666;
}

/* --- Insight / Fluid Cards --- */
.insight__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  align-items: center;
}

/* Arrow Connector */
.insight__arrow {
  display: flex;
  justify-content: center;
  opacity: 0.5;
  transform: rotate(90deg); /* Vertical on mobile */
}

/* Base Fluid Card */
.fluid-card {
  padding: 3rem;
  width: 100%;
  max-width: 500px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.4s ease, border-radius 0.4s ease;
  position: relative;
}

/* Card Variants */
.fluid-card--dark {
  background-color: #e6e1d6; /* Брудний пісок */
  color: var(--color-text);
  /* Organic Shape 1 */
  border-radius: 46% 54% 39% 61% / 55% 33% 67% 45%;
}

.fluid-card--light {
  background-color: var(--color-primary);
  color: var(--color-white);
  /* Organic Shape 2 */
  border-radius: 56% 44% 66% 34% / 37% 55% 45% 63%;
}

/* Hover Effects: Morphing */
.fluid-card:hover {
  transform: scale(1.02);
}
.fluid-card--dark:hover {
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; /* Стає колом */
}
.fluid-card--light:hover {
  border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%;
}

.fluid-card__content {
  z-index: 2;
}

.fluid-card__icon {
  margin-bottom: 1.5rem;
}
.fluid-card__icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.fluid-card__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.fluid-card__text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Link with Arrow Animation */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  border-bottom-color: var(--color-accent);
  gap: 12px; /* Іконка від'їжджає */
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* Desktop Layout */
@media (min-width: 992px) {
  .insight__wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0; /* Прибираємо відступ для накладання */
    height: 500px;
  }

  .insight__arrow {
    transform: rotate(0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 150px;
  }

  .insight__arrow-svg {
    width: 100%;
  }

  .fluid-card {
    width: 45%;
    position: absolute;
  }

  .fluid-card--dark {
    left: 5%;
    top: 20px;
    z-index: 1;
  }

  .fluid-card--light {
    right: 5%;
    top: 50px; /* Асиметричне зміщення по вертикалі */
    z-index: 2;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.1); /* Тінь для відокремлення */
  }
}

/* --- Strategies / Stepping Stones --- */
.stones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* Base Stone Style */
.stone {
  padding: 2.5rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  overflow: hidden;
}

.stone:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 2;
}

/* Typography inside stones */
.stone__num {
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.1;
  position: absolute;
  top: 0;
  right: 20px;
  font-family: var(--font-heading);
}

.stone__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.stone__text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.stone__icon {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 50%;
  display: flex;
}

/* Color & Shape Variants */
.stone--olive {
  background-color: var(--color-primary);
  color: var(--color-white);
  /* Shape: Pebble 1 */
  border-radius: 40px 80px 40px 60px;
}

.stone--sand {
  background-color: #e6e1d6;
  color: var(--color-text);
  /* Shape: Pebble 2 */
  border-radius: 60px 40px 80px 40px;
}
.stone--sand .stone__num {
  opacity: 0.05;
  color: #000;
}

.stone--terra {
  background-color: var(--color-secondary);
  color: var(--color-white);
  /* Shape: Pebble 3 */
  border-radius: 40px 40px 60px 80px;
}

.stone--dark {
  background-color: #2c2b29;
  color: #f9f7f2;
  /* Shape: Pebble 4 */
  border-radius: 80px 60px 40px 40px;
}

/* Desktop Grid Layout (Asymmetric) */
@media (min-width: 992px) {
  .stones-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* Two rows */
    gap: 3rem;
  }

  /* Layout Idea:
       [ Large 1 ] [ Medium 2 ] [ Medium 3 ]
       [ Medium 3 ] [ Large 4  ] [ Large 4 ] - overlapped logic below
    */

  .stone--large {
    grid-column: span 2; /* Широкі блоки займають 2 колонки */
  }

  .stone--medium {
    grid-column: span 1;
  }

  /* Specific positioning for flow */
  .stone:nth-child(1) {
    grid-column: 1 / 3;
  }
  .stone:nth-child(2) {
    grid-column: 3 / 4;
    margin-top: 40px; /* Зміщення вниз для асиметрії */
  }
  .stone:nth-child(3) {
    grid-column: 1 / 2;
    margin-top: -40px; /* Зміщення вгору */
  }
  .stone:nth-child(4) {
    grid-column: 2 / 4;
  }
}

/* --- Contact Section --- */
.contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, #efebe0 100%);
  position: relative;
  overflow: hidden;
}

/* Background blob decoration */
.contact::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  opacity: 0.1;
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

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

.contact__content {
  text-align: left;
}

.contact__title {
  text-align: left;
}

.contact__desc {
  text-align: left;
  margin: 0 0 2rem;
}

/* --- Form Card (Fluid) --- */
.form-wrapper {
  background: var(--color-white);
  padding: 3rem;
  /* Асиметрична форма картки */
  border-radius: 40px 20px 60px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.5s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

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

.form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(200, 159, 131, 0.1);
}

/* Validation Styles */
.error-msg {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none; /* Hidden by default */
}

.form-group.error .form-input {
  border-color: #d32f2f;
  background-color: #fff8f8;
}

.form-group.error .error-msg,
.form-captcha.error .error-msg,
.form-privacy.error .error-msg {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --- Custom Captcha --- */
.form-captcha {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  width: fit-content;
  min-width: 250px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.captcha-container input {
  display: none; /* Hide real checkbox */
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c0c0c0;
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: all 0.2s;
}

/* Checkmark shape for Captcha */
.captcha-container input:checked ~ .captcha-box {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.captcha-container input:checked ~ .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.9rem;
  color: #555;
}

/* --- Privacy Checkbox --- */
.privacy-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
}

.privacy-container input {
  display: none;
}

.checkmark {
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  position: relative;
  margin-top: 2px;
  transition: background 0.2s;
}

.privacy-container input:checked ~ .checkmark {
  background: var(--color-primary);
}

.privacy-container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* --- Success Message --- */
.success-message {
  display: none; /* Hidden */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 2rem;
  z-index: 10;
}

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

.success-icon {
  color: #4caf50;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}
.success-icon svg {
  width: 100%;
  height: 100%;
}

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

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

/* --- Form Header & Logo --- */
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Оновлення для інпутів при помилці */
.form-group.error .form-input {
  border-color: #d32f2f;
  background-color: #fff8f8;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 400px;
  background: #2c2b29; /* Dark stone color */
  color: #f9f7f2;
  padding: 1.5rem;
  z-index: 9999;
  /* Organic Shape */
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  /* Animation State: Hidden */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-icon {
  color: var(--color-secondary);
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1;
}

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

.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 20px 10px 20px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--small:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .cookie-popup {
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 15px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Legal Pages Styling --- */
.pages {
  padding: calc(var(--header-height) + 4rem) 0 4rem; /* Відступ від хедера */
  background-color: var(--color-bg);
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для зручності читання */
  background: #fff;
  padding: 4rem;
  border-radius: 40px 10px 40px 10px; /* Fluid shape paper */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(88, 111, 88, 0.1);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pages p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.pages ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.pages li {
  margin-bottom: 0.5rem;
  color: #4a4a4a;
}

.pages a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.3s;
}

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

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