:root{
  --bg:#f3ede3;
  --card:#ffffffcc;
  --card-solid:#ffffff;
  --text:#0f172a;
  --muted:rgba(15,23,42,.70);
  --line:rgba(15,23,42,.10);
  --shadow:0 18px 44px rgba(0,0,0,.10);
  --shadow2:0 10px 26px rgba(0,0,0,.12);
  --radius:20px;
  --radius2:14px;
  --nav-h:74px;
  --accent:#0f172a;
  --accent2:#0b5fff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background: var(--bg) url("./assets/bg-texture.png") center/cover fixed no-repeat;
}

a{color:inherit;text-decoration:none}
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto;}

.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(245,239,230,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-inner{
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:12px; min-width:260px;}
.brand img{height:44px; width:auto; display:block;}
.menu{display:flex; align-items:center; gap:22px; font-weight:700; color:rgba(15,23,42,.78);}
.menu a{padding:10px 6px; border-radius:12px;}
.menu a:hover{background:rgba(255,255,255,.55)}
.nav-cta{display:flex; align-items:center; gap:10px;}
.btn{
  height:44px; padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.80);
  font-weight:800;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background: linear-gradient(180deg, rgba(15,23,42,1), rgba(7,13,28,1));
  color:#fff;
  border-color: rgba(15,23,42,1);
}
.btn.ghost{
  background: rgba(255,255,255,.40);
}

.hero{padding:44px 0 18px;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:stretch;
}
.hero-card{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
}
.hero-title{font-size:40px; line-height:1.14; margin:0 0 12px; letter-spacing:.2px;}
.hero-sub{margin:0 0 18px; color:var(--muted); font-weight:650;}
.hero-pills{display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 22px;}
.pill{
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.60);
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap;}
.hero-note{margin-top:14px; font-size:12px; color:rgba(15,23,42,.60);}
.hero-visual{
  border-radius: var(--radius);
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow);
}
.hero-visual img{width:100%; height:100%; object-fit:cover; display:block;}
.section{padding:26px 0;}
.section h2{font-size:30px; margin:0 0 8px;}
.section p.lead{margin:0 0 16px; color:var(--muted); font-weight:650;}

.filters{
  display:flex; gap:10px; flex-wrap:wrap;
  align-items:center; justify-content:center;
  margin:12px 0 18px;
}
.chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.55);
  font-weight:850;
  cursor:pointer;
}
.chip[aria-pressed="true"]{
  background: rgba(15,23,42,1);
  color:#fff;
  border-color: rgba(15,23,42,1);
}
.count-badge{
  font-size:12px;
  color:rgba(15,23,42,.62);
  margin-left:8px;
  font-weight:800;
}

.services-wrap{
  border-radius: var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.acc-item{border-top:1px solid rgba(0,0,0,.08);}
.acc-item:first-child{border-top:none;}
.acc-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 18px;
  gap:14px;
  cursor:pointer;
}
.acc-left{display:flex; align-items:center; gap:12px;}
.ico{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.10);
  font-weight:900;
}
.acc-title{font-weight:950; font-size:18px;}
.acc-desc{color:rgba(15,23,42,.70); font-weight:650; font-size:13px; margin-top:4px;}
.acc-right{display:flex; align-items:center; gap:10px; color:rgba(15,23,42,.55); font-weight:900;}
.tag{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.55);
}
.chev{transition: transform .2s ease;}
.acc-item[aria-expanded="true"] .chev{transform: rotate(180deg);}
.acc-body{
  display:none;
  padding:0 18px 18px;
}
.acc-item[aria-expanded="true"] .acc-body{display:block;}
.body-grid{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.block{
  background: rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding:12px;
}
.block h4{margin:0 0 6px; font-size:14px;}
.block ul{margin:0; padding-left:18px; color:rgba(15,23,42,.72); font-weight:650; font-size:13px;}
.block p{margin:0; color:rgba(15,23,42,.72); font-weight:650; font-size:13px;}

.about-card{
  border-radius: var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding:22px;
}
.kv{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:14px;
}
.kv .block{padding:14px}
.kv strong{display:block; font-size:14px; margin-bottom:6px;}
.kv span{color:rgba(15,23,42,.70); font-weight:650; font-size:13px;}

.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
}
.panel{
  border-radius: var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding:18px;
}
.panel h3{margin:0 0 8px; font-size:18px;}
.panel p{margin:0 0 12px; color:rgba(15,23,42,.72); font-weight:650; font-size:13px;}
.template{
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  color:rgba(15,23,42,.80);
  white-space:pre-wrap;
}
.small-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:12px;}
.mini{
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  padding:12px;
}
.mini .k{font-size:12px; color:rgba(15,23,42,.60); font-weight:800;}
.mini .v{margin-top:6px; font-weight:900; color:rgba(15,23,42,.85);}

.footer{
  padding:18px 0 28px;
  color:rgba(15,23,42,.55);
  font-weight:700;
  font-size:12px;
  text-align:center;
}

/* Floating support buttons */
.support-entry{
  position: fixed;
  right: 24px;
  bottom: 88px; /* required */
  z-index: 9999;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.support-btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow2);
  cursor:pointer;
  user-select:none;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.support-btn:hover{transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.14);}
.support-ico{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  font-weight:900;
  background: rgba(0,0,0,.08);
}
.support-btn--tg .support-ico{background: rgba(0,136,204,.18);}
.support-btn--qq .support-ico{background: rgba(0,120,255,.16);}
.support-text{font-weight:900;font-size:14px;color:var(--text);white-space:nowrap}

/* QQ modal */
.qq-pop{position:fixed; inset:0; z-index:10000; display:none;}
.qq-pop.is-open{display:block;}
.qq-pop__mask{position:absolute; inset:0; background: rgba(0,0,0,.45);}
.qq-pop__panel{
  position:absolute;
  right:24px;
  bottom:160px;
  width:320px;
  max-width: calc(100vw - 48px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
  overflow:hidden;
}
.qq-pop__head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.qq-pop__title{font-weight:950;font-size:16px;}
.qq-pop__sub{margin-top:4px;font-size:12px;color:rgba(15,23,42,.70); font-weight:700;}
.qq-pop__close{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  cursor:pointer; font-size:18px; line-height:1;
}
.qq-pop__body{padding:14px;}
.qq-info{display:grid; gap:6px; margin-bottom:12px;}
.qq-info__label{font-size:12px; color:rgba(15,23,42,.70); font-weight:800;}
.qq-info__value{font-size:18px; font-weight:950; letter-spacing:.3px;}
.qq-qr{
  width:100%; display:grid; place-items:center;
  padding:12px;
  border:1px dashed rgba(0,0,0,.14);
  border-radius:14px;
  background: rgba(0,0,0,.03);
  margin-bottom:12px;
}
.qq-qr img{width:180px;height:180px;object-fit:cover;border-radius:12px;background:#fff;}
.qq-actions{display:flex; gap:10px;}
.qq-btn{
  flex:1;height:40px;border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.90);
  cursor:pointer; font-weight:900;
}
.qq-btn--primary{background: var(--accent); color:#fff; border-color: var(--accent);}
.qq-toast{margin-top:10px; font-size:12px; color:rgba(15,23,42,.75); min-height:16px; font-weight:800;}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .menu{display:none;}
  .body-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .kv{grid-template-columns:1fr 1fr;}
  .small-grid{grid-template-columns:1fr;}
  .hero-title{font-size:34px;}
}
