/* Лендинг 1Yes поверх site.css: меню-капсула и первый экран в манере 1yes.pro (обещание, рубли и VPN,
   карусель агентов), ниже – спокойные блоки для обычного пользователя: задачи, шаги, вопросы, «Скачать». */
:root {
  --hero: #111516;
  --hero-text: #ffffff;
  --hero-text-2: #cfdbe1;
  --hero-muted: #aabcc5;
  --hero-raised: #262d30;
  --hero-raised-hover: #333d41;
  --menu: #111516;
  --menu-seg: #f2f6f7;
  --menu-seg-on: #ffffff;
  --menu-text: #262d30;
  --accent: #abee5e;
  --accent-hover: #9fdf57;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hero: #1c2123;
    --hero-text: #e4eaed;
    --hero-text-2: #aebbc2;
    --hero-muted: #94a3ab;
    --hero-raised: #2e3539;
    --hero-raised-hover: #353e43;
    --menu: #1c2123;
    --menu-seg: #262d30;
    --menu-seg-on: #2e3539;
    --menu-text: #e4eaed;
  }
}
:root[data-theme="dark"] {
  --hero: #1c2123;
  --hero-text: #e4eaed;
  --hero-text-2: #aebbc2;
  --hero-muted: #94a3ab;
  --hero-raised: #2e3539;
  --hero-raised-hover: #353e43;
  --menu: #1c2123;
  --menu-seg: #262d30;
  --menu-seg-on: #2e3539;
  --menu-text: #e4eaed;
}

/* Меню – тёмная капсула со светлыми сегментами, после первого экрана сужается (как Menu 1yes.pro) */
.menu {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--maxw);
  padding: 8px;
  border-radius: 20px;
  background: var(--menu);
  box-shadow: 0 8px 16px rgba(17, 21, 22, 0.16);
  transform: translateX(-50%);
  transition: max-width 0.4s var(--ease);
}
.menu.scrolled { max-width: 840px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #fff; }
.mark svg { width: 26px; height: 34px; }
.segs { display: flex; flex: 1; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--menu); }
.segs a {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--menu-seg);
  color: var(--menu-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}
.segs a:hover, .segs a.on { background: var(--menu-seg-on); }
/* «Скачать 1Yes» – салатовый, когда кнопка первого экрана ушла с экрана (как «Попробовать» в меню 1yes.pro) */
.segs a.try.accent { background: var(--accent); color: #262d30; }
.segs a.try.accent:hover { background: var(--accent-hover); }
@media (max-width: 899px) {
  .segs { flex: 0 0 auto; margin-left: auto; }
  .segs a:not(.try) { display: none; }
}

/* Кнопки первого экрана */
.h-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in, transform 0.2s ease;
}
.h-btn:active { transform: scale(0.97); }
.h-btn.accent { background: var(--accent); color: #262d30; }
.h-btn.accent:hover { background: var(--accent-hover); }
.h-btn.raised { background: var(--hero-raised); color: var(--hero-text); }
.h-btn.raised:hover { background: var(--hero-raised-hover); }

/* Первый экран: обещание слева, карусель агентов справа */
.first { padding-top: 92px; }
.first-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.h-tile { border-radius: 24px; background: var(--hero); color: var(--hero-text); }
.h-main { display: flex; flex-direction: column; padding: 44px 40px 40px; }
.h-main h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 900; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.h-main > p { max-width: 32em; margin-top: 18px; color: var(--hero-text-2); font-size: 18px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.fact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--hero-raised); }
.fact .ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--hero-text); font-size: 22px; font-weight: 900; }
.fact .ic svg { width: 22px; height: 22px; }
.fact b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.fact div span { display: block; margin-top: 3px; color: var(--hero-muted); font-size: 13px; line-height: 1.35; }
.h-main .h-btns { margin-top: auto; padding-top: 32px; }

/* Карусель агентов: слайды сменяются сами, полоска над вкладкой показывает время до следующего */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #d97757; }
.car { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: 28px 28px 22px; overflow: hidden; isolation: isolate; transition: --glow 0.8s ease; }
.car::before {
  content: "";
  position: absolute;
  top: -48%;
  left: -12%;
  z-index: -1;
  width: 124%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent 72%);
  animation: breathe 9s ease-in-out infinite alternate;
}
.car-label { color: var(--hero-muted); font-size: 13px; }
.car-stage { position: relative; flex: 1; min-height: 360px; }
.car-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  visibility: hidden;
}
.car-slide.on { opacity: 1; transform: none; visibility: visible; }
.car-logo { width: 84px; height: 84px; margin: 28px 0 auto; color: var(--hero-text); }
.car-maker { color: var(--hero-muted); font-size: 15px; }
.car-slide h2 { margin-top: 6px; font-size: clamp(40px, 4.6vw, 62px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.car-slide p { max-width: 30em; margin-top: 14px; color: var(--hero-text-2); font-size: 17px; line-height: 1.45; }
.car-ask { align-self: flex-start; max-width: 100%; margin-top: 18px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--hero-raised); font-size: 15px; line-height: 1.4; }
.car-ask small { display: block; margin-bottom: 2px; color: var(--hero-muted); font-size: 12px; }
.car-soon { align-self: flex-start; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 500; }
.car-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.car-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 0 2px;
  border: 0;
  background: none;
  color: var(--hero-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}
.car-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-tab svg { width: 16px; height: 16px; flex: 0 0 auto; }
.car-tab::before, .car-tab::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 2px; }
.car-tab::before { right: 0; background: var(--hero-raised); }
.car-tab::after { width: 0; background: var(--hero-text); }
.car-tab:hover, .car-tab.on { color: var(--hero-text); }
.car-tab.on::after { animation: fill 5s linear forwards; }
.car.paused .car-tab.on::after { animation-play-state: paused; }
@media (max-width: 899px) {
  .first-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .h-main { padding: 28px 24px; }
  .h-main > p { font-size: 16px; }
  .car { min-height: 0; padding: 24px 24px 18px; }
  .car-stage { min-height: 340px; }
  .car-logo { width: 64px; height: 64px; margin-top: 20px; }
}
@media (max-width: 559px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { flex-direction: row; align-items: center; }
  .car-tab span { display: none; }
  .car-stage { min-height: 380px; }
}

/* Спокойные блоки ниже первого экрана */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
@media (max-width: 899px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.task { display: flex; flex-direction: column; gap: 20px; }
.task .ask { margin: 0; color: var(--text); font-size: 17px; line-height: 1.45; }
/* Результат – плашкой «готово», как MarkAsDone UI-кита: светло-зелёная подложка, тёмный текст */
.task .res { align-self: flex-start; margin-top: auto; padding: 5px 10px; border-radius: 8px; background: var(--add-bg); color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.35; }
/* Круглосуточно: вечер на ноутбуке → ночь в облаке → утро на смартфоне */
.night { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.night-step { position: relative; display: flex; flex-direction: column; }
.night-step + .night-step::before { content: "→"; position: absolute; top: 50%; left: -30px; color: var(--muted); font-size: 20px; transform: translateY(-50%); }
.night-step .icon { margin-bottom: 16px; }
.night-step.off .icon { color: var(--muted); }
.night .night-time { display: flex; align-items: center; gap: 8px; margin-top: 0; color: var(--muted); font-size: 13px; }
.night .night-msg, .night .night-push { margin-top: 12px; padding: 12px 14px; background: var(--fill); color: var(--text); font-size: 15px; line-height: 1.45; }
.night .night-msg { border-radius: 14px 14px 4px 14px; }
.night .night-push { border-radius: 14px; box-shadow: 0 6px 16px rgba(17, 21, 22, 0.08); }
.night-push b { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.night-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; color: var(--text); font-size: 15px; }
.night-list li { display: flex; align-items: center; gap: 10px; }
.night-list li::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--positive); }
.night .night-note { margin-top: auto; padding-top: 18px; color: var(--text); font-size: 15px; font-weight: 500; }
.js .night .night-step { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.night.play .night-step { opacity: 1; transform: none; }
.night.play .night-step:nth-child(2) { transition-delay: 0.35s; }
.night.play .night-step:nth-child(3) { transition-delay: 0.7s; }
@media (max-width: 899px) {
  .night { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .night-step + .night-step::before { top: -30px; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

/* Готовые навыки: маркетплейс 1Yes и международные каталоги */
.markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.market .connectors { margin-top: 20px; }
.market .connectors span { padding: 8px 14px; font-size: 14px; }
.sc-lead { margin-top: 56px; font-size: 20px; font-weight: 500; }
.sc-lead + .sc-wrap .sc-tabs { margin-top: 16px; }
@media (max-width: 799px) { .markets { grid-template-columns: minmax(0, 1fr); } }

/* Сценарии: вкладки по аудиториям, в каждой – просьба словами и что получится */
.sc-tabs { display: flex; gap: 4px; max-width: 100%; margin-top: 32px; padding: 4px; overflow-x: auto; border-radius: 12px; background: var(--seg-track); scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}
.sc-tab:hover { color: var(--text); }
.sc-tab[aria-selected="true"] { background: var(--seg-on); color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(17, 21, 22, 0.1); }
.sc-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.sc-panel { width: 100%; }
.sc-panel .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.sc-who { margin-top: 24px; color: var(--muted); font-size: 15px; }
.sc-panel:not([hidden]) .task { animation: rise 0.45s var(--ease) both; }
.sc-panel .task:nth-child(2) { animation-delay: 0.05s; }
.sc-panel .task:nth-child(3) { animation-delay: 0.1s; }
.sc-panel .task:nth-child(4) { animation-delay: 0.15s; }
@media (max-width: 1023px) { .sc-panel .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sc-panel .grid4 { grid-template-columns: minmax(0, 1fr); } }
.how .num { margin: 0; color: var(--text); font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.how h3 { margin-top: 28px; }
.how .card { display: flex; flex-direction: column; }
.how .h-btn { align-self: flex-start; margin-top: 24px; }
#app .demo { margin-top: 36px; }
.faq { max-width: 820px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--muted); font-size: 26px; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 42em; padding-bottom: 22px; color: var(--text-2); font-size: 16px; line-height: 1.55; }

/* Цены: своя подписка бесплатно, 1Yes Pro и Max – рублями */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { box-shadow: inset 0 0 0 1.5px var(--text); }
.plan .plan-name { margin: 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.plan .price { margin-top: 14px; color: var(--text); font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.plan .price small { margin-left: 8px; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.plan .plan-for { margin-top: 14px; font-size: 15px; }
.plan .ticks { margin-top: 20px; color: var(--text); }
.plan .btn, .plan .h-btn { align-self: flex-start; margin-top: auto; }
.plan .ticks { margin-bottom: 28px; }
@media (max-width: 899px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Другие страницы с тем же меню: отступ под капсулу */
.menu ~ main .hero { padding-top: 140px; }

/* Скачать */
#download { padding-bottom: 120px; }
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.dl { display: flex; flex-direction: column; }
.dl-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--fill); color: var(--text); }
.dl-ic svg { width: 22px; height: 22px; }
.dl h3 { font-size: 18px; }
.dl p { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl .btn { width: 100%; margin-top: auto; }
.dl p + .btn { margin-top: 28px; }
@media (max-width: 859px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .downloads { grid-template-columns: minmax(0, 1fr); } }

@keyframes fill { to { width: 100%; } }
@keyframes breathe {
  from { transform: translate(-6%, 0) scale(0.95); }
  to { transform: translate(6%, 6%) scale(1.05); }
}

