/*
  ========================================
  КрайКарт — files.kraikart.ru
  Статический лендинг установщика.
  Палитра и типографика — 1:1 из frontend/assets/css/tailwind.css
  (тёмная тема, акцент sky-500, шрифт Inter self-hosted).
  ========================================
*/

/* ========================================
  INTER (SELF-HOSTED)
  ======================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/Inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-2FE2F, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/Inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0483-0487, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/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;
}

/* ========================================
  БАЗА
  ======================================== */

:root {
  --bg: #050810;
  --surface: rgba(15, 22, 38, 0.55);
  --surface-hover: rgba(15, 22, 38, 0.7);
  --border: rgba(148, 163, 184, 0.1);
  --border-strong: rgba(148, 163, 184, 0.2);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-soft: #38bdf8;
  --primary-100: #e0f2fe;
}

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

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Мягкое голубое свечение за шапкой — отсылка к hero на главной */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 32rem at 50% -12rem, rgba(14, 165, 233, 0.16), transparent 65%),
    radial-gradient(40rem 24rem at 85% 10%, rgba(52, 211, 153, 0.07), transparent 70%);
}

/* ========================================
  ШАПКА
  ======================================== */

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 8, 16, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
}

/* Логотип-текст — те же стили, что в components/ui/BrandLogo.vue */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  font-size: 22px;
}

.brand-logo__k {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo__k::after {
  content: '';
  position: absolute;
  bottom: 6%;
  right: -8%;
  width: 16%;
  height: 16%;
  background: #7dd3fc;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.brand-logo__rest { color: #ffffff; }
.brand-logo__dot { color: #38bdf8; margin: 0 2px; }
.brand-logo__last { color: #94a3b8; font-weight: 600; }

.header-domain {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.5);
}

/* ========================================
  HERO
  ======================================== */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-soft);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.title {
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.title-accent {
  background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 60%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: balance;
}

/* ========================================
  КНОПКИ
  ======================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 500;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.25);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

.btn--secondary {
  background: rgba(15, 22, 38, 0.7);
  color: var(--text-primary);
  border-color: var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn--secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
  font-size: 14px;
  padding: 10px 18px;
}

.btn--ghost:hover {
  color: var(--primary-soft);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 22, 38, 0.4);
}

/* Третья кнопка — отдельная, ниже основных */
.maps-link {
  margin-top: 4px;
}

/* ========================================
  МЕТАДАННЫЕ
  ======================================== */

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 30px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

/* ========================================
  ПОДВАЛ
  ======================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-inner a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .2s;
}

.footer-inner a:hover {
  color: var(--primary-soft);
}

/* ========================================
  АДАПТИВ
  ======================================== */

@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }
  .header-domain { display: none; }
  .actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .btn--ghost { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
