/* КомбоБрокер — сдержанный индивидуальный стиль */
:root {
  --color-bg: #fff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #1a2332;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #1a5fb4;
  --color-accent-hover: #0d4a8f;
  --color-border: #e0e4e8;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  padding-left: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo {
  flex: 1;
  min-width: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: 100%;
  max-width: 360px;
  object-fit: contain;
  object-position: left center;
}

.header__phone {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover {
  text-decoration: underline;
}

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Рамка: иконка Telegram слева + телефон */
.header__contact-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px 12px 6px 8px;
  background: var(--color-bg);
}
.header__tg-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #0088cc;
  border-radius: 6px;
  transition: background 0.2s;
}
.header__tg-link:hover {
  background: rgba(0, 136, 204, 0.08);
}
.header__tg-link svg {
  width: 22px;
  height: 22px;
}

@keyframes header-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 95, 180, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(26, 95, 180, 0); }
}

.header__btn {
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(26, 95, 180, 0.15);
  animation: header-btn-pulse 2s ease-in-out infinite;
  white-space: nowrap;
  min-width: 0;
}
.header__btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
  animation: none;
  box-shadow: 0 0 0 1px rgba(26, 95, 180, 0.2);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 16px;
}

.header__nav-link {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.header__nav-link--active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Выпадающее меню «Ипотека» */
.header__dropdown-wrap {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  display: none;
  z-index: 200;
}

.header__dropdown-wrap:hover .header__dropdown {
  display: block;
}

.header__dropdown li {
  margin: 0;
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header__dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Секции */
.section {
  padding: 60px 0;
}

.section--light {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section--dark .section__title,
.section--dark a {
  color: #fff;
}

.section--dark .form__agree a {
  color: #8ab4f8;
}

.section__title {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 700;
}

#why .section__title,
#cta-first .section__title,
#advantages .section__title {
  text-align: center;
}

.benefits--center {
  text-align: center;
}

.benefits--center .benefit {
  text-align: center;
}

#advantages .benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

#advantages .benefit {
  width: 100%;
  padding: 20px 24px;
}

.cta-offer {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  max-width: 400px;
  text-align: left;
}

.cta-offer li {
  padding: 6px 0;
  padding-left: 1.5em;
  position: relative;
}

.cta-offer li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--color-accent);
}

.section__subtitle {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.section--dark .section__subtitle {
  color: #b0b8c4;
}

/* Hero */
@keyframes hero-glow {
  0%, 100% {
    box-shadow: 0 0 60px rgba(26, 95, 180, 0.3);
  }
  50% {
    box-shadow: 0 0 100px rgba(26, 95, 180, 0.5);
  }
}

.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero__inner {
  position: relative;
  padding: 32px 24px;
  border-radius: 16px;
  animation: hero-glow 5s ease-in-out infinite;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero__slogan {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
}

.hero__text {
  margin: 0 0 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
}

.hero__excludes {
  margin: 0 0 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.hero__exclude-item {
  display: inline-block;
  margin-top: 4px;
}

/* Формы */
.form {
  max-width: 400px;
  margin: 0 auto;
}

.form--hero {
  text-align: left;
}

.form__row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form__row input {
  flex: 1;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.quiz input,
.quiz select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.form input:focus,
.quiz input:focus,
.form select:focus,
.quiz select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__agree {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form__agree a {
  color: var(--color-accent);
}

.quiz .form__agree {
  margin-top: 8px;
  margin-bottom: 8px;
}

.form__or-block {
  text-align: center;
  margin-top: 16px;
}

.form__or {
  margin: 0 0 12px;
  text-align: center;
  color: var(--color-text-muted);
}

.form__offer {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.form button[type="submit"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

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

/* Модальное окно успешной отправки */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.success-modal.visible {
  opacity: 1;
  visibility: visible;
}

.success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.success-modal__box {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.success-modal__text {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.success-modal__close {
  width: 100%;
}

/* Benefits */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.benefit {
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefits--grid .benefit {
  padding: 20px;
}

/* Этапы */
.stages {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stage;
}

.stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  counter-increment: stage;
}

.stage:last-child {
  border-bottom: none;
}

.stage__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

/* Заголовок калькулятора + три точки */
.calc-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.calc-title-wrap .section__title {
  margin-bottom: 0;
}
.calc-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  padding-bottom: 52px;
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
  box-sizing: content-box;
}
.calc-more:hover {
  color: var(--color-accent);
  background: var(--color-bg-alt);
}
.calc-more__dots {
  font-weight: 700;
  letter-spacing: 0.02em;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-more__popup {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 10px 14px;
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
  pointer-events: none;
}
.calc-more:hover .calc-more__popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.calc-more__popup a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.calc-more__popup a:hover {
  text-decoration: underline;
}

/* Три точки в шапке рядом с «Ипотечный калькулятор» — вертикальные, выпадающее меню как у Ипотеки */
.header__calc-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header__dropdown-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: default;
  padding: 2px 0;
}
.header__dropdown-wrap:hover .header__dropdown-dots {
  color: var(--color-accent);
}
.calc-more--header {
  width: 28px;
  min-height: 28px;
  padding-bottom: 0;
  font-size: 1rem;
}
.calc-more--header .calc-more__dots {
  width: 28px;
  height: 28px;
}
.calc-more--header .calc-more__popup {
  top: 100%;
  margin-top: 6px;
}

/* Калькулятор */
.calc {
  max-width: 400px;
  margin: 0 auto 24px;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc__row {
  margin-bottom: 16px;
}

.calc__row label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.calc__row input {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.calc__result {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 1.1rem;
}

.calc__result strong {
  color: var(--color-accent);
}

.calc__divider {
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.calc__result--main {
  font-size: 1.2rem;
}

.calc__hint {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pdn-info {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  text-align: left;
}

.pdn-info__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.pdn-info__list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.pdn-info__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Страница калькулятора: контент по центру */
.section--center .container {
  text-align: center;
}
.section--center .section__title,
.section--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}
.section--center .calc {
  margin-left: auto;
  margin-right: auto;
}

/* Список программ ипотеки на ipoteka.html */
.ipoteka-list {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
}
.ipoteka-list li {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.ipoteka-list a {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.ipoteka-list a:hover {
  text-decoration: underline;
}

#calculator .btn {
  display: block;
  margin: 0 auto;
}

/* Квиз */
#quiz.section {
  padding: 40px 0;
}

#quiz .section__title {
  margin-bottom: 12px;
}

.quiz {
  max-width: 480px;
  margin: 0 auto;
}

.quiz__step {
  display: none;
  margin-bottom: 8px;
}

.quiz__step.active {
  display: block;
}

.quiz__step label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.quiz__step input,
.quiz__step select {
  margin-bottom: 0;
}

.quiz__step--final label {
  margin-top: 10px;
}

.quiz__step--final label:first-child {
  margin-top: 0;
}

.quiz .form__agree {
  margin-top: 8px;
  margin-bottom: 8px;
  gap: 4px;
}

.quiz__nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.quiz__prev {
  flex-shrink: 0;
}

.quiz__next,
.quiz__submit {
  flex: 1;
}

/* FAQ */
.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq dt {
  margin-top: 20px;
  font-weight: 600;
  cursor: pointer;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 8px 0 0;
  padding-left: 0;
  color: var(--color-text-muted);
}

.section--dark .faq dd {
  color: #b0b8c4;
}

/* Отзывы */
.reviews__intro {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.reviews__placeholder {
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text-muted);
}

/* Контакты */
.contacts {
  margin-bottom: 32px;
}

.contacts__link {
  display: inline-block;
  margin-right: 24px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.section--dark .contacts__link {
  color: #8ab4f8;
}

.contacts__link:hover {
  text-decoration: underline;
}

.form--callback {
  max-width: 400px;
}

.form--callback h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.form--callback input {
  margin-bottom: 12px;
}

/* Гео-посадочные: вводный текст региона */
.geo-intro {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Sticky CTA — не обрезается на узких экранах (Honor, iPhone и др.) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  text-align: center;
  background: var(--color-bg);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .3s;
  box-sizing: border-box;
  min-width: 0;
}

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

.sticky-cta__text {
  margin: 0 0 8px;
  font-size: 0.95rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.btn--sticky {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: hero-glow 5s ease-in-out infinite;
  box-sizing: border-box;
  min-width: 0;
}

/* Футер */
.footer {
  padding: 32px 0;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer p {
  margin: 0 0 8px;
}

.footer a {
  color: var(--color-accent);
}

/* Адаптив: Mobile <576px | Tablet 576-991px | Desktop 992px+ */

/* Large Desktop 1200px+ */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablet 768-991px */
@media (max-width: 991px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero__inner {
    padding: 24px 20px;
  }

  .benefits--grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .contacts__link {
    margin-right: 20px;
  }
}

/* Tablet portrait / Large phone 576-767px */
@media (max-width: 767px) {
  .header__inner {
    padding: 10px 16px;
  }

  .logo img {
    height: 38px;
    max-width: 200px;
  }

  .header__phone {
    font-size: 0.95rem;
  }

  .header__btn {
    font-size: 13px;
    padding: 9px 14px;
  }

  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero__inner {
    padding: 20px 16px;
  }

  .hero__title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
  }

  .hero__slogan {
    font-size: 1.1rem;
  }

  .form__row {
    flex-direction: column;
    gap: 10px;
  }

  .form, .form--hero, .form--callback {
    max-width: 100%;
    padding: 0 4px;
  }

  .calc {
    padding: 20px 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .quiz {
    max-width: 100%;
    padding: 0 4px;
  }

  .faq {
    max-width: 100%;
  }

  .faq dt {
    font-size: 0.95rem;
  }

  .stages {
    padding: 0;
  }

  .stage {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .benefits--grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit {
    padding: 16px;
  }

  #advantages .benefit {
    padding: 16px 20px;
  }

  .contacts__link {
    display: block;
    margin-right: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
  }

  .sticky-cta {
    padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  }

  .btn--sticky {
    max-width: 100%;
  }
}

/* Mobile <576px */
@media (max-width: 575px) {
  .container {
    padding: 0 12px;
  }

  .header__inner {
    padding: 8px 12px;
  }

  .logo img {
    height: 34px;
    max-width: 160px;
  }

  .header__phone {
    font-size: 0.9rem;
  }

  .header__btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 32px 0;
  }

  .section__title {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .section__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__inner {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .hero__title {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .hero__slogan {
    font-size: 1rem;
  }

  .hero__text,
  .hero__excludes {
    font-size: 0.9rem;
  }

  .form input[type="text"],
  .form input[type="tel"],
  .form input[type="email"],
  .form select,
  .quiz input,
  .quiz select {
    padding: 12px 14px;
    font-size: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .calc {
    padding: 16px 12px;
    border-radius: 6px;
  }

  .calc__row input {
    padding: 10px 14px;
  }

  .reviews__placeholder {
    padding: 24px 16px;
  }

  .footer {
    padding: 24px 0;
    font-size: 0.85rem;
  }

  .footer p {
    margin-bottom: 6px;
  }

  .sticky-cta {
    padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .sticky-cta__text {
    font-size: 0.9rem;
  }
}

/* Очень узкие экраны: кнопка с номером в одну строку (iPhone и др.) */
@media (max-width: 430px) {
  .header__btn {
    font-size: 11px;
    padding: 8px 10px;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 380px) {
  .header__btn {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* Блок отзывов — карусель (1 слайд на весь блок, авто 7 сек) */
.reviews {
  padding: 48px 0;
}
.reviews__carousel-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 52px;
}
.reviews__track {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
  min-height: 400px;
}
.reviews__track::-webkit-scrollbar {
  height: 10px;
}
.reviews__track::-webkit-scrollbar-track {
  background: var(--color-bg-alt, #f5f7fa);
  border-radius: 4px;
}
.reviews__track::-webkit-scrollbar-thumb {
  background: var(--color-border, #e0e4e8);
  border-radius: 4px;
}
.reviews__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
}
.reviews__slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-bg-alt);
}
.reviews__slide img[src=""],
.reviews__slide img:not([src]) {
  min-height: 400px;
  object-fit: cover;
}
.reviews__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.reviews__btn:hover {
  background: var(--color-accent-hover);
}
.reviews__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.reviews__btn--prev { left: 0; }
.reviews__btn--next { right: 0; }
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.reviews__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}
.reviews__source {
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
