/* «Крестик» — стиль Moldavia VIP.
   Молдавская вышивка крестиком и пиксель-арт — один язык: клетка.
   Цвета — «нитки», углы прямые, пунктир внутри кнопок и карточек — «шов». */
:root{
  --night:#12100E; --cellar:#1C1815; --cellar2:#231E1A; --seam:#3A3029; --seam2:#4A3F36;
  --linen:#EFE7DA; --ash:#B3A893;
  --red:#C41E3A; --red-lt:#E8475B; --gold:#E8B04B; --codru:#4FA36A; --wine:#5A1A2C;
  --f-head:'Unbounded',Manrope,system-ui,sans-serif;
  --f-text:Manrope,system-ui,sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
  --wrap:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--night)}
body{background:var(--night);color:var(--linen);font:16px/1.6 var(--f-text);-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
img,svg{display:block}
.k-wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px;width:100%}
.k-skip{position:absolute;left:-9999px}
.k-skip:focus{left:12px;top:12px;background:var(--red);color:var(--linen);padding:10px 14px;z-index:100}
:focus-visible{outline:2px dashed var(--gold);outline-offset:3px}

/* ---------- кайма: полоса вышивки ---------- */
.k-band{height:20px;background-color:var(--night);background-repeat:repeat-x;background-size:24px 20px;image-rendering:pixelated;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 5' shape-rendering='crispEdges'%3E%3Cg fill='%23C41E3A'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3C/g%3E%3Crect x='2' y='2' width='1' height='1' fill='%23E8B04B'/%3E%3C/svg%3E")}
.k-band.wide{height:52px;background-size:64px 52px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13' shape-rendering='crispEdges'%3E%3Cg fill='%23C41E3A'%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='8' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='11' y='5' width='1' height='1'/%3E%3Crect x='14' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='3' height='1'/%3E%3Crect x='12' y='6' width='4' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='11' y='7' width='1' height='1'/%3E%3Crect x='14' y='7' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='10' y='8' width='1' height='1'/%3E%3Crect x='3' y='9' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3Crect x='4' y='10' width='1' height='1'/%3E%3Crect x='8' y='10' width='1' height='1'/%3E%3Crect x='5' y='11' width='1' height='1'/%3E%3Crect x='7' y='11' width='1' height='1'/%3E%3Crect x='6' y='12' width='1' height='1'/%3E%3C/g%3E%3Cg fill='%23E8B04B'%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='5' y='3' width='3' height='1'/%3E%3Crect x='4' y='4' width='2' height='1'/%3E%3Crect x='7' y='4' width='2' height='1'/%3E%3Crect x='3' y='5' width='2' height='1'/%3E%3Crect x='8' y='5' width='2' height='1'/%3E%3Crect x='2' y='6' width='2' height='1'/%3E%3Crect x='9' y='6' width='2' height='1'/%3E%3Crect x='3' y='7' width='2' height='1'/%3E%3Crect x='8' y='7' width='2' height='1'/%3E%3Crect x='4' y='8' width='2' height='1'/%3E%3Crect x='7' y='8' width='2' height='1'/%3E%3Crect x='5' y='9' width='3' height='1'/%3E%3Crect x='6' y='10' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E")}

/* ---------- шов ---------- */
.k-seam{position:relative}
.k-seam::after{content:"";position:absolute;inset:6px;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,var(--sc,var(--seam)) 0 6px,transparent 6px 11px) 0 0/100% 1px no-repeat,
    repeating-linear-gradient(90deg,var(--sc,var(--seam)) 0 6px,transparent 6px 11px) 0 100%/100% 1px no-repeat,
    repeating-linear-gradient(0deg,var(--sc,var(--seam)) 0 6px,transparent 6px 11px) 0 0/1px 100% no-repeat,
    repeating-linear-gradient(0deg,var(--sc,var(--seam)) 0 6px,transparent 6px 11px) 100% 0/1px 100% no-repeat}
@keyframes k-run{to{background-position:11px 0,-11px 100%,0 -11px,100% 11px}}
.k-seam:hover::after{animation:k-run .6s linear infinite}
@media (prefers-reduced-motion:reduce){.k-seam:hover::after{animation:none}}

/* ---------- кнопки ---------- */
.k-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font:700 15px/1 var(--f-head);letter-spacing:-.01em;
  padding:18px 26px;border:0;transition:transform .08s ease,background-color .15s ease;white-space:nowrap}
.k-btn:active{transform:translateY(2px)}
.k-btn.red{background:var(--red);color:var(--linen);--sc:rgba(239,231,218,.5)}
.k-btn.red:hover{background:#D3243F}
.k-btn.line{background:transparent;color:var(--linen);box-shadow:inset 0 0 0 1px var(--linen)}
.k-btn.line:hover{background:var(--cellar)}
.k-btn.wine{background:var(--wine);color:var(--linen);--sc:rgba(239,231,218,.35)}
.k-btn.wine:hover{background:#6B2136}
.k-btn.sm{font-size:13px;padding:12px 16px}
.k-btn.sm.k-seam::after{inset:4px}

/* ---------- метки ---------- */
.k-kick{font:700 12px/1.4 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.k-label{font:700 12px/1.4 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ash)}
.k-chip{display:inline-flex;align-items:center;gap:7px;font:700 12px/1 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;padding:8px 11px;white-space:nowrap}
.k-chip.gold{background:var(--gold);color:var(--night)}
.k-chip.live{color:var(--codru);box-shadow:inset 0 0 0 1px var(--codru)}
.k-chip.soon{color:var(--ash);box-shadow:inset 0 0 0 1px var(--seam2)}

/* ---------- шапка ---------- */
.k-head{position:sticky;top:0;z-index:50;background:rgba(18,16,14,.94);backdrop-filter:blur(8px);border-bottom:1px dashed var(--seam)}
.k-head .k-wrap{display:flex;align-items:center;gap:26px;height:68px}
.k-brand{display:flex;align-items:center;gap:12px;font:800 17px var(--f-head);letter-spacing:-.02em;white-space:nowrap}
.k-mono{width:34px;height:34px;flex:0 0 34px}
.k-nav{display:flex;gap:2px;font-weight:600;font-size:15px}
.k-nav a{padding:10px 12px;color:var(--ash);transition:color .15s ease}
.k-nav a:hover{color:var(--linen)}
.k-nav a.on{color:var(--linen);box-shadow:inset 0 -3px 0 var(--red)}
.k-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.k-ghost{background:transparent;border:1px dashed var(--seam2);color:var(--linen);font:600 14px var(--f-text);padding:9px 13px;white-space:nowrap}
.k-ghost:hover{border-color:var(--ash)}
.k-burger{display:none;background:none;border:1px dashed var(--seam2);width:44px;height:44px;align-items:center;justify-content:center}
.k-all{display:none;border-top:1px dashed var(--seam);background:var(--night)}
.k-all.open{display:block}
.k-all .k-wrap{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;padding:20px 32px 26px;height:auto}
.k-all a{display:flex;align-items:center;gap:10px;padding:14px 16px;background:var(--cellar);font-weight:600;font-size:14px}
.k-all a:hover{background:var(--cellar2)}
.k-all a small{margin-left:auto;font:500 11px var(--f-mono);color:var(--ash)}
.k-langm{position:relative}
.k-langm ul{position:absolute;right:0;top:calc(100% + 6px);list-style:none;background:var(--cellar);border:1px dashed var(--seam2);min-width:160px;display:none;z-index:60}
.k-langm ul.open{display:block}
.k-langm ul button{width:100%;text-align:left;background:none;border:0;padding:10px 14px;font-size:14px}
.k-langm ul button:hover{background:var(--cellar2);color:var(--gold)}
/* блок аккаунта из account.js — перекрашиваем под стиль */
.k-head .mv-acct a,.k-head .mv-acct button{border-radius:0!important}

@media (max-width:1100px){
  .k-nav{display:none;position:absolute;left:0;right:0;top:68px;flex-direction:column;background:var(--night);border-bottom:1px dashed var(--seam);padding:8px 24px 16px}
  .k-nav.open{display:flex}
  .k-nav a{padding:14px 4px;border-bottom:1px dashed var(--seam)}
  .k-burger{display:inline-flex}
  .k-hide-md{display:none!important}
}
@media (max-width:640px){
  .k-wrap{padding:0 16px}
  .k-head .k-wrap{gap:12px;height:60px}
  .k-nav{top:60px}
  .k-brand span{display:none}
  .k-hide-sm{display:none!important}
}

/* ---------- подвал ---------- */
.k-foot{margin-top:auto;border-top:1px dashed var(--seam);padding:40px 0 28px}
.k-foot .k-wrap{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px}
.k-foot h4{font:700 12px var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ash);margin-bottom:12px}
.k-foot a{display:block;padding:4px 0;color:var(--linen);font-size:15px}
.k-foot a:hover{color:var(--red-lt)}
.k-foot p{color:var(--ash);font-size:14px;max-width:38ch}
.k-foot .k-copy{grid-column:1/-1;display:flex;gap:16px;flex-wrap:wrap;border-top:1px dashed var(--seam);padding-top:18px;margin-top:8px;font-size:13px;color:var(--ash)}
@media (max-width:800px){.k-foot .k-wrap{grid-template-columns:1fr 1fr}}

/* ---------- блок аккаунта (рисует account.js) — в нитки «Крестика» ---------- */
.k-head .mv-acct{display:flex;align-items:center;gap:10px}
.k-head .mv-login{background:var(--red)!important;color:var(--linen)!important;border-radius:0!important;font:700 13px var(--f-head)!important;padding:12px 16px!important}
.k-head .mv-login:hover{background:#D3243F!important}
.k-head .mv-reg{color:var(--ash)!important;font:600 14px var(--f-text)!important}
.k-head .mv-reg:hover{color:var(--linen)!important}
.k-head .mv-user,.k-head .mv-mail{background:var(--cellar)!important;border:1px dashed var(--seam2)!important;border-radius:0!important;color:var(--linen)!important;font-family:var(--f-text)!important}
.k-head .mv-user:hover,.k-head .mv-mail:hover{border-color:var(--ash)!important}
.k-head .mv-av{background:var(--red)!important;border-radius:0!important;color:var(--linen)!important}
.k-head .mv-badge{background:var(--gold)!important;color:var(--night)!important;border-radius:0!important;box-shadow:0 0 0 2px var(--night)!important}
.k-head .mv-menu{background:var(--cellar)!important;border:1px dashed var(--seam2)!important;border-radius:0!important}
.k-head .mv-menu a{color:var(--linen)!important;border-radius:0!important}
.k-head .mv-menu a:hover{background:var(--cellar2)!important}
.k-head .mv-menu a svg{color:var(--ash)!important}
.k-head .mv-menu a.mv-out,.k-head .mv-menu a.mv-out svg{color:var(--red-lt)!important}
.k-head .mv-menu .mv-sep{background:var(--seam)!important}
