/* ИИ. Сталин — istalin.com. Палитра "Сталь и латунь" (владелец 03.10.2026). Тёмная тема единственная.
   Каркас (шапка, кнопки, подвал, блок .soon) повторяет vlenin.com, цвета и фон — свои. */

:root {
  --bg-0: #121519;
  --bg-1: #1A1F25;
  --steel: #2A323C;
  --accent: #C9A45C;
  --accent-hi: #DDBC78;
  --on-accent: #15130F;
  --paper: #EDE6D6;
  --paper-dim: #A9ADB2;
  --line: rgba(237, 230, 214, 0.13);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-0);
  /* фон: тонкая латунная сетка, гаснущая к краям, и холодная дымка сверху — вместо звёзд Ленина */
  background-image:
    radial-gradient(ellipse 70% 55% at 70% 0%, rgba(74, 92, 112, 0.28) 0%, transparent 70%),
    linear-gradient(rgba(201, 164, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, 0.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, -1px -1px, -1px -1px;
  background-attachment: fixed;
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- шапка ---------- */

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 21, 25, 0.82);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px;
  text-decoration: none;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* "печатает" — три латунные точки волной, как у vlenin.com */
.typing-dots { display: inline-flex; gap: 3px; margin-left: 9px; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none;
  animation: typing-wave 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- кнопки ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(221, 188, 120, 0.35), 0 14px 34px -16px rgba(201, 164, 92, 0.6);
}

.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hi); }

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small { padding: 8px 16px; font-size: 15px; }

/* ---------- анонс ---------- */

.soon-page { padding-top: 40px; padding-bottom: 56px; }

.soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.soon-portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(201, 164, 92, 0.32);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.soon-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
  color: var(--paper);
}

.lead {
  color: var(--paper-dim);
  font-size: 18px;
  max-width: 44ch;
  margin: 0 0 28px;
}

.soon-note { color: var(--paper-dim); font-size: 15px; margin: 14px 0 0; max-width: 46ch; }

.soon-back {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
}

.soon-back a { color: var(--accent); text-underline-offset: 3px; }
.soon-back a:hover, .soon-back a:focus-visible { color: var(--accent-hi); }

/* ---------- 404 ---------- */

.notfound { padding: 64px 0 80px; max-width: 64ch; }
.notfound h1 { font-size: clamp(32px, 4.4vw, 48px); }
.notfound p { color: var(--paper-dim); }

/* ---------- подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: rgba(18, 21, 25, 0.82);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--paper-dim);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer-links a { color: var(--paper-dim); text-decoration: none; }

.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }

/* цель нажатия не меньше 24px (WCAG 2.5.8) */
.site-footer a { display: inline-block; padding: 4px 0; min-height: 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- адаптив ---------- */

@media (max-width: 760px) {
  .soon-page { padding-top: 24px; padding-bottom: 40px; }
  .soon { grid-template-columns: 1fr; gap: 24px; }
  .soon-portrait { max-width: 420px; margin: 0 auto; }
  .soon .cta-row .btn { width: 100%; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header { padding: 16px 0; }
  .brand { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .header-actions .btn-small { padding-left: 12px; padding-right: 12px; font-size: 14px; white-space: nowrap; }
  h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  /* портрет — полоса лица, чтобы кнопка была ближе к первому экрану */
  .soon-portrait { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
  .btn { width: 100%; }
}

@media (max-width: 359px) {
  .brand .typing-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- политика конфиденциальности ---------- */

.legal { padding: 56px 0 72px; max-width: 76ch; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--paper-dim); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-family: "Inter", system-ui, sans-serif; font-size: 21px; margin: 36px 0 12px; }
.legal p { color: var(--paper-dim); font-size: 16px; }
.legal a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
