/* ============================================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОСЫ
   ============================================ */
:root {
  --bg-warm: #FFF9F0;
  --accent: #FFB347;
  --secondary: #9F7E69;
  --success: #4CAF50;
  --text-dark: #3E2C23;
  --text-soft: #7E6B5C;
  --white: #FFFFFF;
  --shadow: 0 8px 20px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.02);
  --radius-card: 24px;
  --radius-btn: 40px;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.5;
}

img, svg, iframe, video, audio {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .logo, .nav-item, .btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   ОБЩИЕ КОМПОНЕНТЫ
   ============================================ */
.logo, .sidebar-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: #FCE6C9;
  color: #9F7E69;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 8px 16px rgba(255, 179, 71, 0.2);
}

.btn-primary:hover {
  background-color: #f0a035;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: white;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 179, 71, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.2rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: white;
}

.btn-small:hover {
  background-color: var(--accent);
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: 2px solid #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== ЛЕНДИНГ ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo img {
  height: 50px;
  width: auto;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero {
  padding: 40px 0;
  background: linear-gradient(145deg, #FFF5E6 0%, #FFF9F0 100%);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #3E2C23;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-soft);
}

.hero-buttons {
  margin-bottom: 20px;
}

.steps {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: white;
  padding: 40px 20px;
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: var(--shadow);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.popular .cards-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.energy-teaser {
  padding: 40px 0 80px;
}

.teaser-card {
  background: var(--secondary);
  color: white;
  border-radius: 32px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teaser-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.footer {
  background: #EADBCF;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.social-svg {
  width: 32px;
  height: 32px;
}

.footer-doc-link,
.sidebar-doc-link,
.mobile-doc-link {
  color: #9F7E69;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.5;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
}

.footer-doc-link:hover,
.sidebar-doc-link:hover,
.mobile-doc-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== БЛОК ПРИМЕРОВ СКАЗОК ===== */
.examples {
  padding: 40px 0;
  background: #FFFBF5;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.example-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.example-card:hover {
  transform: translateY(-5px);
}

.example-cover {
  height: 200px;
  background: linear-gradient(135deg, #FFE6CC, #FFD4A8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.example-card:nth-child(1) .example-cover {
  background: linear-gradient(135deg, #C4E0FF, #9BC5FF);
}

.example-card:nth-child(2) .example-cover {
  background: linear-gradient(135deg, #FFD9E6, #FFB3CC);
}

.example-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.example-card h3 {
  font-size: 1.5rem;
  margin: 20px 20px 10px;
  color: var(--text-dark);
}

.example-card p {
  margin: 0 20px 20px;
  color: var(--text-soft);
  line-height: 1.5;
}

.example-card .btn:hover {
  background: #FF9F2E;
  transform: scale(1.02);
}

.read-more-btn {
  background-color: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  margin: 0 20px 25px;
}

.read-more-btn:hover {
  background-color: var(--primary) !important;
  color: var(--accent);
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.benefits {
  padding: 40px 0;
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #FFF5E6, #FFE9D4);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
}

.benefit-item h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.benefit-item p {
  color: var(--text-soft);
}

/* ===== ОТЗЫВЫ ===== */
.testimonials {
  padding: 40px 0;
  background: linear-gradient(145deg, #FFF5E6, #FFF9F0);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: #EADBCF;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-date {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 40px 0;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.faq-item {
  background: #FFF9F0;
  border-radius: 24px;
  padding: 30px;
}

.faq-question {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question span {
  color: var(--accent);
  font-size: 1.5rem;
}

.faq-answer {
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
  padding: 40px 0;
  background: linear-gradient(145deg, #FFE9D4, #FFF5E6);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
  padding: 60px 0;
  background: var(--secondary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== ПРИЛОЖЕНИЕ ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* САЙДБАР */
.sidebar {
  width: 280px;
  background: white;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.02);
}

.sidebar-logo {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 12px;
}

.sidebar-nav {
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-bottom: 8px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover {
  background: #FFF1E0;
  color: var(--text-dark);
}

.nav-item.active {
  background: var(--accent);
  color: white;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 2px solid #F0E6DD;
  margin-top: auto;
  font-size: 0.85rem;
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.sidebar-social-icon {
  display: inline-block;
  transition: transform 0.2s;
}

.sidebar-social-icon:hover {
  transform: scale(1.1);
}

.sidebar-social-icon img {
  width: 28px;
  height: 28px;
}

.sidebar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  text-align: center;
}

.sidebar-link {
  color: #9F7E69;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  cursor: pointer;
}

.sidebar-link:hover {
  color: #FFB347;
  text-decoration: underline;
}

.sidebar-copyright {
  text-align: center;
  color: #B8A28F;
  font-size: 0.75rem;
}

/* ОСНОВНОЙ КОНТЕНТ */
.app-main {
  flex: 1;
  background: var(--bg-warm);
  padding: 24px 32px;
  position: relative;
}

/* ХЕДЕР ПРИЛОЖЕНИЯ */
.app-header {
  margin-bottom: 32px;
}

.header-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-desktop .header-left {
  display: flex;
  align-items: center;
}

.header-desktop #page-title {
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.header-desktop .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-desktop .energy-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,179,71,0.2);
  border-radius: 40px;
  padding: 2px 2px 2px 18px;
  gap: 4px;
  flex-shrink: 0;
}

.header-desktop .energy-badge {
  padding: 8px 0;
  font-weight: 700;
  color: #9F7E69;
  font-size: 1.1rem;
  background: transparent;
  white-space: nowrap;
}

.header-desktop .btn-energy-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(255, 179, 71, 0.3);
  flex-shrink: 0;
}

.header-desktop .btn-energy-plus:hover {
  background: #f0a035;
  transform: scale(1.05);
}

.header-desktop .btn-bonus {
  flex-shrink: 0;
}

/* МОБИЛЬНЫЙ ХЕДЕР */
.header-mobile {
  display: none;
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .header-desktop {
    display: none;
  }
  .header-mobile {
    display: block;
  }
  .header-mobile .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
    width: 100%;
  }
  .burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    order: 1;
  }
  .burger-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .header-mobile .energy-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,179,71,0.2);
    border-radius: 40px;
    padding: 2px 2px 2px 12px;
    gap: 4px;
    flex-shrink: 0;
    order: 3;
  }
  .header-mobile .energy-badge {
    padding: 6px 0;
    font-weight: 700;
    color: #9F7E69;
    font-size: 0.95rem;
    background: transparent;
    white-space: nowrap;
  }
  .header-mobile .btn-energy-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(255, 179, 71, 0.3);
    flex-shrink: 0;
  }
  .header-mobile .btn-energy-plus:hover {
    background: #f0a035;
    transform: scale(1.05);
  }
  .btn-bonus-mobile {
    display: block;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    order: 2;
    margin: 0;
  }
  .btn-bonus-mobile:hover {
    background-color: #f0a035;
    transform: translateY(-2px);
  }
  .btn-bonus-mobile.hidden {
    display: none;
  }
  .btn-bonus {
    display: none !important;
  }
  .sidebar {
    display: none;
  }
  .app-main {
    padding: 16px 16px 80px;
  }
  .header-mobile .mobile-bottom {
    display: flex;
    align-items: center;
    padding-left: 0;
  }
  .header-mobile #page-title-mobile {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .header-mobile .mobile-top {
    gap: 8px;
  }
  .burger-menu-btn {
    width: 28px;
    height: 20px;
  }
  .btn-bonus-mobile {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .header-mobile .energy-wrapper {
    padding-left: 10px;
  }
  .header-mobile .energy-badge {
    font-size: 0.9rem;
  }
  .header-mobile .btn-energy-plus {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
  .header-mobile #page-title-mobile {
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .steps-grid,
  .cards-carousel,
  .shop-grid,
  .popular .cards-carousel,
  #library-content .cards-carousel,
  .category-content .cards-carousel {
    grid-template-columns: 1fr !important;
  }
  .teaser-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }
  .episode-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .episode-actions {
    width: 100%;
    justify-content: center;
  }
  .categories-tabs {
    gap: 6px;
  }
  .category-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .social-svg {
    width: 28px;
    height: 28px;
  }
  .card-cover {
    height: 140px;
  }
  .story-card h4 {
    font-size: 1rem;
  }
  .audio-player {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .audio-info {
    min-width: auto;
  }
  .audio-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .audio-progress {
    min-width: auto;
    width: 100%;
  }
  .audio-volume {
    min-width: auto;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .categories-tabs {
    gap: 4px;
  }
  .category-tab {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-width: 1.5px;
  }
}

@media (max-width: 480px) {
  .header-mobile .mobile-top {
    gap: 6px;
  }
  .burger-menu-btn {
    width: 26px;
    height: 18px;
  }
  .btn-bonus-mobile {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .header-mobile .energy-wrapper {
    padding-left: 8px;
  }
  .header-mobile .energy-badge {
    font-size: 0.85rem;
  }
  .header-mobile .btn-energy-plus {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
  .header-mobile #page-title-mobile {
    font-size: 1rem;
  }
  .categories-tabs {
    gap: 3px;
  }
  .category-tab {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .header-mobile .mobile-top {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .burger-menu-btn {
    order: 1;
  }
  .btn-bonus-mobile {
    order: 2;
    margin-right: auto;
  }
  .header-mobile .energy-wrapper {
    order: 3;
  }
  .header-mobile #page-title-mobile {
    font-size: 0.95rem;
    width: 100%;
    order: 4;
    margin-top: 8px;
  }
}

/* ===== КАРТОЧКИ СКАЗОК ===== */
.cards-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1500px) and (min-width: 769px) {
  .cards-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.story-card h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-dark);
  word-wrap: break-word;
}

.story-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  flex: 1;
}

.story-card .btn {
  margin-top: 10px;
  width: 100%;
}

.card-cover {
  height: 160px;
  border-radius: 16px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

/* КАТЕГОРИИ ГОТОВЫХ СКАЗОК */
.categories-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-tab {
  background: white;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.category-tab:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.category-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 179, 71, 0.3);
}

.category-content {
  animation: fadeIn 0.3s ease;
}

/* КОНТЕНТНЫЕ КАРТОЧКИ */
.content-card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.page-title-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
}

/* МОИ СКАЗКИ */
#my-stories-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-story-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 16px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  gap: 15px;
  border: 1px solid rgba(255,179,71,0.1);
}

.my-story-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.my-story-icon {
  width: 48px;
  height: 48px;
  background: #FFF5E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-story-icon img {
  width: 28px;
  height: 28px;
}

.my-story-content {
  flex: 1;
  min-width: 0;
}

.my-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.my-story-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.my-story-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  background: #FFF5E6;
  padding: 4px 10px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

.my-story-meta {
  display: flex;
  gap: 15px;
  color: var(--text-soft);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.my-story-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.my-story-meta-item img {
  width: 14px;
  height: 14px;
}

.my-story-read-btn {
  flex-shrink: 0;
  min-width: 90px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .my-story-item {
    flex-wrap: wrap;
    padding: 16px 12px;
  }
  .my-story-icon {
    width: 44px;
    height: 44px;
  }
  .my-story-icon img {
    width: 24px;
    height: 24px;
  }
  .my-story-content {
    width: calc(100% - 60px);
    flex: 1;
  }
  .my-story-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }
  .my-story-title {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
  }
  .my-story-date {
    white-space: normal;
    width: 100%;
    text-align: left;
  }
  .my-story-meta {
    flex-direction: column;
    gap: 6px;
  }
  .my-story-read-btn {
    width: 100%;
    margin-top: 10px;
    min-width: 0;
  }
}

/* ПОСЛЕДНИЕ СКАЗКИ */
#recent-stories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.recent-story-item {
  display: flex;
  align-items: center;
  background: #FFFDFA;
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  gap: 15px;
  border: 1px solid rgba(255,179,71,0.1);
}

.recent-story-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: white;
  border-color: var(--accent);
}

.recent-story-icon {
  width: 48px;
  height: 48px;
  background: #FFF5E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recent-story-icon img {
  width: 28px;
  height: 28px;
}

.recent-story-content {
  flex: 1;
  min-width: 0;
}

.recent-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-story-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.recent-story-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  background: #FFF5E6;
  padding: 4px 10px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

.recent-story-meta {
  display: flex;
  gap: 15px;
  color: var(--text-soft);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.recent-story-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-story-meta-item img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .recent-story-item {
    padding: 14px 12px;
  }
  .recent-story-icon {
    width: 44px;
    height: 44px;
  }
  .recent-story-icon img {
    width: 24px;
    height: 24px;
  }
  .recent-story-content {
    width: calc(100% - 60px);
    flex: 1;
  }
  .recent-story-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }
  .recent-story-title {
    white-space: normal;
    word-break: break-word;
    font-size: 0.95rem;
  }
  .recent-story-date {
    white-space: normal;
    width: 100%;
    text-align: left;
    font-size: 0.7rem;
  }
  .recent-story-meta {
    flex-direction: column;
    gap: 6px;
  }
  .recent-story-meta-item {
    font-size: 0.8rem;
  }
}

/* СЕРИАЛЫ */
.serial-episodes-container {
  margin-top: 20px;
}

.episode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #FFF5E6;
  border-radius: 20px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.episode-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 179, 71, 0.2);
}

.episode-item.current {
  border: 2px solid var(--accent);
}

.episode-number {
  font-weight: 700;
  color: var(--accent);
}

.episode-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

/* ФОРМЫ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #F0E6DD;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.radio-group {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* МАГАЗИН */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.shop-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  border: 2px solid #F6EEE6;
}

.price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 12px 0;
}

/* ПРОСМОТР СКАЗКИ */
.story-text {
  max-height: 400px;
  overflow-y: auto;
  padding: 24px;
  background: #FFFDFA;
  border-radius: 24px;
  margin: 20px 0;
  line-height: 1.7;
  font-size: 1rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  #story-result .btn,
  #story-result button:not(.audio-play-btn):not(.volume-icon):not(.audio-download-btn) {
    width: 100% !important;
    margin: 5px 0 !important;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #story-result .action-buttons,
  #story-result div[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .series-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .story-text {
    padding: 16px;
    margin: 16px -8px;
    border-radius: 20px;
    max-height: 450px;
    font-size: 0.95rem;
  }
  .content-card {
    padding: 20px 16px;
  }
}

/* ПРОГРЕСС-БАР */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.progress-step {
  flex: 1;
  text-align: center;
  color: var(--text-soft);
}

.progress-step.active {
  color: var(--accent);
  font-weight: 700;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* АУДИОПЛЕЕР */
.audio-player-container {
  background: linear-gradient(145deg, #FFF5E6, #FFE9D4);
  border-radius: 60px;
  padding: 15px 20px;
  margin: 20px 0 30px;
  box-shadow: 0 10px 25px rgba(255, 179, 71, 0.2);
  border: 2px solid rgba(255, 179, 71, 0.3);
  transition: all 0.3s ease;
}

.audio-player {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex: 0 1 auto;
}

.audio-cover {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  box-shadow: 0 5px 10px rgba(255, 179, 71, 0.3);
}

.audio-title {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  font-size: 0.95rem;
}

.audio-title small {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: block;
  margin-top: 2px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 2;
  min-width: 500px;
  flex-wrap: wrap;
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 5px 12px rgba(255, 179, 71, 0.4);
  flex-shrink: 0;
  padding-left: 5px;
}

.audio-play-btn:hover {
  transform: scale(1.1);
  background: #f0a035;
}

.audio-play-btn.playing {
  background: #4CAF50;
}

.audio-progress {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-time {
  font-size: 0.8rem;
  color: var(--text-soft);
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
  height: 20px;
  cursor: pointer;
  position: relative;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #FFE6CC;
  border-radius: 3px;
  overflow: hidden;
  transition: height 0.2s;
}

.progress-bar-container:hover .progress-bar-bg {
  height: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-bar-fill::after {
  opacity: 1;
}

.audio-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.volume-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.volume-icon:hover {
  opacity: 0.8;
}

.volume-slider-container {
  flex: 1;
  height: 28px;
  width: 100px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 0 3px;
}

.volume-slider-bg {
  width: 100%;
  height: 5px;
  background: #FFE6CC;
  border-radius: 2.5px;
  overflow: hidden;
  transition: height 0.2s;
}

.volume-slider-container:hover .volume-slider-bg {
  height: 7px;
}

.volume-slider-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2.5px;
  width: 70%;
  transition: width 0.1s;
}

.volume-slider-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  bottom: -8px;
  cursor: pointer;
}

.audio-actions {
  display: flex;
  gap: 4px;
  margin-left: 5px;
  flex-shrink: 0;
}

.audio-download-btn {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.7;
}

.audio-download-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Индикатор загрузки */
.audio-loading {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-soft);
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
}

/* ВЕРТИКАЛЬНЫЙ РЕЖИМ ПЛЕЕРА */
@media (max-width: 1610px) {
  .audio-player {
    flex-direction: column;
    align-items: stretch;
  }
  .audio-info {
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
  }
  .audio-controls {
    width: 100%;
    min-width: auto;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .audio-play-btn {
    order: 1;
    margin-right: 5px;
  }
  .audio-progress {
    order: 2;
    flex: 1;
    min-width: 200px;
  }
  .audio-volume {
    order: 3;
    min-width: 120px;
    padding: 0px 80px;
  }
  .audio-actions {
    order: 4;
    margin-left: 0;
  }
}

@media (max-width: 1000px) {
  .audio-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .audio-play-btn {
    width: 40px;
    height: 40px;
  }
  .audio-progress {
    min-width: 180px;
  }
  .audio-volume {
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .audio-player-container {
    padding: 15px 15px;
    border-radius: 40px;
  }
  .audio-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .audio-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 0;
  }
  .audio-cover {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    flex-shrink: 0;
  }
  .audio-title {
    font-size: 0.95rem;
    flex: 1;
  }
  .audio-title small {
    font-size: 0.7rem;
  }
  .audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: auto;
    flex-wrap: nowrap;
  }
  .audio-play-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .audio-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
  .audio-time {
    font-size: 0.75rem;
    min-width: 35px;
    text-align: center;
  }
  .progress-bar-container {
    flex: 1;
    height: 20px;
  }
  .audio-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: auto;
    padding: 0px 30px;
  }
  .volume-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .volume-slider-container {
    flex: 1;
    height: 30px;
  }
  .audio-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
  }
  .audio-download-btn {
    width: 28px;
    height: 28px;
  }
  .audio-loading {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 10px;
  }
  .audio-loading > div:first-child {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .audio-player-container {
    padding: 12px 12px;
  }
  .audio-cover {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .audio-title {
    font-size: 0.9rem;
  }
  .audio-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .audio-time {
    min-width: 32px;
    font-size: 0.7rem;
  }
  .volume-icon {
    width: 22px;
    height: 22px;
  }
  .audio-download-btn {
    width: 26px;
    height: 26px;
  }
  .audio-controls {
    gap: 8px;
  }
  .audio-progress {
    gap: 4px;
  }
  .audio-volume {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .audio-player-container {
    padding: 10px 10px;
  }
  .audio-cover {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .audio-title {
    font-size: 0.85rem;
  }
  .audio-play-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .audio-time {
    min-width: 28px;
    font-size: 0.65rem;
  }
  .volume-icon {
    width: 20px;
    height: 20px;
  }
  .audio-download-btn {
    width: 24px;
    height: 24px;
  }
  .audio-controls {
    gap: 6px;
  }
  .audio-progress {
    gap: 3px;
  }
  .audio-volume {
    gap: 8px;
  }
}

/* МОБИЛЬНЫЙ ФУТЕР */
.mobile-footer {
  display: none;
  background: white;
  padding: 20px 16px;
  border-top: 2px solid #F0E6DD;
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .mobile-footer {
    display: block;
    margin-bottom: 0;
  }
  .sidebar-footer {
    display: none;
  }
}

.mobile-footer-content {
  max-width: 100%;
}

.mobile-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.mobile-social-icon {
  display: inline-block;
  transition: transform 0.2s;
}

.mobile-social-icon:hover {
  transform: scale(1.1);
}

.mobile-social-icon img {
  width: 32px;
  height: 32px;
}

.mobile-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.mobile-links a {
  color: #9F7E69;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.mobile-links a:hover {
  color: #FFB347;
  text-decoration: underline;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(3px);
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-logo {
  height: 40px;
  width: auto;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #f5f5f5;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #FFF9F0;
}

.mobile-menu-avatar {
  width: 50px;
  height: 50px;
  background: #EADBCF;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-menu-avatar img {
  width: 30px;
  height: 30px;
}

.mobile-menu-user-info {
  flex: 1;
}

.mobile-menu-user-name {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.mobile-menu-user-email {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mobile-menu-nav {
  flex: 1;
  padding: 20px 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-item:hover {
  background: #FFF1E0;
}

.mobile-menu-item.active {
  background: var(--accent);
  color: white;
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.mobile-menu-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 15px;
}

.mobile-menu-social-icon {
  width: 36px;
  height: 36px;
  background: #F5F5F5;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-menu-social-icon:hover {
  background: #E5E5E5;
}

.mobile-menu-social-icon img {
  width: 20px;
  height: 20px;
}

/* АНИМАЦИИ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #FFB347;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 3000;
  animation: slideUp 0.5s ease;
  border: 2px solid rgba(255, 179, 71, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    border-radius: 30px;
  }
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }
  .cookie-banner-buttons .btn {
    flex: 1;
  }
}

/* ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ */
.package-price {
  margin-bottom: 4px;
  font-size: 18px;
}

.empty-state {
  color: var(--text-soft);
  text-align: center;
  padding: 30px;
  background: #FFFDFA;
  border-radius: 20px;
  font-size: 0.95rem;
}

.empty-state.error {
  color: #FF6B6B;
}

.hidden {
  display: none !important;
}

/* РЕФЕРАЛЬНЫЙ БЛОК */
.referral-block {
  margin-top: 30px;
  padding: 20px;
  background: #FFF5E6;
  border-radius: 20px;
  text-align: left;
}

.referral-link {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.referral-link input {
  flex: 1;
  padding: 10px;
  border: 2px solid #F0E6DD;
  border-radius: 30px;
  background: white;
  font-size: 0.9rem;
}

.referral-link button {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .referral-link {
    display: grid !important;
  }
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ ЛЭНДИНГА (ПОВТОРЯЮЩИЕСЯ) */
@media (max-width: 768px) {
  .benefits-grid,
  .testimonials-grid,
  .stats-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
  .example-card h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .benefits-grid,
  .testimonials-grid,
  .stats-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }
}