/* Musaev Marketing · сайт v3 · общая основа: шрифты, цвета, шапка, кнопка.
   Цвета: ночь (тёмная основа), бумага (текст), золото (свет в окнах и одно действие). */
@import url("../fonts/fonts.css");

:root {
  --night: #090a0e;
  --night-2: #10121a;
  --night-3: #181b25;
  --paper: #f3efe6;
  --paper-2: #cfc9bb;
  --muted: #9a9588;
  --gold: #d9b45f;
  --gold-hot: #ffd98a;
  --gold-deep: #9a7b2f;
  --line: rgba(243, 239, 230, 0.14);
  --line-strong: rgba(217, 180, 95, 0.55);
  --display: "Forum", "Times New Roman", serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4.4vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--paper);
  font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure { margin: 0; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-hot); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--night); }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.label { font: 500 13px/1.3 var(--text); letter-spacing: 0.08em; color: var(--paper-2); }

/* шапка: логотип и, на внутренних страницах, язык */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.2vw, 28px) var(--pad); pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand span { font: 400 17px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 520px) { .brand img { height: 26px; } .brand span { font-size: 14px; letter-spacing: 0.12em; } }

/* одно действие */
.cta {
  display: inline-flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 28px 0 30px;
  background: var(--gold); color: #14110a; font: 600 17px/1 var(--text); letter-spacing: 0.005em;
  border-radius: 3px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-hot);
  transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.cta:hover::before, .cta:focus-visible::before { transform: translateY(0); }
.cta svg { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease-out); }
.cta:hover svg { transform: translateX(5px); }
.cta:active { transform: scale(0.98); }
@media (max-width: 520px) { .cta { min-height: 56px; font-size: 16px; padding: 0 22px 0 24px; width: 100%; justify-content: space-between; } }

/* зерно плёнки: одна маленькая картинка-шум на весь экран, без анимации слоя */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* строки заголовка выезжают из-под маски: .ln > span */
.ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ln > span { display: block; transform: translateY(110%); }
.is-in .ln > span { transform: none; transition: transform 1.1s var(--ease-out); }
.is-in .ln:nth-child(2) > span { transition-delay: 0.08s; }
.is-in .ln:nth-child(3) > span { transition-delay: 0.16s; }
.is-in .ln:nth-child(4) > span { transition-delay: 0.24s; }
.fade { opacity: 0; transform: translateY(14px); }
.is-in .fade { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s; }
.is-in .fade.d2 { transition-delay: 0.25s; }
.is-in .fade.d3 { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .ln > span, .fade { transform: none !important; opacity: 1 !important; transition: none !important; }
  .cta, .cta::before, .cta svg { transition: none; }
}
