@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;800&display=swap');

/* === BASE === */
:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-secondary: rgba(255, 255, 255, 0.85);
  --color-accent: #ff3b3b;
  --color-glass: rgba(255, 255, 255, 0.1);
  --color-border: rgba(255, 255, 255, 0.16);
  --color-border-strong: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 16px 42px rgba(255, 70, 70, 0.18);
  --shadow-strong: 0 24px 64px rgba(255, 70, 70, 0.3);
  --safe-top: calc(18px + env(safe-area-inset-top, 0px));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
  background: var(--color-bg);
}

/* === BACKGROUND === */
body {
  position: relative;
  z-index: 0;
  background-color: var(--color-bg);
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.65;
  filter: none;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 120%, rgba(255, 0, 0, 0.8), transparent 80%);
  mix-blend-mode: screen;
  z-index: -2;
  pointer-events: none;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: -6%;
  background-image: var(--bg-image, url("../img/background.svg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: var(--bg-filter, saturate(1));
  transform: scale(var(--bg-scale, 1.08));
  transition:
    opacity 0.9s ease,
    transform 8s ease,
    filter 0.9s ease;
  will-change: opacity, transform, filter;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(
    --bg-overlay,
    radial-gradient(circle at 70% 120%, rgba(255, 0, 0, 0.7), transparent 78%)
  );
  opacity: var(--bg-overlay-opacity, 0.8);
  mix-blend-mode: screen;
  transition: background 1s ease, opacity 0.9s ease;
  pointer-events: none;
}

.bg-layer.is-active {
  opacity: 1;
  transform: scale(1);
}


/* === LOADER === */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 999;
  transition: opacity 0.8s ease, filter 1s ease;
}

#loader.fade-out {
  opacity: 0;
  filter: blur(30px);
  pointer-events: none;
}

.logo {
  width: 160px;
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* === LAYOUT === */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  transition: opacity 0.6s ease;
}

.app-shell.hidden {
  opacity: 0;
  pointer-events: none;
}

.app-shell.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.app-shell {
  padding-top: calc(110px + var(--safe-top));
}

.top-header {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: transparent;
  border-radius: 28px;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 0;
  text-align: center;
  pointer-events: none;
  transition: filter 0.28s ease;
}

.top-header.is-blurred {
  filter: blur(14px);
}

.top-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
}

.top-header__title span {
  font-weight: 600;
  font-style: italic;
}

.top-header__title b {
  font-weight: 900;
  font-style: italic;
}

.top-header__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: var(--color-secondary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-header__subtitle.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 48px 24px calc(160px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  opacity: 1;
  transform: none;
  will-change: auto;
  backface-visibility: hidden;
  transition: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page[data-section] {
  display: none;
}

.page[data-section].is-active {
  display: flex;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.page[data-section].is-active.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page[data-section].is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(30px);
}

.page--static {
  opacity: 1;
  transform: none;
}

.page__section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.page__section--centered {
  text-align: center;
  align-items: center;
}

body, html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

/* === INTRO === */
.intro h1,
.page__title {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #ff3b3b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.subtitle,
.intro__subtitle,
.page__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.page__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  text-align: center;
  max-width: 520px;
}

.section-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.6px;
}

.section-title--sm {
  font-size: clamp(18px, 2.6vw, 22px);
}

.section-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* === CARD === */
.content-section {
  background: linear-gradient(150deg, rgba(218, 139, 139, 0.459), rgba(232, 141, 141, 0.484));
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(221, 147, 147, 0.481);
  transition: all 0.4s ease;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.content-section p {
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.9;
}

/* === BUTTON === */
.cta-btn {
  margin-top: 8px;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(255, 50, 50, 0.3);
  transition: all 0.25s ease;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #ff4242, #ff6060);
  box-shadow: 0 8px 40px rgba(255, 60, 60, 0.4);
  transform: translateY(-2px);
}

.cta-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 50, 50, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 50, 50, 0.6);
}

/* === SWIPER SLIDER === */
.swiper {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 40px 20px 60px;
  padding-bottom: 40px; /* регулирует отступ между карточкой и точками */
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 90%;
  transition: transform 0.4s ease;
}

.swiper-slide-active {
  transform: scale(1.03);
  z-index: 2;
}

.swiper-slide-next,
.swiper-slide-prev {
  opacity: 0.7;
  transform: scale(0.96);
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  overflow: visible !important;
  margin-top: -15px;
}

/* === CARD (единый стиль) === */
.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border-radius: 28px;
  padding: 20px 18px 22px;
  max-width: 400px;
  width: 100%;
  text-align: left;
  color: var(--color-text);
  backdrop-filter: blur(22px) saturate(1.22);
  box-shadow: 0 20px 48px rgba(10, 12, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform, opacity;
  transform: translateZ(0);
  contain: paint layout;
  backface-visibility: hidden;
  position: relative;
}

.card--centered {
  text-align: center;
}

.card--promo {
  max-width: 520px;
  margin: 0 auto;
}

.card-option {
  font-size: 13px;
  opacity: 0.55;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 16px;
  line-height: 1.45;
  opacity: 0.9;
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.period {
  font-size: 15px;
  opacity: 0.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tags span {
  background: var(--color-glass);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.9;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tags span:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.card button {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}

.card button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(255, 60, 60, 0.5);
}

.card--review {
  max-width: 520px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  min-height: 280px;
}

.card--review .section-title--sm {
  margin-bottom: 0;
}

.card--review .review-role {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card--review .review-text {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
  flex-grow: 1;
  overflow: hidden;
  word-break: break-word;
  max-height: calc(1.5em * 6);
  line-clamp: 6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
}

.card--review.is-clamped .review-text {
  position: relative;
}

.card--review .review-text.review-text--clamped {
  padding-bottom: 12px;
}

.review-more-btn {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.18);
  margin-top: auto;
}

.review-more-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 60, 60, 0.45);
}

.review-detail__role {
  font-size: 14px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}

.review-detail__text {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.96;
  white-space: pre-wrap;
}

.card--offer {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.45);
  background: rgba(12, 14, 20, 0.55);
}

.card--offer .offer-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.card--offer .offer-card__panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.card--offer .offer-card__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--offer-image) center / cover no-repeat;
  filter: brightness(0.6);
  transform: scale(1.05);
  z-index: 0;
}

.card--offer .offer-card__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.2) 0%, rgba(8, 10, 16, 0.6) 100%);
  z-index: 1;
}

.card--offer .offer-card__panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 26px 32px;
  height: 100%;
}

.card--offer .offer-card__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--offer .offer-card__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: -16px;
  padding-top: 8px;
}

.card--offer .offer-card__meta {
  width: calc(100% - 24px);
  max-width: 380px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  text-transform: lowercase;
  margin: 0 auto;
}

.card--offer .stats {
  margin: 0;
  background: none;
  padding: 0;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 0;
  padding: 2px 0 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  touch-action: pan-x;
  scrollbar-width: none;
}

.card--offer .stats-slider {
  width: calc(100% + 52px);
  margin-left: -26px;
  margin-right: -26px;
  padding: 2px 26px 12px;
}

.stats-slider::-webkit-scrollbar {
  display: none;
}

.card--offer .stats__item {
  text-align: left;
  min-width: 132px;
  max-width: 150px;
  padding: 11px 14px 13px;
  background: rgba(15, 15, 24, 0.2);
  border-radius: 13px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  padding-right: 24px;
}

.card--offer .stats .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.card--offer .stats .value {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.card--offer .stats__title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: left;
}

@media (min-width: 720px) {
  .card--offer .stats {
    padding-bottom: 24px;
  }

  .card--offer .stats-slider {
    width: 100%;
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
  }

  .card--offer .stats__item {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 calc((100% - 24px) / 3);
    padding: 16px 18px;
    background: rgba(15, 15, 24, 0.16);
  }

  .card--offer .stats .label {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .card--offer .stats .value {
    font-size: 18px;
  }
}

.card--offer .price-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 380px;
  margin: 0 auto;
}

.card--offer .cta-btn--price {
  height: 52px;
  margin-top: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  box-shadow: 0 8px 24px rgba(255, 59, 59, 0.45);
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  gap: 4px;
  width: 100%;
}

.card--offer .cta-btn--price:hover {
  background: linear-gradient(90deg, #ff4242, #ff6060);
}

.card--offer .cta-btn--price .sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.card--offer .offer-card__actions .cta-btn {
  margin-top: 0;
}

.card--offer .cta-btn--details {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.32);
  width: calc(100% - 24px);
  max-width: 380px;
}

.card--offer .cta-btn--details:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

.offers .card--offer {
  width: 100%;
  max-width: 420px;
}

/* === SWIPER PAGINATION (мягкое перетекание точек) === */
.swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px; /* поднимает точки ближе к карточке */
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.swiper-pagination-bullet-active {
  width: 24px;
  height: 8px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

/* === FOOTER === */
.footer {
  text-align: center;
  margin-top: 50px; /* ближе к карточке */
  padding-bottom: 20px; /* отступ до нижней границы */
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer__support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__support-link:hover,
.footer__support-link:focus-visible {
  color: #ffffff;
}

.footer img {
  margin: -8px;
  width: 26px;
  height: 26px;
  opacity: 1;
}

/* === INFO BLOCK (под точками) === */
.info-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px; /* до "саппорта" */
  gap: 10px;
  opacity: 0.9;
  animation: fadeIn 0.5s ease forwards;
}

.info-block p {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.info-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* плавное появление */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === REVIEWS === */
.reviews-swiper .swiper-wrapper {
  align-items: stretch;
}

.reviews-swiper .swiper-slide {
  width: 85%;
  display: flex;
  justify-content: center;
}

.reviews-swiper .swiper-slide .card {
  height: 100%;
}

/* Предзагружаем чуть заранее — плавное появление */
.preload {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  will-change: opacity, transform;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .app-shell {
    padding-top: calc(100px + var(--safe-top));
  }

  .top-header {
    width: min(520px, calc(100% - 24px));
    padding: 16px 20px;
    border-radius: 24px;
    top: calc(18px + env(safe-area-inset-top, 0px));
  }

  .page {
    padding: 40px 16px calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .card {
    max-width: 100%;
  }

  .offers .card--offer {
    max-width: 420px;
  }

  .cta-btn {
    font-size: 15px;
  }

}

body.no-scroll {
  overflow: hidden;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.offer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.offer-modal.is-open .offer-modal__backdrop {
  opacity: 1;
}

.offer-modal__dialog {
  position: relative;
  background: #0d0d12;
  border-radius: 24px 24px 0 0;
  padding: 16px 0 32px;
  max-height: calc(100vh - 140px);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.35s ease;
}

.offer-modal.is-open .offer-modal__dialog {
  transform: translate3d(0, 0, 0);
}

.offer-modal.is-closing {
  pointer-events: none;
}

.offer-modal.is-closing .offer-modal__dialog {
  transform: translate3d(0, 100%, 0);
}

.offer-modal__slider {
  flex: 1;
  overflow: hidden;
  padding: 0 12px 24px;
}

.offer-modal__pagination {
  margin-top: 8px;
}

.offer-detail {
  background: #13131a;
  border-radius: 20px;
  padding: 20px 20px 28px;
  color: #f5f5f8;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.offer-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-detail__track {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ea2ff;
}

.offer-detail__header h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}

.offer-detail__header p {
  font-size: 15px;
  color: rgba(245, 245, 248, 0.8);
  margin: 0;
}

.offer-detail__section h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.offer-detail__section p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(245, 245, 248, 0.85);
}

.offer-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(245, 245, 248, 0.85);
}

.offer-detail__list li::before {
  content: "•";
  color: #ff3838;
  margin-right: 8px;
}

.offer-detail__money ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.offer-detail__money li span {
  display: inline-block;
  min-width: 150px;
  color: rgba(245, 245, 248, 0.7);
}

.offer-detail blockquote {
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(245, 245, 248, 0.75);
}

.offer-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-detail__tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(245, 245, 248, 0.9);
}

.offer-detail__cta {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.offer-modal .cta-btn--price {
  width: 100%;
}

@media (min-width: 520px) {
  .offer-modal__dialog {
    width: min(440px, 92%);
    margin: 0 auto;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .offer-modal__dialog {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

/* === COURSE COMMENTS === */
.offer-detail__section .course-comments-container {
  display: flex;
  justify-content: flex-start; /* flex-start - от левого края, center - по центру, flex-end - от правого края */
  width: calc(100% + 35px); /* увеличиваем ширину, чтобы больше выходило вправо */
  max-width: calc(100% + 40px);
  margin-top: 10px;
  margin-left: -20px; /* компенсируем padding-left родителя (.offer-detail имеет padding: 20px) */
  margin-right: -20px; /* компенсируем padding-right родителя, можно уменьшить (например -15px) для большего отступа справа */
  margin-bottom: 0; /* убеждаемся, что нет отрицательного margin снизу */
  padding: 0;
  padding-top: 20px; /* убеждаемся, что нет отступа сверху, который может обрезать карточки */
  overflow: hidden; /* visible - чтобы карточки не обрезались, hidden - обрезает содержимое */
  /* ВАЖНО: Если верх карточек обрезается, попробуйте добавить padding-top: 10px; или изменить overflow на visible */
  box-sizing: border-box;
  min-height: 200px; /* минимальная высота контейнера (можно изменить) */
  height: auto; /* автоматическая высота по содержимому, можно задать фиксированную: height: 300px; */
  max-height: none; /* максимальная высота, можно ограничить: max-height: 400px; */
  position: relative; /* для корректного позиционирования */
}

.course-comments-loader,
.course-comments-empty {
  text-align: center;
  padding: 24px 16px;
  color: rgba(245, 245, 248, 0.6);
  font-size: 14px;
}

.course-comments-swiper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0 0 8px; /* padding: верх право низ лево; можно изменить на padding: 0 20px 8px 20px для боковых отступов */
  margin-top: 0; /* убеждаемся, что нет отрицательного margin сверху */
  padding-top: 0; /* убеждаемся, что нет отступа сверху */
}

.course-comments-swiper .swiper-wrapper {
  display: flex;
  align-items: flex-start; /* flex-start - выравнивание по верху, stretch - растягивание */
  margin-top: 0; /* убеждаемся, что нет отрицательного margin сверху */
  padding-top: 0; /* убеждаемся, что нет отступа сверху */
}

.course-comments-swiper .swiper-slide {
  width: auto !important;
  height: auto !important;
  flex-shrink: 0;
  overflow: visible !important;
}

.course-comment-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px; /* внутренние отступы карточки: можно изменить на padding: 12px 16px или padding: 20px */
  min-width: 280px;
  max-width: 320px;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 8px; /* отступ между элементами внутри карточки */
  min-height: auto;
  height: auto; /* автоматическая высота по содержимому */
  overflow: visible;
  box-sizing: border-box;
  margin-top: 0; /* убеждаемся, что нет отрицательного margin сверху, который может обрезаться */
  margin-right: 16px; /* отступ между карточками (можно изменить или убрать) */
  margin-bottom: 0; /* убеждаемся, что нет отрицательного margin снизу */
  align-self: flex-start; /* карточка не растягивается, занимает только необходимое место */
}

.course-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  flex-shrink: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.course-comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 245, 248, 0.8);
  margin: 0;
  flex: 0 1 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
}

.course-comment-read-more {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.course-comment-read-more:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.course-comment-read-more:active {
  transform: scale(0.98);
}

/* === COMMENT MODAL (поверх модалки курса) === */
.comment-modal {
  z-index: 1300;
}

.comment-modal .offer-modal__backdrop {
  background: rgba(9, 9, 11, 0.75);
}

.comment-detail {
  max-height: calc(100vh - 200px);
}

.comment-detail__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 245, 248, 0.9);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Адаптивность для комментариев */
@media (max-width: 520px) {
  .course-comment-card {
    min-width: 240px;
    max-width: calc(100vw - 64px);
    width: auto;
    margin-right: 12px; /* отступ между карточками на мобильных */
  }
  
  .course-comments-swiper {
    padding-left: 20px; /* отступ слева на мобильных */
    padding-right: 20px; /* отступ справа на мобильных */
  }
  
  .course-comments-swiper .swiper-slide {
    width: auto !important;
    max-width: calc(100vw - 64px);
  }
}

html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}