/* ============================================================
   AvitoPraktika — design system
   Mobile-first, light, airy, card-based.
   ============================================================ */
:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f6;
  --card: #ffffff;
  --ink: #101418;
  --ink-2: #3d4653;
  --muted: #6b7280;
  --line: #e5e9f0;
  --line-2: #d7dce6;
  --accent: #ff6b35;
  --accent-dark: #e5551f;
  --accent-soft: #fff1ea;
  --blue: #1f3a93;
  --blue-soft: #eef2fc;
  --green: #1d9e6f;
  --green-soft: #e9f7f1;
  --red: #d64545;
  --red-soft: #fdeeee;
  --yellow: #b7791f;
  --yellow-soft: #fdf6e7;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 20, 24, .04), 0 8px 24px rgba(16, 20, 24, .06);
  --shadow-lg: 0 4px 12px rgba(16, 20, 24, .06), 0 16px 48px rgba(16, 20, 24, .1);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font: 700 15px/1 var(--font); padding: 14px 22px; border-radius: 12px;
  transition: background .15s, transform .05s; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn-lg { font-size: 16px; padding: 16px 26px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 9px 14px; border-radius: 10px; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none !important; }
.main-nav { display: none; gap: 2px; flex: 1; justify-content: center; }
.nav-link { padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none !important; white-space: nowrap; }
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-active { color: var(--ink); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn {
  display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1.5px solid var(--line-2);
  color: var(--ink-2); font: 600 14px var(--font); padding: 9px 14px; border-radius: 11px; cursor: pointer;
}
.search-btn:hover { border-color: var(--ink); }
.header-cta { display: none; }
.burger { display: flex; flex-direction: column; gap: 4px; background: none; border: none; padding: 10px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .search-btn span { display: inline; }
}
@media (max-width: 1079px) {
  .search-btn span { display: none; }
  .search-btn { padding: 9px 11px; }
}

/* search overlay */
.search-overlay { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.search-big { display: flex; gap: 10px; }
.search-big input {
  flex: 1; font: 500 17px var(--font); padding: 15px 18px; border: 2px solid var(--line-2);
  border-radius: 14px; outline: none; background: var(--bg);
}
.search-big input:focus { border-color: var(--accent); background: #fff; }
.search-examples { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2) !important;
  font-size: 13px; padding: 6px 12px; border-radius: 999px; text-decoration: none !important;
}
.chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark) !important; }
.search-suggest { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.search-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink) !important; font-size: 14px; text-decoration: none !important; }
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--bg-soft); }
.search-suggest .ss-type { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.mobile-menu { background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 18px 16px; }
.mobile-nav a { padding: 12px 6px; font-weight: 600; color: var(--ink) !important; border-bottom: 1px solid var(--bg-soft); text-decoration: none !important; }
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 44px 0 30px; }
.hero-in { max-width: 780px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; letter-spacing: -.02em; }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 640px; margin-bottom: 26px; }
.hero-search { background: #fff; border: 2px solid var(--line-2); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); display: flex; gap: 10px; }
.hero-search input { flex: 1; border: none; outline: none; font: 500 16px var(--font); padding: 10px 12px; min-width: 0; }
.hero-examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 760px) { .hero { padding: 64px 0 44px; } .hero h1 { font-size: 44px; } .hero-sub { font-size: 18px; } }

/* ---------- Sections & cards ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (min-width: 760px) { .section-head h2 { font-size: 28px; } }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s, box-shadow .12s, border-color .12s; text-decoration: none !important; color: var(--ink);
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.card-icon-blue { background: var(--blue-soft); }
.card-icon-green { background: var(--green-soft); }
.card-icon-red { background: var(--red-soft); }
.card-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.card-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card-meta { color: var(--muted); font-size: 12.5px; margin-top: auto; }
.card-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); width: fit-content; }
.card-tag-red { background: var(--red-soft); color: var(--red); }
.card-tag-green { background: var(--green-soft); color: var(--green); }
.card-tag-blue { background: var(--blue-soft); color: var(--blue); }

/* problem cards */
.prob-card { border-left: 4px solid var(--red); }
.prob-card .card-title { color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumb-sep { color: var(--line-2); }
.crumb-cur { color: var(--ink-2); }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 14px 0 50px; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.article-main { min-width: 0; }
.article-main h1 { font-size: 28px; margin: 14px 0 10px; letter-spacing: -.015em; }
.article-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.answer-box {
  background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 26px; font-size: 15.5px; line-height: 1.65;
}
.answer-box .ab-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); margin-bottom: 6px; }
.blk-h2 { font-size: 21px; margin: 34px 0 12px; }
.blk-h3 { font-size: 17px; margin: 24px 0 8px; }
.blk-p { margin-bottom: 14px; color: var(--ink-2); }
.blk-ul, .blk-ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.blk-ul li, .blk-ol li { margin-bottom: 7px; }
.blk-ul li::marker { color: var(--accent); }
.blk-divider { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.blk-quote { margin: 20px 0; padding: 16px 20px; background: var(--blue-soft); border-radius: var(--r); font-weight: 500; font-style: italic; color: var(--ink-2); }
.blk-quote cite { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-style: normal; }
.blk-img { margin: 20px 0; }
.blk-img img { border-radius: var(--r); border: 1px solid var(--line); }
.video-wrap { position: relative; padding-top: 56.25%; margin: 20px 0; border-radius: var(--r); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; counter-reset: step; }
.step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--shadow); }
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.step-t { font-weight: 700; margin-bottom: 2px; }
.step-d { color: var(--muted); font-size: 14px; line-height: 1.5; }

.checklist { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 22px; }
.ck {
  display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; cursor: default;
}
.ck-box { flex-shrink: 0; width: 19px; height: 19px; border: 2px solid var(--line-2); border-radius: 6px; margin-top: 2px; position: relative; }
.ck-t { font-weight: 600; font-size: 14.5px; }
.ck-d { display: block; color: var(--muted); font-size: 13.5px; margin-top: 1px; }

.callout { border-radius: var(--r); padding: 16px 18px; margin: 18px 0; font-size: 14.5px; }
.callout-t { font-weight: 800; margin-bottom: 4px; font-size: 14px; }
.callout-b { color: var(--ink-2); line-height: 1.6; }
.callout-notice { background: var(--blue-soft); border: 1px solid #d5defa; }
.callout-notice .callout-t { color: var(--blue); }
.callout-warn { background: var(--yellow-soft); border: 1px solid #f0e2bd; }
.callout-warn .callout-t { color: var(--yellow); }
.callout-tip { background: var(--green-soft); border: 1px solid #c4ebdb; }
.callout-tip .callout-t { color: var(--green); }

.faq { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 14.5px; padding: 14px 40px 14px 16px; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--muted); transition: .15s;
}
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-a { padding: 0 16px 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.blk-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.blk-table th { text-align: left; font-weight: 700; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.blk-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.blk-table tr:last-child td { border-bottom: none; }
.cmp .cmp-label { font-weight: 700; color: var(--ink); background: var(--bg); }

.proscons { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.pc-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.pc-h { font-weight: 800; margin-bottom: 8px; }
.pc-pros .pc-h { color: var(--green); }
.pc-cons .pc-h { color: var(--red); }
.pc-col ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.pc-col li { margin-bottom: 5px; }
.pc-pros li::marker { color: var(--green); }
.pc-cons li::marker { color: var(--red); }

/* ---------- Article sidebar ---------- */
.aside { display: flex; flex-direction: column; gap: 16px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.aside-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.aside-list a { display: block; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2) !important; line-height: 1.4; }
.aside-list a:hover { background: var(--bg-soft); color: var(--ink) !important; }
.aside-sticky { position: static; }
@media (min-width: 1080px) { .aside-sticky { position: sticky; top: 84px; } }

/* ---------- Product cards / service cards ---------- */
.price { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 19px; font-weight: 800; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }
.pcard, .scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.pcard-title, .scard-title { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.pcard-desc, .scard-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.pcard-foot, .scard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.scard-term { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.pcard-compact, .scard-compact { box-shadow: none; background: var(--bg); padding: 14px; }

.inline-product, .inline-service { margin: 20px 0; }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px;
  margin: 30px 0; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,53,.35), transparent 70%);
}
.cta-head { font-size: 19px; font-weight: 800; margin-bottom: 8px; position: relative; }
.cta-text { color: #c3c9d4; font-size: 14.5px; margin-bottom: 16px; max-width: 560px; position: relative; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; position: relative; }
.cta-row .pcard, .cta-row .scard { flex: 1; min-width: 240px; }
.cta-note { margin-top: 12px; font-size: 12.5px; color: #9aa3b2; position: relative; }
.cta-compare .cta-compare-grid { display: grid; grid-template-columns: 1fr; gap: 14px; position: relative; }
@media (min-width: 700px) { .cta-compare .cta-compare-grid { grid-template-columns: 1fr 1fr; } }
.cta-opt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cta-opt-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.cta-opt .btn { margin-top: auto; }

/* ---------- Cluster page ---------- */
.cluster-hero { padding: 22px 0 8px; }
.cluster-hero h1 { font-size: 30px; max-width: 760px; }
.cluster-hero .ch-sub { color: var(--ink-2); max-width: 700px; font-size: 16px; }
.pillar-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding: 22px 0 40px; }
@media (min-width: 960px) { .pillar-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

/* ---------- Catalog (products/services) ---------- */
.cat-hero { padding: 26px 0 10px; }
.cat-hero h1 { font-size: 30px; }
.cat-hero p { color: var(--ink-2); max-width: 640px; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 0 40px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.cat-card a.cc-link { color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none !important; }
.cat-card a.cc-link:hover { color: var(--accent-dark); }
.cat-card .cc-desc { color: var(--muted); font-size: 13.5px; flex: 1; }
.cat-card .cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 16px 0 46px; }
@media (min-width: 980px) { .product-layout { grid-template-columns: minmax(0,1fr) 380px; } }
.product-main h1 { font-size: 28px; margin: 12px 0 8px; }
.product-lead { font-size: 16.5px; color: var(--ink-2); margin-bottom: 18px; }
.buy-box { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.buy-box .bb-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-box .bb-price .price-now { font-size: 30px; }
.buy-box .bb-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.buy-box .trust { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 13px; }
.buy-box .trust span { display: flex; gap: 8px; align-items: center; }
.pp-section { margin-bottom: 26px; }
.pp-section h2 { font-size: 19px; }
.inc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.inc-list li { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; }
.inc-list .inc-ic { color: var(--green); font-weight: 800; }
.aud-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 640px) { .aud-list { grid-template-columns: 1fr 1fr; } }
.aud-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.aud-list li::before { content: '✓'; color: var(--green); font-weight: 800; }

/* service page */
.service-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 16px 0 46px; }
@media (min-width: 980px) { .service-layout { grid-template-columns: minmax(0,1fr) 380px; } }
.service-main h1 { font-size: 28px; margin: 12px 0 8px; }
.order-box { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.order-box .ob-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.order-box .ob-price .price-now { font-size: 30px; }
.order-box .ob-term { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.order-form { display: flex; flex-direction: column; gap: 10px; }
.order-form input, .order-form textarea {
  font: 500 14.5px var(--font); padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; outline: none; background: var(--bg); width: 100%;
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--accent); background: #fff; }
.order-form textarea { min-height: 90px; resize: vertical; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; }
.error-text { color: var(--red); font-size: 13.5px; font-weight: 600; }

/* ---------- Cart & checkout ---------- */
.narrow { max-width: 640px; margin: 0 auto; }
.cart-layout { max-width: 720px; margin: 0 auto; padding: 22px 0 46px; }
.cart-layout h1 { font-size: 26px; }
.cart-item { display: flex; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; align-items: center; }
.cart-item .ci-name { font-weight: 700; font-size: 14.5px; }
.cart-item .ci-kind { font-size: 12px; color: var(--muted); }
.cart-item .ci-price { font-weight: 800; white-space: nowrap; }
.ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }
.ci-remove:hover { color: var(--red); }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; padding: 16px 4px 6px; }
.cart-subtotal { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; padding: 2px 4px; }
.promo-row { display: flex; gap: 8px; margin: 14px 0; }
.promo-row input { flex: 1; font: 500 14px var(--font); padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; outline: none; }
.promo-row input:focus { border-color: var(--accent); }

.co-form { display: flex; flex-direction: column; gap: 13px; margin: 18px 0; }
.co-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.co-field input {
  width: 100%; font: 500 15.5px var(--font); padding: 14px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; outline: none; background: #fff;
}
.co-field input:focus { border-color: var(--accent); }
.co-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.co-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.co-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.co-steps span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 7px 4px; }
.co-steps span.on { background: var(--ink); color: #fff; }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* test payment page */
.pay-page { max-width: 560px; margin: 0 auto; padding: 30px 0 60px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; }
.pay-card h1 { font-size: 22px; }
.pay-test-badge { display: inline-block; background: var(--yellow-soft); color: var(--yellow); font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.pay-amount { font-size: 34px; font-weight: 800; margin: 6px 0 18px; }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pay-tab { flex: 1; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line-2); border-radius: 11px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: #fff; }
.pay-tab.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-fields input { font: 500 15px var(--font); padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; outline: none; background: var(--bg); }
.pay-fields input:focus { border-color: var(--accent); background: #fff; }
.pay-qr { display: none; text-align: center; padding: 8px 0 14px; }
.pay-qr.show { display: block; }
.pay-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* order status */
.order-status { max-width: 620px; margin: 0 auto; padding: 34px 0 60px; text-align: center; }
.os-icon { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.os-icon-ok { background: var(--green-soft); color: var(--green); }
.os-icon-wait { background: var(--yellow-soft); color: var(--yellow); }
.os-icon-err { background: var(--red-soft); color: var(--red); }
.order-status h1 { font-size: 24px; }
.order-status .os-sub { color: var(--muted); margin-bottom: 22px; }
.os-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.os-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--bg-soft); }
.os-row:last-child { border-bottom: none; }
.os-row b { font-weight: 700; }
.os-row .muted { color: var(--muted); }

/* ---------- Search results ---------- */
.search-layout { max-width: 860px; margin: 0 auto; padding: 20px 0 50px; }
.search-layout h1 { font-size: 24px; }
.sr-count { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.sr-group { margin-bottom: 26px; }
.sr-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.sr-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 9px; color: var(--ink) !important; text-decoration: none !important; }
.sr-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sr-item .sr-t { font-weight: 700; font-size: 15px; }
.sr-item .sr-x { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sr-item .sr-meta { display: flex; gap: 10px; margin-top: 6px; align-items: center; }
.sr-empty { color: var(--muted); }

/* ---------- static / trust ---------- */
.static-layout { max-width: 780px; margin: 0 auto; padding: 22px 0 50px; }
.static-layout h1 { font-size: 28px; margin-bottom: 16px; }
.static-layout h2 { font-size: 20px; margin: 26px 0 10px; }
.static-layout p, .static-layout li { color: var(--ink-2); font-size: 15px; }

/* ---------- 404 ---------- */
.page404 { text-align: center; padding: 70px 0; }
.page404 h1 { font-size: 60px; margin-bottom: 6px; }
.page404 p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 40px 18px 26px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr 1.4fr; } }
.f-h { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.f-col a { display: block; color: var(--ink-2) !important; font-size: 13.5px; padding: 4px 0; }
.f-col a:hover { color: var(--ink) !important; }
.f-brand .logo { margin-bottom: 10px; }
.f-desc { font-size: 13.5px; color: var(--muted); }
.f-disclaimer { font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 16px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.notice-banner { background: var(--yellow-soft); border: 1px solid #f0e2bd; color: var(--yellow); border-radius: var(--r); padding: 13px 16px; font-size: 14px; font-weight: 600; margin: 14px 0; }
.ok-banner { background: var(--green-soft); border: 1px solid #c4ebdb; color: var(--green); border-radius: var(--r); padding: 13px 16px; font-size: 14px; font-weight: 600; margin: 14px 0; }
.err-banner { background: var(--red-soft); border: 1px solid #f3cccc; color: var(--red); border-radius: var(--r); padding: 13px 16px; font-size: 14px; font-weight: 600; margin: 14px 0; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-side {
  width: 220px; background: var(--ink); color: #cfd5df; padding: 18px 12px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .logo { color: #fff; padding: 6px 10px 16px; font-size: 16px; }
.admin-side a { color: #aab2bf; text-decoration: none !important; font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 9px; }
.admin-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side a.on { background: var(--accent); color: #fff; }
.admin-side .side-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5c6675; padding: 14px 12px 4px; }
.admin-main { flex: 1; min-width: 0; padding: 26px 26px 60px; }
.admin-main h1 { font-size: 24px; margin-bottom: 18px; }
.admin-top { display: none; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 18px; }
.admin-top .logo { color: #fff; font-size: 15px; }
@media (max-width: 900px) {
  .admin-side { display: none; }
  .admin-side.open { display: flex; position: fixed; inset: 0; width: 100%; z-index: 99; }
  .admin-top { display: flex; }
}
.admin-logout { color: #8b93a1 !important; font-size: 12.5px !important; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 900px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.kpi .kpi-v { font-size: 24px; font-weight: 800; }
.kpi .kpi-l { font-size: 12.5px; color: var(--muted); }
.kpi .kpi-d { font-size: 12px; color: var(--green); }
.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.admin-table th { text-align: left; padding: 11px 14px; background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover { background: var(--bg); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: var(--bg-soft); color: var(--muted); }
.admin-form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.admin-form .f-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 800px) { .admin-form .f-row { grid-template-columns: 1fr 1fr; } }
.admin-form label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 5px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; font: 500 14px var(--font); padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; outline: none; background: #fff;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--accent); }
.admin-form textarea { min-height: 90px; resize: vertical; }
.f-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.admin-card h2 { font-size: 17px; margin-bottom: 12px; }
.editor-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1100px) { .editor-grid { grid-template-columns: 1fr 1fr; } }
.editor-preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: 85vh; overflow-y: auto; }
.editor-preview .ep-frame { background: #fff; border-radius: var(--r); padding: 20px; }
.block-editor { display: flex; flex-direction: column; gap: 12px; }
.block-card { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; }
.block-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.block-type { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; }
.block-controls { display: flex; gap: 4px; }
.block-controls button { background: none; border: 1px solid var(--line-2); border-radius: 7px; font-size: 12px; padding: 3px 8px; cursor: pointer; color: var(--muted); }
.block-controls button:hover { color: var(--ink); border-color: var(--ink); }
.block-card input, .block-card textarea, .block-card select {
  width: 100%; font: 500 13.5px var(--font); padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 9px; outline: none; margin-bottom: 8px;
}
.block-card textarea { min-height: 64px; }
.add-block-row { display: flex; gap: 8px; align-items: center; }
.add-block-row select { width: auto; font: 600 13px var(--font); padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 32px; width: 100%; max-width: 400px; }
.login-card h1 { font-size: 21px; }
.login-card form { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.login-card input { font: 500 15px var(--font); padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; outline: none; }
.login-card input:focus { border-color: var(--accent); }
.wl-item { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wl-chip { font-size: 12px; font-weight: 700; background: var(--bg-soft); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.outbox-body { max-height: 420px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.seo-check-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: 13.5px; }
.seo-check-item.err { border-left-color: var(--red); }
.seo-check-item.ok { border-left-color: var(--green); }
.seo-check-item a { font-weight: 600; }

.btn-disabled{opacity:.58;cursor:not-allowed;pointer-events:none;user-select:none}
