:root {
  --page: #e9eaec;
  --app: #ffffff;
  --text: #3c3c3c;
  --muted: #6a6a6a;
  --faint: #696969;
  --link: #0857a6;
  --line: #dcdee2;
  --line-2: #c9ccd1;
  --panel: #f4f5f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--page);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
/* 16px prevents automatic field zoom in iOS; keep native controls readable. */
body .app input:is([type="text"], [type="password"], [type="email"]),
body .app textarea, body .app select { font-size: 16px; }

.app {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  background: var(--app);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}

/* шапка */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; font-size: 1.12rem; line-height: 0; }
.logo { display: block; height: .773em; width: 5.574em; }
.logo-dot {
  transform-box: fill-box; transform-origin: center;
  animation: heartbeat 2.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: .8; }
  12% { transform: scale(1.3); opacity: 1; }
  24% { transform: scale(1); opacity: .85; }
  36% { transform: scale(1.18); opacity: 1; }
  52% { transform: scale(1); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-dot { animation: none; opacity: 1; }
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line);
  padding: .2rem .45rem;
}

main { flex: 1; padding: 1.15rem 1.15rem 1.5rem; display: flex; flex-direction: column; gap: 1.15rem; }

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .55rem;
}

/* список сервисов */
.list { list-style: none; border: 1px solid var(--line); }
.list li + li { border-top: 1px solid var(--line); }
.list a {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem .95rem;
  font-size: .9rem; font-weight: 500;
  color: var(--link);
  transition: background .15s;
}
.list a:hover, .list a:active { background: var(--panel); }
.list a:hover .arr { border-color: var(--link); }
.arr {
  width: 6px; height: 6px; flex: none;
  border-right: 1.5px solid var(--line-2);
  border-bottom: 1.5px solid var(--line-2);
  transform: rotate(-45deg);
  transition: border-color .15s;
}

/* полная версия */
.full {
  display: block;
  text-align: center;
  font-size: .85rem; font-weight: 500;
  color: var(--muted);
  padding: .75rem;
  border: 1px solid var(--line);
  transition: color .15s, border-color .15s, background .15s;
}
.full:hover, .full:active { color: var(--link); border-color: var(--line-2); background: var(--panel); }

/* формы */
.form { display: flex; flex-direction: column; gap: .55rem; }
.form select {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: .88rem; color: var(--text);
  padding: .6rem .7rem;
  -webkit-appearance: none; appearance: none;
  border-radius: 0;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
                    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field { display: flex; align-items: center; border: 1px solid var(--line); }
.field-cap {
  width: 100px; flex: none;
  padding: .8rem .7rem;
  font-size: .76rem; color: var(--muted);
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: .88rem; color: var(--text);
  padding: .6rem .7rem;
}
.field-out {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: .88rem; color: var(--text);
  padding: .6rem .7rem;
}
.field:focus-within { border-color: var(--link); }
.field input::placeholder { color: var(--faint); }

.check { display: flex; align-items: center; gap: .45rem; min-height: 32px; font-size: .78rem; color: var(--muted); cursor: pointer; }
.check input { width: 13px; height: 13px; accent-color: var(--link); }

.btn {
  font: inherit; font-size: .85rem; font-weight: 500;
  padding: .65rem 1rem;
  border: 1px solid var(--link);
  background: var(--link); color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #06457f; border-color: #06457f; }
.btn-flat { background: none; color: var(--link); border-color: var(--line); flex: none; }
.btn-flat:hover { background: var(--panel); color: var(--link); border-color: var(--line-2); }

.search { display: flex; border: 1px solid var(--line); }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: .88rem; color: var(--text);
  padding: .6rem .7rem;
}
.search input::placeholder { color: var(--faint); }
.search:focus-within { border-color: var(--link); }
.search .btn-flat { border: 0; border-left: 1px solid var(--line); }

/* категории рейтинга */
.cats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .05rem 0;
  margin-bottom: .8rem;
}
.cats a {
  display: block;
  padding: .35rem .45rem;
  font-size: .82rem;
  color: var(--link);
  transition: background .15s;
}
.cats a:hover, .cats a:active { background: var(--panel); }

/* счётчик LiveInternet 88x31 */
.counter { align-self: center; margin-top: auto; display: block; }
.counter img { display: block; }

/* подвал */
.foot {
  border-top: 1px solid var(--line);
  padding: .9rem 1.15rem 1.15rem;
  display: flex; flex-direction: column; gap: .45rem;
  background: var(--panel);
}
.foot-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.foot-links a { font-size: .76rem; color: var(--link); }
.foot-links a:hover, .foot-links a:active { text-decoration: underline; }
.copy { font-family: 'JetBrains Mono', monospace; font-size: .64rem; color: var(--faint); }

/* Страницы занимают ширину окна; прокручивается документ, а не рамка телефона. */
