:root {
  --bg: #0b1014;
  --bg-2: #0f171c;
  --surface: rgba(18, 26, 31, 0.72);
  --surface-solid: #131c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --gold: #e0ae55;
  --gold-2: #f3cd85;
  --gold-soft: rgba(224, 174, 85, 0.14);
  --text: #eef2ef;
  --muted: #93a4a6;
  --danger: #ff8a73;
  --ok: #8fd19e;
  --blue: #7fb4d8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(224, 174, 85, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(127, 180, 216, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(143, 209, 158, 0.18); flex: none; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 16, 20, 0.66);
  border-bottom: 1px solid var(--line);
}

.topbar-in, .hero-in, .layout, .foot-in {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand .emblem { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.brand.small .emblem { width: 28px; height: 28px; }
.brand span { font: 700 21px "Cormorant Garamond", Georgia, serif; }
.brand.small span { font-size: 18px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-weight: 600; font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.pill:hover { border-color: var(--gold); background: var(--gold-soft); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; padding: 72px 0 88px; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 16, 20, 0.97) 0%, rgba(11, 16, 20, 0.86) 42%, rgba(11, 16, 20, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%),
    url("/assets/shots/hero.jpg") center 35% / cover no-repeat;
}

.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px); gap: 56px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: #d9e2de;
}

h1 { margin: 0; }
h1.logo { margin: 18px 0 20px -10px; line-height: 0; }
h1.logo img {
  width: min(430px, 100%); height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 22px rgba(224, 174, 85, 0.08));
}

.lead { max-width: 600px; margin: 0 0 32px; font-size: 18px; color: #cfd9d5; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  font: 600 15px Inter, sans-serif; cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s, border-color 0.15s, filter 0.15s;
}
.btn:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .tabs button:focus-visible, input:focus-visible, .peek:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn.primary {
  border-color: transparent; color: #17130b;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 24px rgba(224, 174, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 12px 32px rgba(224, 174, 85, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.btn.big { min-height: 60px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.big span { display: grid; text-align: left; line-height: 1.2; }
.btn.big small { font-weight: 500; font-size: 12px; opacity: 0.72; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.disabled { opacity: 0.55; cursor: default; }

.hint { margin: 16px 0 0; max-width: 560px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- glass card + auth */

.glass {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.auth { padding: 22px; }

.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); border-radius: 12px;
}
.tabs button {
  position: relative; z-index: 1;
  height: 40px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 15px Inter, sans-serif; border-radius: 9px;
  transition: color 0.2s;
}
.tabs button[aria-selected="true"] { color: #17130b; }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 9px; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 14px rgba(224, 174, 85, 0.3);
  transition: transform 0.28s var(--ease);
}
.auth[data-active="register"] .tab-ink { transform: translateX(100%); }
.no-js .tab-ink { display: none; }
.no-js .tabs button { color: var(--text); }

.panel { display: grid; gap: 14px; animation: rise 0.28s var(--ease); }
.panel[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }

input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35); color: var(--text);
  font: 15px Inter, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder { color: #5f6f72; }
input:hover { border-color: rgba(255, 255, 255, 0.22); }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: rgba(0, 0, 0, 0.45); }

.secret { position: relative; display: block; }
.secret input { padding-right: 46px; }
.peek {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
}
.peek:hover, .peek[aria-pressed="true"] { color: var(--gold-2); background: rgba(255, 255, 255, 0.06); }
.peek .icon { width: 18px; height: 18px; }
.no-js .peek { display: none; }

.switch { margin: 2px 0 0; text-align: center; }
.fineprint { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }

.alert { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.alert.err { color: #ffd6cc; background: rgba(255, 138, 115, 0.12); border: 1px solid rgba(255, 138, 115, 0.35); }
.alert.ok { color: #d6f3dc; background: rgba(143, 209, 158, 0.12); border: 1px solid rgba(143, 209, 158, 0.35); }

.account { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.account p { margin: 0; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font: 700 26px "Cormorant Garamond", Georgia, serif; color: #17130b;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.who { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.auth form + form, .auth > .muted { margin-top: 0; }
.auth > .muted { margin-bottom: 16px; }

/* ---------------------------------------------------------------- content + side */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 56px; }

.block { padding: 8px 0 48px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.block h2 { margin: 0 0 22px; font: 700 clamp(30px, 3.4vw, 40px)/1.1 "Cormorant Garamond", Georgia, serif; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature {
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.feature:hover { border-color: rgba(224, 174, 85, 0.4); transform: translateY(-2px); }
.feature .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--gold-2); background: var(--gold-soft); }
.feature h3 { margin: 14px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-2); }
.shot.wide-shot { grid-column: span 3; aspect-ratio: 21 / 8; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(11, 16, 20, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 52px 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  display: grid; gap: 4px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #17130b; background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }

.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.card { padding: 18px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); }
.card h2 { margin: 0; font: 700 24px "Cormorant Garamond", Georgia, serif; color: var(--gold-2); }
.card h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(143, 209, 158, 0.1); color: var(--ok); border: 1px solid rgba(143, 209, 158, 0.3); }
.badge .dot { width: 6px; height: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(143, 209, 158, 0); } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.stats div { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); min-width: 0; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stage { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.stage .small { display: block; line-height: 1.4; margin-top: 2px; }
.mark { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--muted); }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; margin-top: 1px; color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.stage.done .mark { border-color: var(--ok); background: var(--ok); }
.stage.done .tag { color: var(--ok); background: rgba(143, 209, 158, 0.12); }
.stage.test .mark { border-color: var(--blue); background: rgba(127, 180, 216, 0.35); }
.stage.test .tag { color: var(--blue); background: rgba(127, 180, 216, 0.12); }
.stage.work .mark { border-color: var(--gold); background: conic-gradient(var(--gold) 0 50%, transparent 0); }
.stage.work .tag { color: var(--gold-2); background: var(--gold-soft); }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.log time { color: var(--gold); font-size: 12px; font-weight: 600; padding-top: 2px; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-bg { background:
    linear-gradient(180deg, rgba(11, 16, 20, 0.7) 0%, rgba(11, 16, 20, 0.94) 55%, var(--bg) 100%),
    url("/assets/shots/hero.jpg") center top / cover no-repeat; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .pill { margin-left: auto; }
  .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .shot.wide-shot { grid-column: auto; aspect-ratio: 16 / 10; }
  .cta .btn { width: 100%; }
  .lead { font-size: 16px; }
  h1.logo img { width: min(320px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
