:root{
  color-scheme: dark;
  --bg0:#06070a;
  --bg1:#0b0c10;

  --text:#eef0f4;
  --muted:rgba(238,240,244,.72);
  --muted2:rgba(238,240,244,.56);

  --line:rgba(255,255,255,.10);

  /* Liquid glass tuning */
  --glass:rgba(255,255,255,.030);
  --glass2:rgba(255,255,255,.050);
  --field:rgba(255,255,255,.030);
  --fieldFocus:rgba(255,255,255,.045);

  --radius:22px;
  --shadow:0 22px 70px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 900px at 12% 10%, rgba(120,140,255,.24), transparent 60%),
    radial-gradient(900px 700px at 88% 28%, rgba(255,120,220,.18), transparent 62%),
    radial-gradient(900px 800px at 50% 120%, rgba(80,220,255,.16), transparent 55%),
    linear-gradient(180deg,var(--bg0),var(--bg1));
  color:var(--text);
}

.wrap{
  max-width:900px;
  margin:0 auto;
  padding:40px 18px 70px;
}

.card{
  position:relative;
  border-radius:var(--radius);
  padding:72px 22px 22px; /* space for header */
  background:linear-gradient(180deg,var(--glass2),var(--glass));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  overflow:hidden;
}

.card:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 320px at 15% 10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(700px 280px at 88% 24%, rgba(140,170,255,.12), transparent 62%),
    linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  opacity:.92;
  pointer-events:none;
}
.card:after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.085);
  pointer-events:none;
  mask: linear-gradient(#000, transparent 70%);
  -webkit-mask: linear-gradient(#000, transparent 70%);
}

/* Header INSIDE glass */
.card-header{
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.logoWrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 120px;
}
.logo{
  height:34px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.40));
  opacity:.92;
}

.right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  font-size:12px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:rgba(238,240,244,.82);
  white-space:nowrap;
}

.statusPill{display:none;max-width:280px}
.statusPill.show{display:inline-flex;align-items:center;gap:8px}
.dot{width:8px;height:8px;border-radius:50%}
.statusPill.work .dot{background:#bbb}
.statusPill.ok .dot{background:#7dffbf}
.statusPill.err .dot{background:#ff8a8a}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:10px;
}
@media(max-width:760px){
  .grid{grid-template-columns:1fr}
  .card{padding-top:118px}
  .logo{height:28px; max-width: 100%;}
  .card-header{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:10px;
    flex-wrap:nowrap;
  }
  .right{
    width:100%;
    justify-content:flex-start;
  }
  .statusPill{max-width: 100%;}
}
@media(min-width:761px){
  .card{padding-top:86px}
  .logo{height:30px}
}

label{
  display:block;
  margin:12px 0 6px;
  font-size:12.5px;
  color:rgba(238,240,244,.88);
}

input,textarea,select{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:var(--field);
  color:var(--text);
  padding:12px;
  font-size:14px;
  outline:none;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

input::placeholder,textarea::placeholder{color:rgba(238,240,244,.44)}

input:focus,textarea:focus,select:focus{
  background:var(--fieldFocus);
  border-color:rgba(255,255,255,.30);
}

textarea{min-height:132px;resize:vertical}

/* Кастомный select «Тема» — выпадающий список с контрастным фоном */
.topic-wrap{position:relative; width:100%}
.topic-trigger{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:var(--field);
  color:var(--text);
  padding:12px 40px 12px 12px;
  font-size:14px;
  outline:none;
  text-align:left;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.topic-trigger::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid rgba(238,240,244,.7);
  pointer-events:none;
}
.topic-trigger:hover,.topic-trigger:focus{border-color:rgba(255,255,255,.30); background:var(--fieldFocus)}
.topic-dropdown{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:100%;
  margin-top:4px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  box-shadow:0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
  z-index:20;
  max-height:280px;
  overflow-y:auto;
}
.topic-dropdown.open{display:block}
.topic-opt{
  display:block;
  width:100%;
  padding:12px 14px;
  font-size:14px;
  color:#1a1a1a;
  background:transparent;
  border:none;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  border-bottom:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  margin:2px 6px;
  width:calc(100% - 12px);
  transition:background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-opt:first-child{margin-top:4px}
.topic-opt:last-child{border-bottom:none; margin-bottom:4px}
/* Свечение: у выбранного — всегда, у остальных — при наведении */
.topic-opt.selected{
  background:rgba(255,255,255,.45);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65), 0 0 0 1px rgba(255,255,255,.3), 0 0 24px rgba(120,140,255,.22);
  color:#1a1a1a;
}
.topic-opt:hover,.topic-opt:focus{
  background:rgba(255,255,255,.45);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65), 0 0 0 1px rgba(255,255,255,.3), 0 0 24px rgba(120,140,255,.22);
  color:#111;
  outline:none;
}
.topic-opt.selected:hover,.topic-opt.selected:focus{
  background:rgba(255,255,255,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 0 0 1px rgba(255,255,255,.35), 0 0 28px rgba(120,140,255,.28);
}
#topic{position:absolute; opacity:0; pointer-events:none; width:0; height:0; overflow:hidden}

.hint{
  margin-top:6px;
  font-size:12px;
  color:var(--muted2);
}

.intro-line{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.55;
  color:var(--muted);
}

.purchase-extra{
  display:none;
  margin-top:4px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}
.purchase-extra.show{display:block}

.checks{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
}

.check{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:10px;
  margin:10px 0;
  font-size:12.5px;
  color:rgba(238,240,244,.78);
}

.check input{accent-color:#fff}

.fine{
  margin-top:8px;
  font-size:12px;
  line-height:1.55;
  color:rgba(238,240,244,.58);
}

.actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  border-radius:16px;
  padding:12px 16px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  color:#fff;
  cursor:pointer;
}

.btn.secondary{background:rgba(255,255,255,.03);}

.socials{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.socials__label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted2);
  margin-right:4px;
}
.socials{ position:relative; z-index:2; }
.socials__link{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(238,240,244,.88);
  text-decoration:none;
  transition:border-color .18s ease, background .18s ease, color .18s ease;
  pointer-events:auto;
  position:relative;
  z-index:2;
}
.socials__link:hover{
  border-color:rgba(255,255,255,.30);
  background:rgba(255,255,255,.08);
  color:#fff;
}
.socials__ic svg{
  width:18px;
  height:18px;
  display:block;
  fill:currentColor;
}
.socials__ic svg[stroke]{
  fill:none;
  stroke:currentColor;
}

.contacts-line__region{
  display:block;
  font-weight:600;
  font-size:clamp(17px,2.2vw,20px);
  letter-spacing:.04em;
  line-height:1.25;
  color:rgba(255,255,255,.98);
  margin-bottom:8px;
}
.contacts-line{
  margin-top:12px;
  font-size:15px;
  line-height:1.45;
  color:rgba(238,240,244,.72);
}
.contacts-line a{color:inherit; border-bottom-color:rgba(255,255,255,.25)}

.sites-nav{margin-top:10px; font-size:12px; color:rgba(238,240,244,.6);}
.sites-nav a{color:inherit; border-bottom-color:rgba(255,255,255,.2)}
.sites-nav__link--disabled{pointer-events:none; cursor:default; opacity:.6;}
.footer{
  margin-top:8px;
  font-size:12px;
  color:rgba(238,240,244,.48);
}

@media (prefers-reduced-transparency: reduce){
  .card,input,textarea,select,.pill{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background:rgba(20,20,24,.90);
  }
}

a{color: rgba(238,240,244,.80); text-decoration:none; border-bottom:1px solid rgba(255,255,255,.16)}
a:hover{border-bottom-color: rgba(255,255,255,.30)}
