@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #1a1a1a;
  --color-light: #ffffff;
  --color-text: #333333;
  --color-accent: #f0f0f0;
  --font-main: 'Montserrat', sans-serif;
  --container-width: 1200px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-body,
.article-body p,
.article-body span,
.article-body li,
.article-body h2,
.article-body h3 {
  font-family: "Montserrat", sans-serif !important;
}

.article-body > p,
.article-body > div,
.article-body > blockquote,
.article-body > ul,
.article-body > ol {
  margin-bottom: 30px !important;
  line-height: 1.8;
  font-size: 1.15rem;
}

:root {
  --font-main: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-light);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* --- УНИФИКАЦИЯ ОТСТУПОВ В СПИСКАХ --- */
h1, h2, h3 {
  font-family: var(--font-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1, .article-title {
  font-size: clamp(2rem, 7vw, 3rem) !important;
}

h2, .page-hero__title {
  font-size: clamp(1.5rem, 5vw, 2.3rem) !important;
  letter-spacing: 2px;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem) !important;
}

h4 {
  font-size: clamp(0.8rem, 3vw, 1rem) !important;
}

.hero__title {
  font-size: clamp(4rem, 15vw, 12rem) !important;
  letter-spacing: 20px;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 35px !important;
  margin-bottom: 15px;
  font-size: 1.15rem;
  line-height: 1.7;
  list-style: none !important;
}

.article-body ul li::before {
  content: "•";
  position: absolute;
  left: 10px !important;
  color: var(--color-dark);
  font-weight: bold;
  font-size: 1.2rem;
}

.article-body ol {
  counter-reset: my-counter;
}

.article-body ol li {
  counter-increment: my-counter;
}

.article-body ol li::before {
  content: counter(my-counter) "." !important;
  position: absolute;
  left: 0 !important;
  width: 25px;
  text-align: left;
  font-weight: 800;
  color: var(--color-dark);
  font-size: 1.1rem;
}

main {
  min-height: 75vh;
}

* {
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  -ms-tap-highlight-color: transparent;
}

.btn-practice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 250px;
  height: 55px;
  margin: 30px auto;
  background: #1a1a1a;
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-practice:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 20px 0;
  background-color: rgba(20, 20, 20, 0.4) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
}

.nav--scrolled, .nav--internal {
  padding: 10px 0 !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #eee;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo__text {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__img {
  width: 35px;
  height: auto;
  transition: filter 0.3s ease;
}

.nav--scrolled .nav__link, .nav--scrolled .logo__text,
.nav--internal .nav__link, .nav--internal .logo__text {
  color: #1a1a1a !important;
}

.nav--scrolled .logo__img, .nav--internal .logo__img {
  filter: brightness(0) !important;
}

.search-form {
  height: 38px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0 15px;
  margin-left: 15px;
  transition: all 0.4s ease;
}

.search-form input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 0.85rem;
  width: 80px;
  transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-text-fill-color: #ffffff !important;
}

.search-form input:focus {
  width: 200px;
}

.nav--scrolled .search-form, .nav--internal .search-form {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav--scrolled .search-form input, .nav--internal .search-form input {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
}

.search-form button {
  background: transparent !important;
  border: none !important;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  display: flex;
}

.search-icon {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2.5;
}

.nav--scrolled .search-icon, .nav--internal .search-icon {
  stroke: #1a1a1a;
}

.nav__login-btn {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-left: 10px;
  transition: 0.3s;
}

.nav--scrolled .nav__login-btn, .nav--internal .nav__login-btn {
  border-color: #1a1a1a;
  color: #1a1a1a !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10005;
}

.nav__burger span {
  width: 30px;
  height: 2px;
  background-color: #ffffff;
  transition: 0.3s;
}

.nav--scrolled .nav__burger span, .nav--internal .nav__burger span {
  background-color: #1a1a1a !important;
}

@media (max-width: 991px) {
  .nav__burger {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.5s ease;
  }
  .nav__menu.active {
    right: 0;
  }
  .nav__menu .nav__link {
    font-size: 1.5rem;
    color: #fff !important;
  }
  .nav__menu .search-form {
    width: 80%;
    margin: 0;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  .nav__menu .search-form input {
    width: 100% !important;
    color: #fff !important;
  }
  .nav__menu .search-icon {
    stroke: #fff !important;
  }
  .nav__burger.open span {
    background-color: #ffffff !important;
  }
}
/* --- СТИЛИЗАЦИЯ ЛОГОТИПА --- */
/* --- ГЕОМЕТРИЧЕСКИЙ ЛОГОТИП --- */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo__img {
  /* Фиксируем высоту иконки под высоту двух строк текста */
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.85;
  font-family: var(--font-main);
  color: #ffffff;
  transition: color 0.3s ease;
}

.logo__text span {
  display: block;
  text-transform: uppercase;
}

.logo__text span:first-child {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.logo__text .space-word {
  font-weight: 200;
  font-size: 1.4rem;
  letter-spacing: 8.5px;
  margin-right: -8.5px;
  margin-top: 5px;
}

.nav--scrolled .logo__text,
.nav--internal .logo__text {
  color: #1a1a1a !important;
}

.nav--scrolled .logo__text,
.nav--internal .logo__text {
  color: #1a1a1a !important;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- 3. ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
  text-align: center;
}

.hero__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: 20px;
  line-height: 1;
}

.hero__subtitle {
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* --- 4. ТЕКСТОВЫЕ КАРТОЧКИ (С чего начать / Полезное) --- */
.section-begin {
  padding: 100px 0;
  background-color: #fcfcfc;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 5px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.begin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.begin-card {
  background: white;
  padding: 40px;
  border: 1px solid #eee;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.begin-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.begin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-dark);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.begin-card:hover::before {
  transform: scaleX(1);
}

.begin-card__num {
  font-size: 0.8rem;
  color: #bbb;
  margin-bottom: 20px;
  font-weight: 700;
}

.begin-card__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.begin-card__text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
}

.begin-card__link {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  width: max-content;
}

.begin-card__link:hover {
  border-color: var(--color-dark);
}

/* --- 5. ЦИТАТА --- */
.section-quote {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.quote__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.quote__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.quote__text {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.8;
  padding: 0 20px;
}

/* --- 6. КАРТОЧКИ С КАРТИНКАМИ (РАЗДЕЛЫ) --- */
.section-categories {
  padding: 100px 0;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #666;
  font-weight: 300;
}

.category-group {
  margin-bottom: 80px;
}

.group-title {
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  background-color: #f9f9f9;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-card__link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.category-card__bg {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
  z-index: 1;
}

.category-card:hover .category-card__bg {
  transform: scale(1.1);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
  transition: 0.5s;
}

.category-card:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.category-card__title {
  position: relative;
  z-index: 5;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  width: 100%;
  padding: 0 10px;
  font-size: clamp(0.9rem, 4vw, 1.2rem);
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.678);
  pointer-events: none;
  transition: transform var(--transition-smooth);
}

/* СЕКЦИЯ РАЗДЕЛЫ */
.section-categories {
  padding: 100px 0;
  background-color: #fff;
}

.section-categories .h2_name {
  display: block;
  text-align: center !important;
  width: 100%;
  font-size: 1.2rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-description {
  display: block;
  text-align: center !important;
  max-width: 750px;
  margin: 0 auto 80px !important;
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
}

.group-title {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.7rem !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 35px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.group-title span {
  margin-right: 15px;
  color: #bbb;
}

.category-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(102, 102, 102, 0.4235294118);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
  z-index: 10 !important;
}

.category-card:hover::after {
  transform: scaleX(1);
}

/* --- 7. МЕДИТАЦИЯ --- */
.section-meditation {
  padding: 100px 0;
  background-color: #fcfcfc;
}

.meditation-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.meditation__image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.meditation__content {
  flex: 1;
}

.meditation__title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.meditation__text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  padding: 16px 35px;
  background-color: var(--color-dark);
  color: white !important;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  border: 1px solid var(--color-dark);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-dark) !important;
  transform: translateY(-3px);
}

/* --- 8. СТРАНИЦЫ СТАТЬИ И РАЗДЕЛА --- */
.page-hero {
  padding: 160px 0 60px;
  background-color: #f9f9f9;
  text-align: center;
}

.page-hero__title {
  font-size: 3.5rem;
  letter-spacing: 10px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.breadcrumbs {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--color-dark);
}

/* Отступ снизу 100px — как у .back-link-wrapper. Раньше стоял 0px,
   и на коротких страницах (404, контакты) последний текст примыкал
   вплотную к футеру. */
.article-page {
  padding: 140px 0 100px;
}

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

.article-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.article-subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 40px;
  font-weight: 300;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.article-body h2 {
  margin: 50px 0 25px;
  font-size: 2rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-dark);
  padding: 25px 30px;
  margin: 40px 0;
  font-style: italic;
  background: #f9f9f9;
  font-size: 1.2rem;
}

.article-tags {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.article-tags span {
  background: #f4f4f4;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #777;
}

.back-link-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 0 100px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #f0f0f0;
  color: #333;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.recommended-articles {
  background-color: #fcfcfc;
  padding: 80px 0;
}

.recommended-title {
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- 9. ФУТЕР И КНОПКА ВВЕРХ --- */
.footer {
  background-color: #111;
  color: rgba(255, 255, 255, 0.5);
  padding: 80px 0 40px;
  font-size: 0.8rem;
}

.footer__wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__title {
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
  font-weight: 700;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a, .footer__socials a {
  color: rgba(255, 255, 255, 0.5) !important;
  transition: 0.3s;
}

.footer__list a:hover, .footer__socials a:hover {
  color: white !important;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.footer__list, .footer__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.footer__logo {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.footer__about {
  line-height: 1.6;
  max-width: 250px;
}

.to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  color: black;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .nav__burger {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.5s ease;
    z-index: 10001;
  }
  .nav__menu.active {
    right: 0;
  }
  .nav__link {
    font-size: 1.5rem;
    color: white !important;
  }
  .nav__burger.open span {
    background-color: white !important;
  }
  .nav__burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav__burger.open span:nth-child(2) {
    opacity: 0;
  }
  .nav__burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .begin-grid, .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .meditation-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .categories-grid, .begin-grid, .footer__wrapper {
    grid-template-columns: 1fr;
  }
  .page-hero__title {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
.articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px;
  margin-top: 40px;
}

.article-card {
  height: 350px;
}

@media (max-width: 991px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr !important;
  }
}
.btn-secondary {
  background: #f4f4f4;
  color: #888;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-3px);
}

.back-footer {
  display: flex !important;
  justify-content: center !important;
  margin-top: 100px !important;
  margin-bottom: 60px;
  width: 100%;
}

.article-footer {
  margin-top: 40px;
  padding-top: 30px;
  margin-bottom: 80px;
  border-top: 1px solid #eee;
}

.article-tags {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.article-tags span {
  background: #f4f4f4;
  color: #888;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: 0.3s;
  cursor: pointer;
}

.article-tags span:hover {
  background: #eee;
  color: #333;
}

.share-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-icons {
  display: flex;
  gap: 15px;
}

.share-icon {
  text-decoration: none;
  color: #999;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
}

.share-icon:hover {
  color: #000;
}

.article-hero {
  margin-bottom: 50px;
  width: 100%;
}

.article-toc {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 60px;
  border: 1px solid #eee;
  display: none;
}

.article-toc h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #aaa;
}

.article-toc ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px;
  list-style: none;
  padding: 0;
}

.article-toc a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: 0.3s;
  border-bottom: 1px solid transparent;
}

.article-toc a:hover {
  color: #666;
  border-bottom: 1px solid #ddd;
}

.article-body h2 {
  font-size: 2.2rem;
  margin-top: 80px;
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.article-body hr {
  border: 0;
  height: 1px;
  background-color: #eee;
  margin: 60px auto;
  width: 80%;
}

.article-body hr + h2 {
  margin-top: 0;
}

.article-body li {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .article-toc ul {
    grid-template-columns: 1fr;
  }
  .article-body h2 {
    font-size: 1.8rem;
  }
  .article-toc {
    padding: 20px;
  }
}
.btn-fav {
  display: inline-block !important;
  background-color: transparent !important;
  border: 1px solid #1a1a1a !important;
  color: #1a1a1a !important;
  padding: 10px 25px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  margin-bottom: 30px;
}

.btn-fav:hover {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

#toTop {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  z-index: 999999 !important;
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#toTop.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.cookie-banner {
  position: fixed !important;
  bottom: -200px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 95%;
  max-width: 500px;
  background: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100000;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner p {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #666;
  margin: 0;
  padding-right: 15px;
}

.cookie-banner button {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cookie-banner.hide {
  transform: translate(-50%, 200px) !important;
  opacity: 0;
}

.cookie-banner.show {
  bottom: 30px !important;
}

.cookie-banner button:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.search-results-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
  letter-spacing: 4px !important;
  text-align: left;
  margin-top: 20px;
  line-height: 1.3;
}

.auth-container {
  width: 90%;
  max-width: 440px;
  margin: 160px auto 100px;
  padding: 60px 45px;
  background: #fff;
  border-radius: 35px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.auth-container h2,
.profile-header h1 {
  font-size: clamp(1rem, 5vw, 1.8rem) !important;
  letter-spacing: 2px !important;
  line-height: 1.2;
  word-wrap: break-word;
  margin-bottom: 35px;
  font-weight: 700;
  color: #1a1a1a;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-container input {
  width: 100%;
  padding: 16px 25px;
  border: 1px solid #f0f0f0;
  border-radius: 50px;
  background: #fbfbfb;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
}

.auth-container input:focus {
  border-color: #000;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  outline: none;
}

.btn-auth {
  background: #000;
  color: #fff;
  padding: 18px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-auth:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.tg-auth-box {
  margin-top: 40px;
  padding: 30px 20px;
  background: #fdfdfd;
  border: 1px solid #f2f2f2;
  border-radius: 25px;
}

.tg-auth-box p {
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.tg-widget-inner {
  display: flex;
  justify-content: center;
  transform: scale(1.05);
}

.auth-footer-link {
  margin-top: 30px;
  display: block;
  font-size: 0.85rem;
  color: #999;
}

.auth-footer-link a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  transition: 0.3s;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #fff;
  padding: 50px 40px;
  border-radius: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
}

.modal-box h3 {
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.modal-box p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-modal-reg {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logout-link {
  color: #e74c3c;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
  padding-bottom: 5px;
}

.logout-link:hover {
  border-color: #e74c3c;
  opacity: 0.7;
}

.profile-page-content h1 {
  font-family: var(--font-main);
  font-weight: 700;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
    gap: 20px;
  }
}
.meditation__image-link {
  flex: 1;
  display: block;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.meditation__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.meditation__image-link:hover img {
  transform: scale(1.08);
}

.meditation__image-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: 0.4s;
}

.meditation__image-link:hover::after {
  opacity: 1;
}

.next-step-box {
  margin-top: 80px;
  margin-bottom: 100px !important;
  padding: 60px 40px;
  background: #111;
  color: #fff;
  border-radius: 35px;
  text-align: center;
}

.next-step-box h3 {
  color: #fff !important;
  font-size: 1.6rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.next-step-box p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.next-step-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-step-white {
  background-color: #ffffff !important;
  color: #000000 !important;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.btn-step-white:hover {
  background-color: transparent !important;
  color: #ffffff !important;
}

.btn-step-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  padding: 16px 35px;
  border: 2px solid #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-step-outline:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

@media (max-width: 768px) {
  .next-step-box {
    padding: 40px 20px;
    margin-bottom: 60px !important;
  }
  .next-step-wrapper {
    flex-direction: column;
  }
}
.next-step-box.light-theme {
  background: #fdfdfd !important;
  border: 1px solid #f0f0f0;
  color: #1a1a1a;
}

.next-step-box.light-theme h3 {
  color: #1a1a1a !important;
}

.next-step-box.light-theme p {
  color: #777 !important;
}

.btn-black {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #1a1a1a;
  display: inline-block;
}

.btn-black:hover {
  background-color: transparent !important;
  color: #1a1a1a !important;
}

.btn-outline-black {
  background-color: transparent !important;
  color: #1a1a1a !important;
  padding: 16px 35px;
  border: 2px solid #1a1a1a;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-black:hover {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.article-header {
  padding-top: 2rem;
}

.custom-form {
  max-width: 700px;
  margin: 0 auto;
}

.custom-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.custom-form .form-group {
  flex: 1;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 15px 25px;
  border: 1px solid #eee;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: #fdfdfd;
  transition: all 0.3s ease;
}

.custom-form textarea {
  border-radius: 25px;
  resize: none;
}

.custom-form input:focus,
.custom-form textarea:focus {
  border-color: #000;
  background: #fff;
  outline: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
  .custom-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* Блок контактов: вместо формы заявки — два канала связи (почта и Telegram).
   Оформление повторяет остальной сайт: тот же радиус и тот же чёрный ховер. */
.contact-channels {
  max-width: 640px;
  margin: 70px auto 0;
  padding-bottom: 1rem;
}

/* Курсивная подпись под блоком контактов */
.contact-note {
  max-width: 500px;
  margin: 2.5rem auto 5rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

.contact-channel {
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: border-color 0.3s ease;
}

.contact-channel:last-child {
  margin-bottom: 0;
}

.contact-channel:hover {
  border-color: #d8d8d8;
}

.contact-channel__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #999;
}

.contact-channel__text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.contact-channel__link {
  display: inline-block;
  padding: 12px 26px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-channel__link:hover {
  background: #2d251e;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .contact-channel {
    padding: 24px 20px;
  }

  .contact-channel__link {
    width: 100%;
    text-align: center;
  }
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 120px !important;
}

.book-card__title {
  font-size: 0.9rem !important;
  margin-top: 15px;
  line-height: 1.3;
}

.book-card__subtitle {
  font-size: 0.75rem !important;
  color: #999;
}

.article-hero {
  margin-bottom: 60px;
  text-align: center;
}

.article-hero img {
  width: auto;
  max-width: 100%;
  max-height: 550px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.book-card {
  transition: transform 0.4s ease;
}

.book-card__link {
  text-decoration: none;
  color: inherit;
}

.book-card__cover {
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.book-card:hover .book-card__cover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.book-card__overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 50px;
}

.book-card:hover .book-card__overlay {
  opacity: 1;
}

.book-card__info {
  margin-top: 20px;
  text-align: center;
}

.book-card__subtitle {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
  margin-top: 0.4rem;
}

.book-card .category-card__bg,
.book-card .category-card__title {
  display: none !important;
}

.article-body span,
.article-body ms-cmark-node {
  display: inline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-body p,
.article-body div {
  font-family: "Montserrat", sans-serif !important;
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  color: #333 !important;
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

.article-body h2 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 2.2rem;
  line-height: 1.2 !important;
  margin-top: 80px !important;
  margin-bottom: 30px !important;
  display: block !important;
}

.article-body .lead {
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  color: #666 !important;
  margin-bottom: 45px !important;
}

.article-body a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  transition: all 0.3s ease;
  padding-bottom: 1px;
}

.article-body a:hover {
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  opacity: 0.7;
}

.article-body a {
  color: #666;
  border-bottom: 1px solid #ccc;
}

.article-body li ul {
  list-style: none !important;
  margin-top: 15px;
  margin-left: 0;
  padding-left: 0 !important;
}

.article-body li ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
}

.article-body li ul li::before {
  content: "◦" !important;
  position: absolute;
  left: 5px;
  color: #999;
  font-weight: bold;
  counter-increment: none !important;
}

.article-body blockquote {
  background: #f4f4f4 !important;
  color: #333 !important;
  border-left: 4px solid #ffffff !important;
  padding: 50px 60px 40px 70px !important;
  margin: 60px 0 !important;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-body blockquote::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  color: #ddd;
  font-family: serif;
  line-height: 1;
  z-index: 1;
}

.article-body blockquote p {
  font-style: italic;
  font-size: 1.25rem !important;
  color: #ffffff !important;
  margin-bottom: 20px !important;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.article-body blockquote cite,
.article-body blockquote footer {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  color: #888888;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.tip-box cite {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  color: #888888;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.article-body blockquote p em {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 15px;
  text-transform: uppercase;
}

.article-body li {
  margin-bottom: 15px !important;
  line-height: 1.7 !important;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-body p, .article-body div {
  margin-bottom: 25px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.articles-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px;
  width: 100%;
}

.article-page .articles-grid:has(.book-card) {
  grid-template-columns: repeat(auto-fill, 200px) !important;
  justify-content: center;
}

article-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 50px 0;
}

.article-body p {
  margin-bottom: 28px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.article-body h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 12px;
}

.pell-content .lead {
  font-size: 1.25rem;
  color: #666;
  font-weight: 300;
  border-left: 2px solid #eee;
  padding-left: 15px;
}

.article-body ol {
  counter-reset: ls-counter;
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 30px;
}

.article-body ol > li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  counter-increment: ls-counter !important;
}

.article-body ol > li::before {
  content: counter(ls-counter) "." !important;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.article-body li ul {
  list-style: none !important;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-left: 0 !important;
}

.article-body li ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
  counter-increment: none !important;
}

.article-body li ul li::before {
  content: "•" !important;
  position: absolute;
  left: 5px;
  top: -2px;
  color: #bbb;
  font-size: 1.4rem;
}

/* Применяем стилистику списков из статьи к спискам внутри инфо-блоков */
.info-box ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.info-box li {
  position: relative;
  padding-left: 2rem !important;
  margin-bottom: 12px !important;
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-box li::before {
  content: "•";
  position: absolute;
  left: 10px;
  color: var(--color-dark);
  font-weight: bold;
  font-size: 1.2rem;
}

.info-box h3 {
  margin-top: 0 !important;
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
}

.article-body > ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 30px;
}

.article-body > ul > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.article-body > ul > li::before {
  content: "•" !important;
  position: absolute;
  left: 10px;
  color: var(--color-dark);
  font-weight: bold;
}

.article-body li {
  position: relative;
  padding-left: 30px;
  font-size: 1.15rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .article-body {
    padding: 0 5px;
  }
  .article-body li {
    padding-left: 35px;
    font-size: 1.05rem;
  }
  .article-body hr {
    margin: 40px auto !important;
    width: 90%;
  }
  .article-body h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.6rem !important;
  }
}
.article-body .tip-box ol,
.article-body .tip-box ul,
.article-body .alert-box ol,
.article-body .alert-box ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 30px !important;
}

.article-body .tip-box li:last-child,
.article-body .alert-box li:last-child {
  margin-bottom: 0 !important;
}

/* --- АКЦЕНТНЫЕ БЛОКИ В СТАТЬЯХ --- */
.info-box {
  padding: 30px 40px;
  margin: 40px 0;
  border-radius: 0 20px 20px 0;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
}

.alert-box {
  background-color: #fff5f5 !important;
  border-left: 4px solid #e74c3c !important;
  color: #333;
}

.tip-box {
  background-color: #f0f7ff !important;
  border-left: 4px solid #3498db !important;
  color: #333;
}

.alert-box strong:first-child,
.tip-box strong:first-child {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.video-facade::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.3s ease;
}

.video-facade:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

.video-facade::before {
  content: "▶";
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.3s;
  padding-left: 5px;
}

.video-facade p {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.video-facade:hover::before {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 20px;
  margin-top: 40px;
  margin-bottom: 10px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.media-caption {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
  padding-right: 10px;
  margin-top: -35px !important;
  margin-bottom: 40px !important;
  font-size: 0.75rem !important;
  color: #999 !important;
  letter-spacing: 1px;
}

.media-caption a {
  color: #777 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #eee !important;
}

.video-facade.is-active::before {
  display: none !important;
}

.video-facade.is-active p {
  display: none !important;
}

.video-facade.is-active::after {
  display: none !important;
}

.video-facade.is-active {
  cursor: default;
  pointer-events: auto;
}

.video-facade p {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.video-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
}

.video-facade::before {
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .video-facade {
    gap: 8px !important;
    padding: 30px 15px !important;
    min-height: 200px;
  }
  .video-facade::before {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
    padding-left: 4px !important;
  }
  .video-facade p {
    font-size: 0.65rem !important;
    letter-spacing: 2px !important;
    max-width: 250px;
    line-height: 1.4 !important;
    text-align: center;
    opacity: 0.8;
  }
  .vpn-notice {
    margin-top: -10px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    opacity: 0.6;
  }
  .media-caption {
    text-align: center !important;
    padding-right: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    font-size: 0.7rem !important;
  }
}
.video-facade .vpn-notice {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin-top: -5px;
  transition: 0.3s;
}

.video-facade:hover .vpn-notice {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .video-facade .vpn-notice {
    font-size: 0.6rem;
    max-width: 200px;
    line-height: 1.2;
  }
}
.article-body .alert-box {
  background: #fff5f5;
  border-left: 4px solid #e74c3c;
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
}

.article-body .tip-box {
  background: #f0f7ff;
  border-left: 4px solid #3498db;
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
}

.alert-box *:last-child, .tip-box *:last-child {
  margin-bottom: 0 !important;
}

.physics-box {
  background: #f9f9f9 !important;
  color: #1a1a1a !important;
  padding: 40px !important;
  border-radius: 25px;
  margin: 50px 0;
  border: 1px solid #eee;
}

.physics-box h3 {
  color: #1a1a1a !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  font-size: 1.1rem !important;
  letter-spacing: 2px;
}

.physics-box p {
  color: #444 !important;
  font-style: italic;
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}

.book-source {
  margin-top: 40px;
  padding: 25px;
  background: #fbfbfb;
  border-radius: 15px;
  border-left: 2px solid #eee;
}

.book-source p {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: #888 !important;
  margin-bottom: 10px !important;
  font-style: italic;
}

.book-source .book-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a1a !important;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  margin-top: 10px;
  transition: 0.3s;
}

.book-source .book-link:hover {
  opacity: 0.6;
}

.filter-reset {
  background: none;
  border: 1px solid transparent;
  color: #999;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-reset:hover {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
  border-color: rgba(231, 76, 60, 0.1);
}

@media (max-width: 768px) {
  .filter-reset {
    margin-left: 0;
    margin-top: 10px;
    padding: 10px 0;
  }
}
.filter-reset {
  grid-column: 1/-1;
  justify-content: center;
  margin-top: 10px;
}

.btn-lang {
  background: transparent;
  border: 0.5px solid #ddd;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.btn-lang:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #f9f9f9;
}

@media (max-width: 768px) {
  .ai-assistant {
    padding: 30px 20px !important;
    margin-top: 50px !important;
    border-radius: 20px !important;
  }
  .ai-assistant h3 {
    font-size: 0.9rem !important;
  }
  .ai-assistant div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .ai-assistant input {
    width: 100% !important;
  }
  .btn-lang {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
}
@media (max-width: 768px) {
  .ai-assistant .ai-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .ai-assistant input {
    width: 100% !important;
    border-radius: 20px !important;
  }
  .ai-assistant .btn-black {
    width: 100% !important;
  }
  .btn-lang {
    flex: 1 1 30%;
    padding: 10px 5px !important;
    font-size: 0.8rem !important;
  }
}
.ai-assistant input::placeholder {
  font-size: 0.8rem;
  opacity: 0.5;
}

.btn-lang {
  background: transparent;
  border: 0.1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  color: #999;
  cursor: pointer;
  transition: all 0.4s ease;
  flex: 1 1 auto;
}

.btn-lang:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.article-body img.schema {
  display: block;
  width: 60%;
  max-width: 450px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .article-body img.schema {
    width: 100%;
  }
}
.btn-filter-toggle {
  background: none;
  border: 1px solid #ddd;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.btn-filter-toggle:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-filter-toggle.active {
  background: #f4f4f4;
  border-color: #1a1a1a;
}

.filters-container-wrapper {
  overflow: hidden;
  animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.filter-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 30px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.btn-filter-toggle svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.5px;
  flex-shrink: 0;
}

.btn-filter-toggle:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-filter-toggle.active {
  background: #1a1a1a;
  color: #fff;
}

.delete-fav-form {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

.delete-fav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: #000;
}

.delete-fav-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: scale(1.1);
}

/* Навигация в профиле */
.profile-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.p-nav-link {
  text-decoration: none;
  color: #999;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
  position: relative;
}

.p-nav-link.active {
  color: #1a1a1a;
}

.p-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
}

.tracker-box {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 30px;
}

.noted-badge {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.view-selector a {
  text-decoration: none;
  color: #555;
  font-size: 0.75rem;
  margin-left: 10px;
  font-weight: 700;
}

.profile-nav-container {
  width: 100%;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  position: relative;
}

.profile-nav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 30px;
  padding-bottom: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.profile-nav::-webkit-scrollbar {
  display: none;
}

.p-nav-link {
  text-decoration: none;
  color: #999;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
  flex-shrink: 0;
  position: relative;
}

.p-nav-link.active {
  color: #1a1a1a;
}

.p-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 3px 3px 0 0;
}

.logout-tab {
  color: #e74c3c !important;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .profile-nav {
    gap: 20px;
  }
  .p-nav-link {
    font-size: 0.75rem;
  }
}
/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ (ПРОФИЛЬ)
   ========================================================================== */
.profile-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  gap: 20px;
}

.profile-nav {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  padding-bottom: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.profile-nav::-webkit-scrollbar {
  display: none;
}

.p-nav-link {
  text-decoration: none;
  color: #999;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
  position: relative;
  flex-shrink: 0;
}

.p-nav-link.active {
  color: #1a1a1a;
}

.p-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a1a1a;
}

.logout-link-top, .logout-tab {
  text-decoration: none;
  color: #e74c3c !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: 0.3s;
  flex-shrink: 0;
}

.logout-link-top:hover {
  opacity: 1;
}

.tracker-box {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 30px;
  margin-bottom: 50px;
}

.calendar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-day {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  transition: 0.3s;
}

.placeholder-section {
  text-align: center;
  padding: 80px 20px;
  background: #fdfdfd;
  border: 1px dashed #eee;
  border-radius: 30px;
}

.placeholder-section h3 {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

@media (max-width: 991px) {
  .profile-nav-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .profile-nav {
    gap: 20px;
    padding-bottom: 12px;
  }
  .p-nav-link {
    font-size: 0.8rem;
  }
  .p-nav-link.active::after {
    bottom: -13px;
  }
  .logout-link-top {
    margin: 10px 0 20px;
    text-align: left;
  }
  .tracker-box {
    padding: 30px 20px;
    border-radius: 25px;
  }
  .calendar-day {
    width: 12px;
    height: 12px;
  }
}
.profile-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 30px;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

.logout-tab {
  color: #e74c3c !important;
  margin-left: 10px;
}

.logout-tab:hover {
  opacity: 0.7;
}

.logout-tab::after {
  display: none !important;
}

.profile-nav-wrapper {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 992px) {
  .logout-tab {
    margin-left: auto !important;
    padding-left: 20px;
    border-left: 1px solid #eee;
  }
}
.logout-tab {
  color: #e74c3c !important;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

.logout-tab:hover {
  opacity: 1;
  text-decoration: underline !important;
}

/* --- ГЛОБАЛЬНЫЙ СТИЛЬ ВСЕХ ФОРМ (Вход, Регистрация, Настройки) --- */
.form-stacked {
  display: flex !important;
  flex-direction: column !important;
  gap: 3rem !important; /* Отступы между блоками */
  width: 100%;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left;
  width: 100%;
}

.form-group input {
  width: 100% !important;
  padding: 15px 25px !important;
  border: 1px solid #eee !important;
  border-radius: 50px !important;
  background: #fdfdfd !important;
  font-family: var(--font-main) !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.form-group input:focus {
  border-color: #1a1a1a !important;
  background: #fff !important;
  outline: none !important;
}

/* Обертка пароля */
.password-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.password-toggle {
  position: absolute !important;
  right: 20px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #bbb !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.password-toggle:hover {
  color: #1a1a1a !important;
}

.password-toggle svg {
  width: 20px !important;
  height: 20px !important;
}

.form-group {
  margin-bottom: 25px !important;
  text-align: left;
}

.form-group label {
  margin-bottom: 12px !important;
  display: block;
  font-size: 0.7rem;
  color: #aaa;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.auth-container input,
.settings-container input,
.form-group input {
  width: 100% !important;
  height: 50px !important;
  padding: 0 25px !important;
  border: 1px solid #eee !important;
  border-radius: 50px !important;
  background: #fdfdfd !important;
  font-family: var(--font-main) !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.password-toggle {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 10;
  display: flex;
  align-items: center;
  color: #bbb !important;
}

.password-toggle svg {
  width: 20px !important;
  height: 20px !important;
}

.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 50px !important;
  margin: 0 !important;
}

.password-toggle:hover {
  color: #1a1a1a;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.profile-nav-container {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

/* Градиентная маска справа — подсказка о скролле */
.profile-nav-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255));
  pointer-events: none;
  z-index: 5;
}

.profile-nav {
  display: flex !important;
  overflow-x: auto;
  flex-wrap: nowrap !important;
  gap: 30px;
  padding-bottom: 15px;
}

.p-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  z-index: 10;
}

@media (min-width: 992px) {
  .profile-nav-container::after {
    display: none !important;
  }
}
/* Контейнер загрузки аватара */
/* --- СТИЛИ ПРОФИЛЯ (УПРОЩЕННЫЕ) --- */
.avatar-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирует всё внутри */
  gap: 15px;
  padding: 30px;
  background: #fdfdfd;
  border-radius: 25px;
  border: 1px solid #f2f2f2;
  margin-bottom: 30px;
}

.current-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
}

/* Убираем рамку и фон у самого контейнера инпута файла */
.avatar-upload-wrapper input[type=file] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
}

/* Стилизуем только саму кнопку внутри */
input[type=file]::file-selector-button {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

input[type=file]::file-selector-button:hover {
  background: #1a1a1a;
  color: #fff;
}

input[type=file]::file-selector-button {
  border: 1px solid #eee;
  padding: 10px 25px;
  border-radius: 50px;
  background-color: #fff;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

input[type=file]::file-selector-button:hover {
  background-color: #1a1a1a;
  color: #fff;
}

.btn-save-settings {
  background: #1a1a1a !important;
  color: #fff !important;
  max-width: 300px;
  margin: 20px auto 0 !important;
  display: block;
}

.auth-container form {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-top: 30px;
}

.settings-container .btn-auth {
  background: #1a1a1a !important;
  border-radius: 50px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 5px !important;
  text-align: left;
}

.form-group label {
  display: block !important;
}

.forgot-pass-link {
  display: inline-block !important;
  margin-top: 15px !important;
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: 0.3s;
}

/* Увеличиваем отступы во всех формах */
.form-stacked {
  gap: 25px !important;
}

.forgot-pass-link:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.auth-container input {
  margin: 0 !important;
}

.password-toggle:hover {
  color: #1a1a1a;
}

.view-selector a.active {
  color: #fff;
  border-bottom: 1px solid #fff;
}

.asana-specs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #bbb;
  letter-spacing: 1px;
  font-weight: 700;
}

.spec-value {
  font-size: 0.9rem;
  color: #555;
  margin-top: 5px;
}

.img-zdorove {
  background-image: url("/img/health.webp");
}

.img-pitanie {
  background-image: url("/img/nutrition.webp");
}

.img-asany {
  background-image: url("/img/yoga-pose.webp");
}

.img-pranayama {
  background-image: url("/img/breathing.webp");
}

.img-psy {
  background-image: url("/img/psy.webp");
}

.img-think {
  background-image: url("/img/think.webp");
}

.img-energy {
  background-image: url("/img/energy.webp");
}

.img-dreams {
  background-image: url("/img/dreams.webp");
}

.img-mindful {
  background-image: url("/img/mindful.webp");
}

.img-meditation {
  background-image: url("/img/meditation.webp");
}

.img-philosophy {
  background-image: url("/img/philosophy.webp");
}

.img-universe {
  background-image: url("/img/universe.webp");
}

.avatar-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  background: #fdfdfd;
  padding: 20px;
  border-radius: 20px;
}

.current-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: #bbb;
}

.avatar-inputs {
  flex: 1;
  text-align: left;
}

.avatar-inputs input {
  font-size: 0.7rem !important;
  padding: 10px !important;
}

.nav__profile-link:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.nav--scrolled .nav__profile-link:hover {
  background: #f4f4f4 !important;
  color: #1a1a1a !important;
}

/* Layout Настроек */
.settings-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.settings-sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-content {
  flex: 1;
}

.settings-content {
  flex: 1;
  max-width: 500px;
}

/* Настраиваем заголовки внутри вкладок */
.settings-card h3 {
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 35px;
  border-bottom: 1px solid #f4f4f4;
  padding-bottom: 15px;
}

/* Кнопка "Обновить пароль" — сделаем её чуть компактнее */
.btn-save-settings {
  width: 100%;
  max-width: 250px;
  margin: 30px 0 0 !important;
}

.btn-save-settings {
  margin: 30px auto 0 !important;
  display: block;
}

.s-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  transition: 0.3s;
}

.s-nav-link i {
  width: 18px;
  height: 18px;
}

.s-nav-link:hover {
  background: #f9f9f9;
  color: #1a1a1a;
}

.s-nav-link.active {
  background: #f4f4f4;
  color: #1a1a1a;
  font-weight: 700;
}

.settings-card {
  background: #fff;
  padding: 0;
}

.settings-card h3 {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fffafa;
  border: 1px solid #ffebeb;
  border-radius: 15px;
}

.danger-item small {
  color: #aaa;
}

.btn-outline-small {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  color: #999;
}

.btn-outline-small.btn-red {
  color: #e74c3c;
  border-color: #fbdada;
}

@media (max-width: 768px) {
  .settings-layout {
    flex-direction: column;
    gap: 30px;
  }
  .settings-sidebar {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  .s-nav-link {
    padding: 10px 15px;
    white-space: nowrap;
    font-size: 0.8rem;
  }
}
@keyframes rubberExpand {
  0% {
    flex: 1;
    background: #f8f8f8;
    color: #bbb;
  }
  100% {
    flex: 2.5;
    background: #1a1a1a;
    color: #fff;
  }
}
@media (max-width: 991px) {
  .s-nav-link.active {
    animation: rubberExpand 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    background: #1a1a1a !important;
    color: #fff !important;
    flex: 2.5;
  }
  .s-nav-link.active span {
    animation: fadeInText 0.8s ease;
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .s-nav-link i {
    margin-bottom: 5px;
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.4s ease;
  }
  .s-nav-link.active {
    flex: 2.5;
    background: #1a1a1a !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .s-nav-link.active i {
    transform: scale(1.2);
    color: #fff !important;
  }
  .avatar-upload-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px !important;
  }
  input[type=file]::file-selector-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .settings-content h3 {
    text-align: center;
    font-size: 1rem !important;
  }
}
@media (max-width: 991px) and (max-width: 480px) {
  .s-nav-link:not(.active) span {
    display: none;
  }
  .s-nav-link.active span {
    display: block;
    font-size: 0.8rem;
  }
}
.settings-sidebar .s-nav-link.active {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

.settings-sidebar .s-nav-link.active i {
  color: #fff !important;
}

@media (max-width: 991px) {
  .settings-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 10px !important;
    padding: 10px 0;
    scrollbar-width: none;
  }
  .s-nav-link {
    flex: 1;
    min-width: 60px;
    height: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
  }
  .s-nav-link.active {
    flex: 3 !important;
    background: #1a1a1a !important;
    color: #fff !important;
  }
}
@media (max-width: 991px) and (max-width: 480px) {
  .s-nav-link:not(.active) span {
    display: none;
  }
}
@media (max-width: 991px) {
  .s-nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 80px !important;
    text-align: center;
    padding: 10px !important;
  }
  .s-nav-link span {
    margin-top: 5px;
    line-height: 1.2;
  }
  .settings-layout {
    width: 100%;
    padding: 0;
  }
  .settings-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .settings-card {
    width: 100% !important;
    padding: 0 !important;
  }
  .form-stacked {
    width: 100% !important;
  }
}
/* ПАНЕЛЬ ФИЛЬТРОВ */
.filters-container {
  padding: 30px 40px;
  background: #fdfdfd;
  border-radius: 25px;
  border: 1px solid #f2f2f2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.filter-group {
  display: grid;
  grid-template-columns: 100px 60px 1fr;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #bbb;
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #eee;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #666;
  text-decoration: none !important;
  background: white;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #aaa;
  color: #1a1a1a;
}

.filter-btn.active {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #1a1a1a !important;
}

/* Кнопка сброса */
.filter-reset {
  margin-top: 10px;
  align-self: flex-end;
  background: none;
  border: none;
  color: #bbb;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.3s;
}

.filter-reset:hover {
  color: #e74c3c;
}

/* Ссылка-кнопка */
.filter-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #eee;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #666;
  text-decoration: none !important;
  background: white;
  transition: 0.3s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #aaa;
  color: #1a1a1a;
}

.filter-btn.active {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #1a1a1a !important;
}

.all-btn {
  justify-self: flex-start;
}

@media (max-width: 991px) {
  .filter-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* Эффект при наведении на картинку, которую можно увеличить */
.article-body img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 20000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 100%;
  max-height: 95vh;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.lightbox.active {
  display: flex;
}

/* --- СТИЛИЗАЦИЯ ТАБЛИЦ В СТАТЬЯХ --- */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 50px 0;
  font-family: var(--font-main);
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* ЗАГОЛОВОК ТАБЛИЦЫ (внутри) */
.article-body table caption {
  padding: 25px;
  background-color: #eee;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.article-body th {
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 20px 15px;
  text-align: left;
}

.article-body td {
  padding: 18px 15px;
  border-bottom: 1px solid #f8f8f8;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  transition: background 0.3s ease;
}

.article-body tr:nth-child(even) td {
  background-color: #fafafa;
}

.article-body tr:hover td {
  background-color: #f4f4f4;
}

.article-body tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #444;
  transition: 0.3s;
}

.checkbox-container input[type=checkbox] {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
  accent-color: #1a1a1a; /* Цвет галочки в современных браузерах */
}

.checkbox-container:hover {
  color: #000;
}

.profile-alert {
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 30px;
  text-align: center;
  animation: fadeInDown 0.5s ease;
}

.profile-alert.success {
  background: #e7faf3;
  color: #2ecc71;
  border: 1px solid #d1f5e8;
}

.profile-alert.error {
  background: #fff5f5;
  color: #e74c3c;
  border: 1px solid #ffebeb;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-container h2 {
  font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
  letter-spacing: 2px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.form-stacked, .auth-form-fixed {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
  width: 100%;
}

/* Фикс для длинных слов (чтобы не ломали экран) */
.article-body h1,
.article-body h2,
.article-body p {
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
  margin-bottom: 40px !important;
  line-height: 1.2;
}

.legal-content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem) !important;
  margin-top: 60px !important;
}

.legal-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
  margin-top: 40px !important;
  color: #333;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #444;
}

.checkbox-container input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #1a1a1a;
  cursor: pointer;
}

/* Красивый выпадающий список */
.community-section select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #f0f0f0 !important;
  background-color: #fdfdfd !important;
  padding: 10px 40px 10px 20px !important;
  border-radius: 50px !important;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none !important;
  color: #666;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ccc%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.community-section select:focus {
  border-color: #1a1a1a !important;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #fff;
  font-weight: 700;
}

.article-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-practice-toggle {
  border-color: #3498db !important;
  color: #3498db !important;
}

.btn-practice-toggle:hover {
  background-color: rgba(52, 152, 219, 0.05) !important;
}

/* УМНАЯ СЕТКА ПРАКТИКИ */
.practice-grid-dynamic {
  display: grid;
  /* Сетка сама решает сколько колонок влезет: от 300px до 1fr */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.practice-col {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 25px;
  padding: 30px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.practice-col-title {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid #f9f9f9;
  padding-bottom: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.practice-list {
  list-style: none;
  padding: 0;
}

.practice-item-real {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.practice-item-real .num {
  font-weight: 800;
  color: #eee;
  font-size: 0.9rem;
}

.practice-link {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.practice-link:hover {
  border-bottom-color: #1a1a1a;
}

.practice-item-empty {
  color: #ddd;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

.delete-small-btn {
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

.delete-small-btn:hover {
  color: #e74c3c;
}

.practice-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.practice-table {
  min-width: 700px;
  border-collapse: collapse;
}

.practice-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.practice-scroll-container::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}

/* СТИЛЬ ПРЕВЬЮ ПРИ НАВЕДЕНИИ */
.link-preview-box {
  position: fixed;
  z-index: 100000;
  width: 220px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 10px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.link-preview-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.link-preview-box img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.link-preview-box span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a1a;
}

.focus-selector-box {
  background: #fdfdfd;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid #f2f2f2;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.focus-label {
  font-size: 0.7rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.focus-select-custom {
  border: 1px solid #eee;
  padding: 10px 35px 10px 20px;
  border-radius: 50px;
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ccc%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  transition: 0.3s;
}

.focus-select-custom:hover {
  border-color: #1a1a1a;
}

.app-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  /* Только opacity: visibility не интерполируется и остаётся visible до конца
     анимации, из-за чего 0.6 с невидимый блок ест клики по меню. */
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 80px;
  height: auto;
  /* Анимация пульсации */
  animation: pulseLogo 2s infinite ease-in-out;
}

.loader-line {
  width: 40px;
  height: 2px;
  background: #eee;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* Бегущая полоска под логотипом */
.loader-line::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  animation: lineLoading 1.5s infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.5;
  }
}
@keyframes lineLoading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
/* Класс для скрытия */
.app-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.article-body {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  text-align-last: left;
}

@media (max-width: 480px) {
  .article-body {
    text-align: justify;
    hyphens: none;
  }
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  text-align: left !important;
  text-align-last: left !important;
  hyphens: none !important;
}

.yoga-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 37, 30, 0.6);
  display: flex !important;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.yoga-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.yoga-modal.is-open .yoga-modal-content {
  transform: translateY(0);
}

.yoga-modal-content {
  background-color: #faf6f0;
  padding: 40px 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid #ebdcd0;
  border-top: 4px solid #c59b6d;
  box-shadow: 0 20px 50px rgba(77, 61, 49, 0.15);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.yoga-modal-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #9b7653;
  margin-top: 0;
  margin-bottom: 20px;
}
.yoga-modal-content p {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #5c5047;
  margin-bottom: 20px;
}

.yoga-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  color: #a39589;
  cursor: pointer;
  transition: color 0.2s ease;
}
.yoga-modal-close:hover {
  color: #9b7653;
}

.yoga-modal-accent {
  font-style: italic;
  color: #c59b6d !important;
  font-weight: 500;
}

.yoga-modal-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  height: 40px;
  margin-top: 15px;
  background-color: #9b7653;
  color: #ffffff;
  border: none;
  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.yoga-modal-btn:hover {
  background-color: #805c3d;
}
