/* Сайт ConnectTogether по макету «CT Site» (UI kit handoff 4). Цвета — те же токены, что в приложении. */

:root {
  --bg: #121317; --sf: #1A1C22; --sf2: #20232A; --sf3: #2A2E37;
  --bd: #2C3039; --bd2: #3B404C;
  --tx: #ECEDF1; --tx2: #A9AEBA; --tx3: #878D9B;
  --ac: #8E95FF; --ac-h: #A3A9FF; --ac-tx: #10123A; --ac-soft: rgba(142,149,255,.14);
  --ok: #56C98F; --ok-soft: rgba(86,201,143,.13);
  --wn: #EBB54F; --wn-soft: rgba(235,181,79,.13);
  /* Plus: рамка всегда #E6C07B, текст на светлом фоне темнее — как Gold в Light.xaml */
  --gold: #E6C07B; --gold-bd: #E6C07B;
  --mono: 'JetBrains Mono', monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F3F6; --sf: #FFFFFF; --sf2: #F1F2F5; --sf3: #E7E9EE;
  --bd: #DFE1E7; --bd2: #C9CCD5;
  --tx: #15171C; --tx2: #4B5160; --tx3: #646A79;
  --ac: #4A50D9; --ac-h: #3D42C2; --ac-tx: #FFFFFF; --ac-soft: rgba(74,80,217,.10);
  --ok: #1C8350; --ok-soft: rgba(28,131,80,.10);
  --wn: #8F5E00; --wn-soft: rgba(180,120,0,.12);
  --gold: #9A6A12;
  color-scheme: light;
}
/* Без Plus: <html data-plus="off"> прячет тариф, пункт меню и вопрос про отмену */
:root[data-plus="off"] .plus-only { display: none; }

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--tx);
  font-family: Onest, 'Segoe UI', sans-serif;
}
a { color: var(--ac); }
a:hover { color: var(--ac-h); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.i { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.s2 { stroke-width: 2; }
.i.s22 { stroke-width: 2.2; }
.logo { display: block; }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--bd); }
.hdr-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); }
.brand:hover { color: var(--tx); }
.brand .logo { width: 22px; height: 22px; flex: none; }
.brand span { font-size: 16px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { height: 34px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--tx2); text-decoration: none; }
.nav a:hover { background: var(--sf2); color: var(--tx); }

.icon-btn { width: 38px; height: 38px; flex: none; padding: 0; border-radius: 9px; border: 1px solid var(--bd); background: none; color: var(--tx2); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--sf2); color: var(--tx); }
.icon-btn .i { width: 16px; height: 16px; }
.theme-btn .i-moon, :root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

/* Кнопки */
.btn { display: flex; align-items: center; flex: none; text-decoration: none; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 9px; gap: 8px; font-size: 14px; font-weight: 600; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 12px; gap: 10px; font-size: 16px; font-weight: 600; }
.btn-lg .i { width: 19px; height: 19px; }
.btn-primary, .btn-primary:hover { color: var(--ac-tx); }
.btn-primary { background: var(--ac); }
.btn-primary:hover { background: var(--ac-h); }
.btn-ghost { padding: 0 22px; gap: 8px; font-weight: 500; background: var(--sf); border: 1px solid var(--bd); color: var(--tx); }
.btn-ghost:hover { background: var(--sf2); border-color: var(--bd2); color: var(--tx); }
.btn-ghost .i { width: 16px; height: 16px; }

/* Первый экран */
.hero { max-width: 1160px; margin: 0 auto; padding: 88px 24px 72px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; max-width: 760px; }
.pill { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -1.4px; text-wrap: balance; }
.lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--tx2); max-width: 600px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 13px; color: var(--tx3); }
.shot { width: 100%; max-width: 1040px; border-radius: 14px; border: 1px solid var(--bd2); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 6px var(--sf); }
.shot img { display: block; width: 100%; height: auto; }

/* Секции */
.sec { border-top: 1px solid var(--bd); scroll-margin-top: 64px; }
.sec-in { max-width: 1160px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.sec-head p { font-size: 16px; line-height: 25px; color: var(--tx2); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ac); font-family: var(--mono); }
.eyebrow.wn { color: var(--wn); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.8px; text-wrap: balance; }

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.step { padding: 24px; border-radius: 14px; background: var(--sf); border: 1px solid var(--bd); display: flex; flex-direction: column; gap: 14px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--sf3); color: var(--tx); display: flex; align-items: center; justify-content: center; }
.step-ic .i { width: 20px; height: 20px; }
.step-n { font-size: 13px; font-weight: 600; color: var(--tx3); font-family: var(--mono); }
.step h3 { font-size: 19px; line-height: 25px; font-weight: 600; }
.step p { font-size: 15px; line-height: 23px; color: var(--tx2); text-wrap: pretty; }
.code-chip { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--bd2); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }
.code-chip .i { width: 15px; height: 15px; color: var(--tx3); }

/* Возможности: ячейки на общем фоне-границе, gap 1px рисует разделители */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1px; background: var(--bd); border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; }
.feat { padding: 28px 24px; background: var(--bg); display: flex; gap: 16px; align-items: flex-start; }
.feat-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; }
.feat-ic .i { width: 19px; height: 19px; }
.feat-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feat h3 { font-size: 17px; line-height: 23px; font-weight: 600; }
.feat p { font-size: 14.5px; line-height: 22px; color: var(--tx2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips-label { font-size: 14px; color: var(--tx3); margin-right: 4px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--sf); border: 1px solid var(--bd); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.chip .i { width: 15px; height: 15px; }
.chip-dash { background: none; border: 1.5px dashed var(--bd2); color: var(--tx2); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.plan { padding: 28px; border-radius: 16px; background: var(--sf); border: 1px solid var(--bd); display: flex; flex-direction: column; gap: 20px; }
.plan-plus { border: 1.5px solid var(--gold-bd); }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-name { font-size: 18px; line-height: normal; font-weight: 600; }
.plan-plus .plan-name { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.plan-plus .plan-name .i { width: 18px; height: 18px; }
.price { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.8px; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.per { font-size: 15px; color: var(--tx3); }
.plan-items, .plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan-lead { font-size: 14px; color: var(--tx3); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.plan-list .i { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--ok); }
.plan-plus .plan-list .i { color: var(--gold); }
.plan-btn { margin-top: auto; height: 46px; border-radius: 10px; border: 1px solid var(--bd2); color: var(--tx); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; text-decoration: none; }
.plan-btn:hover { background: var(--sf3); color: var(--tx); }
.plan-foot { margin-top: auto; font-size: 13.5px; line-height: 20px; color: var(--tx3); }

/* Вопросы */
.faq-in { max-width: 820px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; gap: 32px; }
.faq { display: flex; flex-direction: column; border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; background: var(--sf); }
.faq details + details { border-top: 1px solid var(--bd); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--sf2); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq summary span { flex: 1; font-size: 16px; line-height: 23px; font-weight: 600; }
.faq summary .i { width: 18px; height: 18px; flex: none; color: var(--tx3); }
.faq .chev-d, .faq details[open] .chev-r { display: none; }
.faq details[open] .chev-d { display: block; }
.faq-a { padding: 0 20px 20px; font-size: 15px; line-height: 24px; color: var(--tx2); text-wrap: pretty; max-width: 680px; }

/* Скачать */
.dl { padding: clamp(28px, 5vw, 56px); border-radius: 20px; background: var(--sf); border: 1px solid var(--bd); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; }
.dl-main { display: flex; flex-direction: column; gap: 20px; }
.dl-main p { font-size: 16px; line-height: 25px; color: var(--tx2); max-width: 460px; }
.app-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--ac); color: #10123A; display: flex; align-items: center; justify-content: center; }
.app-ic svg { width: 38px; height: 38px; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ver { font-size: 13px; color: var(--tx3); font-family: var(--mono); }
.tg-link { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.tg-link .i { width: 15px; height: 15px; flex: none; }
.reqs { display: flex; flex-direction: column; border: 1px solid var(--bd); border-radius: 12px; background: var(--bg); overflow: hidden; }
.reqs-h { padding: 14px 18px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--bd); }
.req { display: flex; gap: 16px; padding: 12px 18px; font-size: 14px; line-height: 20px; }
.req + .req { border-top: 1px solid var(--bd); }
.req dt { width: 110px; flex: none; color: var(--tx3); }

/* Подвал */
.foot { border-top: 1px solid var(--bd); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 13px; color: var(--tx3); }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--tx2); }
.foot-brand .logo { width: 16px; height: 16px; }
.foot-sp { flex: 1; }
.foot a { color: var(--tx3); text-decoration: none; }
.foot a:hover { color: var(--tx); }
.foot-tg { display: flex; align-items: center; gap: 6px; }
.foot-tg .i { width: 14px; height: 14px; }
.foot-legal { width: 100%; font-size: 12px; }

/* Узкие экраны: макет рассчитан на десктоп, меню и лишние кнопки шапки убираем */
@media (max-width: 960px) {
  .nav { display: none; }
  .brand { margin-right: auto; }
}
@media (max-width: 560px) {
  .hdr-in { padding: 0 16px; gap: 10px; }
  .tg-btn { display: none; }
  .btn-sm { padding: 0 14px; }
  .hero { padding: 56px 16px 48px; gap: 40px; }
  .hero-cta { align-self: stretch; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .sec-in { padding: 56px 16px; gap: 28px; }
  .faq-in { padding: 56px 16px; gap: 24px; }
  .faq summary { padding: 16px; }
  .faq-a { padding: 0 16px 18px; }
  .step, .feat { padding: 20px; }
  .plan { padding: 22px; }
  .dl { padding: 24px 20px; }
  .req { padding: 12px 16px; }
  .req dt { width: 92px; }
  .foot-in { padding: 24px 16px; }
  .foot-sp { display: none; }
}
@media (max-width: 360px) {
  .btn-sm .i { display: none; }
}
@media (max-width: 340px) {
  .theme-btn { display: none; }
}
