:root {
  /* Основные цвета */
  --beige-brown: #a67b5b;
  --beige-brown-alt: #8b6b52;
  --khaki-green: #5c6f47;
  --khaki-green-alt: #61764b;
  --deep-brown: #3f2e2b;
  --deep-brown-alt: #4a3a38;

  /* Акцентные цвета */
  --orange-mustard: #d08b48;
  --orange-mustard-alt: #c87a2c;
  --black: #000000;

  /* Дополнительные цвета */
  /* --light-beige: #E8D9C5; */
  --light-beige: #ffe1bc;
  --white: #ffffff;
  --light-gray: #f5f5f5;

  /* Vision OS стиль - дополнительные цвета */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.05);
  --backdrop-blur: 20px;

  /* Размеры для мобильной адаптации */
  --tab-bar-height: 75px;

  /* Анимации */
  --transition-speed: 0.3s;
}

/* Общие стили и основа */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--light-beige);
  font-family: "SF Pro Display", sans-serif;
  font-size: 14px;
  color: var(--deep-brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  overflow-x: hidden;
}

.d-none {
  display: none !important;
}

::selection {
  background: var(--orange-mustard-alt);
  color: #000000;
}

/* Шрифты для глв стр. */
@font-face {
  font-family: "NauryzRedKeds";
  src: url("../fonts/NauryzRedKeds.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SONGER Grotesque";
  src: url("../fonts/SONGERGrotesqueRegular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SONGER Grotesque";
  src: url("../fonts/SONGERGrotesqueMedium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Специальные стили для Telegram Mini App */
.tg-app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  padding-bottom: var(--tab-bar-height);
  padding-top: 15px;
}

/* Улучшенный дизайн карточек */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.5s ease-out forwards;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.card-title {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--deep-brown);
  font-weight: 600;
  font-size: 22px;
}

.card-content {
  color: var(--deep-brown-alt);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-content .btn {
  align-self: flex-start;
  margin-top: 16px;
}

.card-content ul,
.card-content ol {
  padding-left: 25px;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.card-content li {
  margin-bottom: 0.6em;
}

.card-content p,
.lesson-content p {
  margin-bottom: 1em;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 10px;
  background: linear-gradient(110deg,
      var(--deep-brown) 0%,
      var(--beige-brown) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
}

.tg-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Анимация для выпадающего меню */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Секции */
.section {
  margin-bottom: 30px;
  animation: fadeIn 0.6s ease-out forwards;
}

/*? Стиль для главное страницы */

.container-main {
  max-width: 1040px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: "Unbounded", sans-serif;
  font-weight: 300;
  font-size: 32px;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  object-fit: cover;
}

.hero-img {
  border-radius: 8px;
  overflow: hidden;
}

.respon-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* INTRO */
.intro {
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.intro p {
  margin: 43px 0 0 0;
  line-height: 46px;
}

/* LEVELS */
.levels {
  background-color: var(--light-beige);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.levels h2 {
  font-size: 96px;
  color: #b51e02;
  margin: 0;
  font-weight: 700;
  font-family: "NauryzRedKeds", sans-serif;
  line-height: 100%;
}

.levels h3 {
  font-size: 64px;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: 700;
  color: #b51e02;
  margin: 0;
  padding: 0;
  font-family: "NauryzRedKeds", sans-serif;
  line-height: 100%;
}

.levels-title {
  margin: 60px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.levels-title p {
  font-family: "SONGER Grotesque", sans-serif;
  font-weight: 400;
}

.levels-subtitle {
  font-weight: 500;
  margin-block-start: 0;
  margin-block-end: 0;
  margin: 10px 0 40px 0;
  line-height: 46px;
  font-size: 40px;
  /* text-align: left; */
}

/* алерты */
.alert {
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

/* Контейнер карточек */
.levels-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.level-card {
  background-color: #fed5a3;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 0px);
  box-sizing: border-box;
  line-height: 36px;
}

.level-card img {
  max-width: 100%;
}

/* Текст под картой */
.levels-description {
  background-color: #ffaa23;
  border-radius: 16px;
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  margin: 15px 0px 20px 0px;
}

.levels-description p {
  font-size: 32px;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: 300;
  margin: 0;
  padding: 43px 0;
  line-height: 46px;
}

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-basis: 100%;
  gap: 15px;
  margin-top: 20px;
}

.start-text {
  font-size: 32px;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  margin: 0;
  line-height: 46px;
}

/* Кнопка */
.btn-start {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 90px;
  background-color: #b51e02;
  color: #ffe1bc;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  /* margin: 50px 0 75px 0; */
  font-family: "SONGER Grotesque", sans-serif;
  font-size: 36px;
  line-height: 46px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-start:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.btn-start:hover {
  background-color: #b71c1c;
}

.map img {
  width: 100%;
  object-fit: cover;
  flex-basis: 100%;
  border-radius: 16px;
}

/* Structure-Game */

.structure-game {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
}

.structure-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.structure-level {
  border-radius: 14px;
  position: relative;
  background-color: #ffaa23;
  overflow: hidden;
  padding: 0 10px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.structure-link:active .structure-level {
  transform: scale(0.97);
  opacity: 0.7;
}

.structure-level h3 {
  margin-top: 30px;
  font-size: 36px;
  line-height: 46px;
  font-weight: 500;
  font-family: "SONGER Grotesque", sans-serif;
  color: #181c26;
}

.structure-level p {
  font-size: 28px;
  line-height: 36px;
  font-weight: 300;
  margin: 20px 0 30px 0;
  color: #000001;

}

/* .level-1 {
position: relative;
    background-color: #ffaa23; 
    overflow: hidden;
} */
/* .level-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel1.jpg");
  background-size: cover;
  background-position: 45% 30%;
  opacity: 0.2;
  z-index: 0;
}

.level-2::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel2.jpg");
  background-size: cover;
  background-position: 45% 40%;
  opacity: 0.2;
  z-index: 0;
}

.level-3::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel3.jpg");
  background-size: cover;
  background-position: 45% 30%;
  opacity: 0.2;
  z-index: 0;
}

.level-4::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel4.jpg");
  background-size: cover;
  background-position: 45% 20%;
  opacity: 0.2;
  z-index: 0;
}

.level-5::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel5.jpg");
  background-size: cover;
  background-position: 45% 20%;
  opacity: 0.2;
  z-index: 0;
}

.level-6::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/lel6.jpg");
  background-size: cover;
  background-position: 45% 25%;
  opacity: 0.2;
  z-index: 0;
} */

/* BENEFITS */
.benefits {
  text-align: center;
  margin-top: 90px;
}

.benefits h2 {
  font-weight: 700;
  font-size: 64px;
  margin: 0;
  padding: 0;
  font-family: "NauryzRedKeds", sans-serif;
  line-height: 100%;
}

.benefits-grid h3 {
  font-weight: 500;
  font-size: 36px;
  font-family: "SONGER Grotesque", sans-serif;
  line-height: 46px;
}

.benefits-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1040px;
  margin: 40px 0 90px 0;
}

.benefit-card {
  background-color: #fed5a3;
  border-radius: 15px;
  padding: 20px 20px 40px 20px;
  flex: 1 1 45%;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 28px;
  font-weight: 300;
  line-height: 36px;
}

.btn-secondary {
  background-color: #ff5722;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #e64a19;
}

.final-text {
  padding: 0;
  margin-top: 100px;
  font-weight: 300;
  font-size: 32px;
  line-height: 46px;
}

/* ============ 501–768px (планшеты и большие смартфоны) ============ */
@media (max-width: 768px) {

  /* INTRO */
  .intro p {
    font-size: 24px;
    margin: 25px 0 0 0;
  }

  /* START TEXT */
  .start-text {
    font-size: 24px;
  }

  /* LEVELS */
  .levels h2 {
    font-size: 81px;
  }

  .levels h3 {
    font-size: 49px;
  }

  .levels-subtitle {
    font-size: 25px;
  }

  .levels-description p {
    padding: 25px 5px;
    font-size: 24px;
  }

  .levels-grid {
    font-size: 20px;
    gap: 15px;
    line-height: 1.2;
  }

  .level-card {
    padding: 13px;
  }

  .level-card img {
    max-width: 60px;
  }

  /* BENEFITS */
  .benefits h2 {
    font-size: 48px;
    line-height: 1.2;
  }

  .benefits-grid {
    gap: 15px;
    margin: 20px 0 40px 0;
  }

  .benefit-card {
    flex: 1 1 100%;
    font-size: 24px;
    padding: 1rem;
  }

  .benefits-grid h3 {
    font-size: 28px;
  }

  .final-text {
    font-size: 24px;
    margin-top: 40px;
  }

  .structure-level h3 {
    font-size: 28px;
  }

  .structure-level p {
    font-size: 24px;
  }

  .structure-title {
    font-size: 49px;
  }

  /* BUTTON */
  .btn-start {
    width: 100%;
    height: 70px;
    font-size: 36px;
    /* margin: 30px 0 60px 0; */
  }
}

/* ============ 376–500px (обычные смартфоны) ============ */
@media (max-width: 500px) {

  /* INTRO */
  .intro p {
    font-size: 16px;
    margin: 20px 0 0 0;
    line-height: 20px;
  }

  /* START TEXT */
  .start-text {
    font-size: 16px;
    line-height: 20px;
  }

  .start {
    margin: 0;
  }

  /* LEVELS */
  .levels h2 {
    font-size: 36px;
    line-height: 100%;
    word-break: break-word;
  }

  .levels h3 {
    font-size: 36px;
    line-height: 100%;
  }

  .levels-subtitle {
    font-size: 20px;
    line-height: 20px;
    margin: 5px 0 40px 0;
  }

  .levels-title {
    margin-bottom: 0px;
  }

  .levels-description {
    /* margin: 15px 0 0 0; */
  }

  .levels-description p {
    padding: 15px 5px;
    font-size: 16px;
    line-height: 20px;
  }

  .level-card {
    font-size: 13px;
    line-height: 16px;
  }

  .level-card img {
    max-width: 32px;
  }

  /* BENEFITS */
  .benefits {
    margin-top: 30px;
  }

  .benefits h2 {
    font-size: 36px;
    text-align: center;
    line-height: 100%;
  }

  .benefits-grid {
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 35px 0;
  }

  .benefit-card {
    font-size: 16px;
    padding: 20px 10px 25px 10px;
    line-height: 20px;
  }

  .benefit-card p {
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .benefits-grid h3 {
    font-size: 24px;
    line-height: 46px;
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .final-text {
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    line-height: 20px;
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .structure-game {
    gap: 20px;
  }

  .structure-level h3 {
    font-size: 24px;
  }

  .structure-level p {
    font-size: 16px;
    line-height: 20px;
  }

  .structure-title {
    font-size: 36px;
  }

  /* BUTTON */
  .btn-start {
    width: 100%;
    height: 60px;
    font-size: 24px;
    /* margin: 30px 0 50px 0; */
    line-height: 46px;
  }
}

/* ============ 320–375px (самые маленькие экраны) ============ */
@media (max-width: 375px) {
  .intro p {
    font-size: 14px;
  }

  .levels h2 {
    font-size: 32px;
  }

  .levels h3 {
    font-size: 32px;
  }

  .levels-description p {
    font-size: 14px;
  }

  .level-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .benefits h2 {
    font-size: 30px;
  }

  .benefit-card {
    font-size: 14px;
  }

  .final-text {
    font-size: 14px;
  }

  .structure-game {
    gap: 20px;
  }

  .structure-level h3 {
    font-size: 24px;
  }

  .structure-level p {
    font-size: 14px;
  }

  .structure-title {
    font-size: 32px;
  }
}

/*? Конец Стилей для главное страницы */

/* Сетка функций */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-speed),
    color var(--transition-speed), transform var(--transition-speed),
    box-shadow var(--transition-speed);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--orange-mustard);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--orange-mustard-alt);
}

.btn-secondary {
  background-color: var(--beige-brown);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--beige-brown-alt);
}

.btn-outline {
  background-color: transparent;
  color: var(--orange-mustard);
  border: 2px solid var(--orange-mustard);
  padding: 10px 22px;
}

.btn-outline:hover {
  background-color: rgba(208, 139, 72, 0.1);
  color: var(--orange-mustard-alt);
  border-color: var(--orange-mustard-alt);
}

.btn-danger {
  background-color: #e74c3c;
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

/* Формы */
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--deep-brown);
  font-size: 14px;
  width: 100%;
}

.form-control {
  display: block;
  width: 100%;
  padding: 5px 8px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--deep-brown);
  background-color: var(--white);
  background-clip: padding-box;
  /* border: 1px solid var(--glass-border); */
  border: 1px solid var(--deep-brown);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color var(--transition-speed),
    box-shadow var(--transition-speed);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange-mustard);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05),
    0 0 0 3px rgba(208, 139, 72, 0.15);
}

.form-control::placeholder {
  color: #aaa;
  opacity: 1;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Стили для профиля */
.profile-section {
  margin-bottom: 30px;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar img,
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--beige-brown);
  color: var(--white);
  font-size: 32px;
  font-weight: 600;
}

.profile-info {
  flex-grow: 1;
}

.profile-name {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-brown);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  font-size: 14px;
  color: var(--deep-brown-alt);
}

.profile-level,
.profile-subscription {
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-level {
  font-weight: 500;
}

.subscription-progress {
  margin-top: 20px;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-bar {
  height: 12px;
  background-color: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
      var(--khaki-green),
      var(--khaki-green-alt));
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.progress-info {
  font-size: 14px;
  color: var(--deep-brown-alt);
  text-align: center;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 10px;
}

.progress-stat-item {
  flex: 1;
  padding: 10px;
}

.progress-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 5px;
}

.progress-stat-label {
  font-size: 14px;
  color: var(--deep-brown-alt);
}

/* Стили для страницы поддержки */
.faq-section {
  padding: 3rem 0;
  margin-bottom: 40px;
}

.faq-section-compact {
  padding: 0.5rem 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  gap: 0.8rem;
}

.faq-question:hover {
  background-color: rgba(166, 123, 91, 0.05);
}

.faq-icon {
  /* margin-right: 1rem; */
  font-size: 1.2rem;
  color: var(--beige-brown);
  /* width: 24px; */
  text-align: center;
}


.faq-question-title {
  margin: 0 !important;
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep-brown);
}

.faq-toggle {
  font-size: 1rem;
  color: var(--beige-brown);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--orange-mustard);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  max-height: 6000px;
}

.faq-answer p {
  margin: 0;
  color: var(--deep-brown-alt);
  line-height: 1.6;
}

.faq-list {
  margin: 0;
  padding-left: 1.2rem;
}

.faq-list li {
  margin-bottom: 0.5rem;
  color: var(--deep-brown-alt);
  position: relative;
}

.faq-list li:before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--beige-brown);
}

.faq-list li:last-child {
  margin-bottom: 0;
}

/* Активный элемент FAQ */
.faq-item.active {
  border-color: var(--beige-brown);
  background-color: rgba(166, 123, 91, 0.03);
}

.faq-item.active .faq-icon {
  color: var(--orange-mustard);
}

/* Стили для уровней в FAQ */
.level-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 15px;
}

.level-item {
  position: relative;
  padding-left: 0;
  margin-bottom: 15px;
}

.level-badge {
  display: inline-block;
  background: linear-gradient(110deg,
      var(--beige-brown) 0%,
      var(--beige-brown-alt) 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.level-item p {
  margin: 0;
  color: var(--deep-brown-alt);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--beige-brown-alt);
  color: var(--white);
  border-radius: 12px;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  font-size: 15px;
  color: var(--deep-brown-alt);
}

.contact-info strong {
  color: var(--deep-brown);
  display: block;
  margin-bottom: 2px;
}

/* Стили для блока кнопок в контактах */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
}

.contact-buttons .btn i {
  margin-right: 8px;
  font-size: 16px;
}

.contact-card {
  background: linear-gradient(145deg,
      var(--glass-bg) 0%,
      rgba(255, 255, 255, 0.8) 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card .card-title {
  display: flex;
  align-items: center;
  color: var(--beige-brown);
  font-size: 22px;
}

.contact-card .card-title i {
  margin-right: 10px;
  font-size: 24px;
}

@media (max-width: 768px) {
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }
}

/* Стили для успешного сообщения */
.success-message {
  color: var(--khaki-green);
  padding: 16px;
  border-radius: 15px;
  background-color: rgba(92, 111, 71, 0.1);
  border-left: 3px solid var(--khaki-green);
  margin: 20px 0;
}

/* Стили для карточек на странице О нас */
.section ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style-type: none;
}

.section ul li {
  margin-bottom: 8px;
  position: relative;
}

.section ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange-mustard);
}

/* Стили для страницы ошибок */
.error-page {
  text-align: center;
  padding: 60px 0;
}

.error-page .card-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.error-page .btn {
  margin-top: 24px;
}

/* Новости */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
  animation: fadeIn 0.5s ease-out forwards;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--glass-border);
}

.news-content {
  padding: 20px;
}

.news-title {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--deep-brown);
  font-weight: 600;
}

.news-date {
  font-size: 13px;
  color: var(--beige-brown-alt);
  margin-bottom: 12px;
}

.news-content p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--deep-brown-alt);
}

/* Empty State Style */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--deep-brown-alt);
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .card-content {
    align-items: center;
  }

  .btn {
    width: 100%;
    /* max-width: 280px; */
    box-sizing: border-box;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-avatar {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .section-title,
  .card-title {
    text-align: center;
  }

  .section-title {
    font-size: 24px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .lesson-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: 15px;
  }

  .lesson-meta .btn-sm {
    width: 100%;
    max-width: 200px;
  }

  .progress-stats {
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    align-items: flex-start;
  }

  .admin-overview {
    grid-template-columns: 1fr;
  }

  .lesson-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: 15px;
  }
}

@media (min-width: 769px) {
  .container {
    padding: 0 40px;
  }

  .card {
    padding: 30px;
  }
}

/* Стили для Telegram аватара */
.profile-avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 16px rgba(166, 123, 91, 0.2);
  margin-right: 20px;
  border: 2px solid white;
}

/* Стили для страницы урока */
.lesson-section {
  padding-top: 10px;
}

.lesson-section .card:first-of-type {
  /* Опционально: Добавьте отступ, если необходимо */
}

.lesson-section .card+.card {
  margin-top: 25px;
}

.lesson-video {
  position: relative;
  margin-top: 15px;
  /* margin-bottom: 30px; */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity var(--transition-speed);
  border-radius: 10px;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.play-button {
  transition: transform 0.2s;
}

.video-overlay:hover .play-button {
  transform: scale(1.1);
}

.lesson-content {
  line-height: 1.7;
  color: var(--deep-brown);
  /* margin-top: 20px; */
  /* padding-top: 20px; */
  border-top: 1px solid var(--glass-border);
}

.lesson-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--deep-brown);
  font-weight: 500;
}

.lesson-content h1,
.lesson-content h2,
.lesson-content h3,
.lesson-content h4,
.lesson-content h5,
.lesson-content h6 {
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  font-weight: 600;
  color: var(--deep-brown);
  line-height: 1.3;
}

.lesson-content h1 {
  font-size: 1.8em;
}

.lesson-content h2 {
  font-size: 1.5em;
}

.lesson-content h3 {
  font-size: 1.3em;
}

.lesson-content h4 {
  font-size: 1.1em;
}

.lesson-content p {
  margin-bottom: 1.2em;
}

.lesson-content ul,
.lesson-content ol {
  margin-bottom: 1.2em;
  padding-left: 25px;
}

.lesson-content li {
  margin-bottom: 0.6em;
}

.lesson-content code {
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.lesson-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.2em;
}

.lesson-content pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.9em;
}

.lesson-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lesson-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lesson-content blockquote {
  border-left: 4px solid var(--beige-brown);
  padding-left: 15px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.2em;
  font-style: italic;
  color: var(--deep-brown-alt);
}

.lesson-content hr {
  border: none;
  height: 1px;
  background-color: var(--glass-border);
  margin: 2em 0;
}

.lesson-complete {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

/* Стили для контента урока */
.lesson-content h1,
.lesson-content h2,
.lesson-content h3 {
  color: var(--deep-brown);
  margin-top: 30px;
  margin-bottom: 15px;
}

.lesson-content h1 {
  font-size: 24px;
}

.lesson-content h2 {
  font-size: 22px;
}

.lesson-content h3 {
  font-size: 20px;
}

.lesson-content p {
  margin-bottom: 16px;
}

.lesson-content ul,
.lesson-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.lesson-content li {
  margin-bottom: 8px;
}

.lesson-content code {
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Стили для админ-панели */
.admin-section {
  padding-top: 20px;
}

.admin-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-actions {
  margin-bottom: 20px;
  display: flex;
  /* justify-content: flex-end; */
}

.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
}

.level-tab {
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  background-color: var(--glass-bg);
  color: var(--deep-brown-alt);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-speed);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.level-tab:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--beige-brown);
  color: var(--beige-brown);
}

.level-tab.active {
  background-color: var(--beige-brown);
  color: var(--white);
  border-color: var(--beige-brown);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(166, 123, 91, 0.2);
}

.lessons-container {
  padding-top: 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lessons-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.lesson-card {
  background: var(--glass-bg);
  background-color: white;
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  animation: fadeIn 0.5s ease-out forwards;
  position: relative;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.lesson-preview {
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lesson-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      var(--beige-brown-alt),
      var(--beige-brown));
  color: var(--white);
  font-size: 14px;
  text-align: center;
  padding: 10px;
}

.level-badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-weight: 600;
  font-size: 13px;
}

.lesson-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lesson-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--deep-brown);
}

.lesson-description {
  font-size: 16px;
  color: var(--deep-brown-alt);
  margin-bottom: 15px;
  flex-grow: 1;
  font-weight: bold;
  width: 100%;
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 13px;
  color: var(--deep-brown-alt);
}

.lesson-level {
  font-weight: 500;
}

.lesson-meta .btn-sm {
  padding: 6px 14px;
}

/* Стили для админ-панели */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
  background: var(--beige-brown);
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.8);
}

.search-bar {
  margin-bottom: 20px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  outline: none;
  border-color: var(--orange-mustard);
  box-shadow: 0 0 0 2px rgba(208, 139, 72, 0.2);
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

.level-change-form {
  display: flex;
  align-items: center;
}

.level-selector {
  display: flex;
  align-items: center;
  gap: 15px;
}

.level-selector select {
  width: auto;
  padding: 8px 12px;
}

.user-level-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
}

.user-level-select:focus {
  outline: none;
  border-color: var(--orange-mustard);
}

/* Стили для флеш-сообщений */
.flash-messages {
  margin-bottom: 20px;
}

.flash-message {
  padding: 15px 35px 15px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.flash-message.error {
  background-color: rgba(229, 57, 53, 0.1);
  border-left: 4px solid #e53935;
  color: #b71c1c;
}

.flash-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.flash-message.info {
  background-color: rgba(33, 150, 243, 0.1);
  border-left: 4px solid #2196f3;
  color: #0d47a1;
}

.flash-message .close-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

.flash-message .close-btn:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Стили для видео-плеера */
.video-player {
  position: relative;
  width: 100%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
  .video-player {
    max-width: 450px;
  }
}

.responsive-video {
  width: 100%;
  height: auto;
  display: block;
}

video::-webkit-media-controls-play-button {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  scale: 1.2;
}

.video-preview {
  position: relative;
  /*width: 100%;
    padding-top: 56.25%; */
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.video-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-secondary);
}

.responsive-table th,
.responsive-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.responsive-table th {
  background-color: var(--accent-color);
  color: white;
  font-weight: 500;
}

.responsive-table tr:last-child td {
  border-bottom: none;
}

.responsive-table tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--light-gray);
  color: var(--deep-brown-alt);
}

.badge.success {
  background-color: var(--khaki-green);
  color: var(--white);
}

.badge.warning {
  background-color: var(--orange-mustard);
  color: var(--white);
}

.badge.error {
  background-color: #e74c3c;
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.actions-cell {
  display: flex;
  gap: 4px;
}

@media screen and (max-width: 768px) {
  .responsive-table {
    border: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid var(--orange-mustard-alt);
    border-radius: 8px;
    overflow: hidden;
    background: var(--glass-bg);
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
  }

  .actions-cell {
    justify-content: flex-end;
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 139, 72, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(214, 139, 72, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(214, 139, 72, 0);
  }
}

/* Микро-анимации и переходы */
.btn,
a,
button,
input,
select {
  transition: all 0.2s ease;
}

.btn:active,
button:active {
  transform: scale(0.98);
}

button {
  line-height: inherit;
}

/* Стилизованные уведомления */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification.info {
  border-left: 4px solid var(--info-color);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px auto;
  background-color: rgba(166, 123, 91, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-methodology {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cline x1='10' y1='9' x2='8' y2='9'%3E%3C/line%3E%3C/svg%3E");
}

.icon-progress {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
}

.icon-community {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

.subscription-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .subscription-options {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.subscription-card .card-content {
  align-items: center;
  text-align: center;
}

.subscription-price {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: 5px;
}

.subscription-period {
  font-size: 1em;
  color: var(--deep-brown-alt);
  margin-bottom: 15px;
}

.subscription-description {
  font-size: 0.95em;
  color: var(--deep-brown-alt);
  min-height: 3em;
  margin-bottom: 25px;
}

.subscription-card .btn {
  margin-top: auto;
  width: 80%;
  max-width: 250px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--orange-mustard);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 40px auto;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.news-item,
.lesson-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.lessons-grid {
  position: relative;
  z-index: 1;
}

.lesson-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      var(--beige-brown-alt),
      var(--beige-brown));
  color: var(--white);
  font-size: 14px;
  text-align: center;
  padding: 10px;
}

.subscription-additional-options {
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.toggle-option {
  margin-bottom: 15px;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 26px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.toggle-switch:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-checkbox:checked+.toggle-switch {
  background-color: var(--beige-brown);
}

.toggle-checkbox:checked+.toggle-switch:before {
  transform: translateX(24px);
}

.group-info {
  padding: 10px;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
}

.next-group-info {
  margin: 0;
}

.total-price-container {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.options-details {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}

.options-details h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.lesson-verification-section {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.lesson-info-card {
  background-color: var(--tg-theme-bg-color, #ffffff);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.video-upload-container {
  background-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
  border: 2px dashed var(--tg-theme-hint-color, #999999);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-upload-container:hover {
  border-color: var(--tg-theme-button-color, #2481cc);
}

.video-upload-container.active {
  border-color: var(--tg-theme-button-color, #2481cc);
  background-color: rgba(36, 129, 204, 0.05);
}

.video-preview-container {
  margin: 20px 0;
}

.video-preview-container video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-icon {
  font-size: 48px;
  color: var(--tg-theme-hint-color, #999999);
  margin-bottom: 10px;
}

.previous-attempts {
  margin-top: 30px;
}

.attempt-card {
  background-color: var(--tg-theme-bg-color, #ffffff);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid;
}

.attempt-card.approved {
  border-left-color: var(--tg-theme-button-color, #2481cc);
}

.attempt-card.rejected {
  border-left-color: var(--tg-theme-destructive-text-color, #ff3b30);
}

.attempt-card.pending {
  border-left-color: var(--tg-theme-hint-color, #999999);
}

.attempt-feedback {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
  border-radius: 5px;
  font-style: italic;
}

.admin-verification-list {
  max-width: 900px;
  margin: 0 auto;
}

.admin-verification-card {
  background-color: var(--tg-theme-bg-color, #ffffff);
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin-bottom: 30px;
  transition: opacity 0.5s ease;
}

.admin-verification-card .user-info {
  border-bottom: 1px solid var(--tg-theme-hint-color, #999999);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.admin-verification-card .lesson-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.admin-verification-card .video-container {
  margin: 20px 0;
}

.verification-video {
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-verification-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tg-theme-hint-color, #999999);
}

.feedback-text {
  width: 100%;
  border: 1px solid var(--tg-theme-hint-color, #999999);
  border-radius: 5px;
  padding: 10px;
  resize: vertical;
  margin-bottom: 15px;
  font-family: inherit;
  background-color: var(--tg-theme-bg-color, #ffffff);
  color: var(--tg-theme-text-color, #000000);
}

.verification-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.approve-btn {
  background-color: var(--tg-theme-button-color, #2481cc);
}

.reject-btn {
  background-color: var(--tg-theme-destructive-text-color, #ff3b30);
}

@media (max-width: 768px) {
  .verification-actions {
    flex-direction: column;
  }

  .verification-actions button {
    width: 100%;
  }

  .admin-verification-card .lesson-info {
    grid-template-columns: 1fr;
  }
}

.profile-actions-card {
  margin-top: 20px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.profile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-action-btn i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #a67b5b;
}

.profile-action-btn span {
  font-size: 14px;
  font-weight: 500;
}

.profile-action-btn:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-action-btn.admin {
  background-color: #f8f0ea;
}

.profile-action-btn.admin i {
  color: #8b5a2b;
}

@media (max-width: 768px) {
  .profile-actions {
    grid-template-columns: 1fr;
  }
}

.content-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--deep-brown);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.lesson-timers-card {
  margin-top: 20px;
}

.lesson-timers {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lesson-timer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.3s;
}

.lesson-timer-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.lesson-timer-info {
  flex: 1;
}

.lesson-timer-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--deep-brown);
}

.lesson-timer-meta {
  font-size: 14px;
  color: var(--deep-brown-alt);
}

.lesson-timer-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.timer-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-mustard);
  background: rgba(208, 139, 72, 0.1);
  padding: 5px 10px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.timer-actions {
  display: flex;
  gap: 8px;
}

.reset-timer-form {
  margin: 0;
}

.timer-info-text {
  margin-top: 20px;
  padding: 15px;
  background: rgba(92, 111, 71, 0.1);
  border-radius: 10px;
  border-left: 4px solid var(--khaki-green);
}

.timer-info-text p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--deep-brown);
}

.timer-info-text i {
  color: var(--khaki-green);
  margin-right: 5px;
}

@media (max-width: 768px) {
  .lesson-timer-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .lesson-timer-countdown {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
  }

  .timer-actions {
    flex-wrap: wrap;
  }
}

.payment-redirect-section,
.payment-error-section {
  max-width: 600px;
  margin: 0 auto;
  /* padding: 20px; */
}

.payment-info {
  /* text-align: center; */
  margin-bottom: 20px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  width: 100%;
  align-items: center;
  margin-top: 20px;
}

.error-message {
  background-color: rgba(255, 99, 71, 0.1);
  border-left: 4px solid tomato;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.error-icon {
  color: tomato;
  font-size: 24px;
  margin-right: 15px;
}

.error-message p {
  margin: 0;
  color: var(--deep-brown);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  border: 4px solid rgba(166, 123, 91, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--orange-mustard);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.auth-container {
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.auth-container h2 {
  color: #0088cc;
  /* Цвет Telegram */
  margin-bottom: 20px;
  font-size: 24px;
}

.telegram-login-widget {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    padding: 15px;
    margin: 10px;
  }
}

/* Стили для контейнера авторизации через Telegram */
.auth-section {
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 800px;
}

.auth-container {
  text-align: center;
  padding: 30px;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.telegram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  background-color: #0088cc;
  border-radius: 50%;
  color: white;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
}

.auth-container h2 {
  color: #0088cc;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.auth-description {
  color: #555;
  margin: 15px 0 25px;
  line-height: 1.5;
  font-size: 16px;
}

.telegram-login-widget {
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.auth-benefits {
  margin-top: 30px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  flex: 1 1 28%;
  /* min-width: 120px; */
}

.benefit-icon {
  font-size: 20px;
}

.benefit-text {
  font-size: 14px;
  color: #555;
}

.user-authenticated {
  text-align: center;
  padding: 1px 12px;
  margin: 20px auto;
  background-color: #f0f8ff;
  border-radius: 10px;
  max-width: 400px;
}

.logout-btn {
  display: inline-block;
  background-color: #d4d4d4;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #d32f2f;
  text-decoration: none;
  color: white;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    padding: 20px;
    margin: 10px;
  }

  .auth-benefits {
    flex-direction: column;
  }

  .benefit-item {
    flex: 1 1 100%;
  }
}

div:has(> blockquote) {
  padding: 15px;
}

blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}

blockquote+p {
  text-align: right;
}

.breadcrumb-nav {
  margin-bottom: 20px;
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--deep-brown-alt);
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--deep-brown-alt);
  opacity: 0.6;
}

.breadcrumb-item a {
  color: var(--deep-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--orange-mustard);
  text-decoration: underline;
}

.breadcrumb-item.active span {
  color: var(--deep-brown);
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumb-nav {
    margin-bottom: 0;
  }

  .breadcrumb-item {
    font-size: 13px;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin: 0 6px;
  }
}

/* Исправления для модальных окон */
.modal {
  z-index: 9999 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  padding-bottom: 50px;
  display: none;
  background: rgba(0, 0, 0, 0.7)
}

.modal-backdrop {
  z-index: 9998 !important;
}

.modal-dialog {
  z-index: 10000 !important;
  margin: 1.75rem auto;
}

.modal-content {
  background: white;
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 100%;
  overflow-y: scroll;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-direction: row;
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 10px;
}