/* Пигмент — студия аэрографии и кузовного ремонта.
   Никаких внешних ресурсов: шрифты системные, графика на CSS. Сайт-заглушка
   обязан открываться даже там, где режут CDN. */

:root {
  --bg: #0b0c0e;
  --surface: #131519;
  --surface-2: #191c22;
  --line: #262a32;
  --text: #e7e9ee;
  --muted: #939aa7;
  --dim: #6a717e;
  --accent: #ff6a2b;
  --accent-soft: rgba(255, 106, 43, 0.12);
  --cool: #4d7cff;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #ffb347, var(--cool), var(--accent));
  box-shadow: 0 0 22px rgba(255, 106, 43, 0.35);
  flex: none;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.logo-text em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }

.nav a { color: var(--muted); transition: color 0.18s; }
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: var(--surface);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

.nav-toggle { display: none; }

/* ---------- герой ---------- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 106, 43, 0.16), transparent 70%),
    radial-gradient(700px 380px at 92% 8%, rgba(77, 124, 255, 0.12), transparent 72%);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 14ch;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: 0.18s;
}

.btn:hover { border-color: var(--dim); background: var(--surface-2); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100c;
  font-weight: 650;
}
.btn-primary:hover { background: #ff8148; border-color: #ff8148; }

.btn-block { width: 100%; text-align: center; }

/* ---------- секции ---------- */

section { padding: 76px 0; border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 40px; max-width: 66ch; }

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.sec-head p { color: var(--muted); margin: 0; }

/* ---------- направления ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.card h3 { margin: 0 0 10px; font-size: 17px; }

.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.card .num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

/* ---------- галерея работ ---------- */

.grid-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.work {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(6, 7, 9, 0.9));
  z-index: -1;
}

.work .body { padding: 20px; }

.work h3 { margin: 0 0 4px; font-size: 16px; }

.work span { font-size: 13px; color: var(--muted); }

/* «Работы» нарисованы градиентами — ни одной картинки в проекте, чтобы
   страница не тянула ничего извне. */
.w1 { background: linear-gradient(135deg, #1b2028, #3d4149 45%, #6d7178); }
.w2 { background: linear-gradient(135deg, #101820, #18406b 50%, #2a7fb8); }
.w3 { background: linear-gradient(135deg, #1d1410, #6b3418 48%, #c9662a); }
.w4 { background: linear-gradient(135deg, #14161a, #2f2a3d 45%, #7a6bb0); }
.w5 { background: linear-gradient(135deg, #0f1614, #1e4a3c 50%, #46a183); }
.w6 { background: linear-gradient(135deg, #1a1216, #5a1f33 46%, #b84a63); }

/* ---------- видеоархив + вход ---------- */

.archive {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.video-list { list-style: none; margin: 0; padding: 0; }

.video-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.video-list li:last-child { border-bottom: 0; }

.thumb {
  width: 78px; height: 50px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(135deg, #22262e, #3a4048);
  position: relative;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-left: 11px solid rgba(231, 233, 238, 0.72);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.video-list .meta { min-width: 0; }
.video-list strong { display: block; font-size: 15px; font-weight: 600; }
.video-list small { color: var(--dim); font-size: 12.5px; }

/* форма входа */

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.auth-card h3 { margin: 0 0 6px; font-size: 18px; }

.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0d0f12;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hint { font-size: 12.5px; color: var(--dim); margin: 16px 0 0; }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 92, 92, 0.34);
  background: rgba(255, 92, 92, 0.09);
  color: #ffb4b4;
}

.alert::before { content: "!"; font-weight: 700; color: #ff7b7b; }

/* ---------- о студии ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.about p { color: var(--muted); margin: 0 0 16px; }

.facts { list-style: none; margin: 0; padding: 0; }

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.facts li span:first-child { color: var(--muted); }

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

footer {
  padding: 40px 0 56px;
  color: var(--dim);
  font-size: 13.5px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--muted); }

/* ---------- страница входа ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(700px 400px at 50% -5%, rgba(255, 106, 43, 0.13), transparent 70%);
}

.auth-page .auth-card { width: 100%; max-width: 410px; }

.back {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--dim);
}
.back:hover { color: var(--muted); }

.brand-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}

.brand-line .logo-mark { width: 24px; height: 24px; }

.brand-line strong { font-size: 15px; letter-spacing: 0.02em; }

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

@media (max-width: 900px) {
  .archive, .about { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 13.5px; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 52px; }
  section { padding: 56px 0; }
  .top { padding: 13px 18px; }
  .wrap { padding: 0 18px; }
}
