/* Сайт A-link-A: тёмно-фиолетовые цвета с лавандой, как у приложения (D-023), логотип заставки (site/splash). */
:root {
  --bg: #110d1c;
  --ink: #f4f1fb;
  --muted: #a59bc0;
  --faint: #6b6285;
  --violet: #6e4fe6;
  --violet2: #8a68f3;
  --lavender: #b9a5ff;
  --card: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1);
}
* { box-sizing: border-box; margin: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 700px at 50% -10%, #261a4d 0%, rgba(17, 13, 28, 0) 65%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "PT Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--lavender); }
.glow {
  position: fixed;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .2;
  z-index: 0;
  pointer-events: none;
}
.glow.violet { background: var(--violet); left: -14vmax; top: 14vh; animation: drift 19s ease-in-out infinite alternate; }
.glow.lavender { background: var(--lavender); right: -14vmax; bottom: 4vh; animation: drift 23s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(6vmax, -4vmax); }
}
main { position: relative; z-index: 1; flex: 1; width: 100%; }
footer {
  position: relative;
  z-index: 1;
  padding: 20px 16px;
  text-align: center;
  color: var(--faint);
  font-size: .85rem;
  letter-spacing: .03em;
}

/* Вход */
main.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 12px 42px rgba(180, 140, 255, .25));
}
.logo.small { width: min(200px, 52vw); margin-bottom: 26px; }
h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 700; line-height: 1.2; }
.lead { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 2.8vw, 1.15rem); line-height: 1.6; }
.lead b { color: var(--ink); font-weight: 600; }
.note {
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.yandex {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin-top: 32px;
  padding: 0 24px 0 8px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.yandex:hover { background: #141414; transform: translateY(-1px); }
.yandex:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.ya { width: 40px; height: 40px; flex: none; }
.hint { margin-top: 18px; color: var(--faint); font-size: .9rem; }

/* Файлы */
.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 13, 28, .6);
}
.brand { display: flex; }
.mark { width: 112px; height: auto; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--muted); font-size: .95rem; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button {
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.who button:hover, .who .btn:hover { background: rgba(255, 255, 255, .1); }
.who .btn {
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .who > span { display: none; }
  /* Три кнопки шапки («Диск», «Пригласить», «Выйти») помещаются на экран телефона в 360 пикселей. */
  .bar { padding: 10px 12px; gap: 10px; }
  .mark { width: 84px; }
  .who { gap: 6px; font-size: .9rem; }
  .who .btn, .who button { padding: 6px 9px; }
}
main.wide { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 18px; color: var(--faint); font-size: 1.1rem; }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.files { display: grid; gap: 8px; padding: 0; list-style: none; }
.files a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.files a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
.badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge.dir { background: rgba(255, 255, 255, .08); color: var(--lavender); }
.badge svg { width: 26px; height: 26px; }
.text { display: flex; flex-direction: column; min-width: 0; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.meta { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.meta.warn { color: #ffb4a2; }
.empty { margin: 24px 4px; color: var(--muted); }

/* Приглашения */
.card {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card.fresh { border-color: rgba(185, 165, 255, .6); }
.card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.card label { display: block; margin-bottom: 10px; font-weight: 600; }
.card .meta { margin-top: 10px; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.card input, .list button, .row button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  color: var(--ink);
  font: inherit;
}
.row input { flex: 1 1 200px; min-width: 0; }
.row button { background: linear-gradient(135deg, var(--violet), var(--violet2)); border: 0; color: #fff; font-weight: 600; cursor: pointer; }
.list button { background: var(--card); cursor: pointer; }
.link {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92rem;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.sub { margin: 26px 4px 12px; font-size: 1rem; color: var(--muted); font-weight: 600; }
.list { display: grid; gap: 8px; padding: 0; list-style: none; }
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
main.wide .note { margin: 0 0 18px; }

/* Копия на Яндекс Диске */
.disk-head { display: flex; align-items: flex-start; gap: 14px; }
.disk-icon { flex: none; width: 48px; height: 48px; }
.disk-head .meta { line-height: 1.5; }
.facts { display: grid; gap: 6px; margin: 16px 0; padding: 0; list-style: none; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }
.facts .warn { color: #ffb4a2; }
.card .yandex { margin-top: 18px; }
.card form { display: contents; }
.row button.quiet { background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  .yandex { transition: none; }
}
