/* ======================================================================= */
/*  Landing page styles: header, features, pricing and utilities           */
/* ======================================================================= */

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* ======================= */
/* Сброс и общие стили     */
/* ======================= */
/* ───────────── 1. Статический Regular (вес 400) ───────────── */
@font-face {
  font-family: "WB Hauss"; /* общее имя семейства */
  src: url("/static/assets/fonts/hauss-regular.e0b0d410abe3ff1c9dd6.woff2") format("woff2");
  font-weight: 400; /* фиксированный вес */
  font-style: normal;
  font-display: swap;
}

/* ───────────── 2. Переменный шрифт (TTF, веса 100-900) ─────── */
@font-face {
  font-family: "WB Hauss"; /* то же семейство! */
  src: url("/static/assets/fonts/als-hauss-vf.b709e7bab16d4dd7d164.ttf") format("truetype-variations"); /* важно для variable */
  font-weight: 100 900; /* диапазон оси wght */
  font-style: normal;
  font-display: swap;
}

:root {
  --s: 0.66;
}

/* ───────────── 3. Сброс и базовые стили ───────────── */
* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "WB Hauss", system-ui, sans-serif; /* одно имя */
  background: #fff;
  color: #333;
  overflow-x: hidden;
  line-height: 1.5;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ───────────────────────── header ───────────────────────── */

/* 1. Убираем «чёрный флэш» и синюю рамку при тапе/фокусе */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.menu-toggle {
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus {
  outline: none;
}

/* 2. Бургер-кнопка и анимация «бургер → крестик» */
.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1500;
  width: 32px;
  height: 24px; /* размер иконки */
  color: #006633; /* цвет для иконок Fallback */
}
/* ---------- бургер-кнопка: из одной центральной линии ---------- */
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 80%;
  height: 2.5px;
  background: #006633;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    top 0.3s ease,
    width 0.25s ease,
    opacity 0.25s,
    background 0.25s;
}

/* исходная «тройка» полосок */
.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 10px;
}
.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* две будущие диагонали прячем в середине */
.menu-toggle span:nth-child(2)::before,
.menu-toggle span:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #006633;
  transition: transform 0.3s ease;
}

/* ───────── открытое состояние ───────── */
.menu-toggle.open span:nth-child(1),
.menu-toggle.open span:nth-child(3) {
  top: 10px; /* подтягиваем к центру */
  width: 0; /* сжимаем до нуля      */
  opacity: 0; /* и скрываем           */
}

.menu-toggle.open span:nth-child(2) {
  background: transparent; /* убираем горизонталь */
}

.menu-toggle.open span:nth-child(2)::before {
  transform: rotate(45deg); /* правая диагональ  */
}
.menu-toggle.open span:nth-child(2)::after {
  transform: rotate(-45deg); /* левая диагональ   */
}

/* 3. Базовые стили хедера */
header {
  width: 100%;
  padding: 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1400;
  transition: box-shadow 0.25s ease;
}
header.header--shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1500; /* гарантированно поверх nav */
}
.logo img {
  height: 40px;
  width: 120px;
}

nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1300; /* база для абсолютных позиций */
}

/* центральное меню */
nav ul {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
nav ul li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

/* «Вход / Регистрация» */
nav .auth-links {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 20px;
  white-space: nowrap;
}
nav .auth-links a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- десктопные сужения -------------------------------- */
@media (max-width: 1024px) {
  nav ul {
    gap: 28px;
    left: 42%;
  }
}
@media (max-width: 880px) {
  nav ul {
    gap: 18px;
  }
}

/* ===========================================================
   MOBILE ≤ 768 px  (оверлей-меню, не толкает контент)
   =========================================================== */
@media (max-width: 768px) {
  .header-inner {
    padding: 17px 16px;
    flex-wrap: wrap;
  }

  /* логотип + бургер  50 % | 50 % */
  .logo {
    flex: 0 0 50%;
  }
  .logo img {
    height: 35px;
    width: 100px;
  }
  .menu-toggle {
    display: block;
    text-align: right;
  }

  /* полноэкранное меню-оверлей */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 60px 0 20px; /* 60 px = высота хедера */
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
  }
  nav.active {
    display: flex;
  }

  /* вертикальный список пунктов */
  nav ul {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 0 0 12px;
  }
  nav ul li a {
    font-size: 14px;
  }

  /* auth-links — под пунктами */
  nav .auth-links {
    position: static;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    margin: 0;
  }
  nav .auth-links.active {
    display: flex;
    margin-top: 20px;
  }

  /* запрет прокрутки фона при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
}

/* ---------- скрываем бургер на десктопе ------------------- */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* ───────────────────────── main content ───────────────────────── */

.main-content {
  text-align: center;
  padding: 128px 0;
}
.free-version-link {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 14px;
  color: rgb(75 85 99);
  text-decoration: none;
  margin-bottom: 32px;
}
.free-version-link span {
  color: #006633;
  text-decoration: underline;
}
.main-content h1 {
  font-size: 60px;
  line-height: 1;
  color: #222;
  margin-bottom: 24px;
  font-weight: 700;
}
.description {
  font-size: 18px;
  color: rgb(75 85 99);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 50px;
}
.try-btn {
  background-color: #006633;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}
.try-btn:hover {
  background-color: #008040; /* Немного более тёмный зеленый */
}
.about-btn {
  background-color: transparent;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.try-btn,
.about-btn,
.buy-btn {
  font-family: "WB combo VF Variable", sans-serif;
}

/* Блок (пример) с dashboard-превью */
.dashboard-preview {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px;
  background-color: #e5e5e5cf;
  border: 1px solid #ccc;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.dashboard-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ======================= */
/* Адаптив для контента   */
/* ======================= */
@media (max-width: 768px) {
  .main-content {
    padding: 78px 0;
  }
  .main-content h1 {
    font-size: 33px;
  }
  .description {
    font-size: 18px;
    line-height: 2rem;
  }
  .buttons {
    align-items: center;
  }
  .try-btn,
  .about-btn {
    width: auto;
    margin-left: 10px;
    max-width: 200px;
    margin-bottom: 10px;
  }
  .dashboard-preview {
    padding: 7px;
    border-radius: 7px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .free-version-link {
    font-size: 13px;
    padding: 3px 10px;
  }
  .main-content h1 {
    font-size: 31px;
  }
  .description {
    font-size: 17px;
    line-height: 2rem;
  }
}

/* ───────────────────────── features section ───────────────────────── */
.features-section {
  padding: 1px 20px;
  color: #333;
  line-height: 1.5;
  background-color: #fff;
}

.features-section h3 {
  font-size: 31px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #000;
}

.features-section p {
  margin-bottom: 20px;
  font-size: 14px;
}

.features-section .intro {
  margin-bottom: 30px;
}

.features-section .features-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.features-section .feature-box {
  background-color: #f9f9f9;
  -webkit-tap-highlight-color: transparent;
  border-radius: 15px;
  padding: 35px 0px 0px 35px;
  border: 1px solid #cccccc5c;
  transition: all 0.6s ease;
  position: relative;
  cursor: pointer;
  transform-origin: center center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Чтобы текст был сверху, а картинка/кнопка внизу */
}

.features-section .feature-box:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

@media (hover: none) and (pointer: coarse) {
  .features-section .feature-box:active {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
}

.features-section .feature-box-large {
  flex: 2;
}

.features-section .feature-box-small {
  flex: 1;
}

.features-section .feature-title {
  color: #0a5c36;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 550;
}

.features-section .feature-description {
  margin-bottom: 5px;
  font-size: 14px;
  color: #4b5563;
}

.feature-text {
  padding-left: 13px;
  padding-top: 13px;
  padding-right: 15px;
}

.features-section .feature-link {
  color: #0a5c36;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.features-section .feature-link:hover {
  text-decoration: underline;
}

.features-section .feature-image-wrapper {
  position: relative;
  max-height: 220px;
  transition: all 0.6s ease;
  margin-top: 15px;
  padding: 7px 7px 0 7px;
  background-color: #e0e0e0;
  border-radius: 18px 0 0 0;
  overflow: hidden;
}

.features-section .feature-box:hover .feature-image-wrapper {
  background-color: #048963db;
}

.features-section .feature-image {
  width: calc(100% + 35px);
  max-width: none;
  display: block;
  border-radius: 10px 10px 0 0;
  margin-bottom: -4px;
}

.features-section .feature-image-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #d0d0d0;
  border-radius: 18px 0 0 0;
  border-bottom: none;
  border-right: none;
  transition: all 0.6s ease;
}

.features-section .feature-box:hover .feature-image-border {
  border-color: #048963db;
  box-shadow: 0 0 10px rgba(10, 92, 54, 0.5);
}

/***********************************************
 * 1. Блокировка прокрутки фона (общая логика)
 ***********************************************/
body.no-scroll {
  overflow: hidden; /* Блокируем прокрутку body */
  height: 100%;
}

/***********************************************
 * 2. Оверлей (подложка под слайдер)
 ***********************************************/
.slider-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: none; /* Скрыт по умолчанию */
}

/***********************************************
 * 3. Слайдер (на ПК — "выезжает" справа ~ 83%)
 ***********************************************/
.slider {
  position: fixed;
  top: 0;
  right: -83%;
  width: 83%;
  height: 100vh;

  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);

  transition: right 0.8s ease; /* анимация */
  overflow: hidden; /* важен для ПК */

  z-index: 1001;
}
.slider.active {
  right: 0;
}

@media (max-width: 1400px) {
  .slider {
    width: 90%;
    right: -90%;
  }
}
/***********************************************
 * 4. Контейнер с двумя "колонками" (на ПК)
 ***********************************************/
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  /* Без overflow — скролл внутри left-panel-wrapper */
}

/***********************************************
 * 5. Левая панель (прокручиваемый текст на ПК)
 ***********************************************/
.left-panel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;

  overflow-y: scroll; /* ПК: здесь основной скролл */
  -webkit-overflow-scrolling: touch; /* плавный скролл iOS */
  z-index: 2;
}

.left-panel {
  box-sizing: border-box;
  width: 49%;
  margin-right: 50%; /* под картинку */
  padding: 10px 55px 10px 30px;
  background-color: #fff;
}

/* Стили внутри текстовой части */
.left-panel .close-icon {
  color: #bebdbd;
  font-weight: 200;
  font-size: 35px;
  cursor: pointer;
  margin-bottom: 30px;
}

.left-panel .close-icon:hover {
  color: #808080; /* измените на нужный вам цвет при ховере */
}

.left-panel h1 {
  color: #0d5c46;
  font-size: 36px;
  margin-bottom: 20px;
}

.left-panel h3 {
  color: #0d5c46;
  font-size: 36px;
  margin-bottom: 20px;
}

.slider-description {
  color: #555;
  line-height: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 16px;
}
.list {
  list-style-type: none;
  padding-left: 0;
  color: #555;
  line-height: 1.5rem;
}

.left-panel p {
  color: #555;
  line-height: 1.5rem;
  margin-bottom: 10px;
  font-size: 16px;
}

/* Стили для элементов strong с классом section-title */
.section-title {
  color: #064e3b; /* Задайте нужный вам цвет, например синий */
  font-weight: 700; /* Стандартная жирность, можно изменить на нужное значение */
  /* При необходимости добавьте другие свойства, например размер шрифта, отступы и т.д. */
  font-size: 16px;
}

.slider-description-text {
  color: #555 !important;
  margin-top: 1px !important;
  line-height: 1.2rem !important;
  margin-bottom: 5px !important;
  font-size: 16px !important;
}

/***********************************************
 * 6. Правая панель (картинка), фиксированная на ПК
 ***********************************************/
.right-panel {
  border-radius: 15px;
  position: absolute;
  top: 13%;
  right: -1%;
  width: 50%;
  height: 62%;
  z-index: 1;

  overflow: hidden; /* обрезаем картинку, если "выходит" */
  background-color: #f4f4f4fc;
  box-shadow:
    -2px 0 20px rgba(0, 0, 0, 0.1),
    0 4px 12px 0px rgba(0, 0, 0, 0.1);
}

.right-panel img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #cccccc5c;
  object-fit: cover;
  object-position: left top;
  border-radius: 15px;
}

/***********************************************
 * 7. Адаптив для мобильных (макс. ширина 768px)
 ***********************************************/

/* -- По умолчанию скрываем встроенную в текст картинку на десктопе -- */
.mobile-inline-image-wrapper {
  display: none;
}

/* Слайдер на всю ширину, "уезжает" за -100% */
@media (max-width: 1020px) {
  .slider {
    width: 100%;
    right: -100%;
    /* На мобильных делаем скролл всего контента (текст+картинка) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .slider.active {
    right: 0;
  }

  /* Контейнер уходит в "вертикальный" режим */
  .slider-container {
    flex-direction: column;
    height: auto; /* .slider сам растянется */
  }

  /* На мобильных не нужен отдельный скролл в .left-panel-wrapper */
  .left-panel-wrapper {
    overflow-y: visible;
    height: auto;
  }

  /* Текстовая часть на всю ширину */
  .left-panel {
    width: 100%;
    margin-right: 0;
    padding: 20px;
  }

  /* Скрываем правую панель, чтобы не дублировать картинку */
  .right-panel {
    display: none;
  }

  /* Показываем "мобильную" картинку, встроенную в текст */
  .mobile-inline-image-wrapper {
    display: block;
    text-align: center;
    margin: 48px 0;
  }
  .mobile-inline-image {
    box-shadow:
      -2px 0 20px rgba(0, 0, 0, 0.1),
      0 4px 12px 0px rgba(0, 0, 0, 0.1);

    border: 1px solid #cccccc5c;
    height: 150%;
    width: 150%;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .features-section {
    padding: 15px;
  }

  .features-section h1 {
    font-size: 30px;
  }

  .features-section .features-container {
    flex-direction: column;
  }

  .features-section .feature-box {
    margin-bottom: 20px;
  }

  .features-section .feature-box-large,
  .features-section .feature-box-small {
    flex: 1;
    padding: 10px 0px 0px 15px;
  }

  .slider {
    width: 100%;
    right: -100%;
  }
}

/* ───────────────────────── tariffs section ───────────────────────── */
.tariffs-section {
  padding: 50px 0;
  margin-top: 20px;
  background-color: #fff;
}

.tariffs-section h3 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: left;
  margin-left: 20px;
}

.tariffs-section p {
  margin-bottom: 40px;
  color: #555;
  line-height: 1.5;
  font-size: 16px;
  text-align: left;

  margin-left: 20px;
  margin-right: 20px;
}

.period-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.period-btn {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.period-btn.active {
  background-color: #006450;
  color: white;
  border-color: #006450;
}

.tariff-container {
  display: flex;
  border: 1px solid #cccccc5c;
  gap: 20px;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.tariff-card {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.tariff-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.popular-tag {
  margin-left: auto; /* уводит бейдж вправо */
  background: #e8f5e9;
  color: #006450;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.price {
  font-size: 36px;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

.price-prefix {
  font-size: 20px;
  font-weight: normal;
}

.price-suffix {
  font-size: 16px;
  font-weight: normal;
  color: #666;
}

.total-price {
  color: #666;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.subscription-info {
  color: #666;
  font-size: 12px;
  margin-bottom: 5px;
}

.feature-list {
  list-style-type: none;
  padding: 0;
  margin: 25px 0;
  font-weight: 300;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.feature-item i {
  color: #006450;
  margin-right: 10px;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #006450;
  border-radius: 5px;
  background-color: white;
  color: #006450;
  font-size: 16px;
  cursor: pointer;
  margin-top: auto;
}

.buy-btn.primary {
  background-color: #006450;
  color: white;
}

.middle-card {
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  position: relative;
  top: -20px;
  padding-bottom: 40px;
}

/* Мобильная адаптация секции тарифов */
@media (max-width: 768px) {
  .tariff-container {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    box-shadow: none;
  }

  .tariff-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 0 10px;
  }

  .middle-card {
    border: 1px solid #e0e0e0;
    top: 0;
    padding-bottom: 20px;
  }

  .period-selector {
    flex-direction: column;
    gap: 10px;
  }

  .period-btn {
    width: 100%;
    text-align: center;
  }

  .buy-btn {
    margin-top: 20px;
  }
}

/* ───────────────────────── FAQ section ───────────────────────── */
.faq-section {
  padding: 50px 0;
  background-color: #fff;
}

.faq-section h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.faq-section h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.faq-container {
  max-width: 100%;
}

.faq-item {
  background-color: #f5f5f5;
  border-radius: 5px;
  border: 1px solid #cccccc5c;
  margin-bottom: 15px;
  overflow: hidden;
}

.question {
  font-weight: 500;
  color: #064e3b;
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.6s ease;
}

@media (max-width: 768px) {
  .question:hover {
    background-color: #e0e0e0;
  }
}
.question::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.6s ease;
}

.question.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.answer {
  color: rgb(75 85 99);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    padding 0.5s ease;
}

.answer a {
  color: #006064;
  text-decoration: none;
}

.answer a:hover {
  text-decoration: underline;
}

@media (min-width: 769px) {
  .faq-item {
    display: flex;
  }

  .question {
    flex: 0 0 40%;
  }

  .answer {
    flex: 0 0 55%;
    max-height: none;
    padding: 20px;
  }

  .question::after {
    display: none;
  }
}

/* ───────────────────────── consultation form ───────────────────────── */
.consultation-section {
  padding: 60px 0;
  background-color: #fff;
}

.consultation-form {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 30px;

  margin: 0 auto;
}

.centered-form {
  margin: 0 auto 30px;
  width: fit-content;
  display: block; /* нужно, чтобы margin: 0 auto работал */
}

.consultation-form h1 {
  color: #0a5c36;
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 36px;
  font-weight: 550;
}

.consultation-form h3 {
  color: #0a5c36;
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 36px;
  font-weight: 550;
}

.consultation-form .description {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.contact-method {
  margin-bottom: 15px;
}

.contact-method-title {
  margin-bottom: 10px;
  font-weight: normal;
  font-size: 14px;
  color: #333;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  /* Пробел между элементами */
  gap: 15px;

  /* Добавьте это свойство, чтобы центрировать radio-кнопки по горизонтали */
  justify-content: center;
}

.radio-option {
  display: flex; /* Вложенный Flex, чтобы и текст, и кружок были на одной линии */
  align-items: center; /* Вертикальное выравнивание по центру */
}

.radio-option input[type="radio"] {
  margin-right: 5px;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
}

.radio-option input[type="radio"]:checked {
  border-color: #0a5c36;
  background-color: #0a5c36;
  box-shadow: inset 0 0 0 3px #fff;
}

.radio-option label {
  font-size: 14px;
  color: #333;
}

.consultation-form input[type="text"],
.consultation-form input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #0a5c36;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 15px;
}

.privacy-policy {
  display: flex;
  align-items: center; /* Выравнивание по вертикали по центру */
  gap: 10px; /* Расстояние между элементами */
  font-size: 12px;
  color: #666;
}

.privacy-policy input[type="checkbox"] {
  appearance: none;
  min-width: 40px;
  height: 20px;
  background: #ccc; /* Цвет "тумблера" в неактивном состоянии */
  border-radius: 20px; /* Скругляем границы, чтобы получился овал */
  position: relative; /* Чтобы шарик мог позиционироваться внутри */
  outline: none;
  cursor: pointer;
  transition: background 0.6s ease; /* Плавная анимация изменения цвета */
}
.privacy-policy input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff; /* Белый "шарик" */
  transition: transform 0.6s ease;
}
.privacy-policy input[type="checkbox"]:checked {
  background: #0a5c36; /* Тот же цвет, что и у кнопок */
}

.privacy-policy input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.privacy-policy a {
  color: #0a5c36;
  text-decoration: none;
}

@media (max-width: 768px) {
  /* Уменьшаем ширину формы и изменяем отступы */
  .consultation-form {
    padding: 48px 20px 48px 20px; /* Немного уменьшаем внутренние отступы */
  }

  /* Немного уменьшаем размер заголовка формы */
  .consultation-form h1 {
    font-size: 34px;
    font-weight: 550;
  }

  /* Уменьшаем шрифт описания */
  .consultation-form .description {
    font-size: 15px;
    padding: 0 10px;
  }

  /* При мобильном разрешении можно сделать радио-блок вертикальным */
  .radio-group {
    gap: 10px;
  }
}

/* Стили для футера */
footer {
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

footer .contact-column:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #006400;
}

footer .contact-info a {
  color: #006400;
  text-decoration: none;
}

footer .contact-info a:hover {
  text-decoration: underline;
}

/* Секция безналичных платежей и дополнительных ссылок */
footer .payment-section {
  text-align: center;
  margin-bottom: 40px;
}

footer .payment-title {
  font-weight: 600;
  margin-bottom: 30px;
  font-size: 14px;
}

footer .payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer .payment-icon {
  height: 30px;
}

footer .links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

footer .links a {
  color: #006633;
  font-size: 14px;
  text-decoration: none;
}

footer .links a:hover {
  text-decoration: underline;
}

/* Секция социальных иконок */
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

footer .social-icon {
  color: #006400;
  font-size: 24px;
}

/* Текст внизу футера */
footer .footer {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
}

/* Адаптивные стили для футера */
@media (max-width: 768px) {
  footer .contact-grid {
    flex-direction: column;
  }

  footer .contact-column {
    margin-bottom: 30px;
  }

  footer .contact-column:not(:last-child)::after {
    display: none;
  }

  footer .contact-column:not(:last-child) {
    border-bottom: 1px solid #006400;
    padding-bottom: 20px;
  }

  footer .links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  footer .payment-icons {
    gap: 15px;
  }

  footer .payment-icon {
    height: 25px;
  }
}

/* ======================= */
/* Конец файла стилей       */
/* ======================= */
/* Основные стили для нового блока */
.custom-features-section {
  /* Стили из inline-атрибутов и исходного .features-section */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 20px 0px 20px 0px;
  margin-bottom: 50px;
  color: #333;
  line-height: 1.5;
  background-color: #fff;
}

.custom-features-container {
  max-width: 1320px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Стили для блока возможности – объединение inline и CSS */
.custom-feature-box {
  /* Inline-стили переопределяют часть свойств */
  padding: 0;
  flex-direction: row;
  align-items: center;
  column-gap: 3rem;
  /* Остальные свойства из основного стиля */
  background-color: #f9f9f9;
  border-radius: 15px;
  border: 1px solid #cccccc5c;
  transition: all 0.6s ease;
  position: relative;
  cursor: pointer;
  transform-origin: center center;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}

.custom-feature-box:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.custom-feature-box-large {
  flex: 2;
}

.custom-feature-box-small {
  flex: 1;
}

/* Заголовок возможности */
.custom-feature-title {
  /* Inline-стили переопределяют размер и отступы */
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 20px;
  /* Остальные свойства */
  color: #0a5c36;
  margin-top: 0;
}

/* Описание возможности */
.custom-feature-description {
  /* Inline-стили: font-size, отступы */
  font-size: 16px;
  margin-bottom: 20px;
  /* Из CSS */
  color: #4b5563;
}

/* Стиль текстового блока (левая колонка) */
.custom-feature-text {
  flex: 0 0 55%;
  padding: 15px 15px 15px 50px;
}

/* Стили для группы кнопок */
.custom-feature-buttons {
  display: flex;
  align-items: center; /* Опционально — выравнивание по вертикали */
  gap: 15px;
  margin-top: 30px;
}

/* Стили для кнопки "Регистрация" */
.custom-try-btn {
  background-color: #006633;
  color: white;
  border: none;
  font-weight: 550;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.trial-version {
  color: #005a45;
  font-weight: 450;
  text-decoration: underline;
}

/* Стили для кнопки "Войти" */
.custom-about-btn {
  background-color: transparent;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  color: black;
  text-decoration: none;
}

/* Стили для правой колонки с изображением */
.custom-feature-image-wrapper {
  /* Inline-стили */
  flex: 1;
  margin-top: 18px;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 7px 7px 7px 7px;
  transition: all 0.6s ease;

  /* Стили из CSS */
  position: relative;
  height: 330px; /* задаем необходимую высоту */
  max-height: none; /* убираем ограничение, чтобы height не конфликтовал */
  background-color: #e0e0e0;
  border-radius: 18px 0 0 0;
  overflow: hidden;
}

/* Стили для изображения */
.custom-feature-image {
  width: auto;
  height: calc(100% + 25px);
  object-fit: cover; /* Изображение масштабируется как cover */
  display: block;
  border-radius: 5px 5px 0 0;
  margin: 0;
}

/* Декоративная рамка вокруг изображения */
.custom-feature-image-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #d0d0d0;
  border-radius: 18px 0 0 0;
  border-bottom: none;
  border-right: none;
  transition: all 0.6s ease;
}

.custom-feature-box:hover .custom-feature-image-wrapper {
  background-color: #048963db;
}
/* Изменение рамки при наведении на блок */
.custom-feature-box:hover .custom-feature-image-border {
  border-color: #048963db;
  box-shadow: 0 0 10px rgba(10, 92, 54, 0.5);
}

.custom-feature-box:hover .custom-feature-image {
  border: 0px solid #ccc;
}

/* Недоступные функции */
.unavailable {
  text-decoration: line-through; /* зачеркнутый текст */
  color: #999; /* серый текст */
  display: inline-block;
  margin-left: 0; /* при необходимости, скорректируйте отступ */
  transition: color 0.3s;
}

.unavailable i {
  color: #e3342f; /* красный цвет крестика */
}
.feature-item.unavailable {
  display: block !important; /* каждый пункт всегда с новой строки */
}

/* ─── Cookie-bar ───────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 150%);
  max-width: 880px;
  width: 92%;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "WB Hauss", system-ui, sans-serif;
  z-index: 1200;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}
.cookie-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-bar.show {
  transform: translate(-50%, 0);
} /* slide-up */

/* Текст */
.cookie-bar__title {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: #212121;
}
.cookie-bar__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #3d3d3d;
}
.cookie-bar__desc a {
  color: #08b792;
  text-decoration: none;
}
.cookie-bar__desc a:hover {
  text-decoration: underline;
}

/* Кнопка */
.cookie-bar__btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00c47e, #00b268);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition: background 0.2s;
}
.cookie-bar__btn:hover {
  background: linear-gradient(90deg, #00d78d, #00c47e);
}
.cookie-bar__btn:active {
  transform: scale(0.97);
}

/*──────────────────────────────────────────────────────────────
  X-Pricer ▸ единый патч блока «Наши возможности»
  Цель: small- и large-карточки ведут себя ОДИНАКОВО
        • desktop (≥ 769 px): «отдаляем» скриншоты через --s
        • mobile  (≤ 768 px): фиксированная зона 220 px, кроп cover
──────────────────────────────────────────────────────────────*/

/* 0. Коэффициент «отдаления»: --s declared in :root */

/*────────────────── 1. DESKTOP  (≥ 769 px) ──────────────────*/
/*────────────────── 1. DESKTOP  (≥ 769 px) ──────────────────*/
@media (min-width: 769px) {
  /* small-карточки «zoom» 0.5 */
  .features-section .feature-box-small {
    --s: 0.51;
  }

  /* крышки по высоте + внутренний padding */
  .features-section .feature-box-small .feature-image-wrapper {
    max-height: 220px;
    overflow: hidden;
    padding: 6px 0 0 6px;
  }
  .features-section .feature-box-large .feature-image-wrapper {
    max-height: 240px;
    overflow: hidden;
    padding: 6px 0 0 6px;
  }

  /* ОБЩИЕ стили для картинок (cover) */
  .features-section .feature-box-small .feature-image,
  .features-section .feature-box-large .feature-image {
    width: calc((100% + 35px) / var(--s));
    height: calc((100% + 25px) / var(--s));
    object-fit: none; /* по умолчанию cover */
    object-position: left top;
    transform: scale(var(--s));
    transform-origin: left top;
    margin-bottom: -4px;
    border-radius: 18px 0 0 0;
  }

  /*–– Переопределяем ТОЛЬКО small → object-fit:none –––––––*/
  .features-section .feature-box-small .feature-image {
    object-fit: none;
    border-radius: 22px 0 0 0;
  }
}

/*────────────────── 2. MOBILE  (≤ 768 px) ───────────────────*/
@media (max-width: 768px) {
  :root {
    --s: 1.04; /* было 0.50, станет 0.35 */
  }
  /* зона под картинку: всегда 220 px у small И large          */
  .features-section .feature-image-wrapper {
    max-height: 230px;
    height: 100%;
    overflow: hidden;
    padding: 5px 0 0 5px; /* отступы только сверху/слева */
  }

  /* классический cover-кроп без масштабирования */
  .features-section .feature-box-small .feature-image,
  .features-section .feature-box-large .feature-image {
    width: calc((100% + 35px) / var(--s));
    height: calc((100% + 25px) / var(--s));
    object-fit: cover;
    object-position: left top;
    transform: none;
    margin-bottom: 0;
    border-radius: 14px 0 0 0; /* скругление даёт wrapper */
  }
}

/*────────────────── 2. MOBILE  (≤ 768 px) ───────────────────*/
@media (max-width: 510px) {
  :root {
    --s: 1.05; /* было 0.50, станет 0.35 */
  }
  /* зона под картинку: всегда 220 px у small И large          */
  .features-section .feature-image-wrapper {
    max-height: 230px;
    height: 100%;
    overflow: hidden;
    padding: 5px 0 0 5px; /* отступы только сверху/слева */
  }

  /* классический cover-кроп без масштабирования */
  .features-section .feature-box-small .feature-image,
  .features-section .feature-box-large .feature-image {
    width: calc((100% + 35px) / var(--s));
    height: calc((100% + 25px) / var(--s));
    object-fit: cover;
    object-position: left top;
    transform: none;
    margin-bottom: 0;
    border-radius: 14px 0 0 0; /* скругление даёт wrapper */
  }
}

/*────────────────── 2. MOBILE  (≤ 768 px) ───────────────────*/
@media (max-width: 435px) {
  :root {
    --s: 1.1; /* было 0.50, станет 0.35 */
  }
  /* зона под картинку: всегда 220 px у small И large          */
  .features-section .feature-image-wrapper {
    max-height: 230px;
    height: 100%;
    overflow: hidden;
    padding: 5px 0 0 5px; /* отступы только сверху/слева */
  }

  /* классический cover-кроп без масштабирования */
  .features-section .feature-box-small .feature-image,
  .features-section .feature-box-large .feature-image {
    width: calc((100% + 35px) / var(--s));
    height: calc((100% + 25px) / var(--s));
    object-fit: cover;
    object-position: left top;
    transform: none;
    margin-bottom: 0;
    border-radius: 14px 0 0 0; /* скругление даёт wrapper */
  }
}

/*────────────────── 3. Custom-карточки (оставляем как было) ──*/
.custom-feature-box {
  --s: 0.75;
}
.custom-feature-image {
  width: calc(100% / var(--s));
  height: calc(100% / var(--s));
  object-position: left top;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: left;
    padding: 20px 18px;
  }
  .cookie-bar__btn {
    width: 100%;
  }
  .cookie-bar__title {
    font-size: 14px;
  }
  .cookie-bar__desc {
    font-size: 14px;
  }
}

/* Адаптивные стили для экранов до 768px */
@media (max-width: 768px) {
  /* Общий блок секции */
  .custom-features-section {
    padding: 0px;
  }

  /* При необходимости уменьшаем заголовок */
  .custom-feature-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  /* Делаем контейнер вертикальным вместо горизонтального */
  .custom-features-container {
    flex-direction: column;
    align-items: stretch; /* растягиваем на всю ширину */
  }

  /* Сам блок-обёртка feature-бокса переходит в колонку */
  .custom-feature-box {
    flex-direction: column;
    margin-bottom: 20px;
    text-align: center; /* текст и кнопки по центру */
    align-items: center; /* элементы внутри тоже центрируем */
    padding: 10px 0px 0px 10px; /* немного добавим внутренних отступов */
  }

  /* Левая колонка (текст) на мобильном пусть будет во всю ширину */
  .custom-feature-text {
    flex: initial; /* убираем фиксированный flex-базис */
    width: 100%;
    text-align: left;
    padding: 30px; /* если не нужны отступы, либо поставьте свои */
    margin-bottom: 20px; /* отступ снизу перед изображением */
  }

  /* Правая колонка (обёртка для картинки) тоже во всю ширину */
  .custom-feature-image-wrapper {
    flex: initial;
    width: 100%;
    height: 250px;
    margin-left: 50px; /* убираем фиксированную высоту */
    margin-top: 0;
  }

  /* Адаптивное изображение: по ширине экрана, высота подстраивается */
  .custom-feature-image {
    width: calc(100% / var(--s)); /* 100 / 0.5 = 200 %  */
    height: calc(100% / var(--s)); /* всегда перекроет низ */
    border-radius: 0;
    margin-bottom: 0;
  }
}
