/* Landing page styles for hrhirebot.ru and dovodhr.ru.
 *
 * The visual language comes from the two visual-builder mock-ups (landing/pc.html
 * and landing/mobil.html). Their per-element styling is inline in the markup —
 * that IS the design, so it stayed there. This file holds only what has to be
 * global: the font faces, the six custom properties the markup actually reads,
 * base element styling, the two form classes it uses, keyframes, and the rules
 * that switch between the desktop and mobile layers.
 *
 * The export shipped a full design system (buttons, cards, tables, dialogs,
 * tags, ~200 lines) that the markup never referenced — only .field and .input
 * are real. It is not reproduced here.
 *
 * Hover states live in hover.css, generated by scripts/build_landing.py.
 */

/* ── Inter, self-hosted ──────────────────────────────────────────────────────
 * One variable woff2 per unicode-range subset. The export declared each file
 * four times, once per weight; a variable font needs a single declaration with
 * a weight range, which cuts 28 @font-face blocks down to 7.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lp/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────────────────────
 * Exactly the six the markup reads through var(), plus the accent used below for
 * carets, focus rings and selection.
 */
:root {
  --color-bg: #111111;
  --color-surface: #1a1a1a;
  --color-text: #f5f5f5;
  --color-divider: #2a2a2a;
  --color-accent: #3b82f6;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-md: 0 0 0 1px #2a2a2a, 0 6px 22px rgba(0, 0, 0, 0.55);
}

/* ── Base ───────────────────────────────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: #60a5fa;
  text-decoration: none;
}
a:hover {
  color: #34d399;
}
* {
  -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
}
::selection {
  background: rgba(37, 99, 235, 0.35);
}
:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

/* The layouts style nearly every block inline, and an inline `display` outranks
 * the browser's default `[hidden] { display: none }`. Without this, everything
 * the JS hides — quiz screens, the mobile menu, the sticky CTA, collapsed FAQ
 * answers — stays on screen with the attribute quietly set. */
[hidden] {
  display: none !important;
}

/* ── Form controls ─────────────────────────────────────────────────────────
 * The only two design-system classes the markup uses.
 */
.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
}
.input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

/* ── Motion ────────────────────────────────────────────────────────────────*/
@keyframes dv-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dv-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes dv-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}
@keyframes dv-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Horizontal card reels on mobile: swipe, no visible scrollbar. */
.dv-reel::-webkit-scrollbar {
  height: 0;
}

/* Not in the mock-up, but the live-dot and slide-up run indefinitely: honour a
 * reduced-motion preference instead of pulsing at people who asked us not to. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Film-grain overlay over the whole page. The export's own copy never rendered:
 * its exporter kebab-cased baseFrequency/numOctaves, so feTurbulence fell back
 * to a frequency of 0 and produced nothing. Attribute names restored here. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layer switching ───────────────────────────────────────────────────────
 * Desktop and mobile are two separately composed layouts, both present in the
 * document; the viewport picks one. 760px is the mock-up's own breakpoint — the
 * desktop export used it as the boundary of its "mobile" overrides, which the
 * mobile layer now replaces outright.
 */
.lp-mobile {
  display: none;
}

@media (max-width: 760px) {
  .lp-desktop {
    display: none;
  }
  .lp-mobile {
    display: block;
  }
}

/* Between 760px and 1100px the desktop layout holds, but the inline nav no
 * longer fits next to the phone number and CTA. */
@media (max-width: 1100px) {
  .lp-desktop header nav {
    display: none;
  }
}
