/* === css/components/hero-section.css === */
/* ==========================================================================
   Hero Section - editorial: текст ліворуч / картка ціни праворуч
   ========================================================================== */

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.25rem;
  margin-bottom: var(--section-spacing-desktop);
  padding: 0 var(--spacing-md) clamp(3rem, 6vw, 5rem);
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-section-content, 2);
}

.hero-section.glass-section {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* ===== BODY: two-column grid ===== */
.hero-section__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

/* ===== TEXT COLUMN ===== */
.hero-section__text {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.hero-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.hero-section__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--color-primary);
}

.hero-section__text h1 {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.hero-section__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
  max-width: 46ch;
}

.hero-section__price-accent {
  color: var(--color-primary);
}

.hero-section__free-accent {
  font-weight: 600;
  color: var(--ink);
}

/* ===== ACTIONS ROW ===== */
.hero-section__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-section__scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .hero-section__scroll-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }
}

/* ===== TRUST LIST ===== */
.hero-section__trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-section__trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: var(--graphite-soft);
  white-space: nowrap;
}

.hero-section__trust-list li svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ===== PHOTO ===== */
.hero-section__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.hero-section__photo {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== PRICE TILE ===== */
.price-tile {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-sizing: border-box;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
}

.price-tile__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.price-tile__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  color: var(--ink);
}

.price-tile__from,
.price-tile__unit {
  font-size: var(--font-size-base);
  color: var(--graphite-soft);
}

.price-tile__amount {
  font-family: var(--font-family-heading);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.price-tile__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.price-tile__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--ink-light);
}

.price-tile__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--color-primary);
}

.price-tile__cta {
  white-space: normal;
}

/* ===== TABLET ===== */
@media (width >= 768px) and (width < 1024px) {
  .hero-section__body {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 2rem;
  }
}

/* ===== MOBILE ===== */
@media (width <= 767px) {
  .hero-section {
    padding: 0 1rem 2.5rem;
    margin-top: clamp(1rem, 3vh, 2rem);
    margin-bottom: var(--section-spacing-mobile);
    scroll-margin-top: calc(var(--header-height, 80px) + env(safe-area-inset-top, 0px) + 1rem);
    scroll-margin-bottom: calc(var(--nav-height, 70px) + env(safe-area-inset-bottom, 0px) + 1rem);
  }

  .hero-section__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-section__text h1 {
    font-size: clamp(2.125rem, 9vw, 2.75rem);
  }

  .hero-section__actions {
    gap: 1rem;
  }

  .hero-section__actions .button {
    width: 100%;
  }

  .hero-section__trust-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== EXTRA SMALL ===== */
@media (width <= 374px) {
  .hero-section__text h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }
}

/* === css/components/home.css === */
/* ==========================================================================
   Головна (лідогенерація): смужка акції, аудиторії, кроки, переваги, команда,
   ціни, FAQ, форма, мобільна закріплена кнопка
   ========================================================================== */

/* Посилання-кнопки мають content-box: min-height додавався до padding і кнопка ставала вищою */
.home .button,
.home-sticky-cta .button {
  box-sizing: border-box;
}

/* ===== Перший екран: друга кнопка і рядок довіри ===== */
.home .hero-section__body {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}

.home .hero-section__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius, 10px);
}

.home .hero-section__actions {
  align-content: flex-start;
}

.home .hero-section__actions .button {
  padding-left: 28px;
  padding-right: 28px;
}

.home-trust {
  margin: 0;
  color: var(--graphite-soft, #6b6b6b);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Загальна секція ===== */
.home-section {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto var(--section-spacing-desktop);
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
  text-align: center;
}

.home-section .section-title {
  margin-bottom: var(--spacing-lg);
}

.home-section__lead {
  max-width: 40rem;
  margin: calc(var(--spacing-md) * -0.5) auto var(--spacing-xl);
  color: var(--graphite-soft, #6b6b6b);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-section__more {
  display: inline-block;
  margin-top: var(--spacing-lg);
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

/* ===== Аудиторії ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
  text-align: left;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--border, #dadada);
  border-radius: var(--radius, 10px);
  background: #fff;
}

.audience-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
}

.audience-card__for {
  margin: 0;
  color: var(--ink, #1a1a1a);
  font-weight: 500;
  line-height: 1.5;
}

.audience-card__format {
  margin: 0;
  color: var(--graphite-soft, #6b6b6b);
  line-height: 1.5;
}

.audience-card__price {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.audience-card__button {
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  white-space: normal; /* «Обговорити навчання команди» на телефоні не влазило в картку (власник 12.10) */
}

/* ===== Кроки ===== */
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: none;
}

.home-steps__item {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 2px solid var(--ink, #1a1a1a);
}

.home-steps__num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.home-steps__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
}

.home-steps__item p {
  margin: 0 0 0.75rem;
  color: var(--graphite-soft, #6b6b6b);
  line-height: 1.6;
}

.home-steps__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

/* ===== Переваги з цифрами ===== */
.home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border, #dadada);
  border-radius: var(--radius, 10px);
  background: #fff;
}

.home-facts strong {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink, #1a1a1a);
}

.home-facts span {
  color: var(--graphite-soft, #6b6b6b);
  line-height: 1.5;
}

/* ===== Команда ===== */
.home-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.home-team img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius, 10px);
}

/* ===== Ціни коротко ===== */
.home-prices {
  max-width: 48rem;
  margin: 0 auto var(--spacing-xl);
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-prices__row {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 0.8fr;
  align-items: end;
  gap: var(--spacing-md);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border, #dadada);
}

.home-prices__name {
  font-weight: 600;
}

.home-prices__name em {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
}

.home-prices__per {
  color: var(--graphite-soft, #6b6b6b);
}

.home-prices__price {
  font-weight: 700;
}

.home-prices__price .price-pair__item--new .price-pair__value {
  font-size: 1.2rem;
}

.home-prices__per {
  text-align: right;
}

/* ===== FAQ ===== */
.home-faq {
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
}

.home-faq__item {
  border-bottom: 1px solid var(--border, #dadada);
}

.home-faq__item summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 400;
}

.home-faq__item[open] summary::after {
  content: "−";
}

.home-faq__answer {
  padding: 0 0 1.1rem;
  color: var(--ink-light, #3a3a3a);
  line-height: 1.65;
}

.home-faq__answer p {
  margin: 0 0 0.75rem;
}

.home-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ===== Форма ===== */
.home-form__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border, #dadada);
  border-radius: var(--radius, 10px);
  background: #fff;
  text-align: left;
}

.home-form__copy .section-eyebrow {
  justify-content: flex-start;
}

.home-form__copy .section-title {
  margin-bottom: var(--spacing-md);
  text-align: left;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.home-form__copy p {
  margin: 0;
  color: var(--graphite-soft, #6b6b6b);
  line-height: 1.6;
}

/* Форма на білій картці: стилі варіанта adults-advantages робилися під темний фон (білі рамки) */
.home-form .trial-form--adults-advantages .form-group input {
  background-color: #fff;
  border: 1px solid var(--border, #dadada);
}

.home-form .trial-form--adults-advantages .form-group input:hover,
.home-form .trial-form--adults-advantages .form-group input:focus {
  background-color: #fff;
  border-color: var(--ink, #1a1a1a);
  box-shadow: none;
}

.home-form .trial-form--adults-advantages .button {
  width: 100%;
  white-space: normal;
  padding-inline: 1rem;
  letter-spacing: 0.3px;
}

/* ===== Мобільна закріплена кнопка ===== */
.home-sticky-cta {
  display: none;
}

@media (width <= 767px) {
  .home-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border, #dadada);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .home-sticky-cta.is-visible {
    transform: translateY(0);
  }

  /* RU: кнопка «Краще українською» над закріпленою кнопкою */
  .has-sticky-cta .ua-switch {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .has-sticky-cta .ai-fab {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .has-sticky-cta .ai-fab--ru {
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
  }

  .home-page .footer {
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-sticky-cta {
    transition: none;
  }
}

/* ===== Адаптивність ===== */
@media (width <= 1023px) {
  .home-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 767px) {
  .home .hero-section__body {
    grid-template-columns: 1fr;
  }

  .home-section {
    margin-bottom: var(--section-spacing-mobile);
  }

  /* minmax(0, 1fr), а не 1fr: інакше довга кнопка форми розпирала колонку ширше за картку */
  .audience-grid,
  .home-steps,
  .home-form__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-team {
    grid-template-columns: 1fr 1fr;
  }

  .home-team img:first-child {
    grid-column: 1 / -1;
  }

  .home-prices__row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem var(--spacing-md);
  }

  .home-prices__name {
    grid-column: 1 / -1;
  }

  .home-prices__per {
    text-align: right;
  }

}

@media (width <= 480px) {
  .home-facts {
    gap: var(--spacing-sm);
  }

  .home-facts li {
    padding: 1rem;
  }

  .home-facts strong {
    font-size: 1.75rem;
  }
}

/* ===== Ціни: вкладки «Дорослим | Дітям», ціна за місяць ===== */
.home-prices__tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto var(--spacing-md);
  padding: 4px;
  border-radius: 999px;
  background: var(--border, #e6e6e6);
}

.home-prices__tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.home-prices__tab.is-active {
  background: #fff;
  box-shadow: 0 1px 3px #00000026;
}

.home-prices__term {
  display: block;
  margin-top: 2px;
  color: var(--graphite-soft, #6b6b6b);
  font-size: 0.85rem;
  font-weight: 400;
}

.home-prices__per {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.home-prices__month {
  color: var(--ink, #111);
  font-size: 1.15rem;
  white-space: nowrap;
}

.home-prices__per small {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Рядок ціни розкривається: що входить і кнопки оплати */
.home-prices > li {
  border-bottom: 1px solid var(--border, #dadada);
}

.home-prices__item .home-prices__row {
  grid-template-columns: 1.3fr 1.6fr 0.8fr 24px;
  border-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.home-prices__item .home-prices__row::-webkit-details-marker {
  display: none;
}

.home-prices__row:hover .home-prices__name {
  color: var(--color-primary);
}

.home-prices__toggle {
  align-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.home-prices__item[open] .home-prices__toggle {
  transform: rotate(-135deg);
}

.home-prices__details {
  padding: 0 0 1.25rem;
}

.home-prices__includes {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--graphite-soft, #555);
  line-height: 1.6;
}

.home-prices__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (width <= 767px) {
  .home-prices__item .home-prices__row {
    grid-template-columns: 1fr auto 20px;
  }

  .home-prices__item .home-prices__price {
    grid-column: 1 / 2;
  }

  .home-prices__actions .button {
    flex: 1 1 100%;
  }
}

.home-prices__note {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--ink, #111);
}

/* === css/components/testimonials.css === */
/* ==========================================================================
   Testimonials Section - White cards on dark background
   ========================================================================== */

.testimonials-section {
  padding: 0 var(--spacing-md);
  margin-bottom: var(--section-spacing-desktop);
  contain: layout style paint;
  content-visibility: auto;
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.testimonials-section.glass-section {
  background: transparent;
  border: none;
  border-radius: 0;
}

.testimonials-carousel-wrapper {
  position: relative;
  margin: 0 auto var(--spacing-xl);
  -webkit-user-select: none;
  user-select: none;
}

.testimonials-carousel {
  margin: 0 auto;
  padding: var(--spacing-md) 0 var(--spacing-sm);
  overscroll-behavior-x: contain;
}

/* ===== WHITE CARD ===== */
.testimonial-card {
  position: relative;
  width: 80%;
  max-width: 300px;
  padding: var(--spacing-lg);
  margin: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    border-color: var(--ink);
  }
}

/* ===== CONTENT ===== */
.testimonial-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  height: 100%;
}

/* ===== HEADER: avatar + meta ===== */
.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
  background: var(--color-bg-secondary);
  border: 1px solid var(--border);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.testimonial-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SVG RATING STARS ===== */
.testimonial-card__rating {
  display: flex;
  gap: 2px;
}

.testimonial-card__star {
  color: var(--border);
  transition: color var(--transition-fast);
}

.testimonial-card__star--active {
  color: var(--color-primary);
}

/* ===== TEXT + DATE ===== */
.testimonial-card__text {
  font-size: var(--font-size-base);
  color: var(--ink-light);
  line-height: 1.65;
  flex: 1 0 0;
  margin: 0;
}

.testimonial-card__date {
  font-size: var(--font-size-xs);
  color: var(--graphite-soft);
  margin-top: auto;
}

/* ===== NAV BUTTONS (SVG arrows) ===== */
.testimonials-carousel-nav-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonials-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  touch-action: manipulation;
  flex-shrink: 0;
}

.testimonials-carousel-nav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-carousel-nav:hover {
    background: var(--ink);
    color: var(--color-white);
  }
}

.testimonials-carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* Button center */
#testimonial-modal-trigger {
  display: block;
  margin: 0 auto;
}

/* ===== DESKTOP ===== */
@media (width >= 768px) {
  .testimonials-carousel {
    display: flex;
    gap: var(--spacing-xl);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .testimonials-carousel::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 calc(33.333% - var(--spacing-xl) * 0.666);
    min-width: 260px;
    max-width: 360px;
    margin: 0;
    scroll-snap-align: start;
  }

  .testimonials-carousel-nav-wrapper {
    display: flex;
  }
}

/* ===== DOTS (mobile) ===== */
.testimonials-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-md);
  list-style: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.testimonials-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  touch-action: manipulation;
  min-width: 8px;
  min-height: 8px;
}

.testimonials-dots__dot--active {
  background: var(--color-primary);
  transform: scale(1.35);
}

.testimonials-dots__dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===== MOBILE ===== */
@media (width <= 767px) {
  .testimonials-dots {
    display: flex;
    margin-bottom: var(--spacing-xl);
  }

  /* Крапки вставляються після wrapper: відступ переносимо під них, інакше вони липнуть до кнопки */
  .testimonials-carousel-wrapper:has(+ .testimonials-dots) {
    margin-bottom: 0;
  }

  .testimonials-section {
    padding: 0 1rem;
    margin-bottom: var(--section-spacing-mobile);
    overflow-x: hidden;
  }

  .testimonials-section .section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .testimonials-carousel {
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--spacing-md);
    overflow-x: auto;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - var(--spacing-md) * 2);
    scroll-snap-align: center;
    max-width: 100%;
  }

  .testimonials-carousel-nav {
    display: none;
  }

  #testimonial-modal-trigger {
    display: block;
    margin: 0 auto;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .testimonials-dots__dot,
  .testimonial-card {
    transition: none;
  }
}

/* === css/components/payment-components.css === */
/**
 * Payment Components Styles
 * Стилі для компонентів оплати (модалки, форми, лоадери)
 */

/* Installment Form Modal */
.payment-installment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

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

.payment-installment-modal {
  position: relative;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.payment-installment-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-installment-modal__close:hover {
  color: #333;
}

.payment-installment-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.payment-installment-modal__subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

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

.payment-installment-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.payment-installment-form input,
.payment-installment-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.payment-installment-form input:focus,
.payment-installment-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.payment-installment-form small {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #666;
}

.payment-installment-info {
  background: #f0f7ff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
}

.payment-installment-info p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #333;
}

/* Payment Loader */
.payment-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(8px);
}

.payment-loader {
  text-align: center;
  color: white;
}

.payment-loader__spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

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

.payment-loader__message {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

/* Payment Waiting (for payparts) */
.payment-waiting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.payment-waiting {
  max-width: 500px;
  width: 100%;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.payment-waiting__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.payment-waiting__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.payment-waiting__message {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.payment-waiting__hint {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 2rem;
}

.payment-waiting__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top-color: #667eea;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

.payment-waiting__order-id {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
  font-family: monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .payment-installment-modal {
    padding: 1.5rem;
    max-height: 95vh;
  }

  .payment-installment-modal__title {
    font-size: 1.5rem;
  }

  .payment-waiting {
    padding: 2rem 1.5rem;
  }

  .payment-waiting__title {
    font-size: 1.5rem;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .payment-installment-modal,
  .payment-waiting {
    max-height: 85vh;
  }
}
