/* Atrooms — визитка atrooms.ru: та же палитра и шрифт, что у приложения; светлая/тёмная тема (data-theme ставит js/theme.js). */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef;
  --bg-2: #ecebe6;
  --card: #ffffff;
  --line: #e3e1da;
  --text: #1d2321;
  --text-2: #5d6662;
  --text-3: #8b928e;
  --accent: #1f6f64;
  --accent-2: #2a8a7c;
  --accent-soft: #dcece8;
  --on-accent: #ffffff;
  --ok: #2f8a4c;
  --ok-soft: #e1f2e6;
  --warn: #a8761a;
  --warn-soft: #fbf0d6;
  --danger: #c93f3f;
  --service: #fff6d8;
  --shadow: 0 1px 2px rgba(30, 35, 33, .05), 0 12px 40px rgba(30, 35, 33, .08);
  --glow: radial-gradient(1200px 520px at 78% -10%, rgba(42, 138, 124, .16), transparent 60%),
          radial-gradient(800px 420px at -10% 20%, rgba(201, 150, 43, .10), transparent 60%);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121514;
  --bg-2: #0e1110;
  --card: #1a1e1d;
  --line: #262b29;
  --text: #e7ebe9;
  --text-2: #a3aca8;
  --text-3: #6f7874;
  --accent: #3fae9c;
  --accent-2: #56c2b0;
  --accent-soft: #1d302c;
  --on-accent: #0c1513;
  --ok: #58b878;
  --ok-soft: #17291e;
  --warn: #d8a648;
  --warn-soft: #2b2414;
  --danger: #e26a6a;
  --service: #2b2614;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px rgba(0, 0, 0, .35);
  --glow: radial-gradient(1200px 520px at 78% -10%, rgba(63, 174, 156, .14), transparent 60%),
          radial-gradient(800px 420px at -10% 20%, rgba(216, 166, 72, .06), transparent 60%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  transition: background .25s, color .25s;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .theme-btn:focus-visible, .top-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 16px; font-weight: 750;
  color: #fff; background: linear-gradient(135deg, #1f6f64, #2a8a7c); box-shadow: 0 4px 12px rgba(31, 111, 100, .3); }
.brand.small { font-size: 15px; gap: 8px; }
.brand.small .brand-mark { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
.top-nav { display: flex; gap: 4px; margin-left: 12px; }
.top-nav a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 520; }
.top-nav a:hover { color: var(--text); background: var(--bg-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--text-2); cursor: pointer; }
.theme-btn:hover { color: var(--text); border-color: var(--accent); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }

/* первый экран */
.hero { background: var(--glow); padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 760; }
.lead { margin-top: 22px; font-size: 18.5px; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* рисунок приложения — только CSS */
.hero-art { position: relative; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; }
.app-card:hover { transform: none; }
.app-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.app-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.app-title { margin-left: 8px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.app-body { display: grid; grid-template-columns: 42% 58%; min-height: 330px; }
.app-list { border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.app-list .row { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 11px; }
.app-list .row.on { background: var(--accent-soft); }
.ava { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.ava.sq { border-radius: 10px; }
.ava.a1 { background: #6b7fb8; } .ava.a2 { background: #4f9a8b; border-radius: 10px; } .ava.a3 { background: #b07a4f; }
.ava.red { background: var(--danger); }
.lines { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lines b, .lines i { display: block; height: 7px; border-radius: 6px; background: var(--line); }
.lines b { width: 70%; background: color-mix(in srgb, var(--text-3) 45%, var(--line)); }
.lines i { width: 92%; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.app-thread { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.svc { align-self: center; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; background: var(--service); color: var(--warn); font-weight: 600; }
.bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.bubble span { display: block; height: 7px; width: 150px; max-width: 100%; border-radius: 6px; background: color-mix(in srgb, var(--text-3) 35%, transparent); }
.bubble span.short { width: 90px; }
.bubble.other { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 5px; }
.bubble.me span { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.composer { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.composer span { flex: 1; height: 7px; border-radius: 6px; background: var(--line); }
.composer i { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); }

/* секции */
section { padding: 88px 0; }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 740; }
.sec-sub { margin-top: 12px; color: var(--text-2); font-size: 17px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.card h3 { font-size: 19px; font-weight: 680; margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill { position: absolute; top: 26px; right: 22px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 99px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.soon { position: static; display: inline-block; background: var(--warn-soft); color: var(--warn); }
.soon-word { color: var(--warn); font-weight: 600; }

.trust { background: var(--bg-2); }
.trust-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { padding: 18px 20px 18px 54px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text-2); }
.trust-list li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.trust-list li::after { content: ""; position: absolute; left: 26px; top: 25px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trust-list b { color: var(--text); font-weight: 650; }

.soon-card { background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--bg))); border-style: dashed; }
.soon-card h3 { margin-top: 14px; }

.final { padding: 72px 0 96px; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 24px;
  background: linear-gradient(135deg, #1f6f64, #2a8a7c); color: #fff; box-shadow: 0 20px 60px rgba(31, 111, 100, .3); }
.final-in h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 740; }
.final-in .btn.primary { background: #fff; border-color: #fff; color: #1f6f64; box-shadow: none; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in a { margin-left: auto; color: var(--text-2); text-decoration: none; }
.foot-in a:hover { color: var(--accent); }

/* планшет и телефон */
@media (max-width: 980px) {
  .hero-in, .trust-in { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .app-card { transform: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { height: 58px; gap: 10px; }
  .top-nav { display: none; }
  .top-right .btn { height: 38px; padding: 0 14px; }
  .theme-btn { width: 38px; height: 38px; }
  .hero { padding: 40px 0 56px; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .app-body { min-height: 260px; grid-template-columns: 1fr; }
  .app-list { display: none; }
  section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .card { padding: 22px 20px 20px; }
  .pill { top: 22px; right: 18px; }
  .final-in { padding: 28px 24px; }
  .final-in .btn { width: 100%; }
  .foot-in a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
