/*#region commons*/
html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: 'Open Sans', 'Inter', Tahoma, Arial;
  /*background-color: #f2f1ef;*/
  background-color: #0A240F;
  color: #4D473A;
  margin: 0;
  padding: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

  body.login-page .info-banner {
    margin-top: 0px;
  }
  body.profile-open {
    overflow: hidden;
  }

.page-wrapper {
  flex: 1; /* занимает всё доступное пространство */
}

.site-footer {
  padding: 20px;
  /*background-color: #0A240F;*/
  background: linear-gradient( to bottom, #1e3821 20%, #0A240F 100% );
  text-align: center;
  font-size: 0.9em;
}

.footer-copy {
  color: rgba(255,255,255,0.8);
}
.footer-socials {
  margin-bottom: 10px;
}

.footer-socials a i {
  margin: 0 8px;
  color: rgba(255,255,255,0.50);
  font-size: 2em;
  text-decoration: none;
  transition: color 0.3s ease;
}

    .footer-socials a i:hover {
      color: rgba(255,255,255,0.8);
    }
    .footer-socials a:link,
    .footer-socials a:visited,
    .footer-socials a:hover,
    .footer-socials a:active {
      color: #6C3042;
    }
.sub-head,
.lined-title
{
  font-size: 1.8em; /* или другой уровень */
  display: flex;
  align-items: center;
  text-align: center;
  font-weight: lighter;
  color: #4D473A;
  margin: 20px 0;
  justify-content: center;
  width: 100%;
}
.hide {
  display: none;
}
/*всегда изначально больше, чем нужно, если это не исправлять здесь
  см 
  .sub-head,
.lined-title
*/
.lecturer-heading .lined-title {
  font-size: 1em;
}

  .sub-head::before,
  .sub-head::after,
  .lined-title::before,
  .lined-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #4D473A;
    margin: 0 15px;
  }

  /*перенос слов*/
.hyphenated-text {
  hyphens: auto;
  word-wrap: break-word;
}

.read-only {
  user-select: none; /* Prevent text selection */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  -webkit-user-select: none; /* Chrome, Safari, Opera */
  /*pointer-events: none;*/ /* Disable pointer events to prevent cursor from appearing */
}

.not-selectable {
  user-select: none;
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  -webkit-user-select: none; /* Chrome, Safari, Opera */
}

p {
text-align:justify;
}

/* Общий стиль для всех ссылок */
a {
  color: cornflowerblue; /* Цвет ссылок */
  text-decoration: none; /* Убираем подчеркивание */
  transition: color 0.3s ease-in-out;
  font-weight:bolder;
}

  a[target="_blank"]::after {
    content: " 🔗"; /* Добавляет значок */
    /*font-size: 0.8em;*/
    color: cornflowerblue;
  }
  /* Убираем стиль посещенных ссылок */
  a:visited {
    color: cornflowerblue; /* Оставляем тот же цвет */
  }

  /* Эффект при наведении */
  a:hover {
    color: dodgerblue; /* Цвет меняется при наведении */
    /*text-decoration: underline;*/ /* Добавляем подчеркивание */
  }

  /* Отключаем обводку после клика */
  a:focus {
    outline: none;
  }
/*#endregion commons*/

/*#region container */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}
/*#endregion container */

/*#region Главное меню (фиксированное) */
.main-header {
  background-color: white;
  padding: 15px 0;
 /* border-top: .5px solid #dee2e6;
  border-bottom: .5px solid #dee2e6;*/
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

  .main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

.logo {
  z-index: 1001;
  position: relative; /* важно! иначе z-index не сработает */
}
.logo img {
  height: 48px;
  transition: height 0.3s ease;
}

.main-nav {
padding-top:10px;
padding-bottom:10px;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  /* color: #ccc;
  font-weight: normal;*/
  transition: color 0.3s ease;
  /*font-size: 14px;
  letter-spacing: 0.05em;*/
  font-size: 0.85em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fa799;
}

  .main-nav a:hover {
    color: #fff;
  }

/* Исправление уменьшения логотипа при скролле */
body.scrolled .main-header {
  padding: 8px 0;
}

body.scrolled .logo img {
  height: 32px;
}
body.scrolled .burger-close {
  top: 5px;
  font-size: 1.8em;
}
/*#endregion Главное меню (фиксированное) */

/*#region Герой-секция */
.hero {
  /* background-size: cover;
  background-position: center;
  text-align: center;
  padding: 100px 20px 20px 20px;
  margin: 0;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 120px;*/
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 30px 30px 100px;
  position: relative;
  overflow: hidden;
  background: #36415f;
}

  .hero .container {
    padding: 20px;
  }

  .hero p {
    margin-bottom: 20px;
    justify-content: normal;
    padding: 10px;
  }

  .hero .btn {
    background-color: #8b5e3b;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: normal;
    transition: background 0.3s ease;
    /*font-size: .9em;*/
    margin-top: 50px;
    display: inline-block;
  }

    .hero .btn:hover {
      background-color: #6e452a;
    }

/*#endregion Герой-секция */

/*#region about */
.about {
  padding: 60px 20px;
  background-color: #f8f5f2;
  text-align: center;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
}
  .about .container {
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    width: 80%;
    /*height: 720px;
    min-height: 400px;*/ /* Минимальная высота */
    background-size: contain; /* Изображение полностью помещается */
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
  }

  .about p {
    padding: 10px;
  }
/*#endregion about */

/*#region info-section */
.info-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex-direction: row; /* Текст слева, картинка справа */

  padding: 60px 20px;
  background-color: #f8f5f2;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
  
}
/* Строка с colspan (text0) занимает всю ширину */
.full {
  grid-column: span 2;
  text-align: center;
  font-weight: bold;
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

  .responsive-table td {
    padding: 0px 0px 0 0;
    text-align: left;
  }

  .responsive-table.columns-2 tr:nth-child(odd) {
    background-color: #f8f5f2; /* светлый фон нечетных строк */
  }

  .responsive-table.columns-2 tr:nth-child(even) {
    background-color: #ffffff; /* белый фон четных строк */
  }

.info-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

  .info-section h2 {
    width: 100%; /* Заголовок растянут на всю ширину контейнера */
    text-align: center;
  }

  .info-section .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .info-section .text {
    flex: 1;
    /*padding-right: 20px;*/ /* Добавляем отступ справа, чтобы текст не прилипал к изображению */
    min-width: 70%;
  }

  .info-section p {
    text-align: left;
  }
  .info-section .image {
    flex: 1;
    text-align: right;
  }

  .info-section img {
    max-width: 100%;
    border-radius: 20px;
    width: 200px;
  }

/*#endregion info-section */

/*#region images */
.foto-about img {
  max-width: 100%;
  width: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  border-radius: 20px;
}

.img-100 img {
  /*max-width: 100%;  */
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
}

/*#endregion images */

/*#region faq */
.faq-section {
  /*max-width: 800px;*/
  margin: 0 auto;
  padding: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
 /* font-size: 18px;*/
  padding: 10px;
  /*background-color: #f8f8f8;*/
  border-radius: 5px;
}

.faq-toggle {
  font-size: 22px;
  font-weight: bold;
}

.faq-answer {
  display: none; /* Скрываем ответ */
  padding: 10px;
  background: #fff;
  border-left: 3px solid #8b5e3b;
  margin-top: 5px;
}

/*#endregion faq */

/*#region animate-on-scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

  /* Когда блок попадает в зону видимости */
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
  }
/*#endregion animate-on-scroll */

/*#region video */
.video-container {
  position: relative;
  width: 100%;
  max-width: 960px; /* Можно изменить */
  margin: 20px auto;
 /* padding-top: 56.25%; *//*Соотношение 16:9 */
  padding-top: 56%; /*Соотношение 16:9 */
  /*height: auto;*/
}

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* Закругление углов (по желанию) */
  }
/*#endregion video */

/*#region footer */
.main-footer {
  background-color: #4a4a4a;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
.main-footer p { 
  text-align: center;
}
/*#endregion footer */

/*#region schedule */
.schedule {
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background-color: #f8f5f2;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
  padding-top:120px;
}
  .schedule .container {
  }
.month-title {
  grid-column: span 3;
  cursor: pointer;
  background-color: #8b5e3b;
  color: white;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  border-radius: 5px;
}

.month-content {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-collapse: collapse;
  /*max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;*/
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}


  /*.month-content.active {*/
    /*max-height: none;*/ /* Достаточно большое значение, чтобы раскрыть контент */
  /*}*/
  .schedule h1, h2 {
    text-align: center;
    padding-bottom: 20px;
  }

  .schedule img {
    width: 72px;
    border-radius: 10px;
  }
  .schedule .lecture-university{
    font-size: 1.1em;
    font-weight: bolder;
    text-align: left;
  }

.lecture-schedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  border-collapse: collapse;
}

  .lecture-schedule .lecture-card {
    min-height: 100px;
    position:relative;
  }

  .schedule .lecture-topic {    
    font-weight: bolder;
    text-align: left;
  }
/* Карточка */
.lecture-card {
  /*background: #f8f5f2;*/
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  min-width: 200px;
  width: 100%;
  max-width: 250px;
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  margin: 10px;
  height: 220px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  /*border: 1px solid #dee2e6;*/
}

  .lecture-card:hover {
    transform: scale(1.05);
  }

  .lecture-card .xxx {
    text-align: center;
    padding-top: 0px;
    padding-bottom: 20px;
  }

  .lecture-card h3 {
    font-weight: lighter;
  }

  /*.lecture-card::after {
    content: attr(data-expose);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background-color: #4D473A;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    text-align: left;
    z-index: 10000;
    white-space: normal;
  }*/

  /* Треугольничек */
  /*.lecture-card::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #4D473A;
    opacity: 0;
    transition: opacity 0.3s ease;
  }*/

  .lecture-card:hover::after,
  .lecture-card:hover::before {
    opacity: 1;
  }
  .lecture-card.tooltip-top::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
  }

  /* снизу */
  .lecture-card.tooltip-bottom::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
  }


.flex-container {
  display: flex;
  align-items: center; /* Центрирует `h3` по высоте изображения */
  gap: 20px; /* Расстояние между картинкой и заголовком */
}

  .flex-container img {
    max-width: 200px; /* Размер картинки (можно изменить) */
    height: auto;
  }

  .flex-container h3 {
    margin: 0; /* Убираем лишние отступы */
    /*font-size: 20px;*/
  }
/*#endregion schedule */


/*#region not in use*/
@media (max-width: 1024px) {
  .lecture-list {
    grid-template-columns: repeat(2, 1fr); /* 2 карточки на планшетах */
  }
}

@media (max-width: 768px) {
  .lecture-list {
    grid-template-columns: repeat(1, 1fr); /* 1 карточка на мобильных */
  }
}

/*#endregion not in use*/

/*.lecture-schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);*/ /* 4 колонки на больших экранах */
  /*gap: 10px;
  width: 100%;
  border-collapse: collapse;
}

  .lecture-schedule div {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
  }*/





.professor-section {
  padding: 40px 0;
  background-color: #f8f5f2; /* Светлый фон */
}

.professor-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.professor-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

  .professor-photo img {
    max-width: 150px;
    border-radius: 10px;
  }

.university-logo {
  max-width: 100px;
  margin-top: 10px;
}

.professor-info {
  flex: 1;
}

  .professor-info h2 {
    margin-bottom: 10px;
  }

  .professor-info p {
    margin: 5px 0;
   /* font-size: 16px;*/
  }

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .professor-card {
    flex-direction: column;
    text-align: center;
  }

  .university-logo {
    margin-top: 15px;
  }
}

/*.show-hide-content {*/
  /*display: flex;
  align-items: center;
  text-align: center;
  font-size: 24px;
  color: #4D473A;
  margin: 20px 0;
  cursor: pointer;
  font-weight: lighter;*/
/*}*/

  /*.show-hide-content::before,
  .show-hide-content::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #4D473A;
    margin: 0 15px;
  }*/

/*.lined-title {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 24px;
  color: #4D473A; 
  margin: 20px 0;
  cursor: pointer;
  font-weight:lighter;
}

  .lined-title::before,
  .lined-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #4D473A;
    margin: 0 15px;
  }*/


.modal-overlay {
  display: none;
  animation: fadeIn 0.3s ease-out;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  margin-left:auto;
  margin-right:auto;
  padding: 0px; /* чтобы окно не прилипало к краям */
  overflow: auto; /* 👈 ВАЖНО: разрешить прокрутку внутри overlay */
}

  .modal-overlay.active {
    display: flex;
  }

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  color: #4D473A;
  position: relative;
  animation: scaleIn 0.3s ease-out;

  max-height: 90vh; /* 👈 Ограничим высоту окна */
  overflow-y: auto; /* 👈 Разрешаем вертикальную прокрутку внутри */
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Отключаем прокрутку фона */
body.modal-open {
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}



/*.info-banner {
  width: 100%;
  background-color: #f3ece6;
  padding: 20px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top:100px;
}

.banner-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-item {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 500px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

  .banner-item h3 {
    margin-top: 0;
    font-size: 20px;
    color: #4D473A;
  }

  .banner-item p {
    margin: 10px 0 0;
    font-size: 16px;
    color: #4D473A;
  }*/

.info-banner {
  width: 100%;
  background: linear-gradient(135deg, #f8f5f2, #ede4da); /* Мягкий фон */
  padding: 30px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-top: 100px;
}

.banner-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner-item {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 300px;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

  .banner-item h3 {
    margin-top: 0;
    font-size: 22px;
    color: #4D473A;
  }

  .banner-item p {
    margin: 10px 0 20px;
    font-size: 16px;
    color: #4D473A;
  }

.banner-button {
  background-color: #8b5e3b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
}

  .banner-button:hover {
    background-color: #6e452a;
  }

/* Анимация при прокрутке */
.animate-on-scroll.visible .banner-item {
  opacity: 1;
  transform: translateY(0);
}

.schedule-events {
  background-color: #fff;
  border-radius: 20px;
  border-collapse: collapse;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}
  .schedule-events.active {
    max-height: none;
  }


/* Бургер */
/*.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-right: auto;
}

  .burger span {
    width: 25px;
    height: 3px;
    background-color: #4D473A;
    border-radius: 2px;
    transition: all 0.3s ease;
  }*/

/* Скрываем основное меню на мобилках */
/*@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f8f5f2;
    padding: 20px 0;
    display: none;
    flex-direction: column;
    text-align: center;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

    .main-nav ul {
      flex-direction: column;
      gap: 15px;
    }

    .main-nav.active {
      display: flex;
    }
}*/




.lecturer-section {
  /* padding: 60px 20px;
  background-color: #f8f5f2;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;*/
  /*display: flex;*/
  align-items: center;
  padding: 60px 20px;
  background-color: #f8f5f2;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
  padding-top: 120px;
}

.lecturer-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-left:auto;
  margin-right:auto;
}


  .lecturer-heading img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease;
  }

  .lecturer-heading.zoomed img {
    width: 128px;
    height: 128px;
    transform: scale(1.05);
  }



#lecturer-list .month-content {
  display: block;
}

#lecturer-list .container {


}
h1, h2, h3, h4 {
  font-family: "Lithium", "Instrument Serif", Georgia,'Times New Roman';  
  font-weight: lighter;
  color: #CCC;
  margin: 0 0 0.5em 0;
  padding: 0;
  line-height: 1.2;
}

/* Индивидуальные размеры */
h1 {
  font-size: 4em; /* или 3em — по вкусу */
  text-align: center;
  font-weight:400;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}


a.switch-link {
  color: #6C3042; /* твой основной цвет */
  text-decoration: none; /* убираем подчёркивание */
  font-weight: normal;
  font-size: 1em;
  transition: color 0.3s ease;
  cursor: pointer;
}

  a.switch-link:hover {
    color: #5B2A39; /* затемнение при наведении */
    text-decoration: none; /* или оставить без подчёркивания */
  }


input::selection {
  background-color: #9f9f9e; /* Background color for selected text */
  color: #fff; /* Text color for selected text */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  text-align: right;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  text-align: right;
}


.editor-label-readonly {
  margin-left: 20px;
  font-weight: bold;
  position: relative;
  color: #171826;
  font-size: 1.2em;
}

.editor-label-popover {
  font-weight: lighter;
  position: relative;
  font-size: .9em;
}



h1, h2, .lined-title {
  font-family: 'Unbounded', 'Playfaier Display', 'Century Gothic', 'Times New Roman', serif;
}



.topbar-user-lang-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items:center;
  gap: 20px;
  padding-right: 20px; /* чтобы не прилипал к самому краю */
}

.user-dropdown-wrapper,
.lang-dropdown-wrapper,
.cart-icon-wrapper {
  position: relative;
  top: -15px;
}

.cart-icon-wrapper {
  position: relative;
   display: inline-block;
  font-size: 1.7rem;
  color: #5b4533;
  cursor: pointer;
  line-height: 1;
}

.cap-count {
  display: inline-block;
  font-size: 1.4rem;
  color: #5b4533;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

  .cap-count.animate {
    opacity: 0.2;
    transform: scale(1.5);
  }

.cap-multiplier {
  font-family: 'Century Gothic', 'Times New Roman', serif;
  font-size: 0.85rem;
  color: #a26542;
  margin-left: 0px;
  font-weight: normal;
  /*vertical-align: middle;*/
  position: relative;
  top: -5px; /* подними выше — можешь изменить значение */
}
  .cart-icon-wrapper .cap-count {
    font-size: 1.4rem;
    letter-spacing: -2px; /* чуть перекрываются */
    white-space: nowrap;
    display: inline-block;
  }
/*.cart-icon-wrapper {
  
  display: inline-block;
  font-size: 1.6rem;*/ /* размер иконки */
  /*color: #5b4533;*/ /* кофейный стиль */
  /*cursor: pointer;
}
  .cart-icon-wrapper .cart-count {
    position: absolute;
    top: 15px;
    right: 0px;
    background-color: transparent;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;*/
    /*min-width: 16px;*/
    /*text-align: center;
    line-height: 1;
  }*/
.user-icon,
.lang-icon{
  /*cursor: pointer;
  font-size: 24px;*/
  font-size: 22px;
  z-index: 1000;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  top: 20px;
  color: #6C3042;
}

.lang-icon {
  color: #00B4D8;
}
.lang-dropdown a.active {
  font-weight: bold;
  color: #6C3042; /* красивый выделенный цвет */
  /*pointer-events: none;*/ /* отключить клик */
  cursor: default; /* курсор обычный */
}
.user-dropdown a,
.lang-dropdown a {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: normal;
  font-size: .9em;
  color: #5b4533;
  /*transition: background-color 0.3s, color 0.3s;*/
}

  .user-dropdown a:hover,
  .lang-dropdown a:hover 
  {
    background: #6C3042;
    color: #fff;
  }


.burger-wrapper {
  position: relative;
  display: none;
  align-items: center;
}

.burger-icon {
  cursor: pointer;
  width: 22px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

  .burger-icon span {
    display: block;
    height: 1px;
    background: #333;
    border-radius: 2px;
    transition: background-color 0.3s;
  }

/*.burger-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 10px;
}*/

  .burger-dropdown.show {
    display: block;
  }

  .burger-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #5b4533;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }

    .burger-dropdown a:hover {
      background: #6C3042;
      color: #fff;
    }

.user-dropdown,
.lang-dropdown,
.burger-dropdown {
  display: block;
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

  /* Когда меню активно */
  .user-dropdown.show,
  .lang-dropdown.show,
  .burger-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

.burger-dropdown {
  position: fixed;
  top: 0;
  left: calc(-100vw - 50px);
  width: 100vw; /* 👈 вместо 100% — чтобы точно по экрану */
  height: 100vh; /* 👈 точно вся высота экрана */
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 0.4s ease;
  z-index: 999;
  /* padding: 40px 20px;*/
  padding: 60px 20px 40px 20px;
  margin: 0;
  border: none;
  box-sizing: border-box;
  /* Сбрасываем лишние эффекты */
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

  .burger-dropdown.show {
    left: 0;
  }

  /*.burger-dropdown a {
    margin: 8px 0;
    font-size: 1em;
    color: #5b4533;
    text-decoration: none;
    transition: color 0.3s;
    font-weight:lighter;
  }*/
  .burger-dropdown a {
    display: block;
    margin: 0;
    padding: 15px 5px;
    /*font-size: 1.2em;*/
    color: #5b4533;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid #e0ddd9;
    font-weight: lighter;
    letter-spacing: 0.5px;
    line-height: 1.6;
    /*text-align: center;*/
  }

    .burger-dropdown a:last-child {
      border-bottom: none; /* убираем линию у последнего пункта */

    }
    
    .burger-dropdown a:hover {
      color: #6C3042;
    }

    .burger-dropdown a.active {
      font-weight:normal;
      color: #6C3042; /* Выделенный цвет */
      /*font-weight: bold;
      border-bottom: 2px solid #6C3042;*/ /* Можно утолщённую линию */
      position: relative; /* 👈 ОЧЕНЬ ВАЖНО */
    }

      .burger-dropdown a.active::before {
        content: "●"; /* или "●" */
        color: #6C3042;
        position: absolute; /* 👈 НАЛОЖЕНИЕ */
        left: -8px; /* расстояние слева от текста */
        top: 50%;
        transform: translateY(-50%); /* чтобы значок был по центру строки */
        font-size: 0.8em;
      }
.burger-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2em;
  color: #6C3042;
  cursor: pointer;
  z-index: 1001;
  transform: translateX(0);
  transition: top 0.3s ease, font-size 0.3s ease; /* ✨ добавили плавность */
}
.site-footer a[target="_blank"]::after {
  content: none !important;
}


.dashboard-header {
  text-align: center;
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 0 20px;
}

  .dashboard-header h1 {
    font-family: 'Unbounded';
    margin-bottom: 10px;
  }

  .dashboard-header h3 {
    /*      font-size: 1.4em;
  */ margin-bottom: 20px;
  }

  .dashboard-header label {
    font-size: 1em;
    color: #666;
    display: block;
  }

  .dashboard-header table {
    margin: 0 auto;
    text-align: left;
  }
    .dashboard-header table td {
      padding: 0 8px;
      vertical-align: middle;
    }
.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* центрирует весь ряд */
  gap: 20px;
  max-width: 1200px; /* ограничим по ширине, 3×300px + отступы */
  margin: 0 auto; /* выравнивание по центру */
  margin-top: 100px;
}

.dashboard-card {
  position: relative;
  /*display: block;*/
  width: 100%;
  max-width: 300px;
  height: 180px;
  margin: 15px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex: 0 1 calc(33.333% - 20px); /* максимум 3 в ряд, с учётом gap */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .dashboard-card:link,
  .dashboard-card:visited,
  .dashboard-card:active {
    text-decoration: none;
    color: white;
  }
  .dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* лёгкое затемнение */
    z-index: 1;
  }

  .dashboard-card span {
    /*position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    font-size: 2em;
    font-weight: bolder;
    top: 50%;
    transform: translateY(-50%);*/
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bolder;
  }

  .dashboard-card:hover::before {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .dashboard-card:hover {
    transform: scale(1.03);
  }


.shop-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* чтобы все дети имели одинаковую высоту */
  gap: 20px;
  max-width: 960px;
  /*margin: 20px auto 20px auto;*/
  padding: 60px 20px;
  width: 80%;
  background-color: #f8f5f2;
  border-radius: 30px;
  margin: 20px auto;
}


.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  height: auto;
  flex: 1 1 calc(33.333% - 20px); /*ровно 3 в ряд с учётом gap */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: white;
  transition: transform 0.3s ease;
  /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
  transform-origin: center center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

  .shop-card:hover {
    transform: scale(1.03);
    /*transform: translateY(-4px);*/
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  }

.shop-image-wrapper {
  position: relative;
  width: 100%;
  /*height: 180px;*/
  overflow: hidden;
  background-color: #f0f0f0;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
}

.shop-image {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* сюда — тень */
  z-index: 1;
  transition: opacity 0.5s ease;
  /*transition: opacity 1s ease-in-out;*/
}
/*.shop-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;  или 16/9, как тебе больше нравится 
  overflow: hidden;
}

.shop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}*/
.shop-image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #5b4533;
  backdrop-filter: blur(3px);
  display: inline;
}

.shop-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
  justify-content: flex-start;
}
  .shop-info ul {
 /* margin:0;*/
  padding-left:10px;
  font-size:.9em;
  }

  .shop-title {
    font-size: 1.3em;
    color: #4D473A;
    margin-top: 0;
    font-weight: bolder;
    /* margin-bottom: 10px;*/
    /*min-height: 40px;*/
    text-align: center;
    /* text-align:left;*/
  }

.shop-thema {
  font-size: 1.1em;
  color: #4D473A;
  margin-top: 0;
  font-weight:bold;
  /* margin-bottom: 10px;*/
  /*min-height: 40px;*/
  text-align: center;
  /* text-align:left;*/
}
.shop-description {
  font-size: 0.95em;
  color: #4D473A;
  margin-bottom: 10px;
  margin-top: 0;
  min-height: 40px;
  /* text-align:left;*/
}

.shop-tags {
  font-size: 0.85em;
  color: #4D473A;
  margin-bottom: 10px;
}

.shop-bottom {
  margin-top: auto;
  text-align: center;
  padding-top: 15px;
}

.shop-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #6C3042;
  display: block;
  margin-bottom: 8px;
}

.shop-button {
  display: block;
  width: 100%;
  border-radius: 0 0 12px 12px; /* скругляем только нижние углы */
  background-color: #6C3042;
  color: white;
  text-align: center;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

  .shop-button:hover {
    background-color: #5a2737;
  }


/* Ссылки внутри карточек профиля и магазина */
.dashboard-card a,
.shop-card a,
.shop-button {
  color: #fff;
  text-decoration: none;
}

  .dashboard-card a:hover,
  .shop-card a:hover,
  .shop-button:hover {
    color: #fff;
    text-decoration: none;
  }

@keyframes caps-fly-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
}

@keyframes caps-drop-in {
  0% {
    transform: translateY(10px) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.btn-caps {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  white-space: nowrap;
  letter-spacing: -1.5px;
  line-height: 1;
  display: inline-block;
  min-width: 40px;
  padding-right: 6px; /* ← защитный отступ */
  height: 1.2em;
  overflow: hidden;
}

.caps-stack {
  display: inline-block;
  animation: caps-drop-in 0.3s ease;
}

  .caps-stack.out {
    position: absolute;
    top: 0;
    right: 0;
    animation: caps-fly-up 0.25s ease forwards;
    width: 100%;
    text-align: right;
  }

.shop-section {
  /* display: flex;*/
  /*align-items: center;
  justify-content: space-between;*/
  /*text-align: left;*/
  /*flex-direction: row;*/ /* Текст слева, картинка справа */
  align-items: center;
  padding: 60px 20px;
  background-color: #f8f5f2;
  border-radius: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
}

  .shop-section h3, .shop-section h4 {
    text-align: center;
  }


.qty-icon,
.remove-icon {
  font-size: 2.6rem;
  color: #6c3042;
  cursor: pointer;
  transition: color 0.2s ease;
  outline: none;
  user-select: none;
  pointer-events: auto;
}

.remove-icon {
  color: #BB2649;
}

  .qty-icon:hover,
  .remove-icon:hover {
    color: #a0455e;
  }

  .qty-icon:focus,
  .remove-icon:focus {
    outline: none;
  }
