/* Стили внутренних страниц сайта teamwfa.io: страницы продуктов (/remote/, /cases/, /ar/) и /faq/.
   Токены, шапка, кнопки, подвал и адаптив повторяют встроенные стили главной страницы index.html:
   меняя их там, менять и здесь (tests/test_site_pages.py сверяет токены). Версию в ссылке на этот
   файл ставит scripts/version-site-assets.py. */
:root {
  --navy: #1A2540;
  --navy-deep: #131C31;
  --navy-soft: #24314F;
  --steel: #2F86D0;
  --steel-deep: #246FAD;
  --steel-soft: #4A9EDB;
  --mist: #F6F9FC;
  --mist-2: #EFF4FA;
  --off: #E8EDF5;
  --panel: #FFFFFF;
  --line: #E2EAF2;
  --line-strong: #C9D6E5;
  --border: #D7E4F0;
  --muted: #5B6C84;
  --body: #3F4D63;
  --ink: #0F172A;
  --ink-soft: #475569;
  --green: #1FA861;
  --green-deep: #178A50;
  --green-dim: rgba(31, 168, 97, 0.12);
  --amber: #F5A623;
  --amber-dim: rgba(245, 166, 35, 0.14);
  --shadow: 0 32px 80px rgba(26, 37, 64, 0.14);
  --shadow-light: 0 12px 32px rgba(26, 37, 64, 0.06);
  --font: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(47, 134, 208, 0.72); outline-offset: 4px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(100% - 56px, var(--max)); margin-inline: auto; }

/* ——— Знак ——— */
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; max-width: none; object-fit: contain; }
.wordmark { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; color: var(--navy); }
.wordmark b { font-weight: 800; }

/* ——— Значки ——— */
.ico {
  display: inline-block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico-monitor { --ico: url("/assets/icons/monitor.svg"); }
.ico-cases { --ico: url("/assets/icons/cases.svg"); }
.ico-ar-mark { --ico: url("/assets/icons/nav-ar-360-thin.svg"); }
.ico-link { --ico: url("/assets/icons/link-guest.svg"); }
.ico-annotate { --ico: url("/assets/icons/annotate.svg"); }
.ico-pin { --ico: url("/assets/icons/pin-3d.svg"); }
.ico-camera { --ico: url("/assets/icons/camera.svg"); }
.ico-phone { --ico: url("/assets/icons/phone.svg"); }
.ico-ms-screen-share { --ico: url("/assets/icons/material/screen_share.svg"); }
.ico-ms-tune { --ico: url("/assets/icons/material/tune.svg"); }
.ico-ms-install-desktop { --ico: url("/assets/icons/material/install_desktop.svg"); }
.ico-ms-fact-check { --ico: url("/assets/icons/material/fact_check.svg"); }
.ico-ms-login { --ico: url("/assets/icons/material/login.svg"); }
.ico-ms-account-tree { --ico: url("/assets/icons/material/account_tree.svg"); }
.ico-ms-support-agent { --ico: url("/assets/icons/material/support_agent.svg"); }
.ico-ms-visibility { --ico: url("/assets/icons/material/visibility.svg"); }
.ico-ms-forum { --ico: url("/assets/icons/material/forum.svg"); }
.ico-ms-handshake { --ico: url("/assets/icons/material/handshake.svg"); }
.ico-ms-tab-group { --ico: url("/assets/icons/material/tab_group.svg"); }
.ico-ms-verified { --ico: url("/assets/icons/material/verified.svg"); }
.ico-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(47, 134, 208, 0.1);
  color: var(--steel-deep);
}
.accent-green .ico-tile { background: var(--green-dim); color: var(--green); }
.accent-amber .ico-tile { background: var(--amber-dim); color: var(--navy); }

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--steel); color: #fff; box-shadow: 0 14px 34px rgba(47, 134, 208, 0.32); }
.btn-primary:hover { background: var(--steel-deep); box-shadow: 0 18px 40px rgba(47, 134, 208, 0.38); }
.btn-ghost { background: var(--panel); color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-light); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel-deep); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--off); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(232, 237, 245, 0.32); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ——— Шапка ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 249, 252, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, 0.86); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: block; width: auto; height: 56px; max-width: none; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-login:hover { border-color: var(--steel); color: var(--steel-deep); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--navy);
  font-size: 16px;
}

/* ——— Оболочка раздела ——— */
section { padding: 96px 0; }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.section-label i { font-style: normal; padding: 3px 7px; border-radius: 6px; background: rgba(47, 134, 208, 0.1); color: var(--steel-deep); }
.accent-green .section-label { color: var(--green); }
.accent-green .section-label i { background: var(--green-dim); color: var(--green-deep); }
.accent-amber .section-label { color: #9A6200; }
.accent-amber .section-label i { background: var(--amber-dim); color: var(--navy); }
.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
}
.section-lead { margin: 14px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.section-head { margin-bottom: 44px; }

/* ——— Первый экран страницы ——— */
.page-hero { padding: 72px 0 88px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--steel-deep); }
.crumbs span[aria-hidden] { color: var(--line-strong); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--navy);
  text-wrap: balance;
}
.page-hero .lead { margin: 0 0 32px; max-width: 54ch; font-size: 17px; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts-card {
  padding: 34px 30px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(47, 134, 208, 0.09), transparent 52%), #fff;
  box-shadow: var(--shadow-light);
}
.accent-green .facts-card { background: linear-gradient(155deg, rgba(31, 168, 97, 0.1), transparent 52%), #fff; }
.accent-amber .facts-card { background: linear-gradient(155deg, var(--amber-dim), transparent 54%), #fff; }
.facts-card .ico-tile { margin-bottom: 20px; }
.facts-card h2 { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; gap: 12px; }
.facts li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--body); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--steel);
}
.accent-green .facts li::before { background: var(--green); }
.accent-amber .facts li::before { background: var(--amber); }

/* ——— Возможности ——— */
.band { background: var(--panel); border-block: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  padding: 30px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--mist);
}
.card .ico-tile { margin-bottom: 18px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--navy); }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ——— Шаги ——— */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 26px; border-radius: 20px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-light); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.accent-green .step::before { color: var(--green); }
.accent-amber .step::before { color: #9A6200; }
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy); }
.step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.note { margin: 28px 0 0; max-width: 78ch; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ——— Документация и тарифы ——— */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-link {
  display: block;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.doc-link:hover { border-color: var(--steel); transform: translateY(-2px); }
.doc-link b { display: block; margin-bottom: 6px; font-size: 16px; color: var(--navy); }
.doc-link span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.pricing-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px 36px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-light);
}
.pricing-note p { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--body); }
.pricing-note b { color: var(--navy); }

/* ——— Вопросы ——— */
.faq-group { margin-bottom: 52px; }
.faq-group h2 { margin: 0 0 20px; font-size: 24px; font-weight: 700; color: var(--navy); }
.faq-item { margin-bottom: 12px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.faq-item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--steel-deep);
  border-bottom: 2px solid var(--steel-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item .answer { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.faq-item .answer p { margin: 0 0 10px; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer a { color: var(--steel-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ——— Финальный блок ——— */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 82% 18%, rgba(47, 134, 208, 0.34), transparent 62%),
    radial-gradient(ellipse 46% 50% at 8% 92%, rgba(31, 168, 97, 0.16), transparent 60%),
    var(--navy);
  color: #fff;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.cta .section-label { color: var(--steel-soft); }
.cta .section-label i { background: rgba(74, 158, 219, 0.16); color: var(--steel-soft); }
.cta h2 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; color: #fff; text-wrap: balance; }
.cta p { margin: 0 0 32px; max-width: 52ch; font-size: 16.5px; line-height: 1.65; color: rgba(232, 237, 245, 0.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-contacts { display: grid; gap: 22px; margin: 0; padding: 30px 32px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(232, 237, 245, 0.14); }
.cta-contacts dt { margin-bottom: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232, 237, 245, 0.6); }
.cta-contacts dd { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
.cta-contacts a:hover { color: var(--steel-soft); }

/* ——— Подвал ——— */
footer { background: var(--navy-deep); color: rgba(232, 237, 245, 0.72); padding: 76px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px 44px; padding-bottom: 56px; }
.footer-brand-block { max-width: 330px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .wordmark { color: #fff; font-size: 18px; }
.footer-tagline { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(232, 237, 245, 0.62); }
.footer-col h4 { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232, 237, 245, 0.5); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(232, 237, 245, 0.72); transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col .hint { margin: 0 0 6px; font-size: 12px; color: rgba(232, 237, 245, 0.45); }
.footer-col .mail { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: #fff; }
.footer-col .mail:hover { color: var(--steel-soft); }
.footer-requisites { display: block; margin-top: 6px; font-size: 12px; color: rgba(232, 237, 245, 0.45); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 24px 0 30px; border-top: 1px solid rgba(232, 237, 245, 0.12); }
.footer-copy { font-size: 13px; color: rgba(232, 237, 245, 0.55); }
.footer-developer { display: block; margin-top: 10px; }
.footer-developer a { color: rgba(232, 237, 245, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.footer-developer a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-legal a { font-size: 13px; color: rgba(232, 237, 245, 0.55); }
.footer-legal a:hover { color: #fff; }

/* ——— Появление при прокрутке ——— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ——— Адаптив ——— */
@media (max-width: 1080px) {
  .page-hero-grid, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .card-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  section { padding: 64px 0; }
  .page-hero { padding: 40px 0 56px; }
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.open .nav-menu {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 72px;
    padding: 14px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-light);
  }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav.open .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
  }
  .nav.open .nav-links a:hover { background: var(--mist); }
  .nav.open .nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav.open .nav-actions .nav-login { min-height: 52px; width: 100%; justify-content: center; font-size: 18px; }
  .card-grid, .doc-grid, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-contacts { padding: 24px; }
  .pricing-note { padding: 26px 24px; }
  .pricing-note .btn { width: 100%; }
  .facts-card { padding: 28px 24px; }
  .faq-item summary { padding: 18px 48px 18px 18px; font-size: 16px; }
  .faq-item summary::after { right: 18px; }
  .faq-item .answer { padding: 0 18px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer-brand-block { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
