body {
  margin: 0;
  padding: 0;
  font-family: "Gilroy", sans-serif;
  color: var(--text-color-main);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Скрыть нативный скролл только у страницы */
html,
body {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none; /* WebKit */
}

/* Кастомный ползунок */
.custom-scrollbar {
  position: fixed;
  top: 0;
  right: var(--scrollbar-right, 0px);
  width: var(--scrollbar-width, 10px);
  padding-left: 2px;
  height: 100dvh; /* учитывает адресную строку на моб. */
  z-index: 9999;
  opacity: 0; /* автопоявление при скролле/ховере */
  transition: opacity 0.2s ease;
  pointer-events: auto;
  background: var(--shadow-opacity-light);
}
.custom-scrollbar:hover,
.custom-scrollbar.is-visible {
  opacity: 1;
}

.custom-scrollbar .thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px; /* будет пересчитано JS */
  background: var(--primary-color);
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.05s linear, height 0.2s ease;
  will-change: transform, height;
  cursor: grab;
}
.custom-scrollbar .thumb:active {
  cursor: grabbing;
  opacity: 1;
}

body.no-select {
  user-select: none;
}

/* На тач-устройствах обычно родной оверскролл ок — прячем кастомный */
@media (pointer: coarse) {
  .custom-scrollbar {
    display: none;
  }
}

/* Brand Colros */

:root {
  /* Primary Colors - Main Brand */
  --primary-color: #ee0a10;
  --primary-light: #ff3036;
  --primary-dark: #bb0000;
  --primary-hover: #d40000;

  /* Secondary Colors - Light Accent */
  --secondary-color: #b7968a;
  --secondary-light: #ddbcb0;
  --secondary-dark: #846357;

  /* Tertiary Colors - Dark Accent */
  --tertiary-color: #a98b68;
  --tertiary-light: #cfb18e;
  --tertiary-dark: #765835;

  /* Shadow & Depth & Dark-Background & Text*/
  --shadow-color: #141418;
  --shadow-light: rgba(20, 20, 24, 0.3);
  --shadow-medium: rgba(20, 20, 24, 0.6);
  --shadow-dark: rgba(20, 20, 24, 0.9);

  /* Light Colors & Light-Background & Text */
  --light-color: #f3eeef;
  --white: #ffffff;
  --light-gray: #ded9da;

  /* Accent Colors for Vibrancy */
  --accent-orange: #a98b68;
  --accent-blue: #b7968a;
  --accent-red: #8f714e;
  --accent-yellow: #ee0a10;

  /* Status Colors */
  --success-color: #7d8443; /* Sycamore */
  --warning-color: #fa740b; /* Ecstasy */
  --error-color: #f44336; /* Pomegranate */
  --info-color: #2e252e; /* Thunder */

  /* Gradients for Rich Effects */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  --gradient-warm: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--primary-color)
  );
  --gradient-subtle: linear-gradient(
    135deg,
    var(--light-color),
    var(--light-gray)
  );
}

/*Additional Colors*/

:root {
  --primary-accent-1: var(--primary-color);
  --primary-accent-2: var(--primary-dark);

  --light-accent-1: var(--secondary-color);
  --light-accent-2: var(--secondary-light);

  --dark-accent-1: var(--tertiary-color);
  --dark-accent-2: var(--tertiary-dark);
}

/* Elements Colors */
:root {
  --text-color-main: var(--shadow-color);
  --text-color-accent: var(--dark-accent-1);
  --text-color-oposite: var(--light-color);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px var(--shadow-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: 0 4px 15px var(--shadow-light);
  transform: translateY(-2px);
}

.basic-cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 20px;
  margin-top: 20px;
  z-index: 1000;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.basic-actions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  border: none;
  border-radius: 25px;
  height: 50px;
  width: 50px;
  cursor: pointer;
  transition: 0.8s;
}

.basic-actions-btn span {
  display: none;
  opacity: 0;
}

.basic-actions-btn:hover {
  width: auto;
  padding: 0 20px;
  transition: 0.8s;
}

.basic-actions-btn:hover span {
  display: flex;
  transition: 0.5s;
  opacity: 1;
  margin-left: 10px;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body li {
  font-family: "Gilroy";
  letter-spacing: 0.07em;
}

body h1,
body h2,
body h3 {
  font-weight: 300;
}

th,
td {
  font-family: Roboto;
}

label {
  font-family: "Gilroy";
}

.lowercase {
  text-transform: lowercase;
}

.link {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.item {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Consent Modal */
.consent-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.consent-modal.show {
  visibility: visible;
  opacity: 1;
}

.consent-modal-content {
  background: var(--white);
  height: auto;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.consent-modal-content p {
  color: var(--text-color-main);
  text-align: start;
  font-size: 14px;
  letter-spacing: 0.07em;
  line-height: 1.6;
  margin: 20px;
  width: 100%;
}

.consent-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  max-width: auto;
  margin: 20px;
}

.consent-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 50px;
  font-family: "Gilroy", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.consent-agree {
  background: var(--primary-color);
  color: var(--white);
}

.consent-agree:hover {
  background: var(--primary-hover);
}

.consent-decline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 30px;
  padding: 0 12px;
  font-family: "Gilroy", sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--tertiary-dark);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.consent-decline:hover {
  opacity: 1;
  border-color: var(--tertiary-dark);
}

.consent-policy-link {
  color: var(--tertiary-color);
  text-decoration: none;
  font-family: "Gilroy", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.consent-policy-link:hover {
  border-bottom-color: var(--tertiary-color);
}

/* Notification Container Styles */
.notification-container {
  position: fixed;
  top: 30px;
  right: 30px; /* Изменил с left на right для лучшей видимости */
  transform: none; /* Убрал translateX */
  z-index: 100000;
  max-width: 90%;
  width: auto;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.notification {
  background: var(--white);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(20, 20, 24, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  max-width: 500px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  animation: notificationSlideIn 0.4s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.notification::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.notification.success::before {
  background: var(--success-color);
}

.notification.error::before {
  background: var(--error-color);
}

.notification.warning::before {
  background: var(--warning-color);
}

.notification.info::before {
  background: var(--info-color);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--white);
}

.notification.success .notification-icon {
  background: var(--success-color);
}

.notification.error .notification-icon {
  background: var(--error-color);
}

.notification.warning .notification-icon {
  background: var(--warning-color);
}

.notification.info .notification-icon {
  background: var(--info-color);
  color: var(--white);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color-main);
}

.notification-message {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-color-main);
  opacity: 0.8;
}

.notification-close {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  color: var(--text-color-main);
  opacity: 0.5;
}

.notification-close:hover {
  background-color: var(--light-gray);
  opacity: 1;
}

.notification.hide {
  animation: notificationSlideOut 0.4s ease-in forwards;
}

@keyframes notificationSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notificationSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Mobile styles for notifications */
@media (max-width: 768px) {
  .notification-container {
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    align-items: stretch;
  }

  .notification {
    min-width: auto;
    width: 100%;
    transform: translateY(-100%);
    animation: notificationSlideInMobile 0.4s ease-out forwards;
  }

  .notification.hide {
    animation: notificationSlideOutMobile 0.4s ease-in forwards;
  }
}

@keyframes notificationSlideInMobile {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notificationSlideOutMobile {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .consent-modal-content {
    flex-direction: column;
    padding: 15px 20px;
    max-width: 95vw;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .consent-modal-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 15px 0;
    text-align: center;
  }

  .consent-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .consent-button {
    width: 100%;
    max-width: none;
    height: 45px;
    font-size: 0.9rem;
    border-radius: 4px;
  }

  .consent-decline {
    width: auto;
    height: 28px;
    font-size: 0.65rem;
    align-self: center;
    margin-top: 5px;
  }

  .consent-policy-link {
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
  }

  .consent-modal {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }
}

@media (max-width: 480px) {
  .consent-modal-content {
    padding: 12px 15px;
    margin: 5px;
  }

  .consent-modal-content p {
    font-size: 0.8rem;
    margin: 0 0 12px 0;
  }

  .consent-button {
    height: 40px;
    font-size: 0.85rem;
  }

  .consent-decline {
    height: 25px;
    font-size: 0.6rem;
    padding: 0 10px;
  }

  .consent-policy-link {
    font-size: 0.75rem;
  }
}

/*===LANG CODES===*/
/*================*/

.modern-phone-field {
  position: relative;
  width: 100%;
}

.phone-input-container {
  display: flex;
  border: none;
  border-radius: 0;
  background: white;
  transition: all 0.2s ease;
}

.country-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 12px 10px;
  background: var(--light-color);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 100px;
}

.country-button:hover {
  background: #e4e6ea;
}

.flag {
  font-size: 18px;
}

.code {
  font-weight: 500;
  color: #1c1e21 !important;
  font-size: 14px;
}

.arrow {
  width: 12px;
  height: 12px;
  fill: var(--shadow-light);
  transition: transform 0.2s;
}

.country-button.active .arrow {
  transform: rotate(180deg);
}

.phone-input {
  width: calc(100% - 36px);
  border: none;
  padding: 12px 10px 12px 5px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: #1c1e21;
}

.dark-background .phone-input,
.primary-background .phone-input,
.image-background .phone-input {
  color: var(--light-color) !important;
}

.phone-input::placeholder {
  color: var(--shadow-light) !important;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  margin-top: 4px;
  display: none;
}

.country-dropdown.open {
  display: block;
}

.country-search {
  width: calc(100% - 32px);
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #e1e5e9;
  outline: none;
  font-size: 14px;
}

.country-list {
  max-height: 240px;
  overflow-y: auto;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.country-item:hover {
  background: #f5f6f7;
}
.country-search::placeholder {
  color: var(--shadow-light) !important;
}
.country-item .name {
  flex: 1;
  font-size: 14px;

  color: var(--shadow-color) !important;
}

@media (max-width: 768px) {
  .country-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 400px;
    max-height: 70vh;
  }
}

/*==============*/
/* Color Themes */
/*==============*/

/* Dark Background Theme */

.dark-background,
.image-background {
  background: var(--shadow-color);
}

.dark-background p,
.dark-background a,
.dark-background li,
.dark-background span,
.dark-background label,
.dark-background input,
.dark-background textarea,
.image-background p,
.image-background a,
.image-background li,
.image-background span,
.image-background i,
.image-background label,
.image-background input,
.image-background textarea {
  color: var(--light-color);
}

.dark-background i {
  color: var(--light-color);
}

.dark-background button,
.image-background .btn {
  position: relative;
  overflow: hidden; /* чтобы shine не выходил за границы */
  background-color: var(--tertiary-color);
  color: var(--light-color);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dark-background .btn::after,
.image-background .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* начинаем за пределами кнопки */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    var(--tertiary-light),
    transparent
  );
  transform: skewX(15deg);
  transition: left 0.6s ease;
}

.dark-background .btn:hover,
.image-background .btn:hover {
  transform: scale(1.05);
}

.dark-background .btn:hover::after,
.image-background .btn:hover::after {
  left: 125%; /* shine проходит через кнопку */
}

/* Light Background Theme */

.light-background {
  background: var(--light-color);
  color: var(--shadow-color);
}

.light-background p,
.light-background a,
.light-background li,
.light-background span,
.light-background label,
.light-background input,
.light-background textarea {
  color: var(--shadow-color);
}

.light-background i {
  color: var(--shadow-color);
}

.light-background .btn {
  position: relative;
  overflow: hidden; /* чтобы shine не выходил за границы */
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.light-background .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* начинаем за пределами кнопки */
  width: 25%;
  height: 100%;
  background: linear-gradient(
    120deg,
    var(--light-color),
    var(--light-color),
    var(--light-color)
  );
  opacity: 0.25;
  transform: skewX(15deg);
  transition: left 0.6s ease;
}

.light-background .btn:hover {
  transform: scale(1.05);
}

.light-background .btn:hover::after {
  left: 125%; /* shine проходит через кнопку */
}

/* Primary Background Theme */

.primary-background {
  background: var(--primary-color);
  color: var(--light-color);
}

.primary-background p,
.primary-background a,
.primary-background li,
.primary-background span,
.primary-background label,
.primary-background input,
.primary-background textarea {
  color: var(--light-color);
}

.primary-background i {
  color: var(--light-color);
}

.primary-background .btn {
  position: relative;
  overflow: hidden; /* чтобы shine не выходил за границы */
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.primary-background .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* начинаем за пределами кнопки */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    var(--light-gray),
    transparent
  );
  transform: skewX(15deg);
  transition: left 0.6s ease;
}

.primary-background .btn:hover {
  transform: scale(1.05);
}

.primary-background .btn:hover::after {
  left: 125%; /* shine проходит через кнопку */
}
/*=== Heading Styles ===*/

/* Aliases на случай tertiary/tertiary */
:root {
  --T-light: var(--tertiary-light);
  --T-color: var(--tertiary-color);
  --T-dark: var(--tertiary-dark);
}

/* Маппинг акцентных тонов под тип фона */
.dark-background {
  --hd-1: var(--tertiary-light);
  --hd-2: var(--tertiary-color);
  --hd-3: var(--tertiary-dark);
  --hd-text: var(--tertiary-light);
}

/* Маппинг акцентных тонов под тип фона */
.image-background {
  --hd-1: var(--tertiary-light);
  --hd-2: var(--tertiary-color);
  --hd-3: var(--tertiary-dark);
  --hd-text: var(--tertiary-light);
}

.light-background {
  /* Используем primary-оттенки */
  --hd-1: var(--primary-light);
  --hd-2: var(--primary-color);
  --hd-3: var(--primary-dark);
  --hd-text: var(--shadow-color); /* читаемый тёмный текст */
}

.primary-background {
  /* Используем light-оттенки */
  --hd-1: var(--white);
  --hd-2: var(--light-color);
  --hd-3: var(--light-gray);
  --hd-text: var(--light-color); /* светлый текст на цветном фоне */
}

/* База эффекта для всех трёх фонов */
.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4,
.dark-background h5,
.dark-background h6,
.light-background h1,
.light-background h2,
.light-background h3,
.light-background h4,
.light-background h5,
.light-background h6,
.primary-background h1,
.primary-background h2,
.primary-background h3,
.primary-background h4,
.primary-background h5,
.primary-background h6,
.image-background h1,
.image-background h2,
.image-background h3,
.image-background h4,
.image-background h5,
.image-background h6 {
  position: relative;
  color: var(--hd-text);
  line-height: 1.15;
  letter-spacing: 0.01em;

  /* мягкий “letterpress” */
  text-shadow: 0 1px 0 color-mix(in srgb, var(--hd-3) 15%, transparent),
    0 6px 12px color-mix(in srgb, var(--hd-3) 12%, transparent);
}

/* Акцентное подчёркивание (градиент зависит от фонового маппинга) */
.dark-background h1::after,
.dark-background h2::after,
.dark-background h3::after,
.dark-background h4::after,
.dark-background h5::after,
.dark-background h6::after,
.light-background h1::after,
.light-background h2::after,
.light-background h3::after,
.light-background h4::after,
.light-background h5::after,
.light-background h6::after,
.primary-background h1::after,
.primary-background h2::after,
.primary-background h3::after,
.primary-background h4::after,
.primary-background h5::after,
.primary-background h6::after,
.image-background h1::after,
.image-background h2::after,
.image-background h3::after,
.image-background h4::after,
.image-background h5::after,
.image-background h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28em;
  height: 3px;
  width: min(12ch, 64%);
  border-radius: 3px;
  opacity: 0.85;

  background: linear-gradient(
    90deg,
    var(--hd-3) -5%,
    var(--hd-2) 55%,
    var(--hd-1) 100%
  );
  transform-origin: left center;
  transform: scaleX(0.72);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Чуть шире и толще для крупных заголовков */
.dark-background h1::after,
.light-background h1::after,
.primary-background h1::after,
.image-background h1::after {
  height: 4px;
  width: min(16ch, 72%);
}

.dark-background h2::after,
.light-background h2::after,
.primary-background h2::after,
.image-background h2::after {
  height: 3px;
  width: min(14ch, 68%);
}

/* Спокойное поведение при взаимодействии */
.dark-background h1:hover::after,
.dark-background h2:hover::after,
.dark-background h3:hover::after,
.dark-background h4:hover::after,
.dark-background h5:hover::after,
.dark-background h6:hover::after,
.light-background h1:hover::after,
.light-background h2:hover::after,
.light-background h3:hover::after,
.light-background h4:hover::after,
.light-background h5:hover::after,
.light-background h6:hover::after,
.primary-background h1:hover::after,
.primary-background h2:hover::after,
.primary-background h3:hover::after,
.primary-background h4:hover::after,
.primary-background h5:hover::after,
.primary-background h6:hover::after,
.image-background h1:hover::after,
.image-background h2:hover::after,
.image-background h3:hover::after,
.image-background h4:hover::after,
.image-background h5:hover::after,
.image-background h6:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Уважение системных настроек анимаций */
@media (prefers-reduced-motion: reduce) {
  .dark-background h1::after,
  .dark-background h2::after,
  .dark-background h3::after,
  .dark-background h4::after,
  .dark-background h5::after,
  .dark-background h6::after,
  .light-background h1::after,
  .light-background h2::after,
  .light-background h3::after,
  .light-background h4::after,
  .light-background h5::after,
  .light-background h6::after,
  .primary-background h1::after,
  .primary-background h2::after,
  .primary-background h3::after,
  .primary-background h4::after,
  .primary-background h5::after,
  .primary-background h6::after,
  .image-background h1:hover::after,
  .image-background h2:hover::after,
  .image-background h3:hover::after,
  .image-background h4:hover::after,
  .image-background h5:hover::after,
  .image-background h6:hover::after {
    transition: none;
  }
}

/*=== Background Color Effects ===*/

/* subtle-lines */

.dark-background.subtle-lines {
  --lines-color: var(--light-color);
  --lines-opacity: 0.08;
}
.image-background.subtle-lines {
  --lines-color: var(--light-color);
  --lines-opacity: 0.03;
}
.light-background.subtle-lines {
  --lines-color: var(--shadow-color);
  --lines-opacity: 0.05;
}
.primary-background.subtle-lines {
  --lines-color: var(--light-color);
  --lines-opacity: 0;
}

/* Кому нужен эффект — навесь класс .subtle-lines на секцию/блок */
.subtle-lines {
  position: relative;
  overflow: hidden;
  /* ТЮНИНГ ЧЕРЕЗ ПЕРЕМЕННЫЕ */
  --lines-color: #65b356; /* базовый зеленый под «удобрения» */
  --lines-opacity: 0.05; /* еле заметно (0.03–0.08) */
  --lines-angle: 25deg; /* направление «дождя» */
  --lines-width: 1px; /* толщина линий */
  --lines-gap: 26px; /* шаг между линиями */
  --lines-speed: 10s; /* медленное движение */
  --lines-shift: 10px; /* насколько смещается за цикл */
}

.subtle-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Чёткие тонкие линии без размытия */
  background: repeating-linear-gradient(
    var(--lines-angle),
    transparent 0 calc(var(--lines-gap) - var(--lines-width)),
    var(--lines-color) calc(var(--lines-gap) - var(--lines-width))
      var(--lines-gap)
  );
  opacity: var(--lines-opacity);

  /* Очень медленное «скольжение» по направлению линий */
  background-position: 0 0;
  animation: lines-glide var(--lines-speed) linear infinite;
}

@keyframes lines-glide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: var(--lines-shift) var(--lines-shift);
  }
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
  .subtle-lines::before {
    animation: none;
  }
}

/* flow lines (LOOKS COOL) */

/* навешиваешь этот класс на ЛЮБОЙ блок */
.flow-lines {
  position: relative;
  overflow: hidden;
  --angle: 15deg;
  --pulse-speed: 4s;
  --draw-speed: 4s;
  --opacity-strong: 0.15;
  --opacity-mid: 0.15;
  --opacity-draw: 0.15;
  --color-strong: var(--white);
  --color-mid: var(--light-color);
  --color-draw: var(--light-gray);
  --stroke-strong: 12;
  --stroke-mid: 12;
  --stroke-draw: 6;
  --dash-length: 200;
  --dash-start: 800;
}

/* сам SVG, который подкинет JS */

.flow-lines > svg.flow-lines__svg {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 170%;
  left: -10%;
  top: -10%;
  transform-origin: 50% 50%;
  transform: rotate(var(--angle));
  pointer-events: none;
}

.flow-lines.image-background > svg.flow-lines__svg {
  opacity: 0.12;
}

.flow-lines.dark-background > svg.flow-lines__svg {
  opacity: 0.11;
}

.flow-lines.light-background > svg.flow-lines__svg {
  opacity: 0.13;
}

.flow-lines.primary-background > svg.flow-lines__svg {
  opacity: 0.52;
}

/* ГРУППЫ ЛИНИЙ (аналог #red / #blue / #light-blue) */

.flow-lines [data-group="strong"] line {
  fill: none;
  opacity: var(--opacity-strong);
  stroke: var(--color-strong);
  stroke-width: calc(var(--stroke-strong) * 1px);
  stroke-miterlimit: 10;
  animation: fl-pulse var(--pulse-speed) ease-in-out infinite both;
  vector-effect: non-scaling-stroke;
}
.flow-lines [data-group="mid"] line {
  fill: none;
  opacity: var(--opacity-mid);
  stroke: var(--color-mid);
  stroke-width: calc(var(--stroke-mid) * 1px);
  stroke-miterlimit: 10;
  animation: fl-pulse var(--pulse-speed) ease-in-out infinite both;
  vector-effect: non-scaling-stroke;
}
.flow-lines [data-group="draw"] line {
  fill: none;
  opacity: var(--opacity-draw);
  stroke: var(--color-draw);
  stroke-width: calc(var(--stroke-draw) * 1px);
  stroke-miterlimit: 10;
  stroke-dasharray: var(--dash-length);
  stroke-dashoffset: var(--dash-start);
  animation: fl-draw var(--draw-speed) ease-in-out infinite both;
  vector-effect: non-scaling-stroke;
}

/* анимации — такие же по смыслу, как у тебя */
@keyframes fl-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fl-pulse {
  0% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.15;
  }
}

@media (max-width: 600px) {
  .flow-lines > svg.flow-lines__svg {
    scale: 1;
  }
}

/* Respect user settings */
@media (prefers-reduced-motion: reduce) {
  .flow-lines [data-group="strong"] line,
  .flow-lines [data-group="mid"] line,
  .flow-lines [data-group="draw"] line {
    animation: none;
  }
}
/* фон-канвас всегда вне потока и под контентом */
.bg-bubbles {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* Тюнинг эффекта через CSS-переменные */
  --bubbles-density: 0.00006; /* плотность (на px²) */
  --bubbles-speed: 1; /* множитель скорости */
  --bubble-min: 6; /* мин. радиус (px) */
  --bubble-max: 16; /* макс. радиус (px) */

  /* по умолчанию (light) */
  --bubbles-c1: var(--shadow-color);
  --bubbles-c2: var(--shadow-color);
  --bubbles-c3: var(--shadow-color);

  --bubbles-a0: 0.03; /* центр */
  --bubbles-a1: 0.03; /* середина */
  --bubbles-a2: 0.03; /* край */
}

/* исключаем canvas из общего правила детей */
.bg-bubbles > :not(canvas.bg-bubbles-canvas) {
  position: relative;
  z-index: 1;
}

/* канвас — позади и клики не ловит */
.bg-bubbles-canvas {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Темы: только цвета/прозрачности */
.primary-background.bg-bubbles {
  --bubbles-c1: var(--light-color);
  --bubbles-c2: var(--light-color);
  --bubbles-c3: var(--light-color);
  --bubbles-a0: 0.15;
  --bubbles-a1: 0.15;
  --bubbles-a2: 0.15;
}

.dark-background.bg-bubbles {
  --bubbles-c1: var(--tertiary-color);
  --bubbles-c2: var(--tertiary-color);
  --bubbles-c3: var(--tertiary-color);
  --bubbles-a0: 0.05;
  --bubbles-a1: 0.05;
  --bubbles-a2: 0.05;
}

/* (опция) если контейнер flex и у него схлопывается высота — задайте min-height */
.bg-bubbles.section {
  min-height: 1px;
}
