/* liil public site — static MVP */

:root {
  --bg: #f7f5f2;
  --bg-elevated: #fffefb;
  --text: #1c1b19;
  --text-muted: #5c5854;
  --accent: #2a6f6b;
  --accent-hover: #1f5552;
  --accent-soft: rgba(42, 111, 107, 0.12);
  --border: #e4e0da;
  --warning-bg: #faf6ed;
  --warning-border: #d9c89a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(28, 27, 25, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 52rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --bg-elevated: #1c1b19;
    --text: #f2efe9;
    --text-muted: #a39e97;
    --accent: #5cb3ad;
    --accent-hover: #7ec9c4;
    --accent-soft: rgba(92, 179, 173, 0.15);
    --border: #353330;
    --warning-bg: #252218;
    --warning-border: #6a5c3a;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  flex: 1;
  min-width: 0;
}

.site-header__end .lang-switch {
  margin-left: auto;
}

.site-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Home hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover:not([aria-disabled="true"]) {
  background: var(--accent-hover);
  color: #fff;
}

.btn--primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.compare {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  margin-top: 1rem;
}

.compare ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.disclaimer strong {
  color: var(--text);
}

/* Inner pages */
.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.page-header .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-block {
  margin-bottom: 2rem;
}

.article-block h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.article-block p,
.article-block li {
  color: var(--text-muted);
}

.article-block ul {
  padding-left: 1.25rem;
}

.notice {
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* i18n: one visible locale per html.lang-* */
.i18n {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

html.lang-ru .i18n--ru,
html.lang-en .i18n--en {
  display: flex;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.lang-switch__btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
}

.lang-switch__btn:hover {
  color: var(--accent);
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
