/* Copyright (c) 2026 MallyDev. All rights reserved. Unauthorized copying, modification, or distribution of this file is strictly prohibited. */

:root {
  --bg:      #0a0a0a;
  --bg-2:    #0f0f0f;
  --surface: #141414;
  --border:  #1f1f1f;
  --border-2:#2a2a2a;
  --text:    #d4cfc8;
  --text-2:  #8a847c;
  --text-3:  #5a5550;
  --gold:    #b8a07a;
  --gold-2:  #8c7a5e;
  --gold-dim:rgba(184,160,122,.08);
  --red:     #6b2020;
  --heading: "Cinzel", serif;
  --display: "Cinzel Decorative", serif;
  --body:    "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter", sans-serif;
  --mono:    "JetBrains Mono", monospace;
  --frame:   6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(184,160,122,.2); color: #fff; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.frame {
  position: fixed; z-index: 9998; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.99), rgba(44,44,44,.94), rgba(0,0,0,.99)),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px, transparent 15px 28px),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 16%, transparent 84%, rgba(255,255,255,.16));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.9),
    0 0 18px rgba(0,0,0,.38);
}
.frame--t, .frame--b { left: 0; right: 0; height: var(--frame); }
.frame--l, .frame--r { top: 0; bottom: 0; width: var(--frame); }
.frame--t { top: 0; }
.frame--b { bottom: 0; }
.frame--l, .frame--r {
  background:
    linear-gradient(180deg, rgba(0,0,0,.99), rgba(44,44,44,.94), rgba(0,0,0,.99)),
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px, transparent 15px 28px),
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 16%, transparent 84%, rgba(255,255,255,.16));
}
.frame--l { left: 0; }
.frame--r { right: 0; }
.frame--t::before, .frame--b::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), rgba(247,247,247,.95), rgba(255,255,255,.42), transparent);
  clip-path: polygon(0 58%, 8% 58%, 14% 34%, 20% 58%, 28% 58%, 36% 12%, 50% 0, 64% 12%, 72% 58%, 80% 58%, 86% 34%, 92% 58%, 100% 58%, 92% 68%, 86% 62%, 80% 88%, 72% 62%, 64% 62%, 50% 100%, 36% 62%, 28% 62%, 20% 88%, 14% 62%, 8% 68%, 0 68%);
  opacity: .92;
}
.frame--t::after, .frame--b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), rgba(255,255,255,.16), rgba(255,255,255,.7), transparent);
}
.frame--l::before, .frame--r::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 168px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.42), rgba(247,247,247,.92), rgba(255,255,255,.42), transparent);
  clip-path: polygon(42% 0, 58% 0, 58% 8%, 74% 14%, 58% 22%, 58% 38%, 100% 50%, 58% 62%, 58% 78%, 74% 86%, 58% 92%, 58% 100%, 42% 100%, 42% 92%, 26% 86%, 42% 78%, 42% 62%, 0 50%, 42% 38%, 42% 22%, 26% 14%, 42% 8%);
  opacity: .84;
}

.corner {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 56px; height: 56px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,.28));
}
.corner::before, .corner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.corner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M4 52V4H52' stroke='%23f5f5f5' stroke-opacity='.78' stroke-width='1.25'/%3E%3Cpath d='M12 44V18L18 12H44' stroke='%23f5f5f5' stroke-opacity='.58' stroke-width='1.05'/%3E%3Cpath d='M18 12L28 4L38 12' stroke='%23f5f5f5' stroke-opacity='.52' stroke-width='1.05'/%3E%3Cpath d='M12 44H20L28 36L36 44H44' stroke='%23f5f5f5' stroke-opacity='.46' stroke-width='1.05'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23f5f5f5' fill-opacity='.84'/%3E%3C/svg%3E");
}
.corner::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M10 46V22L22 10H46' stroke='%23ffffff' stroke-opacity='.28' stroke-width='0.9'/%3E%3Cpath d='M18 38L28 28L38 38' stroke='%23ffffff' stroke-opacity='.24' stroke-width='0.9'/%3E%3C/svg%3E");
}

.corner--tl { top: calc(var(--frame) + 6px); left: calc(var(--frame) + 6px); }
.corner--tr { top: calc(var(--frame) + 6px); right: calc(var(--frame) + 6px); transform: rotate(90deg); }
.corner--bl { bottom: calc(var(--frame) + 6px); left: calc(var(--frame) + 6px); transform: rotate(-90deg); }
.corner--br { bottom: calc(var(--frame) + 6px); right: calc(var(--frame) + 6px); transform: rotate(180deg); }

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 24px 0;
}
.divider--sm { margin: 0 0 16px; }
.div-line { flex: 0 0 60px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-2), transparent); }
.div-orn {
  color: var(--gold-2); font-size: .7rem; line-height: 1;
  animation: spin-slow 20s linear infinite;
}
.div-orn--sm { font-size: .55rem; }

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1);
}
.rv.vis { opacity: 1; transform: none; }
.rv--d1 { transition-delay: .12s; }
.rv--d2 { transition-delay: .24s; }
.rv--d3 { transition-delay: .36s; }

.nav {
  position: fixed; top: var(--frame); left: var(--frame); right: var(--frame);
  z-index: 1000;
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 64px; gap: 20px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-mark {
  height: 44px; width: auto; display: block;
  filter: brightness(1.15) contrast(1.08) drop-shadow(0 0 10px rgba(255,255,255,.08));
  transition: filter .2s, transform .2s;
}
.nav-logo:hover .nav-mark {
  filter: brightness(1.22) contrast(1.1) drop-shadow(0 0 14px rgba(255,255,255,.12));
  transform: translateY(-1px);
}
.nav-links {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(20px, 4vw, 44px); margin-left: auto; flex: 1;
}
.nav-links a {
  font-family: var(--heading); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0;
}
.nav-ext {
  color: var(--text-3); display: flex; align-items: center;
  transition: color .2s;
}
.nav-ext:hover { color: var(--gold); }
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; position: relative; margin-left: auto;
}
.burger span {
  display: block; position: absolute; left: 4px; right: 4px; height: 1px;
  background: var(--text-2); transition: transform .25s;
}
.burger span:first-child { top: 10px; }
.burger span:last-child  { top: 17px; }
.burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(184,160,122,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-wrap { position: relative; }

.arch {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 170px;
  color: var(--border);
  opacity: .4;
  pointer-events: none;
}
.arch-svg { width: 100%; height: 100%; }

.hero-logo {
  width: clamp(190px, 32vw, 280px); height: auto;
  filter: brightness(2) drop-shadow(0 0 30px rgba(184,160,122,.15));
  margin: 0 auto 28px;
  display: block;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--text);
  margin-bottom: 4px;
  text-shadow: 0 0 40px rgba(184,160,122,.08);
}

.hero-sub {
  font-family: var(--body);
  font-size: 1.05rem; font-style: italic;
  color: var(--text-2);
}

.sect {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.sect::before {
  content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--gold-2);
}
.sect-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.sect-orn {
  color: var(--gold-2); font-size: .55rem; line-height: 1;
  flex-shrink: 0;
  animation: spin-slow 20s linear infinite;
}
.sect-title {
  font-family: var(--heading);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-2); flex-shrink: 0;
}
.sect-rule { flex: 1; height: 1px; background: var(--border); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: border-color .3s, box-shadow .4s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color .4s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 60px rgba(184,160,122,.03);
}
.card:hover::before { border-color: rgba(184,160,122,.06); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.card-id { display: flex; align-items: center; gap: 12px; }
.card-icon {
  width: 46px; height: 46px; object-fit: contain;
  display: block; flex-shrink: 0;
}
.card-name {
  font-family: var(--heading);
  font-size: 1rem; font-weight: 500;
  letter-spacing: .04em; color: var(--text); line-height: 1.2;
}
.card-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: .65rem;
  color: var(--text-3); margin-top: 2px;
  letter-spacing: .03em;
}
.pulse-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4a7c3f;
  box-shadow: 0 0 4px rgba(74,124,63,.4);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
.card-actions { display: flex; gap: 8px; }
.card-body {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.card-body p {
  font-size: 1rem; line-height: 1.85; color: var(--text-2);
  margin-bottom: 6px;
}
.card-body p:last-child { margin-bottom: 0; }
.card-body code {
  font-family: var(--mono); font-size: .82rem;
  background: var(--bg); color: var(--gold);
  padding: 2px 7px; border-radius: 2px;
  border: 1px solid var(--border);
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 14px 24px;
}
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-family: var(--sans);
  font-size: .65rem; font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--gold-2); color: var(--gold); }

.btn {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 2px;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent;
  background: var(--text); color: var(--bg);
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--gold); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--text-2);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--gold-2); color: var(--gold);
  background: transparent; transform: translateY(-1px);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.lang-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 2px;
  min-height: 102px;
  transition: border-color .25s, transform .2s, box-shadow .3s;
}
.lang-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.lang-mark {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(184,160,122,.05);
  border: 1px solid rgba(184,160,122,.12);
  border-radius: 12px;
}
.lang-icon {
  width: 29px; height: 29px;
  display: block;
}
.lang-copy { min-width: 0; }
.lang-name {
  font-family: var(--heading);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.lang-meta {
  font-size: .94rem;
  line-height: 1.55;
  color: var(--text-2);
}

.contacts { display: flex; flex-direction: column; }
.c-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding .2s;
}
.c-row:first-child { border-top: 1px solid var(--border); }
.c-row:hover { padding-left: 8px; }
.c-label {
  font-family: var(--heading);
  font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.c-val {
  font-size: .95rem; color: var(--text);
  transition: color .2s;
}
.c-row:hover .c-val { color: var(--gold); }

.foot {
  padding: 40px 0 48px;
  text-align: center;
}
.foot-copy {
  font-family: var(--heading);
  font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}

body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

@media (max-width: 640px) {
  :root { --frame: 4px; }
  .corner {
    width: 28px;
    height: 28px;
    display: block;
  }

  .burger { display: block; }
  .nav-ext { display: none; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    opacity: 0; pointer-events: none; transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links .nav-dot { display: none; }
  .nav-links a {
    display: block; padding: 10px 8px; border-radius: 2px;
    font-size: .78rem; letter-spacing: .08em;
  }

  .hero { padding: 140px 0 60px; }
  .hero-title { font-size: 2rem; letter-spacing: .08em; }
  .hero-logo { width: clamp(150px, 52vw, 220px); }
  .arch { width: 200px; height: 120px; top: -30px; }
  .nav-inner { height: 64px; }
  .nav-mark { height: 38px; }

  .card-header { flex-direction: column; align-items: flex-start; }
  .card-actions { width: 100%; }
  .card-actions .btn { flex: 1; justify-content: center; text-align: center; }
  .card-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .pulse-dot, .div-orn, .sect-orn { animation: none; }
  .hero-logo { animation: none; }
}
