/* Общие стили */
/* Общий стиль для SEO-боксов */
.seo-box {
  border: 4px solid currentColor;
  border-radius: 16px;
  padding: 1.618em;
  margin: 1.618em 0;
  font-size: 1em;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Чередование шахматного порядка */
.seo-box:nth-child(odd) {
  /* Слева */
  margin-left: 5%;
  margin-right: auto;
}
.seo-box:nth-child(even) {
  /* Справа */
  margin-right: 5%;
  margin-left: auto;
}

/* Ширина на десктопе */
@media (min-width: 769px) {
  .seo-box {
    width: 66.66%; /* 2/3 экрана */
  }
}

/* Ширина на мобильных */
@media (max-width: 768px) {
  .seo-box {
    width: 80%; /* 4/5 экрана */
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.box-color-1 { color: #FFCA09; } 
.box-color-2 { color: #90ADC6; } 
.box-color-3 { color: #333652; } 
.box-color-4 { color: #BEEFFF ; } 
.box-color-5 { color: #5C646B ; } 
.box-color-6 { color: #FFCA09; } 

html {
  -webkit-text-size-adjust: none;
}

.readings-title {
  font-family: 'Arial', sans-serif;
  font-size: 30px;
  color: #333652;
  text-align: center;
  margin: 30px 0;
}

.readings-h2 {
  font-family: 'Arial', sans-serif;
  font-size: 25px;
  color: #333652;
  text-align: center;
  margin: 30px 0;
}

.readings-p {
  font-family: 'Arial', sans-serif;
  font-size: 20px;
  color: #333652;
}

@media (max-width: 768px) {
  #seoText li.readings-p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  #seoText li.readings-p {
    font-size: 16px !important;
    line-height: 1.4em !important;
  }
}

#seoText a {
  color: #90ADC6;
  text-decoration: none;
}

#seoText {
  width:90%;
  margin:0 auto;
  box-sizing:border-box;
}

#hiddenSeoText {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

#hiddenSeoText.expanded {
  max-height: 5000px; /* или auto, но max-height анимируется красивее */
}

#toggleSeoButton {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background-color: #5C646B;       /* Твоя заливка */
  color: #BEEFFF;                  /* Цвет текста */
  border: none;                    /* Без рамки */
  border-radius: 4px;              /* Скругление углов */
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

#toggleSeoButton:hover {
  background-color: #4a5258;       /* Потемнее при наведении */
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



@font-face {
  font-family: 'TTMasters';
  src: url('fonts/TTMasters.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

  /* Шапка и подвал */
header, footer {
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
}
.header-container, .footer-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.hamburger {
  cursor: pointer;
  color: #FFCA09;
  font-size: 36px;     /* Увеличили размер */
  margin-right: 120px;  /* Отодвинули логотип */
}
.logo {
  font-weight: bold;
  font-size: 88px;
  color: #333652;
  cursor: pointer;
  font-family: 'TTMasters';
  text-decoration: none;
}
.right-section a {
  color: #FFFFFF;
  margin-left: 20px;
  text-decoration: none;
}
.right-section span {
  margin-left: 20px;
  font-size: 28px;
  color: #5C646B;
  cursor: pointer;
}
nav a {
  margin-right: 15px;
  text-decoration: none;
  color: #FFCA09;
}
nav a:hover {
  color: #000;
}
#mobileMenu {
  display: none;
  background: #90ADC6;
  padding: 10px;
}
#mobileMenu a {
  color: #FFCA09;
  text-decoration: none;
}
#mobileMenu {
  position: fixed;
  top: 120px; /* под шапкой */
  left: 0;
  width: 260px; /* узкое меню */
  background: #90ADC6;
  padding: 15px 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: 4px 0 10px rgba(0,0,0,0.2);
  border-right: 1px solid #ccc;
  border-top: none;
  border-bottom-right-radius: 8px;
}

#mobileMenu a {
  display: block;
  padding: 10px 0;
  color: #FFCA09;
  text-decoration: none;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}

@media (max-width: 768px) {
  #mobileMenu {
    top: 370px; /* под шапкой в мобильной версии */
  }
}

#mobileMenu.open {
  display: flex;
}

 /* Кнопка отправки расклада на почту */
.email-send-btn {
  display: block;               /* чтобы можно было управлять выравниванием */
  background-color: #FFCA09;
  color: #333652;
  padding: 12px 24px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin: 20px 0 0 auto;        /* ключевой момент: отступ сверху и автоматический слева — уходит вправо */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 1em;
  width: 20vw;
  max-width: 240px;
  min-width: 140px;
}



.footer-links a {
  margin-left: 15px;
  text-decoration: none;
  color: #000;
}

 /* Контент страниц about, terms, privacy */
 .content {
  width: 90%;
  margin: 20px auto;
  color: #5C646B;
  background-color: #E9EAEC;
  padding: 20px;
  flex: 1;
}
.content h2 {
  margin-top: 0;
}
  /* Hero Section для страницы три карты и карта дня */
   .hero-section {
    width: 90%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  .start-button {
    display: inline-block;
    background-color: #FFCA09;
    color: #333652;
    padding: 10px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  .quote {
    font-style: italic;
    margin-top: 15px;
  }

/* Баннер */
  .welcome-banner {
    display: none;
    background-color: #90ADC6; /* фон */
    color: #FFCA09;            /* текст */
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  /* buy coins and profile */
  footer {
    margin-top: auto;
  }
  /* from about */
  

/* from auth */
  .auth-container { width: 500px; margin: 40px auto; background-color: rgba(255,255,255,0.8); padding: 20px; border-radius: 10px; text-align: center; }
  .auth-container h2 {
  margin-top: 0;
  color: #333652;
  font-size: 18px; 
}

  .auth-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 18px; 
}

  .auth-button {
  background-color: #FFCA09;
  color: #333652;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px; 
}

  .auth-link { display: block; margin-bottom: 10px; color: #1a2b6d; text-decoration: none; }
  .auth-link.large-link {
  font-size: 20px;
  color: #FFCA09;    
}
  .privacy-label { display: block; font-size: 12px; color: #5C646B; margin: 0 auto 10px; text-align: left; width: 80%; }
  .privacy-label a { color: #5C646B; text-decoration: underline; }

/* from buy_coins */

      .buy-content {
        width: 90%;
        margin: 20px auto;
        background-color: #fff;
        padding: 20px;
        flex: 1;
      }
      .buy-content h2 {
        color: #333652;
      }
      .coin-option {
        margin-bottom: 10px;
      }
      .coin-option span {
        margin-right: 15px;
        color: #333652;
      }
      .buy-button {
        display: inline-block;
        background-color: #FFCA09;
        color: #333652;
        padding: 5px 15px;
        cursor: pointer;
        text-decoration: none;
        border-radius: 5px;
      }
      .terms-link {
        display: inline-block;
        margin-top: 20px;
      }
      .terms-link a {
        color: #90ADC6;
        text-decoration: none;
      }
      

/* from card_of_day */
           
     
}

  /* Блок с результатом "Карта дня" */
      .card-day-result {
        width: 90%;
        margin: 30px auto;
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        text-align: center;
      }
      .card-day-result h3 {
        color: #333652;
        font-size: 2.5em;
        margin: 0 auto 10px auto;
      }
    .card-day-result img {
  width: 310px;
  height: 496px;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px auto;
}
      .card-day-result p {
        color: #333652;
        font-size: 1.5em;
        width: 496px;
        margin: 0 auto;
        overflow-wrap: break-word;
            }
  
/* from index*/
        
.hero {
  width: 100%;
  max-width: 1100px;
  height: 800px;
  margin: 40px auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  background-color: #000; /* fallback если картинка не загрузится */
}

.slides-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/*  Встроенные стрелки */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

/* Адаптация для мобильных */
@media (max-width: 820px) {
  .hero {
    height: 300px;
  }

  .arrow {
    font-size: 18px;
    padding: 8px 12px;
  }

  .slide a {
    pointer-events: none; /* чтобы случайно не кликнуть весь экран на маленьких экранах */
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #BEEFFF;
  color: #333652;
  padding: 20px 30px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  max-width: 90%;
  width: 400px;
}


.cookie-banner button {
  margin-left: 12px;
  background: #FFCA09;
  color: #333652;
  border: none;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}


/* from privacy*/
          

/* from profile*/
  /* Контент профиля */
          .profile-content {
            width: 90%;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            flex: 1;
          }
          .profile-content h2 {
            margin-top: 0;
            color: #333652;
          }
          /* Кнопка Выйти */
          .logout-button {
            display: inline-block;
            background-color: #FFCA09;
            color: #333652;
            padding: 8px 15px;
            cursor: pointer;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 20px;
          }
        

/* from terms - no unique styles*/

/* from tricard*/

  .hero-section img {
    max-width: 200px;
    display: block;
    margin: 0 auto 10px auto;
  }

  /* Блок с картами после нажатия "Начать расклад" */
  .tarot-result {
    width: 90%;
    margin: 30px auto 5px auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap; /* при малой ширине экрана элементы переносятся */
  }
  .card-wrapper {
    text-align: center;
    /* Фиксированная ширина равная размеру карты */
    width: 340px;
    margin-bottom: 20px;
  }
  .card-wrapper h3 {
    color: #454E60;
    width: 340px;
    overflow-wrap: break-word;
    margin: 0 auto 10px auto;
    /* Увеличенный размер шрифта (2,5 раза от базового) */
    font-size: 2.5em;
  }
  .card-wrapper img {
    max-width: 340px;
    display: block;
    margin: 0 auto 10px auto;
  }
  .card-wrapper p {
    color: #454E60;
    width: 340px;
    overflow-wrap: break-word;
    margin: 0 auto;
    /* Увеличенный размер шрифта */
    font-size: 1.5em;
  }
  /* Стиль для блока Meaning */
  .meaning-block {
    width: 90%;
    margin: 0 auto 10px; /* Сверху 0, снизу 10px */
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center; /* Центрирование текста */
  }
  .meaning-block p {
    color: #454E60;
    overflow-wrap: break-word;
    /* Увеличенный размер шрифта */
    font-size: 2.5em;
  }

#cardDayResult {
  position: relative;
}

#cardAnchor {
  width: 310px;
  height: 496px;
  display: block;
  background-color: transparent;
}

/* Анимация переворота карты дня */
.flip-inner {
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-day-result {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

#cardDayName {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: -20px;  /* было -60px, теперь только чуть приподнимаем */
  color: #333652;
  position: relative;
  z-index: 20;
}

#cardDayMeaning {
  font-size: 1.6em;
  max-width: 600px;
  margin: 10px auto 0;   /* было 20px */
  padding: 0 20px;
  color: #444;
  line-height: 1.4em;    /* было 1.8em */
}

@media (max-width: 768px) {
  #cardAnchor {
    margin-top: -120px;     /* физически поднимаем якорь вверх */
  }

  #cardDayMeaning {
    margin-top: 10px;
    font-size: 1.4em;
    line-height: 1.4em;
    padding: 0 15px;
  }

  #cardDayName {
    font-size: 1.8em;
    margin-top: -20px;
    margin-bottom: 5px;
  }
}

/* Кнопка Обновить на profile.html */
#refreshButton {
  background-color: #E9EAEC;
  border: 2px solid #5C646B;
  color: #333652; 
  font-size: 0.9rem;
  padding: 4px 10px;
  margin-left: 12px;
  border-radius: 6px;
  cursor: pointer;
}

#refreshButton:hover {
  background-color: #E9EAEC;
}

.seo-box p,
.seo-box li {
  text-align: left;
}

main {
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}


@media (max-width: 768px) {
  /* Логотип меньше */
  .logo {
    font-size: 32px !important;
  }

  /* Бургер меню - убираем отступ, чтобы не толкало логотип */
  .hamburger {
    margin-right: 10px;
    font-size: 20px;
  }

  /* Правая часть шапки - чуть меньше */
  .right-section span {
    font-size: 10px;
  }

  /* Контейнер шапки - равномерное распределение */
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Hero - адаптивная высота */
  .hero {
    height: auto;
  }

  .hero .slide {
    min-height: 200px;
  }

  /* Слайды и стрелки - адаптивный размер */
  .arrow {
    font-size: 18px;
    padding: 8px 12px;
  }

  /* Кнопки в hero-section - на всю ширину */
  .start-button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  /* hero-section */
  .hero-section {
    width: 98%;
    padding: 5px;
  }
  .hero-section .start-button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .hero-section .quote p {
    font-size: 10px;
    line-height: 1.4em;
  }

  /* seoText контейнер */
  #seoText {
    width: 95%;
  }

  /* seo-box адаптация */
  #seoText .seo-box {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
  }

  /* seo-box заголовки */
  #seoText .seo-box h2 {
    font-size: 20px;
    margin: 15px 0;
  }

  /* seo-box параграфы и списки */
  #seoText .seo-box p,
  #seoText .seo-box li {
    font-size: 15px;
    line-height: 1.5em;
  }

  /* кнопка Узнать больше */
  #toggleSeoButton {
    width: 100%;
    font-size: 16px;
  }
    .readings-title {
    font-size: 15px;
    margin: 20px 0;
    text-align: center;
  }

  .readings-p {
    font-size: 15px;
    line-height: 1.5em;
  }
    .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .footer-links a {
    margin-left: 0;
    font-size: 14px;
  }

  .footer-container div:last-child {
    font-size: 14px;
  }
}

  .sbp-icon {
  height: 25px;
  vertical-align: middle;
  margin-left: 6px;
}
@media (max-width: 768px) {
  /* Выравнивание по ширине */
  #definitionPast,
  #definitionPresent,
  #definitionFuture,
  #cardDayMeaning,
  #meaningText {
    text-align: justify;
  }

  /* Уменьшение шрифта для дефиниций */
  #definitionPast,
  #definitionPresent,
  #definitionFuture {
    font-size: 14px;
    line-height: 1.4em;
  }

  /* Уменьшение шрифта для общего значения, но чуть крупнее */
  #meaningText,
  #cardDayMeaning {
    font-size: 16px;
    line-height: 1.5em;
  }

  /* Ширина кнопки */
  #emailSendButton {
    width: 80%;
    max-width: none;
    min-width: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (max-width: 768px) {
  #cardSelectionContainer div {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 0 4px;
  }

  #cardSelectionContainer img {
    max-width: 32% !important;
    height: auto;
  }
}

@media (max-width: 768px) {
  #cardDayMeaning {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 10px;
    font-size: 1.4em;
    line-height: 1.4em;
    padding: 0 15px;
  }
}
@media (max-width: 768px) {
  .auth-container {
    width: 90% !important;
    box-sizing: border-box;
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center;
  }

  .hamburger {
    margin: 0 !important;
    padding: 0 !important;
  }

  .logo {
    margin-left: 45px; /* небольшой отступ от бургера */
    white-space: nowrap; /* чтобы не переносился на 2 строки */
  }

  .right-section {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
  }
}
.auth-create-button {
  background-color: #90ADC6;
  color: #333652;
  font-family: inherit; /* наследует шрифт */
  font-size: 18px; 
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}

.oracle-container .start-button {
     display: inline-block;
    background-color: #FFCA09;
    color: #333652;
    font-size: 18px; 
    padding: 10px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-weight: bold;
}

.waring-box {
  border: 4px solid currentColor;
  border-radius: 16px;
  padding: 1.618em;
  margin: 1.618em 0;
  font-size: 1em;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Контейнер основного блока */
.oracle-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Контейнер карточек */
.oracle-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Стили для каждой карточки */
.oracle-card {
  flex: 1 1 260px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #BEEFFF;
}

/* Заголовок карточки */
.oracle-card h2 {
  font-size: 1.2rem;
  color: #333652;
  margin-bottom: 10px;
}

/* Текст карточки */
.oracle-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Кнопка */
.oracle-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #333652;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-buttons a {
  display: block;
  max-width: 480px;
  margin: 12px auto;
  text-align: center;
}

.main-with-sidebar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

.main-content {
  flex: 1 1 65%;
}

.sidebar-ad {
  flex: 0 0 300px;
  max-width: 300px;
  background: #f1f1f1;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .main-with-sidebar {
    flex-direction: column;
    align-items: center;
  }

  .sidebar-ad {
    margin-top: 20px;
    width: 100%;
    max-width: none;
  }
}



