@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap');

/* ===================================
   :root — Цветовые переменные
====================================== */
:root {
  /* Основные цвета */
  --color-primary: #ff9966;
  --color-secondary: #ff6600;
  --color-accent: #B19F55;
  --color-link: var(--color-accent);
  --color-text: #473B30;
  --color-white: #fff;
  --color-black: #000;
  --color-gray-light: #adb5bd;
  --color-gray-border: #aaa;
  --color-placeholder: var(--color-gray-light);
  --color-scrollbar-thumb: #ff9966;

  /* Фоновые цвета */
  --bg-body: #fff;
  --bg-footer: var(--color-primary);
  --bg-menu: rgba(255, 153, 102, 1);
  --bg-menu-gradient: linear-gradient(90deg, rgba(255, 153, 102, 1) 50%, rgba(255, 102, 204, 1) 100%);
  --bg-side-menu: linear-gradient(90deg, rgba(255, 153, 102, 1) 50%, var(--bg-menu) 100%);
  --bg-btn-custom: linear-gradient(135deg, #ff6b35, #ff8e35);
  --bg-btn-custom-hover: linear-gradient(135deg, #ff8e35, #ff6b35);

  /* Прочие */
  --border-color: var(--color-text);
  --overlay-opacity: 0.7;
  --submenu-hover-bg: rgba(255, 255, 255, 0.1);
  --submenu-border: rgba(255, 255, 255, 0.15);
  --submenu-border-light: rgba(255, 255, 255, 0.2);
}

/* ===================================
   Border Color
====================================== */
.border-primary{border-color:#ff9966!important}
.border-secondary{border-color:#ff6600!important}
.border-success{border-color:#28a745!important}
.border-info{border-color:#17a2b8!important}
.border-warning{border-color:#ffc107!important}
.border-danger{border-color:#dc3545!important}
.border-light{border-color:#f8f9fa!important}
.border-dark{border-color:#343a40!important}
.border-white{border-color:#fff!important}

/* ===================================
   Font Color
====================================== */
.text-primary{color:var(--color-text) !important}a.text-primary:focus,a.text-primary:hover{color:#ff0000!important}
.text-secondary{color:#ff6600!important}a.text-secondary:focus,a.text-secondary:hover{color:#ff0000!important}

/* ===================================
   Background Color
====================================== */
.bg-primary{background-color:#ff9966!important}
.bg-secondary{background-color:#ff6600!important}

/* ===================================
    General
====================================== */

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: url('/img/fon.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text);
    text-align: center;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

/* Основной контент — растягивается, занимая всё свободное пространство */
main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Блок с контентом — теперь внутри main */
.main-content {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 1320px;
    width: 95%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 80px;
    margin-bottom: 120px; /* отступ от девушки */
    min-height: 300px; /* минимальная высота, если мало текста */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-content p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  margin-bottom: 1.3rem;
  line-height: 1.3;
}

.main-content a {
  color: #d4af37;
  text-decoration: none;
}

.main-content a:hover {
  color: #b8952e;
}

/* Адаптивность */
@media (max-width: 768px) {
  .main-content {
    padding: 20px 20px;
    margin-top: 80px;
    margin-bottom: 100px;
  }

  .main-content h1 {
    font-size: 2.2rem;
  }
}

::-webkit-scrollbar {
  width: 18px;
}
::-webkit-scrollbar-track {
  width: 5px;
  background: var(--color-white);
  border-left: 7px solid var(--color-white);
  border-right: 7px solid var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
  width: 0;
  border-left: 7px solid var(--color-white);
  border-right: 6px solid var(--color-white);
}

/* Фокус для интерактивных элементов */
.form-control:focus,
.form-select:focus,
button:focus,
.btn:focus,
a:focus,
[role="button"]:focus,
i:focus {
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(51, 101, 138, 0.25) !important;
  border-color: transparent !important;
}

/* Плейсхолдеры */
::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-moz-placeholder,
:-ms-input-placeholder {
  color: var(--color-placeholder) !important;
  opacity: 1;
  font-style: italic;
  font-size: 0.95em;
}

/* ===================================
   Buttons
====================================== */
.form-container {
  max-width: 100%;
  padding: 0 10px;
}

.btn {
  box-sizing: border-box;
  background: var(--bg-menu-gradient);
  box-shadow: 0 0 3px #535353;
  backdrop-filter: blur(20px);
  border-radius: 7px;
  border: none;
  color: var(--color-white);
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(90deg, var(--bg-menu) 50%, rgba(5, 0, 16, 0.7) 100%);
  transform: scale(1.01);
  color: var(--color-white);
}
.btn:active {
  transform: scale(0.95);
}

.btn-custom {
  background: var(--bg-btn-custom);
  border: none;
  color: var(--color-white);
  font-weight: 600;
}
.btn-custom:hover {
  background: var(--bg-btn-custom-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-white {
  padding: 0.5em 1.5em;
  border-radius: 2em;
  box-shadow: 2px 2px 2px rgba(105, 73, 73, 0.15);
  background: var(--color-white);
  border-color: var(--color-white);
  color: #1E1F62;
  font-size: 14px;
  white-space: nowrap;
}

.btn-white:hover {
  background: var(--color-accent);
}

a {
  text-decoration: none;
  color: var(--color-link);
}
hr {
  margin: 20px 0;
  padding: 0;
  height: 1px;
  border: none;
  background-color: var(--border-color);
}
section {
  margin: 30px 0;
}
p {
  line-height: 26px;
  margin: 11px 0;
}
h1 { font-size: 28px; font-weight: 900; line-height: 30px; margin: 20px 0; }
h2 { font-size: 26px; font-weight: 900; line-height: 30px; margin: 20px 0; }
h3 { font-size: 24px; font-weight: 600; line-height: 26px; margin: 20px 0; }
h4 { font-size: 18px; font-weight: 600; line-height: 20px; margin: 20px 0; }
h5 { font-size: 16px; font-weight: 600; line-height: 20px; margin: 20px 0; }
h6 { font-size: 12px; font-weight: 600; line-height: 20px; margin: 20px 0; }

@media (max-width: 1200px) {
  h4 { font-size: 16px; }
}
@media (max-width: 767px) {
  h1 { font-size: 28px; line-height: 35px; }
  h2 { font-size: 24px; line-height: 30px; }
  h3 { font-size: 14px; line-height: 17px; font-weight: 700; }
  h4 { font-size: 12px; line-height: 15px; }
}

/* ==============================
   Общие стили меню
============================== */

.dsm-menu,
.dsm-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* ==============================
   Десктопное меню
============================== */

.dsm-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
}

.dsm-menu > li {
  position: relative;
}

.dsm-menu > li > a {
  display: block;
  font-size: 16px;
  text-decoration: none;  
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  font-size: 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.dsm-menu > li > a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.dsm-menu li.active > a {
  background: rgba(255,255,255,0.2);
  color: #fff;
}


/* Подменю */
.dsm-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: transparent;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.dsm-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* Пункты подменю */
.dsm-menu li ul li {
  position: relative;
}

.dsm-menu li ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.dsm-menu li ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Подменю вложенных уровней */
.dsm-menu li ul ul {
  top: 0;
  left: 100%;
}

/* Разделитель внутри подменю */
.dsm-menu li ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Убираем у последнего */
.dsm-menu li ul li:last-child {
  border-bottom: none;
}

/* ==============================
   Стрелки
============================== */
.dsm-menu li.has-children > a {
  position: relative;
  padding-right: 20px; /* место под стрелку */
}

/* стрелка по умолчанию — вправо */
.dsm-menu li.has-children > a::after {
  content: "▸";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #fff;
}

/* верхний уровень — стрелка вниз */
.dsm-menu > li.has-children > a::after {
  content: "▾";
}

/* ==============================
   Мобильное меню
============================== */

.dsm-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Общий пункт меню */
.dsm-mobile-menu .nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Убираем линии у подменю */
.dsm-mobile-submenu .nav-split::after {
  display: none;
}

/* Линия только у верхнего уровня */
.dsm-mobile-menu > .nav-item > .nav-split::after {
  display: block;
}

/* ==============================
   Активные пункты (моб)
============================== */

/* Активный конкретный пункт */
.dsm-mobile-menu .nav-link.active {
  color: #ff66cc;
}

/* Активный родитель (у которого открыт подменю) */
.dsm-mobile-menu .nav-item.active > .nav-split > .nav-link {
  color: #ff66cc;
}

/* Чтобы у родителя не было лишнего фона */
.dsm-mobile-menu .nav-item.active > .nav-split > .nav-link:not(.active) {
  background: none;
}


/* ==============================
   Ссылки и стрелка (моб)
============================== */

/* Контейнер делим на 2 части */
.nav-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Разделительная линия (по умолчанию) */
.nav-split::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* фокус для accessibility (скроем дефолтный outline, но добавим видимую дин. индикацию при клавиатуре) */
.nav-split .submenu-toggle:focus {
  outline: none;
}

/* Убираем линию у последнего элемента в подменю */
.dsm-mobile-submenu > li:last-child > .nav-split::after {
  display: none;
}

/* Линия по умолчанию только у верхнего уровня */
.dsm-mobile-menu > .nav-item > .nav-split::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Убираем линию у открытых пунктов верхнего уровня */
.dsm-mobile-menu > .nav-item.open > .nav-split::after {
  display: none;
}

/* Ссылка слева (только текст, не растягивается) */
.nav-split .nav-link {
  flex: 0 0 auto;
  padding: 14px 18px;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  outline: none;
}

/* Правая часть (стрелка + кликабельная область) */
.submenu-toggle {
  flex: 1;
  height: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  padding: 15px;
}

/* Стрелка */
.submenu-toggle::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #f96;
  transition: transform 0.3s ease;
}

.has-children.open > .nav-split > .submenu-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ==============================
   Подменю (моб)
============================== */

.dsm-mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Когда открыто */
.dsm-mobile-submenu.open {
  max-height: 1000px;
}

/* Пункты подменю */
.dsm-mobile-submenu li a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}
.dsm-mobile-submenu li a:hover {
  color: #f96;
}

/* Верхний уровень (level-0) */
.dsm-mobile-menu .level-0 > .nav-split .nav-link {
  font-size: 18px;
  padding: 14px 18px;
  font-weight: 600;
}

/* Подменю (level-1 и глубже) */
.dsm-mobile-menu .level-1 > .nav-split .nav-link,
.dsm-mobile-menu .level-2 > .nav-split .nav-link,
.dsm-mobile-menu .level-3 > .nav-split .nav-link,
.dsm-mobile-menu .level-4 > .nav-split .nav-link {
  font-size: 16px;       /* меньше размер */
  padding: 8px 5px;    /* чуть компактнее отступы */
  line-height: 10px;
  font-weight: 400;      /* тоньше шрифт */
}

/* Уменьшенные отступы между пунктами подменю */
.dsm-mobile-submenu > li > .nav-split {
  margin-bottom: 4px; /* расстояние между пунктами */
}

/* ==============================
   Отступы для уровней вложенности
============================== */
.dsm-mobile-menu .level-0 > .nav-split .nav-link { padding-left: 18px; }
.dsm-mobile-menu .level-1 > .nav-split .nav-link { padding-left: 36px; }
.dsm-mobile-menu .level-2 > .nav-split .nav-link { padding-left: 54px; }
.dsm-mobile-menu .level-3 > .nav-split .nav-link { padding-left: 72px; }
.dsm-mobile-menu .level-4 > .nav-split .nav-link { padding-left: 90px; }

/* Линии для уровней */
.dsm-mobile-menu .level-1 > .nav-split::after { left: 36px; }
.dsm-mobile-menu .level-2 > .nav-split::after { left: 54px; }
.dsm-mobile-menu .level-3 > .nav-split::after { left: 72px; }
.dsm-mobile-menu .level-4 > .nav-split::after { left: 90px; }

/* ==============================
   Адаптивность
============================== */

/* Десктопное меню скрываем на планшетах/телефонах */
@media (max-width: 1024px) {
  .dsm-menu {
    display: none;
  }

  .dsm-mobile-menu {
    display: block;
    background: rgba(5, 0, 16, 0);
    padding: 10px 0;
  }

  .dsm-mobile-menu .nav-item {
    border-bottom: none; /* линии рисуются через ::after */
  }
}

/* На больших экранах мобильное меню скрыто */
@media (min-width: 1025px) {
  .dsm-mobile-menu {
    display: none;
  }
}

.breadcrumbs {
    margin-top: 10px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #ff9966;
    font-weight: 600;
}
.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    margin-right: 8px;
}
.breadcrumbs li::after {
    content: "›";
    margin-left: 8px;
    color: #aaa;
}
.breadcrumbs li:last-child::after {
    content: "";
}
.breadcrumbs a {
    color: #ff9966;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .home-icon svg {
    width: 18px;
    height: 18px;
}
.breadcrumbs .active {
    font-weight: 600;
    color: #777;
}

.small {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  line-height: 20px;
}

.microsmall {
  font-size: 10px;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  line-height: 14px;
}

.navbar {
  padding: 0;
  z-index: 111;
  height: 70px;
  width: 100%;
  background: transparent;
  font-family: 'Roboto', sans-serif;  
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: var(bg-menu-gradient);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* для Safari */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  padding: 0px;
  margin-left: 0px;
}

.navbar-brand img {
  max-height: 60px;
}

@media only screen and (max-width: 991px) {
  .navbar-brand img
  {
    margin-left: 0px;
    height: 60px;
    max-height: 60px;
  }
}

.navbar .navbar-nav .nav-link {
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  padding: 6px 6px;
  margin-left: 15px;
  margin-right: 15px;
  transition: .5s ease;
  border: 2px solid transparent;
  display: block;
  font-family: 'Roboto', sans-serif;
  border: 0px solid #fff;
  white-space: nowrap; 
}

.navbar .navbar-nav {
  margin-left: 5rem;
}

.navbar .navbar-nav .nav-link.active {
  color: #ff9966;
  transition: all .6s ease;
}

.navbar .navbar-nav .nav-link:hover {
  color: #ff9966;
  transition: all .6s ease;
}

.navbar .navbar-nav .nav-link:last-child {
  margin-right: 0;
}

.navbar .navbar-nav .nav-link:after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0;
  background: transparent;
  transition: width .5s ease, background-color .5s ease;
}

.navbar .navbar-nav .nav-link:hover:after {
  width: 100%;
  background: #ff9966;
}

.navbar .navbar-nav .button {
  margin-left: 30px;
}

.navbar-fixed-top.scrolled {
  /* background-color: #fff !important; */
  transition: .2s linear;
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.35);
}

/*side menu button*/
a.sidemenu_btn {
  display: none;
}

@media only screen and (max-width: 990px) {
 a.sidemenu_btn {
    display: block;
  }
}

.sidemenu_btn {
  width: 36px;
  padding: 6px;
  right: 40px;
  top: 12px;
  z-index: 999;
  margin-top: 12px;
  margin-left: 16px;
  cursor: pointer;
  position: absolute;
  display: inline-block;
  transition: all .3s linear;
/*   border: 1px solid #fff; */
}

.sidemenu_btn span {
  height: 2px;
  width: 100%;
  background: #fff;
  display: block;
  margin: auto;
  transition: .5s ease;
}

.sidemenu_btn:hover span:first-child,
.sidemenu_btn:hover span:last-child {
  width: 70%;
  background-color: #fff;
}

.sidemenu_btn:hover span:nth-child(2) {
  background-color: #fff;
}

.sidemenu_btn span:nth-child(2) {
  margin: 4px 0;
}

/* ===================================
    Side Menu
====================================== */

/* Side Menu */
.side-menu {
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    z-index: 9999;
    background: var(--bg-menu);
    background: var(--bg-menu-gradient);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.5s ease;
    position: fixed;
    overflow-y: auto;
}

.side-menu.side-menu-active {
    transform: translate3d(0, 0, 0);
}

#close_side_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

/* Mobile menu items */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu .nav-link {
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.mobile-menu .nav-link.active {
    color: #ff9966;
}

.mobile-sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0 0 0;
    display: none;
}

.mobile-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.mobile-toggle:before,
.mobile-toggle:after {
    content: '';
    position: absolute;
    background: #fff;
    transition: all 0.3s ease;
}

.mobile-toggle:before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.mobile-toggle:after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.mobile-toggle.active:after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

@media (max-width: 767px) {
    .side-menu {
        width: 80%;
    }
}

.side-menu.left {
  left: 0;
  right: auto;
  transform: translate3d(-100%, 0, 0);
}

.side-menu.before-side {
  width: 280px;
}

.side-menu.side-menu-active,
.side-menu.before-side {
  transform: translate3d(0, 0, 0);
}

.pul-menu .side-menu.side-menu-active {
  visibility: visible;
  opacity: 1;
}

.side-menu .navbar-brand {
  margin: 0 0 1.5rem 0;
}

/*Side overlay*/
#close_side_menu {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1031;
  opacity: 0.7;
  background-color: #fff;
  position: fixed;
  transition: opacity 300ms cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

/*side menu image*/
.sidemenu-image {
  position: absolute;
  top: 20px;
  left: 50px;
  max-width: 150px;
}

/*side menu close btn*/
.side-menu .btn-close {
  height: 25px;
  width: 25px;
  top: 34px;
  right: 25px;
  cursor: pointer;
  text-align: center;
  position: absolute;
  display: inline-block;
  border: 0px solid #fff;
}

.side-menu.before-side .btn-close {
  display: none;
}

.side-menu .btn-close::before,
.side-menu .btn-close::after {
  top: 5px;
  left: 16px;
  height: 25px;
  width: 3px;
  content: ' ';
  background: #fff;
  position: absolute;
}

.side-menu .btn-close:before {
  transform: rotate(45deg);
}

.side-menu .btn-close:after {
  transform: rotate(-45deg);
}

.side-menu .btn-close:hover {
  transform: scale(0.9);
  overflow: hidden;
  transition: all .5s ease;
}

/*side menu inner-wrapper*/
.side-menu .inner-wrapper {
  height: 100%;
  padding: 2.0rem 3rem;
  position: relative;
  overflow-y: auto;
  display: flex;
  align-items: top;
  text-align: left;
  flex-wrap: wrap;
  border: 1px solid var(--bg-menu);
}

.pul-menu.pushwrap .side-menu .inner-wrapper {
  padding: 3.5rem 2.5rem;
}

.side-menu .side-nav {
  margin-bottom: 0;
  margin-top: 0px;
  display: block;
}

.side-nav .navbar-nav .nav-item {
  opacity: 0;
  display: block;
  margin: 5px 0;
  padding: 0 !important;
  transition: all 0.8s ease 500ms;
  transform: translateY(30px);
}

.side-nav .navbar-nav .nav-item:first-child {
  transition-delay: .1s;
}

.side-nav .navbar-nav .nav-item:nth-child(2) {
  transition-delay: .2s;
}

.side-nav .navbar-nav .nav-item:nth-child(3) {
  transition-delay: .3s;
}

.side-nav .navbar-nav .nav-item:nth-child(4) {
  transition-delay: .4s;
}

.side-nav .navbar-nav .nav-item:nth-child(5) {
  transition-delay: .5s;
}

.side-nav .navbar-nav .nav-item:nth-child(6) {
  transition-delay: .6s;
}

.side-nav .navbar-nav .nav-item:nth-child(7) {
  transition-delay: .7s;
}

.side-nav .navbar-nav .nav-item:nth-child(8) {
  transition-delay: .8s;
}

.side-nav .navbar-nav .nav-item:nth-child(9) {
  transition-delay: .9s;
}

.side-menu.side-menu-active .side-nav .navbar-nav .nav-item {
  transform: translateY(0);
  opacity: 1;
}

.side-nav .navbar-nav .nav-link {
  display: inline-table;
  color: #fff;
  padding: 2px 0 3px 0 !important;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  line-height: normal;
  position: relative;
  border-radius: 0;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}

.side-nav .navbar-nav .nav-link::after {
  content: "";
  left: 0;
  width: 0;
  bottom: 0;
  height: 2px;
  background: var(--bg-menu);
  overflow: hidden;
  position: absolute;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.side-nav .navbar-nav .nav-link:hover::after,
.side-nav .navbar-nav .nav-link:focus::after,
.side-nav .navbar-nav .nav-link.active::after {
  width: 100%;
}

.side-nav .navbar-nav .nav-link.active {
  background: transparent;
}

/*side menu footer */
.side-menu-footer .navbar-nav {
  transform: translateY(0);
}

.side-menu-footer {
  color: #fff;
  font-size: 18px;
}

.side-menu-footer p {
  color: #fff;
  font-size: 18px !important;
}

.side-menu-footer a {
  color: #fff;
  font-size: 18px;
}

.side-menu-footer .banner-icons ul {
  margin-bottom: 0;
}

.side-menu-footer .banner-icons ul li {
  display: inline-block;
}

.side-menu-footer .banner-icons ul li i {
  color: #fff;
  font-size: 22px;
}

.side-menu-footer .banner-icons ul li a:hover {
  background-color: #fff;
  transition: all .8s ease;
}

.side-menu-footer .banner-icons ul li a {
  border-radius: 50%;
  color: #fff;
  height: 40px;
  line-height: 38px;
  width: 40px;
  display: block;
  overflow: hidden;
  text-align: center;
  border: 1px solid transparent;
}

.side-menu-footer .banner-icons ul li a:hover i {
  color: #fff;
}

/* скрываем подменю по умолчанию */
.mobile-sub-menu {
  display: none;
  padding-left: 15px;
  margin: 5px 0 0 0;
  list-style: none;
}

/* стиль ссылок внутри подменю */
.mobile-sub-menu .nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #ddd;
  padding: 5px 0 !important;
}

/* активное подменю */
.mobile-sub-menu.open {
  display: block;
}

 /* Точки навигации */
#sliderDots {
    z-index: 10;
}

#sliderDots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

#sliderDots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Hero Banner Styles */
 .hero {
    margin-top: 0px;
     min-height: 100vh;
 }
 .hero .btn-dsm {
     font-size: 1.25rem;
     padding: 15px 30px;
 }
 /* Для мобильных устройств */
 @media (max-width: 768px) {
     .hero h1 {
         font-size: 2.5rem;
     }
     .hero .btn-dsm {
         font-size: 1.1rem;
         padding: 12px 24px;
     }
 }

/* ===================================
    Contact-Section
 ====================================== */
 .contact-section .card {
     background-color: #eee;
     border-radius: 10px;
     border: 1px solid rgba(0, 0, 0, 0.1);
 }
 .contact-section .card-title-service {
     color: #ff9966;
     font-weight: bold;
     font-size: 1.5rem;
 }
 .contact-section .form-control {
     border: 1px solid #ced4da;
     border-radius: 5px;
     padding: 10px;
 }
 .contact-section .form-control:focus {
     border-color: #ff9966;
     box-shadow: none;
     outline: none;
 }
 .contact-section .form-control:focus {
     border-color: #80bdff;
     box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
 }
 .contact-section .btn-primary {
     background-color: #ff9966;
     border-color: #ff9966;
     padding: 10px 20px;
     border-radius: 25px;
 }
 .contact-section .btn-primary:hover {
     background-color: #15433d;
     border-color: #15433d;
 }
 .contact-section .form-label {
     color: #ff9966;
     font-weight: 500;
 }
 .contact-section .form-select {
     border: 1px solid #ced4da;
     border-radius: 5px;
     padding: 10px;
 }
 
 .contact-section .form-select:focus {
     border-color: #ff9966;
     box-shadow: none;
     outline: none;
 }

/* ===================================
  Footer
====================================== */

.footer {
  margin-top: auto; /* Футер прижимается к низу */
  flex-shrink: 0; /* Футер не сжимается */
  padding-top: 0px;
  padding-bottom: 15px;
  background: #ff9966;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #ffffff;
  border: 0px solid #fff;
}

.footer p {
  margin-top: 0em;
  margin-bottom: 0.2em;
}

.footer h3 {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #ffffff;
}

.footer h4 {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

.footer .social-icons {
  margin-top: 10px;
  text-align: center;
}

.footer a {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #ffffff;
}

.footer a:hover {
  color: color(display-p3 1 0.322 0.91);
}

/* ===================================
    Back To Top
====================================== */

.back-to-top {
    font-size: 22px;
    width: 48px;
    height: 48px;
    text-align: center;
    display: none;
    position: fixed;
    bottom: 110px;
    right: 10px;
    z-index: 999;
    border-radius: 50%;
    background-color: #ff9966;
    border: 1px solid #fff;
    -webkit-transition: .4s;
    transition: .4s;
}
.back-to-top.open {
    bottom: 110px;
}
.back-to-top i {
    color: #fff;
    line-height: 42px;
}
.back-to-top:hover {
  background-color: #B19F55;
border: 1px solid #ffffff;
-webkit-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}
.back-to-top:hover i {
    color: #fff;
}

#message-warning {
   display: none;
  background: none;
  padding: 5px 5px;
  margin-bottom: 5px;
   width: 100%;
}

#message-warning { white-space: pre-line; }
#message-succes { white-space: pre-line; }

/* ===================================
    Основной дизайн
====================================== */

/* Декоративные элементы — фиксированы относительно экрана */
.decoration {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.decoration:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Мандала в правом верхнем углу — белая, крупнее, сдвинута ниже */
.mandala-top {
    width: clamp(120px, 25vw, 350px);
    height: auto;
    top: 80px;
    right: 30px;
    transform-origin: top right;
    filter: brightness(0) invert(1); /* делаем белой */
}

/* Мандала в левом нижнем углу */
.mandala-bottom {
    width: clamp(80px, 15vw, 200px);
    height: auto;
    bottom: 20px;
    left: 20px;
    transform-origin: bottom left;
}

/* Портрет женщины — прижат к низу, справа, чёткий */
.woman {
    width: clamp(100px, 20vw, 250px);
    height: auto;
    bottom: 0;
    right: 20px;
    transform-origin: bottom right;
    z-index: 1;
}

@media (max-width: 1298px) {
  .woman {
      display: none;
  }
}

/* Лепестки — ОБЩИЙ СТИЛЬ С ОДИНАКОВОЙ ТЕНЬЮ */
.petal {
    width: clamp(80px, 15vw, 200px);
    height: auto;
    opacity: 0.6;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

/* Позиционирование лепестков */
.left-top {
    top: 410px;
    left: 0px;
    transform-origin: top left;
    transform: rotate(-15deg);
}

.right-bottom {
    bottom: 300px;
    right: 20px;
    transform-origin: bottom right;
    transform: rotate(10deg);
}

.top-left-center {
    top: 0px;
    left: 350px;
    transform-origin: top left;
    transform: rotate(5deg);
}

@media (max-width: 768px) {
    .mandala-top {
        top: 60px;
        right: 20px;
        width: clamp(80px, 20vw, 200px);
    }

    .mandala-bottom {
        bottom: 10px;
        left: 10px;
        width: clamp(60px, 12vw, 120px);
    }

    .woman {
        bottom: 0;
        right: 10px;
        width: clamp(80px, 18vw, 180px);
    }

    .left-top {
        top: 300px;
        left: 5px;
        width: clamp(60px, 12vw, 120px);
    }

    .right-bottom {
        bottom: 150px;
        right: 30px;
        width: clamp(60px, 12vw, 120px);
    }

    .top-left-center {
        top: 40px;
        left: 100px;
        width: clamp(60px, 12vw, 120px);
    }
}

/* --- Стили для Hero секции --- */
.smriti-hero-new {
    color: #3e2b22; /* Темно-коричневый текст */
}

.smriti-main-title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #4a3b30;
}

.smriti-subtitle {
    font-weight: 700;
    font-size: 1.5rem;
    color: #3e2b22;
    line-height: 1.4;
}

.smriti-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Выделение слов (подчеркивание или цвет, как на макете) */
.highlight-text {
    color: #7a2e18; /* Красновато-коричневый акцент */
    text-decoration: underline;
    text-decoration-color: rgba(122, 46, 24, 0.3);
    text-underline-offset: 4px;
}

/* --- Фото и декорация --- */
.hero-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.6);
}

/* Градиентный круг за фото */
.hero-decoration-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(218,168,189,0.8) 0%, rgba(196,142,168,0.2) 60%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}



/* --- Секция "О методе" --- */
.method-heading {
    font-weight: 700;
    font-size: 2rem;
    color: #3e2b22;
}

.method-list {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3e2b22;
    text-align: left;
}

.method-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Галочка для списка */
.method-list li::before {
    content: "✓"; 
    position: absolute;
    left: 0.5rem;
    top: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #3e2b22; /* Цвет галочки */
}

.method-link {
    color: #7a2e18;
    text-decoration: underline;
    font-weight: 600;
}

.method-link:hover {
    color: #a33e20;
    text-decoration: none;
}

/* Адаптив */
@media (max-width: 991px) {
    .smriti-main-title, .smriti-subtitle, .smriti-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-decoration-circle {
        width: 320px;
        height: 320px;
    }
    
    .hero-photo {
        width: 220px;
        height: 220px;
    }
}

/* Списки с галочками */
.smriti-check-list {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #4a3b30;
}

.smriti-check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.smriti-check-list li::before {
    content: "✓"; /* Или можно использовать иконку url('img/check.svg') */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #512003; /* Темно-коричневый цвет галочки */
    font-size: 1.2rem;
}

/* Розовая кнопка "Записаться" */
.btn-pink {
    background-color: #b0426d; /* Цвет с макета */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-pink:hover {
    background-color: #96325a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(176, 66, 109, 0.3);
}

a.btn-pink {
    color: #fff;
}

a:hover.btn-pink {
    color: #fff;
}

/* Баннер обучения */
.neuro-banner-card {
    background-color: #FF9750;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    border: 1px solid rgba(255,255,255,0.5);
}

.neuro-title {
    font-size: 2rem;
    color: #512003;
    line-height: 1.1;
}

.neuro-link {
    font-size: 1.3rem;
    color: #512003;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.neuro-link:hover {
    color: #b0426d;
    border-bottom-color: #b0426d;
}

a.neuro-link {
    color: #fff;
}

a:hover.neuro-link {
    color: #fff;
}

.rotate-n2 {
    transform: rotate(-3deg) scale(1.05);
}

/* Декоративный круг на фоне баннера (имитация градиента макета) */
.banner-bg-circle {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 151, 80, 1) 0%, rgba(255, 224, 153, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .neuro-title {
        font-size: 1.6rem;
    }
    .neuro-link {
        font-size: 1.1rem;
    }
    .banner-bg-circle {
        display: none;
    }
}

/* Секция с кругом */
.how-it-works-circle-section {
    /* Можно задать легкий фон секции, если нужно, или оставить прозрачным */
}

.circle-wrapper {
    width: 650px;
    height: 650px;
    background-color: #FF9750;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Мягкая тень */
    position: relative;
    z-index: 2;
    margin: 2rem auto;
}

.circle-content {
    max-width: 520px; /* Ограничиваем ширину текста внутри круга */
    color: #3e2b22;   /* Темно-коричневый цвет текста */
}

.circle-title {
    font-weight: 700;
    font-size: 2rem;
    color: #3e2b22;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.2);
}

.circle-list {
    font-size: 1.05rem;
    line-height: 1.4;
}

.circle-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

/* Галочки */
.circle-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #3e2b22;
}

/* Декоративная тень/градиент справа (имитация объема как на макете) */
.circle-bg-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: -1; 
}

/* Адаптивность */
@media (max-width: 768px) {
    .circle-wrapper {
        width: 100%;
        height: auto;       /* На мобильных убираем жесткую высоту */
        aspect-ratio: unset; /* Убираем пропорцию круга */
        border-radius: 40px; /* Делаем просто скругленный прямоугольник */
        padding: 2rem 1rem !important;
    }
    
    .circle-content {
        max-width: 100%;
        padding: 0 !important;
    }

    .circle-title {
        font-size: 1.6rem;
    }

    .circle-list {
        font-size: 1rem;
    }
}

/* ==========================================================================
   БЛОГ (Instagram-Grid + Modals + Video)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Сетка постов (Instagram-стиль)
   -------------------------------------------------------------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Карточка поста */
.instagram-post {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.instagram-post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --------------------------------------------------------------------------
   Универсальный контейнер медиа (16:9)
   -------------------------------------------------------------------------- */
.post-media-container,
.post-slider {
    position: relative;
    width: 100%;
    height: 0;
    /* Было 100% (квадрат), меняем на 56.25% (16:9) */
    padding-bottom: 56.25%; 
    background: #000;
    overflow: hidden;
    /* Убираем скругление здесь, если оно есть у карточки .instagram-post */
}

/* Общее правило для всего контента внутри превью */
.post-media, 
.post-video, 
.grid-slide-img,
.video-wrapper.preview,
.video-wrapper.preview iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполняют контейнер */
    border: none;
    margin: 0;
}

/* Видео внутри превью (если используется iframe в сетке) */
.video-wrapper.preview iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none; /* Чтобы клик открывал пост, а не запускал видео */
}

/* Слайдер в превью */
.grid-slide-img { display: none; }
.grid-slide-img:first-child { display: block; }

/* Стрелки слайдера (общие) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
    padding: 0;
    transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.8); }
.slider-arrow.left { left: 10px; }
.slider-arrow.right { right: 10px; }

/* Инфо-блок под фото */
.post-info { padding: 12px 16px; }
.post-title { font-weight: 600; margin-bottom: 6px; font-size: 1.05rem; }
.post-content { text-align: left !important; display: none; }
.show-more {
    color: #3897f0;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.show-more::after { 
    content: '↓'; 
    font-size: 12px; 
    transition: transform 0.3s ease; /* Добавим анимацию */
}

/* Стрелка вверх, когда добавлен класс .open */
.show-more.open::after {
    transform: rotate(180deg);
}

/* Кнопка "Загрузить ещё" */
#load-more-container { margin-top: 30px; margin-bottom: 20px; }
#load-more-btn { min-width: 160px; border-radius: 20px; }


/* --------------------------------------------------------------------------
   2. Видео плееры (YouTube/Rutube) — Адаптивные
   -------------------------------------------------------------------------- */
/* Этот класс используется, когда мы раскрываем видео (не превью) */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #000;
    background-size: cover;
    background-position: center;
}
.video-16-9 { padding-bottom: 56.25%; }  /* 16:9 Standard */
.video-9-16 { padding-bottom: 177.78%; } /* 9:16 Shorts */

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}


/* -------------------------------------------------------------------------- */
/*                                3. blogModal                                */
/* -------------------------------------------------------------------------- */

/* === БАЗОВЫЕ СТИЛИ МОДАЛКИ (МОБИЛЬНЫЙ + ОБЩИЕ) === */
#blogModal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    background-color: #fff;
}

#blogModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

#blogModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#blogModal .modal-body {
    padding: 0; 
    overflow-y: auto;
}

/* Отступы для текста и комментариев */
#blogModalContent,
#blogModalComments,
.modal-body > h6,
.modal-body > hr,
.modal-body > form {
    padding: 0 20px;
}
.modal-body > hr {
    margin: 20px 0;
}

/* === МЕДИА-КОНТЕЙНЕР (ОБЩИЙ) === */
#blogModalMedia {
    width: 100%;
    min-height: 250px;
    
    /* Фон прозрачный или белый (для фото) */
    background: transparent;
    
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Картинки и видео внутри медиа-контейнера */
#blogModalMedia img,
#blogModalMedia video,
#blogModalMedia iframe,
.post-slider-modal,
.post-slider-modal img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important; /* Убирает растягивание */
    height: auto !important;
    object-fit: contain !important; 
    display: block;
    margin: 0 auto;
}

/* === ВИДЕО (На черном фоне) === */
#blogModalMedia .video-wrapper {
    width: 100% !important;
    height: 100% !important;
    background: #000; /* Черный фон только для видео */
    padding-bottom: 0 !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Растягиваем видео на весь контейнер */
#blogModalMedia iframe,
#blogModalMedia video {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Стрелки слайдера */
#blogModalMedia .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3); /* Темный фон стрелок, чтобы видно на белом */
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
#blogModalMedia .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}
#blogModalMedia .slider-arrow.left { left: 10px; }
#blogModalMedia .slider-arrow.right { right: 10px; }


/* === DESKTOP FIX (90% ЭКРАНА) === */
@media (min-width: 992px) {
    #blogModal .modal-dialog {
        width: 90vw !important;       
        max-width: 1200px !important; 
        height: 90vh !important;
        margin: auto !important;
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        pointer-events: none;
    }

    #blogModal .modal-content {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    /* Высота медиа-блока */
    #blogModalMedia {
        height: 55vh; 
        background: #f8f9fa; /* Светлый фон на десктопе */
    }
    /* Но для видео переопределяем на черный */
    #blogModalMedia:has(.video-wrapper) {
        background: #000;
    }
    
    #blogModal .modal-body {
        flex-grow: 1;
        overflow-y: auto;
    }
    
    /* ТЕКСТ: Слева направо, без центрирования */
    #blogModalContent {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #333;
        white-space: pre-wrap;
        max-width: 900px;
        margin: 0 auto;   
        text-align: left !important; /* Принудительно влево */
    }
}

/* --------------------------------------------------------------------------
   4. Комментарии (Мобильная шторка и список)
   -------------------------------------------------------------------------- */
/* Список комментариев */
.comment {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
}
.avatar-placeholder, .avatar-img {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #555;
    font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    object-fit: cover;
}
.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 0.95rem; color: #000; }
.comment-date { font-size: 0.8rem; color: #888; margin-left: 8px; font-weight: normal; }
.comment-text { margin-top: 4px; font-size: 0.95rem; line-height: 1.4; color: #333; }

/* Шторка (BottomSheet) для мобильных */
#commentsModalMobile {
    z-index: 10000;
}
#commentsModalMobile .modal-dialog-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh; /* Высота шторки */
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
#commentsModalMobile .modal-dialog-bottom.show { transform: translateY(0); }

#commentsModalMobile .modal-content {
    height: 100%;
    border-radius: 20px 20px 0 0;
    border: none;
    display: flex;
    flex-direction: column;
}

#commentsModalMobile .modal-header {
    flex-shrink: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    justify-content: center;
}
.modal-swipe-indicator {
    width: 40px; height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
}

#mobileCommentsContent {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 80px; /* Место под форму */
}

/* Форма отправки (прилипает к низу) */
.comment-form-mobile {
    position: absolute; /* или fixed, если нужно поверх клавиатуры */
    bottom: 0; left: 0; right: 0;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #eee;
    z-index: 10;
}

.mobile-comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f2f6;
    border-radius: 24px;
    padding: 4px 4px 4px 15px;
}
.mobile-comment-form textarea {
    flex: 1;
    border: none;
    background: transparent;
    height: 40px;
    padding: 8px 0;
    resize: none;
    outline: none;
    font-size: 14px;
}
.mobile-comment-form button[type="submit"] {
    border: none;
    background: #3897f0;
    color: #fff;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
}
.emoji-button {
    background: none; border: none; font-size: 20px; cursor: pointer; padding: 0 8px;
}

.auth-message {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    width: 100%;
    padding: 8px;
}

/* === СЛАЙДЕР В МОДАЛЬНОМ ОКНЕ === */

/* Контейнер слайдера */
.post-slider-modal {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px; /* Минимальная высота, чтобы не схлопывался */
    background-color: #f0f0f0; /* Светлый фон под картинкой */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Обрезаем всё лишнее */
}

/* Скрываем ВСЕ картинки по умолчанию */
.post-slider-modal img {
    display: none; 
    max-width: 100%;
    max-height: 80vh; /* Ограничение высоты, чтобы влезало в экран */
    width: auto;
    height: auto;
    object-fit: contain; /* Сохраняем пропорции */
    margin: 0 auto;
}

/* Показываем ТОЛЬКО активную картинку */
/* Мы используем !important, чтобы перебить любые встроенные стили */
.post-slider-modal img.active,
.post-slider-modal img[style*="display: block"], 
.post-slider-modal img[style*="display:block"] {
    display: block !important;
}

/* Кнопки навигации (стрелки) */
.post-slider-modal .slider-prev, 
.post-slider-modal .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
}

.post-slider-modal .slider-prev:hover, 
.post-slider-modal .slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.post-slider-modal .slider-prev { left: 10px; }
.post-slider-modal .slider-next { right: 10px; }
