:root{
  --bg:#f6f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --stroke:rgba(15,23,42,.12);
  --stroke2:rgba(15,23,42,.18);
  --brand:#16a34a;
  --brand2:#22c55e;
  --danger:#dc2626;
  --shadow:0 18px 45px rgba(2,6,23,.10);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(900px 500px at 85% 0%, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), #eef2ff);
}

a{color:inherit}
button{font:inherit}

.wrap{max-width:1100px;margin:0 auto;padding:18px 14px 56px}

/* Header */
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.80);
  border:1px solid var(--stroke);
  border-radius:999px;
  box-shadow:0 10px 28px rgba(2,6,23,.08);
  backdrop-filter: blur(10px);
  position:sticky; top:10px; z-index:10;
}

.brand{display:flex;align-items:center;gap:10px;min-width:0}

.logo-img{
  width:38px;height:38px;border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
  object-fit:contain;
  padding:6px;
  box-shadow:0 0 18px rgba(34,197,94,.14);
  flex:0 0 auto;
}

.brand-title{font-size:13px;letter-spacing:.06em;text-transform:uppercase;font-weight:900}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}

.support{
  display:flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.86);
  font-size:12px;color:var(--muted);
}

.dot{
  width:8px;height:8px;border-radius:999px;
  background:var(--brand);
  box-shadow:0 0 10px rgba(34,197,94,.40)
}

.linkbtn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.86);
  padding:7px 10px;border-radius:999px;
  font-size:12px;color:var(--muted);
  cursor:pointer;
}

.linkbtn:hover{color:var(--text);border-color:rgba(22,163,74,.35)}

@media(max-width:820px){ .support{display:none} }

/* Hero */
.hero{
  margin-top:16px;
  padding:18px 18px 16px;
  border-radius:24px;
  background:rgba(255,255,255,.90);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.22);
  font-size:12px;color:#166534;
  font-weight:800;
}

.badge i{
  width:7px;height:7px;border-radius:999px;
  background:var(--brand);
  display:inline-block
}

h1{margin:10px 0 8px;font-size:28px;line-height:1.12}

.sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.62;
  max-width:940px
}

.sub p{margin:0 0 8px}
.sub b{color:var(--text)}

/* Hero: иконка слева по высоте текста */
.hero-media{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:14px;
  align-items:stretch;
}

.hero-icon{
  border-radius:20px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
  box-shadow:0 12px 30px rgba(2,6,23,.08);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  min-height:100%;
}

.hero-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.hero-text{min-width:0}

@media (max-width: 860px){
  .hero-media{grid-template-columns:1fr}
  .hero-icon{height:140px}
  .hero-icon img{width:auto;height:100%}
}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

.chip{
  font-size:12px;color:var(--muted);
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
}

/* Center */
.center{margin-top:16px;display:flex;justify-content:center}

.maincard{
  width:min(980px, 100%);
  border-radius:26px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  padding:16px;
}

.section-title{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin-bottom:10px;
}

.section-title h2{margin:0;font-size:18px}
.section-title small{color:var(--muted);font-size:12px}

/* Form */
form{margin:0}

.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}

@media(max-width:860px){ .form{grid-template-columns:1fr} }

.field{display:flex;flex-direction:column;gap:6px}

.label{display:flex;justify-content:space-between;align-items:center}

.label span{font-size:13px;font-weight:900}
.label small{font-size:12px;color:var(--muted)}

input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.98);
  color:var(--text);
  outline:none;
  font-size:14px;
}

input:focus{
  border-color:rgba(22,163,74,.55);
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
}

.hint{font-size:12px;color:var(--muted);line-height:1.35}
.err{display:none;font-size:12px;color:var(--danger);font-weight:800}

/* Products */
.products-wrap{
  margin-top:8px;
  padding:14px;
  border-radius:22px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(34,197,94,.06), rgba(59,130,246,.05));
}

.products-title{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.products-title b{font-size:15px}

.products-title .right{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:12px;color:var(--muted);
}

.sort{
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.95);
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  outline:none;
  cursor:pointer;
}

.products{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
  gap:10px;
}

.p{
  cursor:pointer;
  text-align:left;
  border-radius:18px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.95);
  padding:12px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position:relative;
  min-height:140px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.p:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 26px rgba(2,6,23,.10);
  border-color:rgba(22,163,74,.45)
}

.p.active{
  border-color:rgba(22,163,74,.75);
  box-shadow:0 0 0 3px rgba(34,197,94,.18), 0 16px 28px rgba(2,6,23,.10)
}

.pimg{
  width:56px;height:56px;border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(15,23,42,.03);
  display:grid;place-items:center;
  flex:0 0 auto;
  overflow:hidden;
}

.pimg img{width:100%;height:100%;object-fit:contain;display:block}

.pmeta{min-width:0}

.pmeta b{display:block;font-size:14px;margin:0 0 4px}
.pmeta em{display:block;font-style:normal;color:var(--muted);font-size:12px;margin:0 0 10px}
.pmeta .price{font-size:16px;font-weight:900;color:#14532d}

.tag{
  position:absolute; top:10px; right:10px;
  font-size:11px;font-weight:900;
  padding:3px 10px;border-radius:999px;
  border:1px solid rgba(250,204,21,.55);
  background:rgba(250,204,21,.16);
  color:#92400e;
}

/* Summary + buy */
.summary{
  margin-top:12px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
  padding:12px;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}

.sleft .line1{font-size:13px}
.sleft .line1 strong{font-size:14px}
.sleft .line2{margin-top:3px;color:var(--muted);font-size:12px}

.sright{text-align:right}
.sright .total{font-size:16px;font-weight:900}
.summary .line2{color:var(--muted);font-size:12px}

.buy{
  margin-top:12px;
  display:block;
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:16px;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
  background:linear-gradient(135deg,var(--brand), var(--brand2));
  color:#052e16;
  box-shadow:0 16px 30px rgba(34,197,94,.20);
  user-select:none;
}

.buy[aria-disabled="true"]{
  pointer-events:none;
  opacity:.55;
  box-shadow:none;
}

/* Info + SEO blocks */
.info, .seo{
  margin-top:14px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.92);
}

.info h3, .seo h2{margin:0 0 10px;font-size:16px}

.info-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:12px
}

@media (max-width: 900px){ .info-grid{grid-template-columns:1fr} }

.block{
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
  padding:12px;
}

.block h4{margin:0 0 8px;font-size:14px}
.block p{margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.55}
.block ul, .block ol{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.55}
.block li{margin:6px 0}

.note{
  margin-top:10px;
  border-radius:16px;
  border:1px dashed rgba(22,163,74,.40);
  background:rgba(34,197,94,.08);
  padding:10px 12px;
  color:#14532d;
  font-size:13px;
  line-height:1.5;
}

.note strong{font-weight:900}
.muted{color:var(--muted)}

.seo p{
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.seo ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.seo li{margin:6px 0}
.seo b{color:var(--text)}

/* Footer */
footer{
  margin-top:14px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

footer button{
  border:none;
  background:transparent;
  color:var(--muted);
  text-decoration:underline dotted;
  text-underline-offset:3px;
  cursor:pointer;
  font-size:12px;
  padding:0;
}

footer button:hover{color:var(--text)}

/* Modal */
.modal{
  position:fixed; inset:0;
  background:rgba(2,6,23,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:100;
}

.modal[aria-hidden="false"]{display:flex}

.modal-card{
  width:min(920px, 100%);
  background:rgba(255,255,255,.98);
  border:1px solid var(--stroke);
  border-radius:20px;
  box-shadow: 0 28px 70px rgba(2,6,23,.25);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--stroke);
  background:rgba(255,255,255,.95);
}

.modal-head b{font-size:14px}

.close{
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.95);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-size:12px;
}

.close:hover{border-color:rgba(22,163,74,.35)}

.modal-body{
  max-height:min(68vh, 640px);
  overflow:auto;
  padding:14px;
  color:var(--text);
}

.legal h3{margin:0 0 8px;font-size:16px}
.legal h4{margin:14px 0 6px;font-size:14px}
.legal p{margin:0 0 8px;color:var(--muted);line-height:1.6;font-size:13px}
.legal ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.6;font-size:13px}
.legal li{margin:6px 0}


/* ============================= */
/* BLOG ARTICLE STYLE */
/* ============================= */

.article-wrap{
  margin-top:16px;
  display:flex;
  justify-content:center;
}

.article-card{
  width:min(820px, 100%);
  border-radius:26px;
  background:rgba(255,255,255,.95);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  padding:28px 26px;
}

.article-card h1{
  font-size:28px;
  margin:0 0 18px;
  line-height:1.25;
}

.article-content{
  font-size:15px;
  line-height:1.75;
  color:var(--muted);
}

.article-content p{
  margin:0 0 14px;
}

.article-content h2{
  margin:28px 0 10px;
  font-size:18px;
  color:var(--text);
}

.article-content h3{
  margin:22px 0 8px;
  font-size:16px;
  color:var(--text);
}

.article-content ul,
.article-content ol{
  margin:0 0 14px;
  padding-left:20px;
}

.article-content li{
  margin:6px 0;
}

.article-content a{
  color:var(--brand);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(22,163,74,.35);
}

.article-content a:hover{
  border-color:var(--brand);
}