
:root {
  --bg: #f4f5f7;
  --bg-white: #ffffff;
  --border: #e2e4e8;
  --border-light: #eaecf0;
  --text: #2c2d30;
  --text-heading: #1a1b1e;
  --text-muted: #5c5e62;
  --text-muted-light: #8a8c90;
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --accent-light: #e7f1ff;
  --error: #c62828;
  --error-bg: #ffebee;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 0.75rem 0 1.25rem;
}

.header .container,
.header-inner {
  max-width: 1200px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-logo:hover {
  color: var(--accent);
}

.header-logo__icon {
  display: flex;
  color: var(--accent);
}

.header-logo__text {
  line-height: 1;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.header-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-nav__icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.35rem;
  opacity: 0.9;
}

/* Выпадающий каталог */
.header-dropdown {
  position: relative;
}

.header-nav__link {
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.header-nav__link--catalog {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.header-nav__link--catalog:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.header-dropdown__arrow {
  display: inline-flex;
  margin-left: 0.25rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.header-dropdown:hover .header-dropdown__arrow {
  transform: rotate(180deg);
}

.header-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.header-dropdown:hover .header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown__item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.header-dropdown__item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.header-dropdown__item--all {
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

/* Кнопка «Сгенерировать презентацию» */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.header-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.header-cta:active {
  transform: scale(0.98);
}

.header-cta__icon {
  display: inline-flex;
  opacity: 0.95;
}

/* Блок авторизации */
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-auth__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  /* Сдвиг вниз, чтобы первый ряд (кнопки) совпал по вертикали с кнопкой «Сгенерировать презентацию» */
  margin-top: 0.5rem;
}

.header-auth__col .header-credits {
  margin-right: 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.header-auth__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  min-height: 2.25rem;
  box-sizing: border-box;
}

.header-btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.header-btn--ghost:hover {
  background: var(--bg);
  border-color: var(--border-light);
  color: var(--accent);
}

.header-btn--primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.header-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.header-btn__icon {
  display: inline-flex;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.35rem 0.5rem 0.35rem 0;
}

.header-user__icon {
  display: inline-flex;
  color: var(--accent);
  opacity: 0.85;
}

.header-user__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.header-user__link:hover {
  color: var(--accent);
}

.header-credits {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-auth > .header-credits {
  margin-right: 0;
}

.header-credits--empty,
.header-credits--guest {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.header-credits--empty:hover,
.header-credits--guest:hover {
  text-decoration: underline;
  color: var(--accent-hover, var(--accent));
}

.header-logout-form {
  margin: 0;
  padding: 0;
}

/* Кнопка меню (видна только на мобильных) */
.header-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.header-toggle:hover {
  background: var(--bg);
  color: var(--accent);
}

.header-toggle__icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s;
}

.header-toggle__icon::before,
.header-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.header-toggle__icon::before {
  top: -6px;
}

.header-toggle__icon::after {
  top: 6px;
}

.header-toggle-input:checked + .header-toggle .header-toggle__icon {
  background: transparent;
}

.header-toggle-input:checked + .header-toggle .header-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header-toggle-input:checked + .header-toggle .header-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Мобильная шапка */
@media (max-width: 767px) {
  .header {
    padding: 0.6rem 0 0.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem 0;
    align-items: center;
  }

  .header-brand {
    flex: 1;
    min-width: 0;
  }

  .header-tagline {
    display: none;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header-logo__icon svg {
    width: 24px;
    height: 24px;
  }

  .header-toggle {
    display: flex;
    order: 2;
  }

  .header-nav {
    display: none;
    order: 10;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0.5rem 0 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
  }

  .header-toggle-input:checked ~ .header-nav {
    display: flex;
  }

  .header-nav .header-dropdown {
    position: static;
  }

  .header-nav .header-nav__link--catalog {
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: var(--bg);
  }

  .header-nav .header-dropdown__arrow {
    transition: transform 0.2s;
  }

  .header-toggle-input:checked ~ .header-nav .header-dropdown .header-dropdown__arrow {
    transform: rotate(180deg);
  }

  .header-nav .header-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0 0.25rem 1rem;
    border: none;
    border-left: 3px solid var(--accent-light);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .header-nav .header-dropdown:hover .header-dropdown__menu {
    /* уже видимо на мобильном */
  }

  .header-nav .header-dropdown__item {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }

  .header-nav .header-dropdown__item--all {
    border-top-color: var(--border-light);
    margin-top: 0.25rem;
  }

  .header-nav .header-cta {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
  }

  .header-nav .header-auth {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
  }

  .header-nav .header-auth .header-auth__col {
    width: 100%;
    align-items: flex-start;
  }

  .header-nav .header-auth .header-btn,
  .header-nav .header-auth .header-user {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .header-nav .header-auth .header-auth__col .header-user {
    padding: 0.5rem 0 0.25rem;
  }

  .header-nav .header-user {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__current {
  color: var(--text-heading);
  font-weight: 500;
}

.breadcrumbs__sep {
  color: var(--text-muted-light);
  margin-left: 0.35rem;
  user-select: none;
}

.tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .tagline {
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
  }
}

/* Main */
.main {
  flex: 1;
  padding: 1.5rem 0 2.5rem;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }
}

.container--wide {
  max-width: 900px;
}

@media (min-width: 992px) {
  .container--wide {
    max-width: 960px;
  }
}

.container--narrow {
  max-width: 640px;
}

/* Статические страницы (политика, обработка данных) */
.page-content {
  padding: 2rem 0 3rem;
}

.page-content__title {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  color: var(--text-heading);
}

.page-content__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.page-content__body h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text-heading);
}

.page-content__body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page-content__body ul li {
  margin-bottom: 0.35rem;
}

.page-content__body p {
  margin: 0 0 0.75rem;
}

.page-content__body p:last-child {
  margin-bottom: 0;
}

.page-content__body--legal .page-content__legal-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.page-content__lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Тарифы */
.tariffs-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tariff-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
}

.tariff-card--paid {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg-white) 100%);
}

.tariff-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text-heading);
}

.tariff-card__price {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
}

.tariff-card__price-old {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 0.35rem;
}

.tariff-card__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tariff-card__features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tariff-card__features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.tariff-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4em;
  height: 0.4em;
  background: var(--accent);
  border-radius: 50%;
}

.tariff-card__cta {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.tariff-card__cta:hover {
  background: var(--accent-hover);
}

.tariff-card__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Форма генерации — на всю ширину контента */
.container--form {
  max-width: 1200px;
}

@media (min-width: 768px) {
  .container--form {
    max-width: 1200px;
  }
}

/* Hero block — в стиле Credexa: чёткий заголовок и призыв */
.hero-block {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
  padding: 2.75rem 0 3rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-block__desc {
  margin: 0 auto 1.75rem;
  max-width: 40em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

.hero-block__cta-wrap {
  margin: 0 0 2.25rem;
  text-align: center;
}

.hero-block__cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
}

.hero-block__cta:hover {
  color: #fff;
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.hero-block__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.875rem;
  color: var(--text);
}

.feature-card__icon {
  font-size: 1.125rem;
  line-height: 1;
}

.feature-card__text {
  font-weight: 500;
}

.feature-card:hover {
  border-color: rgba(13, 110, 253, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .hero-block {
    padding: 3rem 0 3.25rem;
  }
  .hero-block__title {
    font-size: 1.875rem;
  }
  .hero-block__desc {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-block__cta-wrap {
    margin-bottom: 2.25rem;
  }
  .feature-card {
    padding: 0.75rem 1.125rem;
    font-size: 0.9rem;
  }
}

/* Как создать презентацию — шаги */
.steps-section {
  padding: 2rem 0 2.5rem;
  background: var(--bg);
}

.steps-section__title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  letter-spacing: -0.01em;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.steps-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.steps-list__item:hover {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.steps-list__num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 50%;
}

.steps-list__text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .steps-section {
    padding: 2.5rem 0 3rem;
  }
  .steps-section__title {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .steps-list__item {
    padding: 1.125rem 1.5rem;
  }
  .steps-list__text {
    font-size: 0.9375rem;
  }
}

/* Секция формы — в стиле Credexa: аккуратная карточка */
.form-section {
  padding: 2rem 0 3rem;
  background: var(--bg);
}

#main-form {
  scroll-margin-top: 1.5rem;
}

.form-section__title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .form-section__title {
    font-size: 1.375rem;
    margin-bottom: 1.75rem;
  }
}

/* Блок «Как пользоваться сервисом» */
.usage-guide {
  padding: 2rem 0 2.5rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.usage-guide .container {
  max-width: 1200px;
}

.usage-guide__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-heading);
}

.usage-guide__lead {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.usage-guide__heading {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
}

.usage-guide__heading + .usage-guide__list {
  margin-top: 0;
}

.usage-guide__list {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.usage-guide__list li {
  margin-bottom: 0.6rem;
}

.usage-guide__list li:last-child {
  margin-bottom: 0;
}

.usage-guide__list--numbered {
  list-style: decimal;
  padding-left: 1.5rem;
}

.usage-guide__list strong {
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .usage-guide {
    padding: 2.5rem 0 3rem;
  }
  .usage-guide__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .usage-guide__lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .usage-guide__heading {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  .usage-guide__list {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
}

/* Legacy hero (если где-то остался) */
.hero {
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
}

/* Card — белая карточка формы в стиле Credexa */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #0a58ca 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem 2.5rem;
  }
}

/* Form — аккуратные группы и отступы */
.form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-of-type {
  margin-bottom: 1.75rem;
}

.form-group--checkbox {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-text {
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

.form-section__group {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.form-section__group:last-of-type {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section__group-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Выбор дизайна — превью 16:9, внутри контейнера */
.design-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.design-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.design-option:hover {
  border-color: var(--text-muted-light);
  background: var(--bg);
}

.design-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.design-option input:checked + .design-preview,
.design-option input:focus-visible + .design-preview {
  box-shadow: 0 0 0 3px var(--accent);
}

.design-option input:checked ~ .design-label {
  font-weight: 700;
  color: var(--accent);
}

.design-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Превью в формате 16:9 */
.design-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
  overflow: hidden;
  display: block;
}

.design-preview--img {
  padding: 0;
  background: var(--bg);
}

.design-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.design-preview-light {
  background: linear-gradient(180deg, #f0f4f8 0%, #fff 50%);
  border: 1px solid var(--border);
}

.design-preview-dark {
  background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
}

.design-preview-bold {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.design-preview-child {
  background: #f0f4f8;
  border: 1px solid var(--border);
  background-image: url('/fon/desk.jpg'), url('/fon/desk.png');
  background-size: cover;
  background-position: center;
}

.design-preview-fun {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #fab1a0 100%);
  border: 1px solid #e8c547;
}

.design-preview-flowers {
  background: linear-gradient(135deg, #f8e0e8 0%, #e91e63 50%, #ad1457 100%);
  border: 1px solid #c2185b;
}

.design-label {
  font-size: 0.875rem;
  color: var(--text);
}

/* Дизайны — всегда по 2 в строке (крупнее), на узких экранах 1 */
@media (max-width: 600px) {
  .design-options {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-heading);
}

.required {
  color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
  border-color: var(--text-muted-light);
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

input::placeholder {
  color: var(--text-muted-light);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c5e62' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}

.form-actions {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.form-actions .btn-primary {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.form-actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.field-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.price-highlight {
  font-weight: 700;
  color: var(--primary, #0d6efd);
  white-space: nowrap;
}

/* ——— Страницы входа и регистрации ——— */
.auth-page {
  min-height: 50vh;
  padding: 2rem 1rem 3rem;
  background: var(--bg);
}

.auth-page .container {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #0a58ca 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-card__title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.auth-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.auth-flash--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.auth-flash--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(198, 40, 40, 0.25);
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form .form-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.auth-form .btn-primary {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  min-height: 48px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.source-data-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.source-data-row textarea {
  min-height: 120px;
  border-radius: var(--radius-sm);
}

.source-data-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.source-data-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.source-data-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  min-height: auto;
}

/* Buttons — синяя основная, серая вторичная */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  min-height: auto;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted-light);
}

.btn-loading {
  display: none;
}

.form.loading .btn-text {
  display: none;
}

.form.loading .btn-loading {
  display: inline;
}

/* Alert */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(229, 57, 53, 0.35);
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
}

/* Modal — структура презентации */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-desc {
  margin: 0.5rem 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.payment-modal__value {
  margin: 0.25rem 0 0;
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  word-break: break-all;
}

.structure-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.structure-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.structure-item:focus-within {
  border-color: var(--accent);
}

.structure-item-drag {
  flex-shrink: 0;
  cursor: grab;
  padding: 0.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.structure-item-drag:hover {
  color: var(--accent);
}
.structure-item-drag:active {
  cursor: grabbing;
}

.structure-item.structure-item-dragging {
  opacity: 0.6;
}
.structure-item.structure-drop-target {
  border-color: var(--accent);
  background: var(--accent-light);
}

.structure-item-num {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1.5rem;
}

.structure-item input {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  color: var(--text);
}

.structure-item input:focus {
  outline: none;
}

.structure-item-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.structure-item-remove:hover {
  background: var(--error-bg);
  color: var(--error);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-actions .btn-primary {
  width: auto;
}

.modal-actions .btn-primary .btn-loading {
  display: none;
}

.modal-box.loading .modal-actions .btn-primary .btn-text {
  display: none;
}

.modal-box.loading .modal-actions .btn-primary .btn-loading {
  display: inline;
}

/* Full-page overlay while structure is loading */
.structure-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.structure-loading-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-card, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.structure-loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light, #e0e0e0);
  border-top-color: var(--accent, #0d6efd);
  border-radius: 50%;
  animation: structure-loading-spin 0.9s linear infinite;
}

.structure-loading-overlay__label {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text, #1a1b1e);
}

@keyframes structure-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Оверлей во время генерации: таймер и предупреждение не закрывать окно */
.generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.generation-overlay__inner {
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
}

.generation-overlay__label {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.generation-overlay__timer {
  margin: 0 0 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.generation-overlay__timer--stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: inherit;
  font-weight: 600;
}

.generation-overlay__spinner {
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: generation-overlay-spin 0.9s linear infinite;
}

@keyframes generation-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

.generation-overlay__stage-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.generation-overlay__hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Модальное окно «Презентация готова» */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: resultModalFadeIn 0.2s ease;
}

@keyframes resultModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.result-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.result-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: resultModalSlideIn 0.25s ease;
}

@keyframes resultModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.result-modal__close:hover {
  color: var(--text);
  background: var(--bg);
}

.result-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-heading);
}

.result-modal__msg {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.result-modal__actions {
  margin: 0;
}

.result-modal__actions .btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Preview block — редактор, дизайн как в презентации */
.preview-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 56rem;
}

.preview-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preview-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.preview-stage {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
}

/* Тема светлая (как в PPT) */
.preview-stage[data-theme="light"] .preview-container {
  background: #F0F4F8;
}
.preview-stage[data-theme="light"] .preview-slide {
  background: #F0F4F8;
}
.preview-stage[data-theme="light"] .preview-slide-card {
  background: #FFFFFF;
  border-color: #D0DCE8;
}
.preview-stage[data-theme="light"] .preview-slide-title-edit {
  color: #0066CC;
}
.preview-stage[data-theme="light"] .preview-slide-content-edit {
  color: #333333;
}
.preview-stage[data-theme="light"] .preview-slide--title .preview-slide-title-wrap {
  background: #0066CC;
  color: #FFFFFF;
}
.preview-stage[data-theme="light"] .preview-slide--title .preview-slide-sub-edit {
  color: #333333;
}

/* Тема тёмная */
.preview-stage[data-theme="dark"] .preview-container {
  background: #1A2332;
}
.preview-stage[data-theme="dark"] .preview-slide {
  background: #1A2332;
}
.preview-stage[data-theme="dark"] .preview-slide-card {
  background: #243044;
  border-color: #2D3A4D;
}
.preview-stage[data-theme="dark"] .preview-slide-title-edit {
  color: #22D3EE;
}
.preview-stage[data-theme="dark"] .preview-slide-content-edit {
  color: #E6EDF3;
}
.preview-stage[data-theme="dark"] .preview-slide--title .preview-slide-title-wrap {
  background: #0F1419;
  color: #FFFFFF;
}
.preview-stage[data-theme="dark"] .preview-slide--title .preview-slide-sub-edit {
  color: #8B9CB3;
}

/* Тема яркая */
.preview-stage[data-theme="bold"] .preview-container {
  background: #F5F3FF;
}
.preview-stage[data-theme="bold"] .preview-slide {
  background: #F5F3FF;
}
.preview-stage[data-theme="bold"] .preview-slide-card {
  background: #FFFFFF;
  border-color: #E9E5FF;
}
.preview-stage[data-theme="bold"] .preview-slide-title-edit {
  color: #5B21B6;
}
.preview-stage[data-theme="bold"] .preview-slide-content-edit {
  color: #1F2937;
}
.preview-stage[data-theme="bold"] .preview-slide--title .preview-slide-title-wrap {
  background: #6366F1;
  color: #FFFFFF;
}
.preview-stage[data-theme="bold"] .preview-slide--title .preview-slide-sub-edit {
  color: #1F2937;
}

/* Тема «Школьная доска» (child) — фон из папки fon (desk) */
.preview-stage[data-theme="child"] .preview-container {
  background: #F0F4F8;
  background-image: url('/fon/desk.jpg'), url('/fon/desk.png');
  background-size: cover;
  background-position: center;
}
.preview-stage[data-theme="child"] .preview-slide {
  background: transparent;
  background-image: url('/fon/desk.jpg'), url('/fon/desk.png');
  background-size: cover;
  background-position: center;
}
.preview-stage[data-theme="child"] .preview-slide-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: #D0DCE8;
}
.preview-stage[data-theme="child"] .preview-slide-title-edit {
  color: #333333;
}
.preview-stage[data-theme="child"] .preview-slide-content-edit {
  color: #333333;
}
.preview-stage[data-theme="child"] .preview-slide--title .preview-slide-title-wrap,
.preview-stage[data-theme="child"] .preview-slide--title .preview-slide-title-edit,
.preview-stage[data-theme="child"] .preview-slide--title .preview-slide-sub-edit {
  color: #FFFFFF;
}
.preview-stage[data-theme="child"] .preview-slide--title .preview-slide-title-wrap {
  background: rgba(0, 102, 204, 0.85);
}

.preview-container {
  position: relative;
  border-radius: 0;
  min-height: 420px;
  overflow: hidden;
}

.preview-slides {
  display: flex;
  transition: transform 0.3s ease;
  min-height: 420px;
}

.preview-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  min-height: 420px;
}

.preview-slide-card {
  flex: 1;
  border-radius: 6px;
  border: 1px solid;
  padding: 1.25rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 0;
}

.preview-footer {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

/* Титульный слайд */
.preview-slide--title .preview-slide-card {
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
}
.preview-slide--title .preview-slide-title-wrap {
  padding: 0.5rem 0;
  border-radius: 4px;
  width: 100%;
}
.preview-slide--title .preview-slide-title-edit {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.25rem 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
}
.preview-slide--title .preview-slide-sub-edit {
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
  min-height: 2.5em;
}

/* Контентный слайд */
.preview-slide-title-wrap {
  margin: 0;
}
.preview-slide-title-edit {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.2rem 0;
  margin: 0;
  font-family: inherit;
}
.preview-slide-title-edit:focus,
.preview-slide-content-edit:focus,
.preview-slide-sub-edit:focus {
  outline: none;
  border-radius: 2px;
}
.preview-stage[data-theme="light"] .preview-slide-title-edit:focus,
.preview-stage[data-theme="light"] .preview-slide-content-edit:focus,
.preview-stage[data-theme="light"] .preview-slide-sub-edit:focus {
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.4);
}
.preview-stage[data-theme="dark"] .preview-slide-title-edit:focus,
.preview-stage[data-theme="dark"] .preview-slide-content-edit:focus,
.preview-stage[data-theme="dark"] .preview-slide-sub-edit:focus {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5);
}
.preview-stage[data-theme="bold"] .preview-slide-title-edit:focus,
.preview-stage[data-theme="bold"] .preview-slide-content-edit:focus,
.preview-stage[data-theme="bold"] .preview-slide-sub-edit:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}
.preview-stage[data-theme="child"] .preview-slide-title-edit:focus,
.preview-stage[data-theme="child"] .preview-slide-content-edit:focus,
.preview-stage[data-theme="child"] .preview-slide-sub-edit:focus {
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.4);
}

.preview-slide-content-edit,
.preview-slide-sub-edit {
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
  min-height: 3em;
  resize: none;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  margin: 0;
  font-family: inherit;
  box-sizing: border-box;
}
.preview-slide-content-edit {
  white-space: pre-wrap;
}

.preview-slide-placeholder {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px dashed currentColor;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, opacity 0.2s, color 0.2s;
}
.preview-stage[data-theme="dark"] .preview-nav {
  background: rgba(36, 48, 68, 0.95);
  color: #E6EDF3;
}
.preview-nav:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.preview-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.preview-prev { left: 0.75rem; }
.preview-next { right: 0.75rem; }

.preview-footer .preview-counter {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Result page */
.result-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.result-header h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.result-actions .btn-primary {
  width: auto;
}

@media (min-width: 768px) {
  .result-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .result-header h1 {
    font-size: 1.5rem;
  }
}

/* Slides */
.slides {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slide {
  position: relative;
  padding-top: 2.25rem;
}

.slide-number {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted-light);
}

.slide-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.slide-content {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.slide-content br {
  display: block;
  content: "";
  margin-top: 0.4rem;
}

.slide-content p {
  margin: 0 0 0.5rem;
}

.slide-content p:last-child {
  margin-bottom: 0;
}

.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

/* Error card */
.error-card {
  text-align: center;
  max-width: 420px;
  margin: 2rem auto;
}

.error-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  color: var(--text-heading);
}

.error-message {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-white) 12%);
}

.footer .container {
  max-width: 1200px;
}

.footer__container {
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .footer__container {
    padding: 0 1.5rem;
  }
}

.footer__top {
  padding: 2rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2rem 3rem;
  }
}

.footer__title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin: 0 0 0.5rem;
}

.footer__links li:last-child {
  margin-bottom: 0;
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__link--all {
  font-weight: 600;
  color: var(--accent);
}

.footer__link--all:hover {
  color: var(--accent-hover);
}

.footer__contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.footer__contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

.footer__contact-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.footer__contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.footer__contact-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.footer__bottom {
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.footer__legal {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.footer__address {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.footer__disclaimer {
  margin: 0.5rem auto 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 42rem;
}

/* ========== Каталог презентаций ========== */
.catalog-section {
  padding: 2rem 0 3rem;
}

.catalog-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--text-heading);
}

.catalog-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.catalog-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.catalog-filter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.catalog-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-filter-tags--more {
  margin-top: 0.5rem;
}

.catalog-filter-more-btn {
  flex-basis: 100%;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  width: fit-content;
}

.catalog-filter-more-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.catalog-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.catalog-tag:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.catalog-tag--active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.catalog-item {
  margin: 0;
}

.catalog-card {
  display: block;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.catalog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-white);
  overflow: hidden;
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card__img {
  transform: scale(1.06);
}

.catalog-card__body {
  margin: 0;
  padding: 1.25rem 1.25rem 1.125rem;
  background: var(--bg-white);
  min-height: 0;
}

.catalog-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  transition: color 0.2s;
}

.catalog-card:hover .catalog-card__title {
  color: var(--accent);
}

.catalog-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding-top: 0.125rem;
}

.catalog-card__category {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-light);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.catalog-card__category:hover {
  background: var(--accent);
  color: var(--bg-white);
}

.catalog-card__tag {
  display: inline-block;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.catalog-card__tag:hover {
  background: var(--border-light);
  color: var(--text-heading);
}

.catalog-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  margin: 0;
}

.pagination {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.pagination__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.pagination__item {
  margin: 0;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pagination__link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
}

.pagination__item--current .pagination__link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
}

.pagination__item--current .pagination__link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 10px rgba(11, 94, 215, 0.4);
}

.pagination__info {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Страница одной презентации */
.presentation-page {
  padding: 2rem 0 3rem;
}

.presentation-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}

.presentation-back:hover {
  text-decoration: underline;
}

.presentation-header {
  margin-bottom: 2.5rem;
}

.presentation-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--text-heading);
}

.presentation-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.presentation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.presentation-meta__item {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.presentation-meta__category {
  color: var(--accent);
  font-weight: 500;
}

.presentation-meta__tag {
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.presentation-download {
  margin-top: 1rem;
}

.presentation-download .btn {
  width: auto;
  min-height: auto;
}

.presentation-download-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted, #666);
}

.presentation-download-note a {
  color: var(--link-color, #0066cc);
  text-decoration: underline;
}

.presentation-download-note a:hover {
  text-decoration: none;
}

.presentation-block-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--text-heading);
}

.presentation-screenshots {
  margin-bottom: 2.5rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.screenshot-num {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: var(--bg-white);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.presentation-content {
  margin-bottom: 2rem;
}

.slides-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slide-block {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.slide-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text-heading);
}

.slide-block__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
}

.presentation-empty {
  color: var(--text-muted);
  margin: 0;
  padding: 1rem 0;
}

.presentation-more-from-category {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.presentation-more-from-category .presentation-block-title {
  margin-bottom: 1.25rem;
}

.presentation-more-category-link {
  color: var(--primary);
  text-decoration: none;
}

.presentation-more-category-link:hover {
  text-decoration: underline;
}

.presentation-more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.presentation-more-grid__item {
  margin: 0;
}

.presentation-more-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.presentation-more-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.presentation-more-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}

.presentation-more-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.presentation-more-card__body {
  padding: 0.5rem 0.75rem;
}

.presentation-more-card__title {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Личный кабинет */
.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--text-heading);
}

.account-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.account-section__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
}

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.account-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.account-list__item:last-child {
  border-bottom: none;
}

.account-list__main {
  flex: 1;
  min-width: 0;
}

.account-list__topic {
  display: block;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.account-list__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.account-list__download {
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .account-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .account-list__download {
    align-self: stretch;
    justify-content: center;
  }
}

.account-empty {
  padding: 1.5rem 0;
  color: var(--text-muted);
}

.account-empty a {
  color: var(--accent);
  text-decoration: none;
}

.account-empty a:hover {
  text-decoration: underline;
}

.account-back {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.account-back a {
  color: var(--accent);
  text-decoration: none;
}

.account-back a:hover {
  text-decoration: underline;
}

/* ——— Вопросы и ответы (главная) ——— */
.faq-section {
  padding: 2.5rem 0 3rem;
  background: var(--bg);
}

.faq-section__title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item__question {
  padding: 1rem 1.25rem 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__question::before {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item__question:hover {
  background: var(--bg);
  color: var(--accent);
}

.faq-item__answer {
  padding: 0 1.25rem 1rem 3rem;
}

.faq-item__answer p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}
