  /* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
  


/* ================== COOKIE BANNER (FIXED BOTTOM, !important) ================== */

/* Баннер фиксирован в нижней части экрана */
.cookie-banner-block {
  position: fixed !important;  /* чтобы точно перекрыть любые другие правила */
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;  /* очень высокий z-index, чтобы было поверх всего */

  background: #fce6ef;
  color: #000;
  padding: 20px 40px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);

  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  position: relative; /* для крестика внутри */
}

/* Крестик (X) большой и тонкий */
.cookie-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: none;
  border: none;
  font-size: 3rem;  /* крупный */
  font-weight: 200; /* тонкий */
  line-height: 1;
  cursor: pointer;
  color: #000;
}

/* Колонки (4 шт) */
.cookie-col {
  width: 220px;
  margin-right: 10px;
}
.cookie-col h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  text-transform: uppercase; /* прописные */
}
.cookie-col p {
  margin: 0 0 10px;
  line-height: 1.3;
}
.cookie-main-info {
  /* при желании увеличить:
  width: 280px; 
  */
}
.cookie-always-on {
  font-weight: bold;
  color: #d66fa8;
  margin-top: 5px;
}

/* Тумблер (короче ~20% => 32px) */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.toggle-line {
  width: 32px;  
  height: 2px;
  background: #aaa; 
  margin-right: 5px;
  transition: background 0.3s;
  position: relative;
}
.toggle-circle {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 50%;
  transform: translate(0, -50%);
  transition: left 0.3s, background 0.3s;
}
.toggle-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: bold;
  transition: color 0.3s;
}

/* ON => кружок справа */
.cookie-toggle[data-state="on"] .toggle-line {
  background: #d66fa8;
}
.cookie-toggle[data-state="on"] .toggle-circle {
  background: #d66fa8;
  left: 22px;
}
.cookie-toggle[data-state="on"] .toggle-label {
  color: #d66fa8;
}

/* OFF => кружок слева */
.cookie-toggle[data-state="off"] .toggle-line {
  background: #aaa;
}
.cookie-toggle[data-state="off"] .toggle-circle {
  background: #aaa;
  left: 0;
}
.cookie-toggle[data-state="off"] .toggle-label {
  color: #666;
}

/* Адаптация на мобильных */
@media (max-width: 768px) {
  .cookie-banner-block {
    flex-direction: column;
    padding: 20px;
  }
  .cookie-col {
    width: auto;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .cookie-close-btn {
    top: 10px;
    right: 10px;
  }
}



/* Для всего сайта используем Montserrat */
body {
  margin: 0;
  padding: 0;
  /* Меняем семь шрифтов на один */
  font-family: 'Montserrat', sans-serif; 
  /* сохраняем остальные настройки */
  font-size: 16px;
  line-height: 1.5; 
  /* фон, цвета, и т.д. */
  background: linear-gradient(to bottom, #0b3d2e 0%, #1e7f5c 100%);
  color: #000;  
}
  
  /* ===== Унифицированные базовые стили ===== */

    /* Заголовки h2 (над каруселями) — белые, нормальная жирность */
    /* h2 {
      font-size: 1.3rem;
      font-weight: normal;
      color: #fff;
      margin-top: 30px;
      margin-bottom: 20px;
    } */

    h2 {
      font-size: 1.4em; /* выбрали вариант, который вам нужен */
      font-weight: normal; /* если хотите оставить */
      color: #fff;
      text-align: left;
      margin-top: 30px;
      margin-bottom: 20px; 
    }


    .tumbler-container.big {
      width: 70px !important;
      height: 36px !important;
      border-radius: 18px !important;
      /* Если нужно, можно задать background-color через класс, но он наследуется, если переключен solo-gratis */
    }
    .tumbler-container.big .tumbler-knob {
      width: 30px !important;
      height: 30px !important;
      top: 2px; /* оставляем как в базовом варианте */
      left: 2px; /* по умолчанию */
    }
    .tumbler-container.big.solo-gratis .tumbler-knob {
      left: 26px !important;
    }


    /* Логотип (если нужно ограничить ширину, делаем это здесь или inline) */
    .main-logo {
      display: block; 
      margin: 20px auto 0;
      /* width: 250px;  если нужно принудительно */
    }
    /* Слоган под логотипом, делаем крупнее и по центру */
    p.tagline {
      font-size: 1.4rem; /* увеличить до ~22px */
      color: #fff;
      margin: 0;
      text-align: center;
      margin-bottom: 20px; 
    }

    /* Контейнер. Если нужно, можно задать color: #fff, 
       но у вас часть текста тёмная (на бежевом фоне), 
       так что обычно не надо. */
    /* .container {
      max-width: 85%; 
      margin: 0 auto;
      padding: 0 20px; 
    } */

    .container {
      max-width: 800px; 
      margin: auto;
      padding: 20px;
    }

    .container .carousel-container {
  max-width: none !important;
  width: auto !important;
}

    /* ===== Кнопка "Пользователь" в правом верхнем углу ===== */
    #user-icon {
      position: fixed; 
      top: 20px; 
      right: 20px; 
      cursor: pointer; 
      z-index: 1000;
      background: none;
      border: none;
    }
    #user-icon img {
      width: 30px;
      height: 30px;
    }

    /* ===== Блок для языка (мини-плашка) ===== */
    #lang-switch {
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 1000;
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    /* Иконка языка */
    #lang-switch img {
      width: 24px;
      height: 24px;
      margin-right: 6px;
    }
    /* Плашка с аббревиатурой текущего языка */
    #lang-abbrev {
      background-color: #d4af37; /* золотистый */
      color: #fff;
      border-radius: 6px;
      padding: 4px 8px;
      font-size: 0.9rem;
      font-weight: bold;
    }

    /* ===== Выпадающее меню языков (скрыто по умолчанию) ===== */
    #lang-menu {
      position: fixed;
      top: 60px;  /* чуть ниже иконки */
      left: 20px; 
      background-color: #333;
      color: #fff;
      border-radius: 6px;
      padding: 8px;
      display: none; /* по умолчанию скрыто */
      z-index: 1100;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    #lang-menu .lang-item {
      padding: 4px 8px;
      font-size: 0.9rem;
      cursor: pointer;
      white-space: nowrap;
    }
    #lang-menu .lang-item:hover {
      background-color: rgba(255,255,255,0.2);
    }

    /* ===== Книжная читалка (блок) ===== */
    #mini-book-frame {
      width: 100%;          
      background-color: #fdf6e3; /* бежевый фон */
      position: relative;
      margin: 20px 0;       
    }
    /* Вложенный контейнер для текста */
    #mini-book-frame .container {
      padding: 40px;
    }

    /* На мобильных уменьшим padding, чтобы текст не "уезжал" вправо */
    @media (max-width: 768px) {
      #mini-book-frame .container {
        padding: 20px;
      }
    }




  /* h2 {
    font-size: 1.4em;
    margin-top: 30px;
    text-align: left;
    color: #fff; book-roller
  } */

  /* Контейнер для карусели с нативным скроллом */
  .carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .carousel {
    display: inline-flex;
    gap: 5px;
    vertical-align: top;
  }

  .book-card {
    display: inline-flex;
    flex-direction: column;
    width: 280px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    margin: 10px 0;
    background: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    vertical-align: top;
  }

  @media (max-width: 768px) {
    .book-card {
      width: 75vw;
    }
  }

  .book-card-top {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .book-card-top h3 {
    font-size: 0.9em;
    margin: 0 0 3px;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .book-card-top .subtitle {
    font-size: 0.8em;
    color: #555;
    font-style: italic;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .image-container {
    position: relative;
    width: 100%;
    background-color: rgba(0,128,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 390px; */
  }

  .image-container img {
    /*  position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    background-color: #eee;
    border-radius: 0; 
    display: block;
    cursor: pointer;
   /*  z-index: 1; */
  }

  .no-image-text {
    font-size: 0.9em;
    color: #000;
    font-style: italic;
    padding: 5px;
    text-align: center;
  }

  .book-card-bottom {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .book-card-bottom .price {
    font-size: 0.9em;
    color: #000;
    margin: 5px 0;
  }

  .book-card-bottom button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-top: 5px;
  }

  .book-card-bottom button:hover {
    background-color: #0056b3;
  }

  .main-logo {
    display: block;
    margin: 20px auto 0;
    width: 40%;
    height: auto;
    position: relative;  
  }

  @media (max-width: 768px) {
    .main-logo {
      width: 70%;
    }
  }

  .tagline {
    display: block;
    margin: 50px auto 0;
    width: auto;
    text-align: center;
    color: #fff;
  }

  @media (max-width: 768px) {
    .tagline {
      width: 60%;
      font-size: 1.4em;
    }
  }

  #auth-container {
    position: fixed; 
    top: 60px; 
    right: 20px; 
    width: 250px; 
    background-color: #ffffff; 
    padding: 15px; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    display: none;
  }

  #auth-container h3 {
    margin: 0 0 10px; 
    font-size: 1.2em;
  }

  #auth-container input {
    width: 100%; 
    padding: 8px; 
    margin-bottom: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px;
  }

  #auth-container button {
    width: 100%; 
    padding: 8px; 
    margin-bottom: 5px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
  }

  #auth-container button:nth-child(3) {
    background-color: #007bff; 
    color: #fff;
  }

  #auth-container button:nth-child(4) {
    background-color: #28a745; 
    color: #fff;
    margin-bottom: 10px;
  }

  #auth-container #signOutButton {
    background-color: #dc3545; 
    color: #fff; 
    margin-top: 5px; 
    display: none;
  }

  #payment-form {
    display:none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  #payment-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  #payment-form input {
    width:100%; 
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    border:1px solid #ddd;
  }

  #payment-form button {
    width:100%; 
    background-color: #28a745; 
    color: #fff; 
    border: none; 
    padding: 10px; 
    border-radius: 4px;
    margin-bottom: 10px;
  }

  #payment-form button:last-child {
    background-color: #dc3545; 
    color: #fff; 
    margin-top: 0;
  }

  #myBooksButton {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #6c757d;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    display: none;
    cursor: pointer;
    z-index: 1000;
  }

  #user-icon img {
    width: 30px;
    height: 30px;
  }

  #user-icon {
    background: none;
    border: none;
    cursor: pointer;
  }

  .mini-phrase {
    cursor: pointer;
    margin-right: 3px;
    position: relative;
  }
  
  .mini-phrase.active {
    background-color: rgba(50,205,50,0.2); /* слегка подсветим зелёным */
  }

  #mini-reader-block,
  #content {
    font-size: 1.4em;
  }

/***********************************************
 * Блок презентации способов перевода (УПРОЩЁННАЯ ВЕРСИЯ)
 ***********************************************/

/* (A) Зелёный фон + контейнер */
.screens-presentation-block {
  background-color: #daf0e3;
  /* background-color: #358a59; */
  margin: 0;               
  padding: 40px 0;         
  width: 100%;
  box-sizing: border-box;
}
.screens-block-container {
  /* подгоняем под вашу общую сетку */
  max-width: 800px; /* или 85%, или px — как у вас настроено */
  margin: 0 auto;
  padding: 0 20px;
}
.screens-intro-title {
  font-size: 1.3rem;
  color: #000000;
  margin: 0 0 30px;
  text-align: left;
}

/* (B) Горизонтальная прокрутка */
.screens-scroll-container {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
  position: relative;
  margin-bottom: 20px;

  /* «Вылезание» последней карточки вправо, чтобы было видно прокрутку */
  margin-right: -50px;
  padding-right: 50px;
}
.screens-scroll-container::after {
  content: "";
  display: inline-block;
  width: 1px; /* чтобы последняя карточка частично «торчала» */
}

/* (C) Карточка (каждая) */
.screen-card {
  display: inline-block;
  vertical-align: top;
  width: 250px;      
  margin: 0 15px 20px 0;
  background-color: transparent;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Горизонтальная (если нужна) */
.screen-card.horizontal {
  width: 500px;
}

/* (D) Подпись — сверху, многострочная, БЕЗ фона */
.screen-caption {
  display: block;
  color: #000000;
  font-size: 1.2rem;
  line-height: 1.4;
  /* Чтобы текст переносился */
  white-space: normal; 
  word-wrap: break-word;

  /* Минимальная высота ~2 строки, чтобы 
     у карточки с короткой подписью картинка 
     не «подпрыгивала» выше других */
  min-height: 2.8em; /* 2 строки × line-height 1.4 = 2.8em */

  /* Отступы вокруг подписи */
  margin: 0 0 8px;
  padding: 0; /* фон убрали, значит внутренний отступ не нужен */
}

/* (E) Картинка */
.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* (F) На очень узких экранах пусть карточка занимает 80% */
@media (max-width: 480px) {
  .screen-card {
    width: 80%;
  }
}



/***********************************************
 * Блок с четырьмя карточками (benefits-block)
 ***********************************************/

/* Внешний блок со светло-зелёным фоном */
.benefits-block {
  background-color: #daf0e3;  /* светло-зелёный фон, меняйте по вкусу */
  padding: 50px 0;           /* отступ сверху/снизу */
  width: 100%;
  box-sizing: border-box;
}

/* Внутренний контейнер (чтобы центрировать контент
   и ограничить максимальную ширину, аналог вашей .container) */
.benefits-container {
  max-width: 900px; /* или 85%, или 800px — что вам нужно */
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовок над карточками */
.benefits-title {
  font-size: 1.4em;  /* чуть крупнее */
  color: #333;
  margin: 0 0 30px;
  text-align: left;  /* или center, если нужно по центру */
  font-weight: normal; /* если хотите норм */
}

/* Обёртка для карточек: используем flex, 
   чтобы на десктопе было 2 в ряду (по желанию),
   а на мобильном шли друг под другом */
.benefits-cards {
  display: flex;
  flex-wrap: wrap;        /* чтобы переносились на новую строку */
  gap: 20px;              /* расстояние между карточками */
  justify-content: center;/* центрируем по горизонтали */
}

/* Сами карточки */
.benefit-card {
  background-color: #ffffff; /* белый фон по умолчанию */
  border-radius: 16px;       /* скруглённые углы */
  width: calc(50% - 20px);   /* "2 в ряд" на десктопе, учитывая gap: 20px */
  min-height: 250px;         /* чтобы были примерно квадратные */
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  display: flex;
  flex-direction: column;
  align-items: center; /* иконка и текст по центру */
  justify-content: flex-start;
  text-align: center; 
  box-sizing: border-box;
}

/* Если хотите 1 в ряд на мобильном (до 768px), 
   переопределяем ширину */
@media (max-width: 768px) {
  .benefit-card {
    width: 100%; /* или 90% */
    margin: 0;
  }
}

/* Класс для "розовой" карточки с текстурой (пример) */
.benefit-card.pink-bg {
  /* Любой розовый фон */
  background: #fce6ef center/cover no-repeat;
  /*  "pink-texture.png" — ваша текстура. 
      Или можно градиент, или просто #fce6ef. */
}

/* Иконка внутри карточки */
.benefit-icon {
  width: 64px;    /* подберите нужный размер */
  height: 64px;   
  object-fit: contain; 
  margin-bottom: 15px;
  /* Цвет иконок:
     если это PNG, лучше брать белые/чёрные, 
     но перекрасить уже нельзя. 
     Если это SVG, можно поменять fill в CSS. 
  */
}

/* Заголовок внутри карточки */
.benefit-card-heading {
  font-size: 1.1em;
  margin: 0 0 10px;
  color: #333; /* или #000 */
}

/* Текст внутри карточки */
.benefit-card-text {
  font-size: 0.95em;
  line-height: 1.4;
  color: #555;
  margin: 0;
}