/* Правки для статической версии (восстановление из вебархива).
   Фоны hero/policy отсутствовали в архиве — заменены на SVG в брендовых тонах. */

html, body {
  background-color: #0d0d0d;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.fti-menu-open {
  overflow: hidden;
}

[data-overlay-container] {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

[data-overlay-container] > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* flex-колонки: иначе широкий потомок (лента, бегущая строка) раздувает всю страницу */
[data-overlay-container] .flex {
  min-width: 0;
  max-width: 100%;
}

[data-overlay-container] .flex.flex-col > * {
  min-width: 0;
  max-width: 100%;
}

/* Плавная прокрутка по якорям меню (fallback, если Lenis не загрузился) */
html {
  scroll-behavior: smooth;
}

/* Lenis — плавный скролл всей страницы (как в оригинале) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Активная вкладка: фон не меняется при наведении (как в оригинале) */
[data-product-tabs] button.bg-white:hover,
[data-product-tabs] button.bg-white:focus-visible,
[data-works-tabs] button.bg-white:hover,
[data-works-tabs] button.bg-white:focus-visible {
  background-color: #fff !important;
  color: #222 !important;
}

/* FAQ: только один открытый ответ */
.fti-answer[hidden] {
  display: none !important;
}
[data-slot="base"]:not(.fti-faq-active) .fti-answer {
  display: none !important;
}
[data-slot="base"].fti-faq-active .fti-answer {
  display: block;
}

/* FAQ-аккордеон: панель ответа */
.fti-answer {
  overflow: hidden;
  animation: ftiFade .25s ease;
}
@keyframes ftiFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Индикатор аккордеона в открытом состоянии */
[data-slot="trigger"] {
  cursor: pointer;
}
[data-slot="trigger"] [data-slot="indicator"] {
  transition: transform .25s ease;
}
[data-slot="trigger"].fti-open [data-slot="indicator"] {
  transform: rotate(-90deg);
}

/* Активный (открытый) пункт FAQ — фирменная градиентная рамка */
[data-slot="base"].fti-faq-active {
  border: 2px solid transparent;
  background:
    linear-gradient(#222222, #222222) padding-box,
    linear-gradient(90deg, #832196, #cf1010) border-box;
}

/* Статус отправки формы */
.fti-form-status {
  min-height: 1em;
  color: #ff8080;
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}

/* Пустой виджет отзывов из архива не должен рисовать белый блок */
#myReviews__block-widget {
  min-height: 0;
}

/* Бегущая строка (восстановлена из дизайна: текст раньше добавлял JS) */
.fti-marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-montserrat), Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.fti-marquee__track {
  display: inline-flex;
  will-change: transform;
  animation: ftiMarquee 28s linear infinite;
  width: max-content;
}
.fti-marquee:hover .fti-marquee__track {
  animation-play-state: paused;
}
@keyframes ftiMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Вкладки «Наши продукты»: карточки — те же классы, что у «За 1 урок» */
[data-product-panel][hidden] { display: none; }
[data-works-panel][hidden] { display: none; }

/* Ленты плиток «свапаются» перетаскиванием мышью */
.fti-works, .cursor-grab {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  min-width: 0;
  max-width: 100%;
}
.fti-works.fti-grabbing,
.cursor-grab.fti-grabbing {
  cursor: grabbing;
}
.cursor-grab > .mr-4 {
  scroll-snap-align: start;
}

/* Галерея «Работы сделанные на обучении» */
.fti-works {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fti-works::-webkit-scrollbar { display: none; }
.fti-works img {
  height: 380px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 16px;
}
@media (max-width: 768px) {
  .fti-works img { height: 260px; }
}

/* Списки внутри карточек продуктов (как в макете) */
.fti-pcard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fti-pcard__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
  color: #e6e6e6;
}
.fti-pcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, #832196, #cf1010);
}
.fti-pcard__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #b9b9b9;
  font-style: italic;
}

/* Отзывы: статичный скрин из Figma */
.fti-reviews {
  display: flex;
  justify-content: center;
  width: 100%;
}
.fti-reviews img {
  width: 100%;
  max-width: 1040px;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .fti-reviews {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fti-reviews::-webkit-scrollbar {
    display: none;
  }

  .fti-reviews img {
    flex: 0 0 960px;
    width: 960px;
    max-width: none;
  }
}

/* Табы «Наши продукты»: ширина по тексту, горизонтальная карусель */
.fti-product-tabs-scroll {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  min-width: 0;
}

.fti-product-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.fti-product-tabs-scroll.fti-grabbing {
  cursor: grabbing;
}

[data-product-tabs],
.fti-product-tabs {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

[data-product-tabs] button,
.fti-product-tabs button {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  width: auto !important;
  max-width: none !important;
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .fti-product-tabs-scroll {
    justify-content: center !important;
  }

  [data-product-tabs],
  .fti-product-tabs {
    justify-content: center !important;
  }
}

/* Фон страницы: чёрный, без градиента (как в вебархиве) */
[data-overlay-container] > div.bg-cover {
  background-image: none !important;
  background-color: #0d0d0d !important;
}

/* Поле телефона hero — все ширины экрана */
#form .fti-phone-field-wrap {
  width: 100%;
}

#form .fti-phone-field-wrap.border-gradient-input {
  padding: 2px;
  background: transparent !important;
}

#form .fti-phone-field {
  display: flex !important;
  align-items: center;
  gap: 4px;
  width: 100%;
  background: #1c1a1a !important;
  border-radius: 6px;
  padding: 16px 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

#form .fti-phone-field__prefix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #7b7b7b;
  font-size: 16px;
  font-family: Montserrat, sans-serif;
  line-height: 1;
}

#form .fti-phone-field__chevron {
  width: 12px;
  height: 12px;
  opacity: 0.9;
}

#form .fti-phone-field__input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  font-size: 16px;
  font-family: Montserrat, sans-serif;
  padding: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

#form .fti-phone-field__input::placeholder {
  color: #a5a5a5;
}

#form .fti-phone-field__input:-webkit-autofill,
#form .fti-phone-field__input:-webkit-autofill:hover,
#form .fti-phone-field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #1c1a1a inset;
  transition: background-color 9999s ease-out 0s;
}

/* Hero — адаптив до планшета (одна колонка, полная ширина) */
@media (max-width: 1023px) {
  .fti-hero {
    margin-top: 0 !important;
    padding-top: 32px;
    width: 100%;
  }

  .fti-hero > .max-w-\[1200px\] {
    width: 100%;
    max-width: 100%;
  }

  .fti-hero-title,
  main h1 {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(24px, 6.2vw, 56px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.24px !important;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: none;
    text-transform: uppercase;
  }

  main .grid.grid-cols-3 {
    margin-top: 0 !important;
    max-height: none !important;
    gap: 32px;
    width: 100%;
  }

  main section.grid-cols-1 {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  #form {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    gap: 16px !important;
  }

  #form > p.font-semibold {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    font-family: Inter, system-ui, sans-serif;
    margin: 0;
  }

  #form > p.text-\[14px\] {
    line-height: normal;
    font-family: Montserrat, sans-serif;
    margin: 0;
  }

  #form > .border-gradient-input,
  #form .fti-name-field.border-gradient-input,
  #form .fti-phone-field-wrap.border-gradient-input {
    width: 100%;
    padding: 0;
  }

  #form > .border-gradient-input,
  #form .fti-name-field.border-gradient-input,
  #form .fti-phone-field-wrap.border-gradient-input {
    border: 1px solid #832196;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: visible;
  }

  #form > .border-gradient-input::before,
  #form > .border-gradient-input::after,
  #form .fti-name-field.border-gradient-input::before,
  #form .fti-name-field.border-gradient-input::after,
  #form .fti-phone-field-wrap.border-gradient-input::before,
  #form .fti-phone-field-wrap.border-gradient-input::after {
    display: none !important;
  }

  #form > .border-gradient-input input,
  #form .fti-name-field input {
    background: #1a1a1a !important;
    border: 0 !important;
    font-size: 16px;
    padding: 16px 24px !important;
    font-family: Montserrat, sans-serif;
    color: #fff;
  }

  #form > .border-gradient-input input::placeholder,
  #form .fti-name-field input::placeholder {
    color: #a5a5a5;
  }

  #form button {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px !important;
    letter-spacing: 0.16px;
    border-radius: 9999px;
  }
}

/* Hero и бегущая строка — мобилка (отступы) */
@media (max-width: 639px) {
  .max-sm\:px-\[10px\] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  main > .max-w-\[1200px\] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .overflow-x-auto,
  .overflow-x-scroll {
    max-width: 100%;
    min-width: 0;
  }

  .pl-56 {
    padding-left: 16px !important;
  }

  /* Список hero — только мобилка; на десктопе оригинальная вёрстка */
  .fti-hero-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }

  .fti-hero-list > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
  }

  .fti-hero-list li {
    display: block !important;
    position: relative;
    padding-left: 36px;
    min-height: 24px;
  }

  .fti-hero-list li img {
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 8px;
    margin: 0;
    flex-shrink: 0;
    object-fit: contain;
  }

  .fti-hero-list li span {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 400;
  }

  .fti-marquee {
    font-size: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    letter-spacing: 0.16px;
    text-transform: uppercase;
  }

  .gap-\[120px\] {
    gap: 64px !important;
  }
}

/* Мобильная шапка — до десктопа */
@media (max-width: 1023px) {
  .fti-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 20px 10px;
    box-sizing: border-box;
  }

  .fti-mobile-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
  }

  .fti-mobile-header__logo {
    display: block;
    width: min(210px, calc(100vw - 100px));
    height: auto;
    mix-blend-mode: screen;
  }

  .fti-mobile-header__title {
    display: flex;
    flex-direction: column;
    font-family: Cormorant, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .fti-mobile-header__title span:first-child {
    font-size: 14.4px;
    letter-spacing: 0.576px;
  }

  .fti-mobile-header__title span:last-child {
    font-size: 12.59px;
    letter-spacing: 0.504px;
  }

  .fti-mobile-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .fti-mobile-nav {
    position: fixed;
    inset: 88px 0 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(8px);
  }

  .fti-mobile-nav[hidden] {
    display: none !important;
  }

  .fti-mobile-nav a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
  }
}

/* Адрес и телефон в блоке контактов (филиальные страницы) */
.fti-contact-info a {
  text-decoration: none;
}
.fti-contact-info a:hover {
  text-decoration: underline;
}

.fti-footer-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

@media (max-width: 640px) {
  .fti-footer-logo {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .fti-mobile-header,
  .fti-mobile-nav {
    display: none !important;
  }
}

/* Редизайн B2C, 2026-07-24 */
:root {
  --fti-bg: #0b0b0e;
  --fti-surface: #17171c;
  --fti-surface-strong: #202027;
  --fti-text: #f8f5f9;
  --fti-muted: #aaa5b0;
  --fti-line: rgba(255, 255, 255, 0.1);
  --fti-purple: #9f2bc1;
  --fti-pink: #d92168;
  --fti-red: #e53232;
  --fti-gradient: linear-gradient(100deg, var(--fti-purple), var(--fti-pink) 58%, var(--fti-red));
  --fti-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

html,
body {
  background: var(--fti-bg);
  color: var(--fti-text);
}

body {
  font-family: var(--font-montserrat), Montserrat, Arial, sans-serif;
}

section {
  scroll-margin-top: 156px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.fti-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.fti-button:hover,
.fti-button:focus-visible {
  transform: translateY(-2px);
}

.fti-button:focus-visible {
  outline: 3px solid rgba(213, 40, 113, 0.35);
  outline-offset: 3px;
}

.fti-button--primary {
  color: #fff;
  background: var(--fti-gradient);
  box-shadow: 0 14px 34px rgba(196, 31, 105, 0.3);
}

.fti-button--primary:hover,
.fti-button--primary:focus-visible {
  box-shadow: 0 18px 42px rgba(196, 31, 105, 0.44);
}

.fti-button--secondary,
.fti-button--ghost {
  color: #fff;
  border-color: var(--fti-line);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.fti-button--secondary:hover,
.fti-button--ghost:hover,
.fti-button--secondary:focus-visible,
.fti-button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

/* Единая верхняя навигация */
.fti-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  border-bottom: 1px solid var(--fti-line);
  background: #0b0b0e;
}

.fti-site-header__inner {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.fti-site-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.fti-site-header__brand img {
  display: block;
  width: 224px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

.fti-site-header__nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.fti-site-header__nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.fti-site-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--fti-gradient);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.fti-site-header__nav a:hover,
.fti-site-header__nav a:focus-visible {
  color: #fff;
}

.fti-site-header__nav a:hover::after,
.fti-site-header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.fti-site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fti-site-header__actions .fti-button {
  min-height: 44px;
  padding: 11px 18px;
}

.fti-site-header .fti-mobile-header__menu {
  display: none;
}

.fti-branch-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 7px 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.fti-branch-switcher__label {
  color: var(--fti-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fti-branch-switcher__links {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.fti-branch-switcher__link {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: 160ms ease;
}

.fti-branch-switcher__link:hover,
.fti-branch-switcher__link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.fti-branch-switcher__link.is-active {
  color: #fff;
  border-color: rgba(211, 35, 109, 0.55);
  background: linear-gradient(110deg, rgba(159, 43, 193, 0.3), rgba(229, 50, 50, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Первый экран */
.fti-hero {
  position: relative;
  min-height: calc(100svh - 124px);
  margin: 0 !important;
  padding: clamp(42px, 4.5vw, 62px) 20px clamp(70px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 22%, rgba(161, 36, 190, 0.28), transparent 32%),
    radial-gradient(circle at 92% 68%, rgba(229, 50, 50, 0.18), transparent 30%),
    linear-gradient(145deg, #09090c 0%, #111015 56%, #0c0b0f 100%);
}

.fti-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.fti-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -8%;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.018),
    0 0 0 180px rgba(255, 255, 255, 0.012);
}

.fti-hero__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: min(1200px, 100%);
  min-height: 620px;
  margin: 0 auto;
}

.fti-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 710px;
  padding: 8px 0 210px;
}

.fti-hero__kicker,
.fti-hero-form__eyebrow {
  margin: 0 0 18px;
  color: #ef88bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fti-hero-title {
  max-width: 760px;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(46px, 5.6vw, 74px) !important;
  font-weight: 780 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  text-transform: none !important;
  text-wrap: balance;
}

.fti-hero-title span {
  color: transparent;
  background: var(--fti-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.fti-hero__lead {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.48;
}

.fti-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fti-hero__actions .fti-button {
  min-height: 56px;
  padding-right: 26px;
  padding-left: 26px;
  font-size: 15px;
}

.fti-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fti-hero__benefits li {
  position: relative;
  padding: 10px 14px 10px 31px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 600;
}

.fti-hero__benefits li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fti-gradient);
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(212, 32, 109, 0.62);
}

.fti-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
}

.fti-hero__visual > img {
  position: absolute;
  z-index: 2;
  right: -22%;
  bottom: -70px;
  width: min(690px, 58vw);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.45));
}

.fti-hero__halo {
  position: absolute;
  top: 4%;
  right: -8%;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(197, 39, 133, 0.3), rgba(164, 41, 198, 0.11) 45%, transparent 70%);
  filter: blur(2px);
}

.fti-hero__visual-note {
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(15, 14, 18, 0.58);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fti-hero-form {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  align-items: end;
  width: min(820px, calc(100% - 380px)) !important;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #fff;
  background: rgba(23, 23, 28, 0.86);
  box-shadow: var(--fti-shadow);
  backdrop-filter: blur(22px);
}

.fti-hero-form__eyebrow,
.fti-hero-form h2,
.fti-hero-form__policy {
  grid-column: 1 / -1;
}

.fti-hero-form__eyebrow {
  margin: 0;
  font-size: 10px;
}

.fti-hero-form h2 {
  margin: -4px 0 4px;
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 720;
  line-height: 1.12;
}

.fti-hero-form .fti-name-field,
.fti-hero-form .fti-phone-field-wrap {
  width: 100%;
  height: 56px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.fti-hero-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px !important;
  border: 0;
  border-radius: 14px !important;
  outline: none;
  color: #fff;
  background: transparent !important;
  font-family: inherit;
  font-size: 15px;
}

.fti-hero-form input:focus {
  box-shadow: inset 0 0 0 1px rgba(214, 43, 121, 0.8);
}

.fti-hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.fti-hero-form .fti-phone-field {
  height: 54px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  background: transparent !important;
}

.fti-hero-form .fti-phone-field__prefix {
  padding-left: 0;
}

.fti-hero-form .fti-phone-field__input {
  height: 52px;
  min-height: 52px;
}

.fti-hero-form__submit {
  min-width: 188px;
  min-height: 54px;
  border: 0;
  white-space: nowrap;
}

.fti-hero-form__policy {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.4;
}

/* У старой разметки шапка и hero находятся во flex-контейнере с большим gap. */
[data-overlay-container] .flex.flex-col:has(> .fti-site-header) {
  gap: 0 !important;
}

[data-overlay-container] section > div.max-w-\[1200px\] > h2,
[data-overlay-container] section > div.max-w-\[1200px\] > div > h2,
[data-overlay-container] section h2[id] {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.fti-advantages-grid {
  gap: 24px !important;
}

.fti-advantages-grid > div > div {
  overflow: hidden;
  border: 1px solid var(--fti-line);
  border-radius: 26px !important;
  background: linear-gradient(145deg, #1c1c22, #151519) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.fti-advantages-grid > div > div:not(.overflow-hidden) {
  padding: 28px !important;
}

.fti-advantages-grid p {
  max-width: 100%;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  line-height: 1.3 !important;
}

.fti-advantages-grid img.w-full {
  transition: transform 500ms ease;
}

.fti-advantages-grid > div:hover img.w-full {
  transform: scale(1.025);
}

[data-orientation="vertical"] {
  gap: 10px !important;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 !important;
}

[data-orientation="vertical"] [data-slot="base"] {
  padding: 20px 24px !important;
  border: 1px solid var(--fti-line);
  border-radius: 20px !important;
  background: var(--fti-surface) !important;
  box-shadow: none;
}

[data-orientation="vertical"] [data-slot="base"].fti-faq-active {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--fti-surface), var(--fti-surface)) padding-box,
    var(--fti-gradient) border-box !important;
}

[data-orientation="vertical"] [data-slot="trigger"] {
  padding: 10px 0 !important;
}

[data-orientation="vertical"] [data-slot="indicator"] {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transform: none !important;
  transition: border-color 180ms ease, background 180ms ease;
}

[data-orientation="vertical"] [data-slot="indicator"] img {
  display: none;
}

[data-orientation="vertical"] [data-slot="indicator"]::before {
  content: "+";
  transform: translateY(-1px);
}

[data-orientation="vertical"] [data-slot="trigger"].fti-open [data-slot="indicator"] {
  border-color: transparent;
  background: linear-gradient(135deg, #8f2bd0, #e11843);
}

[data-orientation="vertical"] [data-slot="trigger"].fti-open [data-slot="indicator"]::before {
  content: "−";
}

[data-orientation="vertical"] [data-slot="title"] span {
  font-size: clamp(17px, 1.5vw, 21px) !important;
  line-height: 1.35;
}

[data-orientation="vertical"] .fti-answer p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 15px;
}

.fti-reviews img {
  border: 1px solid var(--fti-line);
  border-radius: 28px;
  box-shadow: var(--fti-shadow);
}

[data-product-tabs] button,
[data-works-tabs] button {
  border: 1px solid var(--fti-line);
}

[data-product-tabs] button.bg-white,
[data-works-tabs] button.bg-white {
  color: #fff !important;
  border-color: transparent;
  background: var(--fti-gradient) !important;
}

[data-product-tabs] button.bg-white:hover,
[data-product-tabs] button.bg-white:focus-visible,
[data-works-tabs] button.bg-white:hover,
[data-works-tabs] button.bg-white:focus-visible {
  color: #fff !important;
  background: var(--fti-gradient) !important;
}

/* Филиалы и контакты */
.fti-contact-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: -24px 0 34px;
}

.fti-contact-branch {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--fti-line);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.fti-contact-branch:hover,
.fti-contact-branch:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
}

.fti-contact-branch.is-active {
  border-color: rgba(213, 43, 111, 0.7);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 40, 107, 0.24), transparent 44%),
    linear-gradient(145deg, rgba(159, 43, 193, 0.16), rgba(255, 255, 255, 0.035));
}

.fti-contact-branch__city {
  margin-bottom: 14px;
  color: var(--fti-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fti-contact-branch strong {
  font-size: 20px;
  line-height: 1.2;
}

.fti-contact-branch > span:not(.fti-contact-branch__city) {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.4;
}

.fti-contact-branch em {
  margin-top: auto;
  padding-top: 16px;
  color: #ee81b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.fti-contact-info,
#contacts .max-w-\[500px\] {
  border: 1px solid var(--fti-line);
  background: var(--fti-surface) !important;
}

#contacts input {
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}

#contacts button {
  min-height: 52px;
  border: 0;
  box-shadow: 0 14px 34px rgba(196, 31, 105, 0.25);
}

/* Футер */
.fti-site-footer {
  padding: 54px 0 34px !important;
  border-top: 1px solid var(--fti-line);
  background:
    radial-gradient(circle at 18% 0%, rgba(159, 43, 193, 0.14), transparent 28%),
    #151519 !important;
}

.fti-site-footer > div {
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
}

.fti-footer-main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 176px;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  padding: 0 !important;
}

.fti-footer-brand {
  display: inline-flex;
  align-items: center;
}

.fti-footer-brand img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: screen;
}

.fti-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 28px);
}

.fti-footer-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.fti-footer-nav a:hover,
.fti-footer-nav a:focus-visible {
  color: #fff;
}

.fti-footer-callback {
  width: 176px;
  min-height: 52px;
  padding: 12px 20px;
  border: 0 !important;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.fti-footer-callback:hover,
.fti-footer-callback:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.fti-footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 34px auto 0;
  padding: 26px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fti-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fti-footer-legal {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.fti-footer-policy {
  color: var(--fti-muted);
  text-align: right;
  text-decoration: none;
}

.fti-footer-policy:hover,
.fti-footer-policy:focus-visible {
  color: #fff;
}

@media (max-width: 1100px) {
  .fti-site-header__inner {
    grid-template-columns: 200px 1fr auto;
    gap: 14px;
  }

  .fti-site-header__nav {
    gap: 16px;
  }

  .fti-site-header__actions .fti-header-enroll {
    display: none;
  }

  .fti-hero__shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  }

  .fti-hero__copy {
    padding-bottom: 245px;
  }

  .fti-hero-form {
    width: calc(100% - 250px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fti-hero-form__submit {
    grid-column: 1 / -1;
  }

  .fti-footer-main {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .fti-footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .fti-footer-callback {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  section {
    scroll-margin-top: 136px;
  }

  .fti-site-header__inner {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .fti-site-header__brand img {
    width: min(205px, calc(100vw - 170px));
  }

  .fti-site-header__nav,
  .fti-site-header__actions > .fti-button {
    display: none;
  }

  .fti-site-header .fti-mobile-header__menu {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .fti-site-header .fti-mobile-header__menu img {
    width: 42px;
    height: 42px;
  }

  .fti-branch-switcher {
    justify-content: flex-start;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fti-branch-switcher::-webkit-scrollbar {
    display: none;
  }

  .fti-branch-switcher__links {
    flex: 0 0 auto;
  }

  .fti-mobile-nav {
    position: fixed;
    z-index: 79;
    inset: 117px 0 0;
    display: flex;
    max-width: none !important;
    flex-direction: column;
    gap: 10px;
    padding: 24px 18px 32px;
    overflow-y: auto;
    background: rgba(11, 11, 14, 0.98);
    backdrop-filter: blur(22px);
  }

  .fti-mobile-nav[hidden] {
    display: none !important;
  }

  .fti-mobile-nav > a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--fti-line);
    color: #fff;
    font-size: 17px;
    font-weight: 650;
  }

  .fti-mobile-nav__franchise {
    color: #ef83b9 !important;
  }

  .fti-mobile-nav__branches {
    display: grid;
    gap: 8px;
    margin-top: 16px;
  }

  .fti-mobile-nav__branch {
    padding: 12px 14px;
    border: 1px solid var(--fti-line);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
  }

  .fti-mobile-nav__branch.is-active {
    color: #fff;
    border-color: rgba(213, 43, 111, 0.62);
    background: rgba(159, 43, 193, 0.14);
  }

  .fti-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .fti-hero__shell {
    display: block;
    min-height: 0;
  }

  .fti-hero__copy {
    max-width: 690px;
    padding: 0;
  }

  .fti-hero-title {
    font-size: clamp(43px, 8.8vw, 68px) !important;
  }

  .fti-hero__visual {
    position: absolute;
    z-index: -1;
    top: 60px;
    right: -140px;
    width: 540px;
    min-height: 520px;
    opacity: 0.27;
  }

  .fti-hero__visual > img {
    right: -10%;
    width: 590px;
  }

  .fti-hero__visual-note {
    display: none;
  }

  .fti-hero-form {
    position: relative;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr 1fr;
    width: 100% !important;
    margin-top: 42px;
  }

  .fti-contact-branches {
    grid-template-columns: 1fr;
  }

  .fti-contact-branch {
    min-height: 138px;
  }
}

@media (max-width: 620px) {
  section {
    scroll-margin-top: 118px;
  }

  .fti-branch-switcher__label {
    display: none;
  }

  .fti-branch-switcher {
    min-height: 46px;
  }

  .fti-branch-switcher__link {
    padding: 7px 11px;
    font-size: 11px;
  }

  .fti-mobile-nav {
    inset-block-start: 114px;
  }

  .fti-hero {
    padding: 44px 12px 72px;
  }

  .fti-hero::before {
    background-size: 44px 44px;
  }

  .fti-hero__kicker {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .fti-hero-title {
    font-size: clamp(39px, 11.5vw, 54px) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.045em !important;
  }

  .fti-hero__lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .fti-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .fti-hero__actions .fti-button {
    width: 100%;
  }

  .fti-hero__benefits {
    display: grid;
    gap: 8px;
  }

  .fti-hero__benefits li {
    width: fit-content;
  }

  .fti-hero__visual {
    display: none;
  }

  .fti-hero-form {
    grid-template-columns: 1fr;
    gap: 10px !important;
    margin-top: 34px;
    padding: 18px;
    border-radius: 20px;
  }

  .fti-hero-form__eyebrow,
  .fti-hero-form h2,
  .fti-hero-form__policy,
  .fti-hero-form__submit {
    grid-column: 1;
  }

  .fti-hero-form h2 {
    font-size: 24px;
  }

  .fti-hero-form__submit {
    width: 100%;
  }

  .fti-advantages-grid {
    gap: 14px !important;
  }

  .fti-advantages-grid > div > div {
    width: 100% !important;
    min-height: 238px;
    height: auto !important;
  }

  .fti-advantages-grid > div > div.overflow-hidden {
    min-height: 290px;
    height: 290px !important;
  }

  .fti-advantages-grid p {
    font-size: 19px !important;
  }

  [data-orientation="vertical"] [data-slot="base"] {
    padding: 16px 18px !important;
    border-radius: 17px !important;
  }

  [data-orientation="vertical"] [data-slot="indicator"] img {
    width: 38px;
    height: 38px;
  }

  .fti-contact-branches {
    margin-top: -28px;
  }

  .fti-site-footer > div {
    width: calc(100% - 24px);
  }

  .fti-footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .fti-footer-brand img {
    width: 224px;
  }

  .fti-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 14px 20px;
  }

  .fti-footer-nav a {
    white-space: normal;
  }

  .fti-footer-callback {
    grid-column: 1;
    width: 100%;
  }

  .fti-footer-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 30px;
  }

  .fti-footer-policy {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fti-button,
  .fti-contact-branch,
  .fti-site-header__nav a::after,
  .fti-advantages-grid img {
    transition: none !important;
  }
}

/* Третий раунд: компактная шапка, выпадающий выбор филиала и hero в один экран */
.fti-site-header__inner {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 72px;
}

.fti-site-header__nav {
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

.fti-branch-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.fti-branch-dropdown__toggle,
.fti-mobile-nav__branch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #ef7ab7;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}

.fti-branch-dropdown__toggle span,
.fti-mobile-nav__branch-toggle span {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

.fti-branch-dropdown.is-open .fti-branch-dropdown__toggle span,
.fti-mobile-branch-dropdown.is-open .fti-mobile-nav__branch-toggle span {
  transform: rotate(180deg);
}

.fti-branch-dropdown__toggle:hover,
.fti-branch-dropdown__toggle:focus-visible,
.fti-mobile-nav__branch-toggle:hover,
.fti-mobile-nav__branch-toggle:focus-visible {
  color: #ff9bca;
}

.fti-branch-dropdown__toggle:focus-visible,
.fti-mobile-nav__branch-toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(239, 122, 183, 0.82);
  outline-offset: 4px;
}

.fti-branch-dropdown__menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 22px);
  left: -14px;
  display: grid;
  width: 248px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(18, 17, 22, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.fti-branch-dropdown__menu[hidden],
.fti-mobile-nav__branches[hidden] {
  display: none !important;
}

.fti-site-header__nav .fti-branch-dropdown__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  line-height: 1.2;
  white-space: normal;
}

.fti-site-header__nav .fti-branch-dropdown__link::after {
  display: none;
}

.fti-branch-dropdown__link span {
  color: var(--fti-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fti-branch-dropdown__link strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.fti-site-header__nav .fti-branch-dropdown__link:hover,
.fti-site-header__nav .fti-branch-dropdown__link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.fti-site-header__nav .fti-branch-dropdown__link.is-active {
  color: #fff;
  border-color: rgba(225, 50, 113, 0.44);
  background: linear-gradient(110deg, rgba(159, 43, 193, 0.22), rgba(229, 50, 50, 0.16));
}

.fti-hero-title__line {
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff;
  white-space: nowrap;
}

@media (min-width: 861px) {
  .fti-hero {
    height: calc(100svh - 73px);
    min-height: 520px;
    max-height: 760px;
    padding: 18px 20px;
  }

  .fti-hero__shell {
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .fti-hero__copy {
    align-self: center;
    max-width: 600px;
    padding: 0 0 8px;
  }

  .fti-hero__kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .fti-hero-title {
    font-size: clamp(40px, 4.6vw, 56px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.05em !important;
  }

  .fti-hero__lead {
    max-width: 560px;
    margin-top: 16px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.4;
  }

  .fti-hero__actions {
    margin-top: 18px;
  }

  .fti-hero__actions .fti-button {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14px;
  }

  .fti-hero__benefits {
    margin-top: 14px;
  }

  .fti-hero__benefits li {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .fti-hero__visual {
    min-height: 0;
  }

  .fti-hero__visual > img {
    right: -12%;
    bottom: -28px;
    width: min(540px, 47vw);
  }

  .fti-hero-form {
    right: 0;
    bottom: 12px;
    left: auto;
    width: min(500px, 45%) !important;
    gap: 8px !important;
    padding: 14px;
    border-radius: 18px;
    background: rgba(20, 20, 25, 0.92);
  }

  .fti-hero-form__eyebrow {
    margin: 0;
    font-size: 9px;
  }

  .fti-hero-form h2 {
    margin: -2px 0 2px;
    font-size: clamp(20px, 1.9vw, 25px);
  }

  .fti-hero-form .fti-name-field,
  .fti-hero-form .fti-phone-field-wrap {
    height: 50px;
  }

  .fti-hero-form input {
    min-height: 48px;
    font-size: 14px;
  }

  .fti-hero-form .fti-phone-field {
    height: 48px;
    min-height: 48px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .fti-hero-form .fti-phone-field__input {
    height: 46px;
    min-height: 46px;
  }

  .fti-hero-form__policy {
    font-size: 9px;
  }

  .fti-hero-form__submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .fti-site-header__inner {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .fti-site-header__nav {
    gap: 13px;
  }

  .fti-site-header__nav a,
  .fti-branch-dropdown__toggle {
    font-size: 12px;
  }

  .fti-hero__copy {
    padding: 0;
  }

  .fti-hero-form {
    width: min(450px, 45%) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  section {
    scroll-margin-top: 78px;
  }

  .fti-site-header__inner {
    min-height: 68px;
  }

  .fti-mobile-nav {
    inset: 68px 0 0;
  }

  .fti-mobile-branch-dropdown {
    padding: 2px 8px 10px;
    border-bottom: 1px solid var(--fti-line);
  }

  .fti-mobile-nav__branch-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 17px;
  }

  .fti-mobile-nav__branches {
    gap: 7px;
    margin-top: 8px;
    padding-bottom: 2px;
  }

  .fti-mobile-nav__branch {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .fti-mobile-nav__branch span {
    color: var(--fti-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .fti-mobile-nav__branch strong {
    font-size: 14px;
    font-weight: 700;
  }

  .fti-hero {
    height: auto;
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .fti-mobile-nav {
    inset-block-start: 68px;
  }

  .fti-hero-title__line {
    white-space: normal;
  }
}

/* Четвёртый раунд: форма занимает место CTA в левом блоке */
@media (min-width: 861px) {
  .fti-hero__copy {
    align-self: center;
    width: 100%;
    max-width: 610px;
    padding: 0;
  }

  .fti-hero__copy .fti-hero-form {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100% !important;
    max-width: 590px;
    margin-top: 16px;
  }
}

@media (max-width: 860px) {
  .fti-hero__copy .fti-hero-form {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .fti-hero__copy .fti-hero-form {
    margin-top: 20px;
  }
}

/* Пятый раунд: атмосферное видео и живые отзывы Яндекс Карт */
.fti-works-video-card {
  position: relative;
  height: 380px;
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--fti-line);
  border-radius: 16px;
  background: #070708;
  box-shadow: var(--fti-shadow);
  scroll-snap-align: start;
}

.fti-works-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #070708;
}

.fti-reviews {
  display: block;
  width: 100%;
  max-width: 1040px;
}

.fti-yandex-reviews-widget {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  border: 1px solid var(--fti-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--fti-shadow);
}

.fti-yandex-reviews-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.fti-yandex-reviews-link {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: #696969;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.fti-yandex-reviews-link:hover,
.fti-yandex-reviews-link:focus-visible {
  color: #111;
}

@media (max-width: 768px) {
  .fti-works-video-card {
    height: 260px;
  }

  .fti-yandex-reviews-widget {
    height: 570px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .fti-yandex-reviews-widget {
    height: 520px;
  }

  .fti-yandex-reviews-link {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Шестой раунд: атмосферное видео на первом экране главной страницы */
.fti-hero__visual--video {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  isolation: isolate;
  background: #121017;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(171, 36, 171, 0.12);
}

.fti-hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #121017;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.015);
}

.fti-hero-video__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 9, 12, 0.58), rgba(9, 9, 12, 0.08) 52%, rgba(9, 9, 12, 0.24)),
    linear-gradient(0deg, rgba(8, 8, 11, 0.72), transparent 48%),
    linear-gradient(145deg, rgba(130, 33, 150, 0.2), transparent 45%, rgba(207, 16, 16, 0.16));
}

.fti-hero__visual--video .fti-hero__halo {
  z-index: 2;
  top: -13%;
  right: -33%;
  width: 95%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: radial-gradient(circle at center, rgba(198, 38, 136, 0.16), transparent 68%);
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.018),
    0 0 0 160px rgba(255, 255, 255, 0.012);
  filter: none;
  pointer-events: none;
}

.fti-hero-video__badge {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: calc(100% - 48px);
  flex-direction: column;
  gap: 5px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  color: #fff;
  background: rgba(12, 11, 16, 0.58);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.fti-hero-video__badge span {
  color: #ef88bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fti-hero-video__badge strong {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.25;
}

@media (min-width: 861px) {
  .fti-hero__visual--video {
    align-self: stretch;
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .fti-hero__visual--video {
    position: absolute;
    z-index: 0;
    inset: -54px -20px -70px;
    width: auto;
    min-height: calc(100% + 124px);
    border: 0;
    border-radius: 0;
    opacity: 1;
    box-shadow: none;
  }

  .fti-hero__visual--video .fti-hero-video {
    opacity: 0.34;
    object-position: center;
  }

  .fti-hero__visual--video .fti-hero-video__veil {
    background:
      linear-gradient(90deg, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.7)),
      linear-gradient(0deg, rgba(7, 7, 10, 0.95), rgba(7, 7, 10, 0.2) 45%, rgba(7, 7, 10, 0.84));
  }

  .fti-hero__visual--video .fti-hero__halo,
  .fti-hero-video__badge {
    display: none;
  }

  .fti-hero__copy {
    position: relative;
    z-index: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fti-hero-video {
    transform: none;
  }
}

/* Седьмой раунд: видеогалерея атмосферных мастер-классов */
.fti-works--videos {
  justify-content: center;
}

.fti-works--videos .fti-works-video-card {
  scroll-snap-align: center;
}

@media (max-width: 960px) {
  .fti-works--videos {
    justify-content: flex-start;
  }
}

/* Восьмой раунд: новые программы в блоке «Наши продукты» */
.fti-course-panel {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.fti-course-panel > h2 {
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.fti-course-intro {
  max-width: 820px;
  margin: 18px auto 12px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.fti-course-program {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  width: 100%;
  padding: 20px;
}

@media (min-width: 1024px) {
  .fti-course-program--combination {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fti-course-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--fti-line);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(179, 38, 173, 0.15), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.fti-course-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 44px;
}

.fti-course-card__number {
  color: transparent;
  background: var(--fti-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fti-course-card__meta {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fti-course-card h3 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.25;
}

.fti-course-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fti-course-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.48;
}

.fti-course-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fti-gradient);
  box-shadow: 0 0 12px rgba(209, 37, 112, 0.45);
}

@media (max-width: 620px) {
  .fti-course-panel > h2,
  .fti-course-intro {
    padding-right: 12px;
    padding-left: 12px;
    text-align: left;
  }

  .fti-course-program {
    grid-template-columns: 1fr;
    padding: 16px 12px;
  }

  .fti-course-card {
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .fti-course-card__top {
    margin-bottom: 28px;
  }
}

/* Девятый раунд: героиня в блоке «Для кого этот курс?» */
.fti-audience__inner {
  position: relative;
  isolation: isolate;
  width: min(1200px, calc(100% - 40px));
  padding: clamp(28px, 4vw, 52px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  background:
    radial-gradient(circle at 86% 42%, rgba(165, 43, 186, 0.24), transparent 31%),
    radial-gradient(circle at 10% 100%, rgba(210, 27, 99, 0.1), transparent 32%),
    linear-gradient(145deg, #19191f 0%, #111116 72%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.fti-audience__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -150px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 84px rgba(255, 255, 255, 0.012),
    0 0 0 168px rgba(255, 255, 255, 0.008);
}

.fti-audience__content {
  position: relative;
  z-index: 1;
  align-items: stretch !important;
}

.fti-audience__title {
  width: 100%;
  margin-bottom: clamp(30px, 4vw, 46px) !important;
  text-align: left;
}

.fti-audience__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.fti-audience__cards {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.fti-audience__cards > div {
  min-height: 250px;
  justify-content: space-between;
  gap: 28px !important;
  padding: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.fti-audience__cards > div img {
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(204, 30, 104, 0.28));
}

.fti-audience__visual {
  position: relative;
  isolation: isolate;
  min-height: 518px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 58% 36%, rgba(188, 47, 183, 0.34), transparent 36%),
    linear-gradient(165deg, rgba(57, 53, 116, 0.76), rgba(20, 28, 53, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.24);
}

.fti-audience__visual::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(9, 12, 25, 0.58), transparent);
}

.fti-audience__visual img {
  position: absolute;
  z-index: 3;
  bottom: -2px;
  left: 52%;
  width: auto;
  max-width: none;
  height: 96%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.3));
}

.fti-audience__orbit {
  position: absolute;
  z-index: 1;
  top: 11%;
  left: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(255, 255, 255, 0.015),
    0 0 0 116px rgba(255, 255, 255, 0.01);
}

.fti-audience__glow {
  position: absolute;
  z-index: 2;
  right: -25%;
  bottom: -8%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(220, 35, 104, 0.2);
  filter: blur(72px);
}

@media (max-width: 980px) {
  .fti-audience__layout {
    grid-template-columns: 1fr;
  }

  .fti-audience__visual {
    order: -1;
    min-height: 430px;
  }

  .fti-audience__visual img {
    left: 55%;
    height: 108%;
  }
}

@media (max-width: 620px) {
  .fti-audience__inner {
    width: calc(100% - 20px);
    padding: 20px !important;
    border-radius: 28px;
  }

  .fti-audience__title {
    margin-bottom: 24px !important;
    font-size: 28px !important;
  }

  .fti-audience__layout {
    gap: 16px;
  }

  .fti-audience__visual {
    min-height: 340px;
    border-radius: 22px;
  }

  .fti-audience__visual img {
    left: 54%;
    height: 102%;
  }

  .fti-audience__cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .fti-audience__cards > div {
    min-height: 0;
    gap: 18px !important;
    padding: 22px !important;
    border-radius: 20px;
  }
}

/* Десятый раунд: карусель атмосферных мастер-классов */
.fti-atmosphere-carousel {
  position: relative;
  isolation: isolate;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 26px clamp(18px, 5vw, 72px) 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(159, 43, 193, 0.2), transparent 31%),
    radial-gradient(circle at 18% 90%, rgba(217, 33, 104, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(31, 31, 39, 0.98), rgba(14, 14, 19, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  outline: none;
}

.fti-atmosphere-carousel:focus-visible {
  border-color: rgba(226, 53, 126, 0.72);
  box-shadow:
    0 0 0 3px rgba(202, 41, 131, 0.2),
    0 28px 80px rgba(0, 0, 0, 0.32);
}

.fti-atmosphere-carousel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 50%;
  width: 520px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 50%;
  box-shadow:
    0 0 0 86px rgba(255, 255, 255, 0.01),
    0 0 0 172px rgba(255, 255, 255, 0.006);
}

.fti-atmosphere-carousel__head,
.fti-atmosphere-carousel__foot {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fti-atmosphere-carousel__head {
  margin-bottom: 20px;
}

.fti-atmosphere-carousel__head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fti-atmosphere-carousel__head span:first-child {
  color: #ee82bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fti-atmosphere-carousel__head p,
.fti-atmosphere-carousel__foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.4;
}

.fti-atmosphere-counter {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.fti-atmosphere-counter strong {
  color: #fff;
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
}

.fti-atmosphere-stage {
  position: relative;
  width: 100%;
  min-height: min(64vh, 610px);
  touch-action: pan-y;
}

.fti-atmosphere-slides {
  position: absolute;
  inset: 0;
  width: min(100%, 350px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #08080a;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 60px rgba(177, 42, 169, 0.12);
}

.fti-atmosphere-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8%);
  pointer-events: none;
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.fti-atmosphere-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.fti-atmosphere-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #08080a;
}

.fti-atmosphere-carousel.is-landscape .fti-atmosphere-stage {
  min-height: min(48vw, 460px);
}

.fti-atmosphere-carousel.is-landscape .fti-atmosphere-slides {
  width: min(100%, 818px);
}

.fti-atmosphere-arrow {
  position: absolute;
  z-index: 7;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 24, 31, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.fti-atmosphere-arrow:hover,
.fti-atmosphere-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--fti-gradient);
  outline: none;
  transform: translateY(-50%) scale(1.06);
}

.fti-atmosphere-arrow--prev {
  left: clamp(4px, 12vw, 155px);
}

.fti-atmosphere-arrow--next {
  right: clamp(4px, 12vw, 155px);
}

.fti-atmosphere-arrow span {
  transform: translateY(-1px);
  font-size: 24px;
  line-height: 1;
}

.fti-atmosphere-carousel__foot {
  margin-top: 19px;
}

.fti-atmosphere-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fti-atmosphere-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition:
    width 0.24s ease,
    background 0.24s ease;
}

.fti-atmosphere-dot.is-active {
  width: 30px;
  background: var(--fti-gradient);
}

.fti-atmosphere-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .fti-atmosphere-carousel {
    padding: 20px 14px 18px;
    border-radius: 24px;
  }

  .fti-atmosphere-carousel__head {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .fti-atmosphere-carousel__head p {
    max-width: 240px;
  }

  .fti-atmosphere-stage {
    min-height: min(66vh, 560px);
  }

  .fti-atmosphere-carousel.is-landscape .fti-atmosphere-stage {
    min-height: min(52vw, 340px);
  }

  .fti-atmosphere-slides {
    width: min(100%, 315px);
    border-radius: 20px;
  }

  .fti-atmosphere-arrow {
    top: auto;
    bottom: 14px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .fti-atmosphere-arrow:hover,
  .fti-atmosphere-arrow:focus-visible {
    transform: scale(1.04);
  }

  .fti-atmosphere-arrow--prev {
    left: 24px;
  }

  .fti-atmosphere-arrow--next {
    right: 24px;
  }

  .fti-atmosphere-carousel__foot {
    justify-content: center;
  }

  .fti-atmosphere-carousel__foot > p {
    display: none;
  }
}

@media (max-width: 420px) {
  .fti-atmosphere-carousel__head p {
    font-size: 12px;
  }

  .fti-atmosphere-stage {
    min-height: 500px;
  }

  .fti-atmosphere-carousel.is-landscape .fti-atmosphere-stage {
    min-height: calc((100vw - 50px) * 0.5625);
  }

  .fti-atmosphere-slides {
    width: min(100%, 282px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fti-atmosphere-slide,
  .fti-atmosphere-arrow,
  .fti-atmosphere-dot {
    transition: none;
  }
}

/* Финальный QA: равномерная сетка, центрирование и доступные состояния */
@media (min-width: 768px) {
  .fti-advantages-grid {
    grid-auto-rows: 288px !important;
  }

  .fti-advantages-grid > div {
    min-width: 0;
  }

  .fti-advantages-grid > div > div {
    width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    height: 100% !important;
  }
}

.fti-reviews {
  width: min(100%, 1040px) !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
}

.fti-reviews img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1825 / 862;
  object-fit: contain;
}

.fti-hero-form .fti-form-status {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px !important;
  line-height: 1.35;
}

.fti-form-status[hidden] {
  display: none !important;
}

.fti-name-field:has(input[aria-invalid="true"]),
.fti-phone-field-wrap:has(input[aria-invalid="true"]) {
  border-color: #ff6f82 !important;
  box-shadow: 0 0 0 3px rgba(255, 73, 99, 0.14);
}

.fti-hero-form__policy a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}

.fti-hero-form__policy a:hover,
.fti-hero-form__policy a:focus-visible {
  color: #fff;
}

.fti-site-header__nav a:focus-visible,
.fti-footer-nav a:focus-visible,
.fti-footer-policy:focus-visible,
.fti-contact-info a:focus-visible {
  outline: 2px solid #e75ca2;
  outline-offset: 4px;
  border-radius: 4px;
}

.fti-button--secondary,
.fti-button--ghost,
.fti-mobile-nav,
.fti-hero-video__badge,
.fti-atmosphere-arrow {
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 860px) {
  .fti-footer-nav a,
  .fti-footer-policy,
  .fti-contact-info a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .fti-reviews {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .fti-reviews img {
    width: 960px;
    max-width: none;
    margin-inline: 0;
  }
}
