:root{
  --bg1:#fbf6ef;
  --bg2:#e9f3ff;
  --ink:#241f34;
  --muted:#5d566d;
  --card:rgba(255,255,255,.92);
  --border:rgba(255,255,255,.78);
  --shadow:0 20px 60px rgba(33,45,70,.12);
  --radius:22px;
  --primary:#7a5cff;
  --primary2:#4a3cff;
  --danger:#b3261e;
  --success:#0b7a3b;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: "Trebuchet MS", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe9f1, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #efe8ff, transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  padding:24px;
}

a{color:inherit}
.shell{max-width:980px;margin:0 auto;}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px;
}
.card__head h1{margin:0 0 10px;font-size:1.9rem;line-height:1.1}
.card__head p{margin:0;color:var(--muted)}

.kicker{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.78rem;
  font-weight:900;
  color:var(--primary);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.78);
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(33,45,70,.08);
  font-weight:800;
}
.btn--primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  border:0;
}
.btn--ghost{
  background:transparent;
  box-shadow:none;
}
.btn--disabled{
  opacity:.45;
  pointer-events:none;
}

.flash{
  margin:14px 0 0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.78);
  font-weight:700;
}
.flash--error{border-color:rgba(179,38,30,.22);color:var(--danger);background:rgba(179,38,30,.06)}
.flash--success{border-color:rgba(11,122,59,.18);color:var(--success);background:rgba(11,122,59,.06)}

.field{display:flex;flex-direction:column;gap:6px}
.field__label{font-weight:900}
.field__input{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.9);
  outline:none;
}
.field__input:focus{border-color:rgba(122,92,255,.55);box-shadow:0 0 0 4px rgba(122,92,255,.12)}

.backlink{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--muted);
  font-weight:900;
  margin:0 0 14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.65);
  color:var(--muted);
  font-weight:900;
  font-size:.85rem;
}

.language-switch{
  position:relative;
  display:inline-block;
  flex:0 0 auto;
  max-width:100%;
}

.language-switch summary{
  list-style:none;
  min-width:58px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#fff;
  cursor:pointer;
  font-weight:900;
  line-height:1;
}

.language-switch summary::-webkit-details-marker{
  display:none;
}

.language-switch summary::marker{
  content:"";
}

.language-switch summary:focus-visible{
  outline:2px solid rgba(255,117,201,.75);
  outline-offset:3px;
}

.language-switch__code{
  color:rgba(255,255,255,.62);
  font-size:.68rem;
  letter-spacing:.08em;
}

.language-switch__menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:80;
  min-width:158px;
  max-width:calc(100vw - 28px);
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  background:rgba(16,13,35,.96);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  display:grid;
  gap:4px;
}

.language-switch a{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border-radius:12px;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:.8rem;
  font-weight:900;
}

.language-switch a.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(182,60,255,.75),rgba(255,79,164,.55) 55%,rgba(255,145,77,.65));
}

@media (max-width:720px){
  .language-switch summary{
    min-width:52px;
    height:38px;
    padding:0 9px;
  }

  .language-switch__menu{
    min-width:148px;
    max-width:min(220px, calc(100vw - 28px));
  }
}

.legal-footer{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 20px;
  margin:24px auto 0;
  color:rgba(255,255,255,.72);
  font-size:.86rem;
  font-weight:800;
}

.legal-footer a{
  text-decoration:none;
}

.legal-footer a:hover{
  color:#fff;
}

.cookie-consent{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:120;
  width:min(680px, calc(100vw - 28px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  background:rgba(13,11,31,.96);
  color:#fff;
  box-shadow:0 22px 70px rgba(0,0,0,.42);
  transform:translateX(-50%);
}

.cookie-consent[hidden]{
  display:none;
}

.cookie-consent strong{
  display:block;
  margin-bottom:4px;
}

.cookie-consent p{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:.88rem;
  line-height:1.4;
}

.cookie-consent__actions{
  display:flex;
  gap:10px;
  flex:0 0 auto;
}

.cookie-consent__actions .btn{
  min-height:42px;
  padding:10px 15px;
  border-radius:14px;
  white-space:nowrap;
}

@media (max-width: 720px){
  body{padding:16px}
  .card{padding:18px}

  .cookie-consent{
    align-items:stretch;
    flex-direction:column;
    bottom:12px;
    padding:14px;
    border-radius:18px;
  }

  .cookie-consent__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

