/* Потойбічне сяйво: місячне сяйво з логотипа (лаванда -> крига) + свічкове золото з референсів.
   Фон - нічна слива замість зелено-чорного, текст - теплий айворі. */
:root {
  --night: #140f1c;
  --night-2: #1b1526;
  --plum: #241b32;
  --plum-2: #2e2340;
  --ink: #f4ede3;
  --text: #ddd3e2;
  --muted: #b5aac3;
  --faint: #8c819b;
  --gold: #e9c590;
  --gold-2: #d4a271;
  --moon: #c9b9ff;
  --ice: #c2eaf3;
  --line: rgba(233, 197, 144, 0.20);
  --line-cool: rgba(201, 185, 255, 0.16);
  --card: linear-gradient(160deg, rgba(56, 42, 78, 0.55), rgba(30, 23, 42, 0.55));
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(201, 185, 255, 0.35); color: #fff; }

/* Небо: місячне сяйво згори, свічкове тепло знизу */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 640px at 88% -8%, rgba(140, 116, 230, 0.30), transparent 68%),
    radial-gradient(700px 520px at 8% 4%, rgba(120, 200, 225, 0.10), transparent 70%),
    radial-gradient(900px 700px at 0% 100%, rgba(226, 160, 104, 0.13), transparent 70%),
    linear-gradient(180deg, #17111f 0%, #140f1c 45%, #17111d 100%);
}
.sky i { position: absolute; display: block; border-radius: 50%; }
.sky i.tw { animation: tw 5s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: var(--o, .4); } 50% { opacity: .08; } }
header, main, footer { position: relative; z-index: 1; }

.wrap { width: min(1160px, 100% - 44px); margin-inline: auto; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span {
  font: 400 13px/1.25 var(--sans); letter-spacing: 0.42em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--ice), var(--moon)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.top nav a:not(.btn) { text-decoration: none; transition: color .2s; }
.top nav a:not(.btn):hover { color: var(--ink); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  color: #24182b; background: linear-gradient(135deg, #f5dcb0 0%, #e2b47f 55%, #cf9a68 100%);
  box-shadow: 0 10px 34px rgba(226, 165, 104, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(226, 165, 104, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn svg { flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.line {
  background: rgba(20, 15, 28, 0.35); color: var(--ink); border: 1px solid rgba(233, 197, 144, 0.55);
  box-shadow: none; backdrop-filter: blur(4px);
}
.btn.line:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 197, 144, 0.08); }
.btn.sm { padding: 11px 20px; font-size: 14px; }

/* Заголовки */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 24px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 26px; }
.glow {
  font-style: italic; font-weight: 400; padding-right: .08em;
  background: linear-gradient(100deg, var(--ice) 0%, var(--moon) 55%, #e9cdf3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Арка-дзеркало */
.arch-frame { position: relative; }
.arch-frame::before {
  content: ""; position: absolute; inset: -14px; border-radius: 999px 999px 30px 30px;
  border: 1px solid rgba(233, 197, 144, 0.38); pointer-events: none;
}
.arch-frame::after {
  content: ""; position: absolute; inset: -60px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 122, 235, 0.30), transparent 75%);
}
.arch {
  position: relative; overflow: hidden; border-radius: 999px 999px 20px 20px;
  background: var(--plum); box-shadow: 0 40px 90px rgba(5, 3, 10, 0.55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 15, 28, 0.5), transparent 45%); }

/* Роздільник із зіркою */
.star-rule { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.star-rule::before, .star-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* Поява при прокрутці */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .rise.in { opacity: 1; transform: none; }

footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; justify-content: space-between; }
footer .brand img { height: 38px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .top nav .hide-m { display: none; }
  .brand span { display: none; }
  .brand img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg { transition: none; }
  .sky i.tw { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
}
