/* Мобильная версия главной (до 750px). Подключается последней и переопределяет стили секций. */

:root {
  --m-blue: #559bed;
  --m-blue-dark: #2f6fd0;
  --m-ink: #23262f;
  --m-text: #5b6472;
  --m-bg: #f5f8fd;
  --m-card: #ffffff;
  --m-radius: 22px;
  --m-shadow: 0 12px 32px -14px rgba(39, 94, 170, 0.25);
  --m-gutter: 20px;
}

section,
[id] {
  scroll-margin-top: 72px;
}

/* ---------- Заголовки секций ---------- */
.introduction-title,
.suitable__title_main,
.functional-title,
.instruction__title,
.reviews__title,
.subscriptions h2,
.contact h2,
.faq h2 {
  font-size: 30px !important;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--m-ink);
}

/* ---------- Шапка ---------- */
.start__header {
  height: 64px;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(30, 60, 110, 0.08);
}

.start__header .logo img {
  width: 104px;
  height: auto;
}

.menu-icon {
  left: 12px !important;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.menu-icon img {
  width: 22px !important;
  height: 22px !important;
}

.start__button {
  right: 12px !important;
  gap: 8px !important;
}

.start__button-link {
  width: 40px !important;
  height: 40px !important;
  background: #fff;
}

.email-icon {
  width: 40px !important;
  height: 40px !important;
  background: var(--m-blue) !important;
  box-shadow: 0 6px 16px -4px rgba(85, 155, 237, 0.6);
}

.start__header .dropdown {
  top: 64px !important;
  padding: 8px 0 14px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 24px 40px -18px rgba(30, 60, 110, 0.35);
}

.start__header .dropdown a {
  display: block;
  padding: 15px 24px !important;
  font-size: 18px !important;
  border-bottom: 1px solid #eef3fa;
}

.start__header .dropdown a:last-child {
  border-bottom: 0;
}

/* ---------- Первый экран ---------- */
.start {
  /* свой контекст наложения: картинки с z-index:-1 остаются над фоном секции,
     а фиксированная шапка внутри — над остальными секциями */
  z-index: 1;
  min-height: auto !important;
}

.start__info {
  margin: 0 var(--m-gutter) !important;
  padding: 96px 0 calc(min(96vw, 400px) * 0.78 - 10px) !important;
  gap: 18px !important;
}

.start__title {
  font-size: 36px !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.start__descr {
  font-size: 15px !important;
  line-height: 1.5;
  color: var(--m-text) !important;
}

.start__descr span {
  color: var(--m-ink) !important;
}

.start__cta {
  margin-top: 4px;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.start__cta-primary,
.start__cta-secondary {
  height: 54px !important;
  font-size: 17px !important;
  border-radius: 16px !important;
}

.start__cta .start__cta-primary {
  flex: 1 1 auto !important;
}

/* «Смотреть видео» на мобильном — круглая кнопка с иконкой, текст остаётся для скринридеров */
.start__cta .start__cta-secondary {
  flex: 0 0 54px !important;
  width: 54px;
  padding: 0 !important;
  font-size: 0 !important;
  gap: 0 !important;
}

.start__cta-secondary img {
  width: 16px !important;
  height: 18px !important;
  margin-left: 3px;
}

.start__man-doctor {
  width: 96vw !important;
  max-width: 400px !important;
  bottom: -30px !important;
}

.start__man-bg {
  opacity: 0.85;
}

/* ---------- Знакомство (видео) ---------- */
.introduction {
  padding: 36px var(--m-gutter) 24px !important;
}

.introduction-subtitle {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--m-text) !important;
  margin: 10px 0 18px !important;
}

.introduction-video-container {
  border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow);
}

.introduction-video-btn {
  width: 64px !important;
  height: 64px !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  justify-content: center;
}

.introduction-video-btn img {
  margin-left: 4px !important;
  width: 20px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(800%) hue-rotate(190deg);
}

/* ---------- Как Asisti помогает: лента со свайпом ---------- */
.functional {
  padding: 36px 0 24px !important;
}

.functional .container {
  padding: 0 var(--m-gutter);
}

.functional-title-container {
  margin-bottom: 18px !important;
}

.showcase {
  overflow: visible;
  padding: 0;
}

.showcase__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--m-gutter) 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__item,
.showcase__item.is-prev,
.showcase__item.is-next,
.showcase__item.is-center {
  flex: 0 0 86%;
  width: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  cursor: default;
  scroll-snap-align: center;
  background: var(--m-card);
  border-radius: var(--m-radius);
  padding: 8px 8px 18px;
  box-shadow: var(--m-shadow);
}

.showcase__media {
  border-radius: 16px;
  box-shadow: none;
}

.showcase__caption {
  left: auto;
  width: auto;
  transform: none;
  opacity: 1;
  text-align: left;
  margin: 14px 10px 0;
  overflow-wrap: anywhere;
}

.showcase__title {
  font-size: 18px;
  margin-bottom: 6px;
}

.showcase__text {
  font-size: 15px;
}

.showcase__arrow {
  display: none;
}

.showcase__dots {
  margin-top: 4px;
}

.functional .container .functional-note {
  margin-top: 20px !important;
}

/* ---------- Как начать: шаги ---------- */
.instruction {
  background: linear-gradient(180deg, #eff6ff 0%, #4094ff 85%, #4094ff 100%) !important;
  padding: 36px var(--m-gutter) 40px !important;
}

.instruction__title {
  margin-bottom: 20px !important;
}

.instruction__wrapper {
  gap: 14px !important;
  counter-reset: step;
}

.instruction__item {
  padding: 22px 20px 20px !important;
  border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow);
  overflow: hidden;
}

.item__num,
.dashed-line {
  display: none !important;
}

.item__title {
  align-self: flex-start;
  margin: 0 0 14px !important;
  padding: 6px 12px;
  border-radius: 12px;
  background: #e3f1ff;
  font-size: 13px !important;
  letter-spacing: 0.06em;
}

.item__subtitle {
  font-size: 19px !important;
  margin-bottom: 8px !important;
}

.item__description {
  font-size: 15px !important;
  line-height: 1.5;
  color: var(--m-text) !important;
}

.item__img_mob {
  margin: 16px auto 0 !important;
  max-width: 100%;
  height: auto;
}

/* ---------- Видео «До и После» ---------- */
.review__video_wrapper {
  display: block;
  margin: 16px var(--m-gutter) 8px;
  padding: 24px;
  background: #fff;
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
}

.review__video_eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: #e3f1fe;
  border-radius: 8px;
  color: #3576c2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.review__video_title {
  margin: 0;
  text-align: left;
}

.review__video_intro {
  display: none;
}

.review__video_name {
  display: block;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--m-ink);
}

.review__video_patient {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--m-text);
}

.review__video_description {
  display: block;
  margin: 14px 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--m-text);
}

.review__video_button {
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 10px 12px 10px 18px;
  border-radius: 16px;
  font-size: 17px;
}

.review__video_icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0 0 0 2px;
  margin: 0;
}

.review__video_icon img {
  width: 11px;
  height: 13px;
}

#review__video_modal {
  z-index: 120;
}

#review__video_modal .modal__content {
  padding: 16px;
}

#review__video_modal .modal__wrapper {
  width: 100%;
  max-width: 440px;
  margin-top: 0;
}

#review__video_modal .video__modal_wrapper {
  width: 100%;
  min-width: 0;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}

#review__video_modal .video__modal_wrapper h3 {
  padding-right: 32px;
}

#review__video_modal .video__modal_wrapper p {
  font-size: 14px;
  line-height: 1.45;
}

#review__video_modal .review__video {
  max-width: 100%;
  max-height: max(180px, calc(100svh - 240px));
  object-fit: contain;
}

/* ---------- Подписки ---------- */
.subscriptions {
  padding: 40px var(--m-gutter) 36px !important;
}

.subscriptions h2 {
  margin-bottom: 18px !important;
}

.subscriptions-icons,
.features-card {
  display: none !important;
}

.features {
  border-radius: var(--m-radius) !important;
  padding: 22px 20px !important;
}

.features-list > p {
  font-size: 17px !important;
  margin-bottom: 14px !important;
}

.features ul {
  gap: 12px !important;
}

.features li {
  font-size: 15px !important;
  line-height: 1.4;
  gap: 12px !important;
}

.features .icon {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px;
}

.pricing {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px !important;
  height: auto !important;
  overflow: visible !important;
  margin-top: 16px;
  padding: 0 !important;
}

.plan {
  width: auto !important;
  min-width: 0 !important;
  padding: 18px 16px 16px !important;
  border-radius: 20px !important;
  box-shadow: var(--m-shadow);
}

.plan h3 {
  font-size: 15px !important;
  margin-bottom: 10px !important;
}

.plan p {
  font-size: 26px !important;
  margin-bottom: 4px !important;
  white-space: nowrap;
}

.plan span {
  font-size: 14px !important;
}

.plan .discount {
  margin: 12px 0 0 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  align-self: flex-start;
}

.plan .tag {
  top: -10px !important;
  right: 10px !important;
  font-size: 12px !important;
  padding: 5px 10px !important;
}

.plan.popular {
  outline: 2px solid var(--m-blue);
}

.pricing-cta {
  margin-top: 18px;
}

/* ---------- Форма ---------- */
.contact {
  padding: 40px var(--m-gutter) 36px !important;
}

.contact .content {
  margin-top: 16px;
}

.contact .illustration,
.contact picture {
  display: none !important;
}

.form-container {
  width: 100% !important;
  border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow);
  border: 0 !important;
}

.form-btn {
  font-size: 15px !important;
}

/* 16px в полях — иначе iOS увеличивает страницу при фокусе */
.form-content input,
.form-content textarea,
.form-select-button {
  font-size: 16px !important;
  border-radius: 14px !important;
}

.footer-submit-btn {
  height: 52px;
  border-radius: 16px !important;
  font-size: 17px !important;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 40px var(--m-gutter) 40px !important;
}

.faq h2 {
  margin-bottom: 18px !important;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.faq-item details {
  background: #fff;
  border-radius: 18px !important;
  box-shadow: var(--m-shadow);
  overflow: hidden;
}

.faq-item details summary {
  padding: 18px 16px !important;
  border: 0 !important;
  font-size: 16px !important;
}

.faq-item details summary span {
  font-size: 16px !important;
}

/* ---------- Подвал и закреплённая кнопка ---------- */
.footer {
  padding: 32px var(--m-gutter) 110px !important;
}

.mobile-cta {
  display: block;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-cta.is-visible {
  transform: none;
}

.mobile-cta .start__cta-primary {
  width: 100%;
  height: 56px !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 30px -8px rgba(47, 111, 208, 0.6);
}
