/* Hero unified create + work type chips */
.hero__create--unified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.hero__create.hero__create--unified {
  gap: 0;
}
.hero__create--unified .theme-presentation {
  flex: 1 1 280px;
  min-width: 0;
}
.hero__work-types {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 18px 0 8px;
}
.hero__work-type {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.hero__work-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hero__work-type span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--stx-line, #dbe3ee);
  background: var(--stx-surface, #fff);
  color: var(--stx-text, #1B2430);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.hero__work-type__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.hero__work-type.is-active span,
.hero__work-type:has(input:checked) span {
  border-color: var(--stx-accent, #2F6BFF);
  background: var(--stx-accent-soft, rgba(47, 107, 255, 0.1));
  color: var(--stx-accent-text, #1F52D9);
  box-shadow: 0 0 0 3px var(--stx-accent-soft, rgba(47, 107, 255, 0.08));
}
/* home-final-day: исходная карточка формы владельца (строка темы + выпадающие списки hero__dropdown),
   «Тип работы» — тот же компонент, что «Объём», в одной строке с ним. Цвета — из tokens.css. */
.hero__create.hero__create--unified {
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: var(--stx-surface, #fff);
  border: 1px solid rgba(47, 107, 255, .08);
  box-shadow: 0 5px 50px 0 rgba(22, 80, 235, .10);
  margin-bottom: 14px;
}
.hero__create--unified .theme-presentation {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--stx-accent-line, rgba(47, 107, 255, .28));
  border-radius: 14px;
  background: var(--stx-surface, #fff);
  color: var(--stx-text, #1B2430);
  font: 400 16px/1.4 "Inter", sans-serif;
  letter-spacing: -0.01em;
}
.hero__create--unified .theme-presentation::placeholder { color: var(--stx-text-3, #8A94A6); }
.hero__create--unified .theme-presentation:focus {
  outline: none;
  border-color: var(--stx-accent, #2F6BFF);
  box-shadow: 0 0 0 4px var(--stx-accent-soft, rgba(47, 107, 255, .10));
}
.hero__selects { display: flex; gap: 10px; flex: 0 0 auto; }
.hero__selects .hero__create-top {
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  gap: 12px;
  border: 1px solid var(--stx-line, rgba(27, 36, 48, .14));
  border-radius: 14px;
  background: var(--stx-surface-2, #F8FAFF);
  box-shadow: none;
  color: var(--stx-text, #1B2430);
  font: 400 16px/1.4 "Inter", sans-serif;
}
.hero__selects .select-type { width: 206px; }
.hero__selects .select-slides { width: 150px; }
.hero__selects .hero__create-top:hover,
.hero__selects .hero__create-top:focus-within { border-color: var(--stx-accent, #2F6BFF); background: var(--stx-surface, #fff); box-shadow: none; }
.hero__selects .hero__create-top::after { flex-shrink: 0; }
.hero__selects .hero__create-top:focus-within::after { transform: rotate(180deg); }
.hero__selects .hero__create-top.is-picked::after,
.hero__selects .hero__create-top.is-picked:focus-within::after { transform: none; }
.hero__selects .current-type,
.hero__selects .current-slides { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__selects .hero__dropdown {
  margin-top: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--stx-separator, rgba(27, 36, 48, .08));
  box-shadow: 0 16px 40px rgba(20, 40, 80, .16);
  z-index: 1000;
}
/* form-selects-fix 2026-10-06: .hero .container — свой контекст наложения (z-index 6), а блоки ниже
   (.functuions .container, .functuions__wrapper, .reviews .container …) стоят на z-index 7, поэтому список
   уходил под «Что я получу». Пока список открыт, поднимаем контейнер hero над всеми блоками страницы. */
.hero .container:focus-within { z-index: 60; }
/* style.min.css открывает список ещё и по :hover (.hero__create-top:hover .hero__dropdown) — мышью без клика */
.hero .container:has(.hero__create-top:hover) { z-index: 60; }
.hero__selects .select-type .hero__dropdown { min-width: 250px; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.hero__selects .select-slides .hero__dropdown { left: auto; right: 0; min-width: 210px; }
.hero__selects .hero__dropdown-item {
  min-height: 44px;
  padding: 10px 12px;
  gap: 10px;
  border-radius: 10px;
  font: 400 15px/1.3 "Inter", sans-serif;
  color: var(--stx-text, #1B2430);
}
.hero__selects .hero__dropdown-item:hover { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
/* тач и клавиатура: список открывается по фокусу; после выбора закрывается до следующего нажатия */
.hero__create-top:focus-within .hero__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.hero__create-top.is-picked .hero__dropdown { opacity: 0; visibility: hidden; transform: translateY(-10px); }
/* выбранный пункт (form.js: is-selected) и пункт под клавиатурой (is-active) */
.hero__selects .hero__dropdown-item.is-selected { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); color: var(--stx-accent-text, #1F52D9); font-weight: 500; }
.hero__selects .hero__dropdown-item.is-selected::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F52D9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.hero__selects .hero__dropdown-item.is-active { box-shadow: inset 0 0 0 2px var(--stx-accent, #2F6BFF); }
/* шеврон штрихом 1.5 вместо залитого треугольника arr.svg */
.hero__selects .hero__create-top::after {
  width: 16px;
  height: 16px;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566274' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.hero__selects .hero__create-top:focus-visible { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }

/* «Без источников» под карточкой, зона нажатия 44px */
.hero__options {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  opacity: 0;
  animation: contentFadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards;
}
.hero__nosrc.checkbox {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
}
.hero__nosrc .checkbox__box { margin-top: 0; }
.hero__nosrc .checkbox__input:focus-visible + .checkbox__box { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }
.hero__nosrc .checkbox__text { font: 400 14px/1.3 "Inter", sans-serif; color: var(--stx-text-2, #566274); }
.hero .hero__form > .hero__generate {
  margin-top: 14px;
}
.theme-presentation.is-invalid {
  outline: 2px solid var(--stx-danger, #E0405A);
}
.header a.header__sign,
.mobile-menu a.header__sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.preloader,
.preloader-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.preloader.open,
.preloader-page.open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.preloader[hidden]:not(.open) {
  display: none !important;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.preloader__mark {
  --cycle: 2.8s;
  --step: 0.14s;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__logo {
  display: block;
  width: 262.5px;
  height: 42px;
  margin: 0 auto;
  overflow: visible;
}
.preloader__piece {
  opacity: 0;
  transform: translateY(10px);
  transform-box: fill-box;
  transform-origin: center;
}
.preloader__mark.is-animating .preloader__piece {
  animation: sp-fade var(--cycle) ease-in-out both infinite;
  animation-delay: calc(var(--i) * var(--step));
}
.preloader__text,
.preloader-page__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--stx-text-2, #566274);
  text-align: center;
}
@keyframes sp-fade {
  0% { opacity: 0; transform: translateY(10px); }
  14% { opacity: 1; transform: translateY(0); }
  48% { opacity: 1; transform: translateY(0); }
  62% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}
body.is-preloading {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero__create--unified {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__create.hero__create--unified { flex-wrap: nowrap; gap: 10px; padding: 10px; border-radius: 20px; }
  .hero__create--unified .theme-presentation { flex: 0 0 auto; width: 100%; height: 50px; }
  .hero__selects { width: 100%; }
  .hero__selects .hero__create-top { flex: 1 1 0; width: auto; min-width: 0; height: 50px; padding: 0 14px; }
  .hero__selects .select-type .hero__dropdown { min-width: min(260px, calc(100vw - 56px)); max-height: 300px; }
  .hero__selects .select-slides .hero__dropdown { min-width: min(210px, calc(100vw - 56px)); }
  .hero .hero__form > .hero__generate,
  .hero .hero__form > .policy { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero__work-types {
    flex-wrap: wrap;
  }
  .hero__work-type {
    flex: 1 1 calc(33.333% - 10px);
  }
  .hero__work-type span {
    font-size: 14px;
    padding: 8px 10px;
    gap: 6px;
  }
  .hero__work-type__icon {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 480px) {
  .preloader__logo {
    width: 210px;
    height: 33.6px;
  }
}

/* N7 п. 53: «Рекомендуется» — маленькая надпись на верхней рамке поля объёма, пока выбран рекомендуемый объём */
.hero__selects .select-slides { position: relative; }
.hero__rec {
  position: absolute; top: 0; right: 12px; transform: translateY(-50%);
  padding: 1px 8px; border-radius: 999px;
  background: var(--stx-surface, #fff); border: 1px solid var(--stx-accent-line, rgba(47,107,255,.28));
  font: 600 11px/16px "Inter", sans-serif; letter-spacing: .01em; color: var(--stx-accent-text, #1F52D9);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.select-slides.has-rec .hero__rec { opacity: 1; }
.hero__dropdown-item.is-rec > div::after {
  content: "рекомендуется"; margin-left: 8px;
  font-size: 11px; font-weight: 600; color: var(--stx-accent-text, #1F52D9);
}
@media (max-width: 560px) { .hero__rec { right: 8px; font-size: 10px; padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .hero__rec { transition: none; } }
/* P30 (2026-10-06): «Параметры работы» у поля темы — поповер как на wordgpt (прозрачность + сдвиг 6px, 0,18 с) */
.hero__theme { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.hero__create--unified .hero__theme .theme-presentation { flex: 1 1 auto; width: 100%; padding-left: 56px; }
.hero__opts-btn {
  position: absolute; left: 7px; top: 50%; z-index: 2; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  color: var(--stx-text-2, #566274); background: transparent;
  transition: background .18s, color .18s;
}
.hero__opts-btn svg { width: 20px; height: 20px; }
.hero__opts-btn:hover { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); color: var(--stx-accent-text, #1F52D9); }
.hero__opts-btn:focus-visible { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 1px; }

/* P2 п. 2: окно в body, position: fixed — координаты ставит form.js рядом с иконкой; до 600px — шторка снизу */
.stx-gopt {
  position: fixed; left: 16px; top: 0; z-index: 10040;
  width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px; box-sizing: border-box;
  border: .8px solid var(--stx-separator, rgba(27, 36, 48, .10)); border-radius: 14px;
  background: var(--stx-surface, #fff); box-shadow: 0 22px 50px -18px rgba(20, 24, 31, .4);
  text-align: left; font-family: "Inter", sans-serif; color: var(--stx-text, #1B2430);
  visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .18s cubic-bezier(.3, .7, .2, 1), transform .18s cubic-bezier(.3, .7, .2, 1), visibility 0s .18s;
}
.stx-gopt.is-up { transform: translateY(-6px); }
.stx-gopt.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.stx-gopt-shade { display: none; }
@media (max-width: 600px) {
  .stx-gopt.is-sheet {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100% !important; max-width: none;
    max-height: 85vh; max-height: 85dvh; padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0; border-width: .8px .8px 0; box-shadow: 0 -18px 40px -16px rgba(20, 24, 31, .35);
    transform: translateY(100%);
    transition: opacity .28s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s .32s;
  }
  .stx-gopt.is-sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: 2px auto 8px; border-radius: 2px; background: rgba(27, 36, 48, .18); }
  .stx-gopt.is-sheet.is-open { transform: none; transition-delay: 0s; }
  .stx-gopt-shade.is-sheet { display: block; position: fixed; inset: 0; z-index: 10039; background: rgba(23, 32, 51, .28); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s; }
  .stx-gopt-shade.is-sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
}
.stx-gopt__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--stx-text, #1B2430); }
.stx-gopt__x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: var(--stx-text-2, #566274); }
.stx-gopt__x:hover { background: var(--stx-surface-2, #F3F6FB); color: var(--stx-text, #1B2430); }
.stx-gopt__x svg { width: 15px; height: 15px; }
.stx-gopt__k { padding: 8px 6px 6px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--stx-text-3, #8A94A6); }
.stx-gopt__opts { display: grid; gap: 4px; }
.stx-gopt__opts--seg { grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 11px; background: var(--stx-surface-2, #F3F6FB); }
.stx-gopt__opts--grid { grid-template-columns: 1fr 1fr; }
.stx-gopt__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 38px; padding: 7px 10px; border-radius: 9px;
  font: 500 14px/1.25 "Inter", sans-serif; color: var(--stx-text, #1B2430); text-align: left;
  transition: background .15s, color .15s, box-shadow .15s;
}
.stx-gopt__opt svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0; color: var(--stx-accent-text, #1F52D9); transition: opacity .15s; }
.stx-gopt__opt:hover { background: var(--stx-surface-2, #F3F6FB); }
.stx-gopt__opt[aria-checked="true"] { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); color: var(--stx-accent-text, #1F52D9); }
.stx-gopt__opt[aria-checked="true"] svg { opacity: 1; }
.stx-gopt__opts--seg .stx-gopt__opt { justify-content: center; min-height: 34px; padding: 6px 8px; }
.stx-gopt__opts--seg .stx-gopt__opt svg { display: none; }
.stx-gopt__opts--seg .stx-gopt__opt[aria-checked="true"] { background: var(--stx-surface, #fff); color: var(--stx-text, #1B2430); box-shadow: 0 1px 3px rgba(20, 24, 31, .14); }
.stx-gopt__opt:focus-visible { outline: 2px solid var(--stx-accent, #2F6BFF); outline-offset: 1px; }
.stx-gopt__hint { margin: 0; padding: 10px 6px 4px; font-size: 13px; line-height: 1.4; color: var(--stx-text-2, #566274); }
@media (max-width: 768px) {
  .hero__theme { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 380px) { .stx-gopt__opt { font-size: 13px; padding: 7px 8px; } }
@media (prefers-reduced-motion: reduce) { .stx-gopt, .stx-gopt.is-sheet, .stx-gopt-shade.is-sheet { transition: none; transform: none; } }

/* ==================== Q (2026-10-07): п. 36 иконки типов, п. 37 «Свой план» ==================== */
/* п. 36: иконки видов работ — как в меню шапки (тонкие, цвет акцента) */
.hero__type-i { width: 18px; height: 18px; flex: none; fill: currentColor; color: var(--stx-accent, #2F6BFF); }
.hero__selects .select-type .hero__dropdown-item { justify-content: flex-start; }
.hero__selects .select-type .hero__dropdown-item > div { flex: 1 1 auto; min-width: 0; }
.hero__selects .select-type .hero__dropdown-item.is-selected .hero__type-i { color: var(--stx-accent-text, #1F52D9); }
.hero__selects .select-type.has-type-i { justify-content: flex-start; gap: 10px; }
.hero__selects .select-type.has-type-i .current-type { flex: 1 1 auto; }
.hero__selects .select-type.has-type-i::after { margin-left: auto; }
.hero__selects .select-type.has-type-i { width: 226px; }
@media (max-width: 768px) { .hero__selects .select-type.has-type-i { width: auto; gap: 8px; } }

/* п. 37: «Свой план» под карточкой формы */
/* Q2 п. 2: блок вставляет form.js; появляется тем же подъёмом, что и кнопка и согласие (contentFadeUp из style.min.css) */
.hero__own { position: relative; z-index: 5; width: 100%; margin: -2px 0 0; text-align: left; opacity: 0; animation: contentFadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards; }
.hero__own-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer;
  font: 500 15px/1.3 "Inter", sans-serif; color: var(--stx-accent-text, #1F52D9);
  transition: background .18s ease, border-color .18s ease;
}
.hero__own-toggle svg { width: 18px; height: 18px; flex: none; }
.hero__own-toggle:hover { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
.hero__own-toggle:focus-visible { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }
.hero__own-caret { transition: transform .22s cubic-bezier(.3, .7, .2, 1); }
.hero__own.is-open .hero__own-caret { transform: rotate(180deg); }
.hero__own.has-plan .hero__own-toggle { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
.hero__own-panel {
  position: relative; margin-top: 8px; padding: 14px;
  border-radius: 18px; border: 1px solid rgba(47, 107, 255, .10);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 5px 40px 0 rgba(22, 80, 235, .08);
  animation: stx-own-in .24s cubic-bezier(.3, .7, .2, 1) both;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hero__own-panel { background: var(--stx-surface, #fff); } }
.hero__own-panel[hidden] { display: none; }
@keyframes stx-own-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hero__own-head { display: block; margin: 0 0 8px 2px; font: 600 15px/1.3 "Inter", sans-serif; color: var(--stx-text, #1B2430); }
.hero__own-input {
  display: block; width: 100%; box-sizing: border-box; min-height: 150px; max-height: 360px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--stx-accent-line, rgba(47, 107, 255, .28)); border-radius: 14px;
  background: var(--stx-surface, #fff); color: var(--stx-text, #1B2430);
  font: 400 15px/1.5 "Inter", sans-serif;
}
.hero__own-input::placeholder { color: var(--stx-text-3, #8A94A6); }
.hero__own-input:focus { outline: none; border-color: var(--stx-accent, #2F6BFF); box-shadow: 0 0 0 4px var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
.hero__own-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; }
.hero__own-hint { margin: 0; font: 400 13px/1.45 "Inter", sans-serif; color: var(--stx-text-2, #566274); }
.hero__own-count { flex: none; font: 500 12px/1.45 "Inter", sans-serif; color: var(--stx-text-3, #8A94A6); font-variant-numeric: tabular-nums; }
.hero__own-clear {
  position: absolute; top: 10px; right: 12px; min-height: 30px; padding: 0 10px; border-radius: 8px;
  background: transparent; cursor: pointer; font: 500 13px/1 "Inter", sans-serif; color: var(--stx-text-2, #566274);
}
.hero__own-clear:hover { background: var(--stx-surface-2, #F3F6FB); color: var(--stx-text, #1B2430); }
.hero__own:not(.has-plan) .hero__own-clear { display: none; }
@media (max-width: 768px) {
  .hero__own-panel { padding: 12px; border-radius: 16px; }
  .hero__own-foot { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hero__own { opacity: 1; animation: none; } .hero__own-panel { animation: none; } .hero__own-caret { transition: none; } }

/* Q3 п. 9, уточнение владельца: свой план и настройки в одной строке на всех экранах. */
.hero__own-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.hero__own-tools > .hero__opts-btn {
  position: relative; inset: auto; transform: none; flex: none;
  width: auto; height: auto; min-height: 44px; padding: 8px 12px; gap: 8px;
  font: 500 14px/1.3 "Inter", sans-serif;
}
.hero__own-tools > .hero__own-toggle { min-height: 44px; min-width: 0; }
.hero__form.has-form-tools .hero__create--unified .hero__theme .theme-presentation { padding-left: 24px; }
@media (max-width: 767px) {
  /* Старый runLine анимирует только transform и оставлял партнёров с opacity: 0. */
  .hero .hero__partners { opacity: 1; }
  .hero__own-tools { gap: 8px; }
  .hero__own-tools > .hero__opts-btn { padding: 8px 6px; gap: 6px; }
  .hero__own-tools > .hero__opts-btn svg { width: 18px; height: 18px; }
  .hero__own-tools > .hero__own-toggle { padding: 0 6px; gap: 6px; font-size: 14px; }
  .hero__own-tools > .hero__own-toggle svg { width: 16px; height: 16px; }
  .hero__own-tools .hero__own-label { min-width: 0; text-align: left; }
}
@media (max-width: 380px) {
  .hero__own-tools { gap: 6px; }
  .hero__own-tools > .hero__opts-btn { padding-right: 4px; padding-left: 4px; }
  .hero__own-tools > .hero__own-toggle { padding-right: 4px; padding-left: 4px; }
  .hero__own-tools .hero__own-caret { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero__partners { animation: none; opacity: 1; flex-wrap: wrap; }
  .hero .hero__partner.mobile-marquee { display: none; }
}

/* Shared style also applies after generation settings have changed. */
.hero__own-tools > .hero__own-toggle,
.hero__own-tools > .hero__opts-btn {
  min-height: 44px; padding: 0 14px; gap: 8px;
  background: transparent; justify-content: flex-start; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  border: 1px solid transparent; border-radius: 12px;
  font: 500 15px/1.3 "Inter", sans-serif; color: var(--stx-accent-text, #1F52D9);
}
.hero__own-tools > .hero__opts-btn svg { width: 18px; height: 18px; }
.hero__own-tools > .hero__opts-btn:hover,
.hero__own-tools > .hero__own-toggle:hover { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
.hero__own-tools > .hero__opts-btn:focus-visible,
.hero__own-tools > .hero__own-toggle:focus-visible { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }
@media (max-width: 767px) {
  .hero__own-tools > .hero__own-toggle,
  .hero__own-tools > .hero__opts-btn { padding: 0 6px; gap: 6px; font-size: 14px; }
  .hero__own-tools > .hero__opts-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .hero__own-tools > .hero__own-toggle,
  .hero__own-tools > .hero__opts-btn { padding-right: 4px; padding-left: 4px; }
}

/* Q4: параметры генерации — карточки выбора с пояснениями; заголовок и действия всегда доступны. */
.stx-gopt {
  display: flex; flex-direction: column; width: 440px;
  max-height: min(600px, calc(100vh - 32px)); max-height: min(600px, calc(100dvh - 32px));
  overflow: hidden; padding: 0; border: 1px solid rgba(47, 107, 255, .16); border-radius: 24px;
  box-shadow: 0 24px 72px -20px rgba(22, 80, 235, .25), 0 4px 16px rgba(27, 36, 48, .08);
}
.stx-gopt__h {
  flex: none; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--stx-separator, rgba(27, 36, 48, .08));
}
.stx-gopt__badge { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 13px; background: var(--stx-accent-soft, #E8EEFF); color: var(--stx-accent-text, #1F52D9); }
.stx-gopt__badge svg { width: 22px; height: 22px; }
.stx-gopt__icon { fill: currentColor; }
.stx-gopt__head-copy { flex: 1; min-width: 0; padding-top: 2px; }
.stx-gopt__head-copy h2 { margin: 0 0 5px; font: 600 17px/1.25 "Inter", sans-serif; letter-spacing: -.025em; color: var(--stx-text, #1B2430); }
.stx-gopt__head-copy p { margin: 0; font: 400 13px/1.45 "Inter", sans-serif; color: var(--stx-text-2, #566274); }
.stx-gopt__x { width: 44px; height: 44px; flex: none; margin: -2px -4px 0 0; border-radius: 12px; }
.stx-gopt__x svg { width: 18px; height: 18px; }
.stx-gopt__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 14px 10px; scroll-padding: 14px; }
.stx-gopt__section { margin: 0; padding-top: 10px; }
.stx-gopt__k { margin: 0 0 6px; padding: 0; font: 600 14px/1.4 "Inter", sans-serif; letter-spacing: 0; color: var(--stx-text, #1B2430); }
.stx-gopt__opts { display: grid; gap: 5px; }
.stx-gopt__opts--levels { grid-template-columns: minmax(0, 1fr); }
.stx-gopt__opts--styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stx-gopt__opt {
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  min-width: 0; min-height: 48px; padding: 6px 8px; border: 1px solid var(--stx-separator, rgba(27, 36, 48, .10)); border-radius: 12px;
  background: var(--stx-surface, #fff); font: 500 14px/1.35 "Inter", sans-serif;
}
.stx-gopt__opt:hover { border-color: var(--stx-accent-line, rgba(47, 107, 255, .35)); background: var(--stx-surface-2, #F7F9FF); }
.stx-gopt__opt[aria-checked="true"] { border-color: var(--stx-accent, #2F6BFF); box-shadow: inset 0 0 0 .5px var(--stx-accent, #2F6BFF); background: var(--stx-accent-soft, #E8EEFF); }
.stx-gopt__opt-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--stx-surface-2, #F3F6FB); color: var(--stx-accent-text, #1F52D9); }
.stx-gopt__opt .stx-gopt__opt-icon svg { width: 19px; height: 19px; opacity: 1; color: inherit; }
.stx-gopt__opt-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.stx-gopt__opt-title { font-size: 13px; font-weight: 600; color: var(--stx-text, #1B2430); overflow-wrap: anywhere; }
.stx-gopt__opt-desc { font: 400 12px/1.35 "Inter", sans-serif; color: var(--stx-text-2, #566274); }
.stx-gopt__hint { margin: 8px 0 0; padding: 0; font: 400 12px/1.5 "Inter", sans-serif; }
.stx-gopt__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; padding: 10px 14px; border-top: 1px solid var(--stx-separator, rgba(27, 36, 48, .08)); background: var(--stx-surface, #fff); }
.stx-gopt__foot button { min-height: 44px; padding: 10px 12px; border-radius: 12px; font: 600 14px/1.3 "Inter", sans-serif; }
.stx-gopt__reset { border: 1px solid var(--stx-accent-line, rgba(47, 107, 255, .22)); color: var(--stx-accent-text, #1F52D9); }
.stx-gopt__done { background: var(--stx-accent, #2F6BFF); color: var(--stx-on-accent, #fff); }
.stx-gopt__done:hover { filter: brightness(.95); }
.stx-gopt__x:focus-visible,
.stx-gopt__foot button:focus-visible { outline: 3px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }
@media (max-width: 600px) {
  .stx-gopt.is-sheet { padding: 0 0 env(safe-area-inset-bottom, 0px); max-height: min(600px, calc(100vh - 20px)); max-height: min(600px, calc(100dvh - 20px)); border-radius: 24px 24px 0 0; }
  .stx-gopt.is-sheet::before { flex: none; margin: 8px auto 0; }
  .stx-gopt__h { padding: 10px 12px; gap: 9px; }
  .stx-gopt__head-copy h2 { font-size: 17px; }
  .stx-gopt__body { padding-right: 14px; padding-left: 14px; }
  .stx-gopt__opt { gap: 6px; padding: 6px; }
  .stx-gopt__opts--styles .stx-gopt__opt-icon { width: 24px; height: 28px; background: transparent; }
  .stx-gopt__opt .stx-gopt__opt-icon svg { width: 18px; height: 18px; }
  .stx-gopt__foot { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .stx-gopt__opts--styles { grid-template-columns: minmax(0, 1fr); }
  .stx-gopt__opts--styles .stx-gopt__opt-copy { padding-right: 0; }
}

/* Q4: утверждённая строка статистики над сохранёнными иконками. */
.hero .hero__partners { flex-direction: column; gap: 14px; }
.hero__partners-copy { margin: 0; max-width: 800px; padding: 0 12px; color: var(--stx-text-2, #566274); font: 400 15px/1.6 "Inter", sans-serif; text-align: center; }
.hero__partners-copy strong { color: var(--stx-text, #1B2430); font-weight: 700; white-space: nowrap; }
.hero__partners-track { display: flex; align-items: center; justify-content: center; gap: 16px; width: max-content; }
.hero__partners-track > .hero__partner { flex: none; }
@media (max-width: 767px) {
  .hero .hero__partners { animation: none; opacity: 1; overflow: hidden; }
  .hero__partners-copy { width: 100%; font-size: 14px; }
  .hero__partners-track { align-self: flex-start; animation: stx-partners-loop 30s linear infinite; }
  .hero .hero__partner.mobile-marquee { display: flex; }
}
@keyframes stx-partners-loop { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .hero__partners-track { width: auto; max-width: 100%; flex-wrap: wrap; animation: none; transform: none; }
  .hero .hero__partner.mobile-marquee { display: none; }
}
