:root {
  --bg: #07111f;
  --bg-soft: #0f172a;
  --bg-card: rgba(255,255,255,.9);
  --card: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-3: #1d4ed8;
  --ok: #16a34a;
  --bad: #dc2626;
  --hero-panel-bg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.94));
  --hero-panel-text: #0f172a;
  --hero-panel-soft: #475569;
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, .08);
  --radius: 24px;
  --radius-sm: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14,165,233,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 26%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 38%, #f1f5f9 100%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .95; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 24px)); }
.site-header {
  padding: 28px 0;
  background: linear-gradient(135deg, #08111f 0%, #10316e 42%, #0ea5e9 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.08), transparent 25%),
    radial-gradient(circle at 88% 24%, rgba(255,255,255,.08), transparent 22%);
  pointer-events: none;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  filter: blur(10px);
}
.site-header.compact { padding: 16px 0; }
.blog-hero { padding: 52px 0 40px; }
.blog-hero-wrap { align-items: stretch; }
.header-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 720px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-panel {
  width: min(100%, 390px);
  backdrop-filter: blur(14px);
  background: var(--hero-panel-bg);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--hero-panel-text);
  box-shadow: 0 20px 50px rgba(7, 17, 31, .18);
}
.hero-panel-inner { padding: 22px; }
.hero-panel h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  margin-bottom: 12px;
  color: var(--hero-panel-text);
}
.hero-panel p {
  margin: 0 0 16px;
  color: var(--hero-panel-soft);
  line-height: 1.65;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(14,165,233,.14));
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.hero-highlights {
  display: grid;
  gap: 10px;
}
.hero-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(148,163,184,.18);
}
.hero-point strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--hero-panel-text);
}
.hero-point span {
  color: var(--hero-panel-soft);
  font-size: 14px;
  line-height: 1.5;
}
.hero-point-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
.eyebrow {
  font-size: 12px;
  opacity: .96;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
  font-weight: 700;
}
.eyebrow.dark { color: var(--accent); opacity: 1; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.12; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
.lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: 17px;
  line-height: 1.72;
}
.small-lead { font-size: 15px; max-width: 520px; }
.page-shell, .article-layout, .admin-grid { display: grid; gap: 22px; padding: 28px 0 40px; }
.page-shell { grid-template-columns: minmax(0,1fr) 320px; }
.article-layout { grid-template-columns: minmax(0,1fr); }
.content-col, .sidebar-col { min-width: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.articles-grid-modern .featured-card { grid-column: span 2; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226,232,240,.9);
  overflow: hidden;
}
.modern-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(59,130,246,.18);
}
.card-body { padding: 18px; }
.cover-wrap { display: block; overflow: hidden; background: #e2e8f0; }
.cover, .hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cover { transition: transform .28s ease; }
.article-card:hover .cover { transform: scale(1.03); }
.meta-line { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.author { margin-top: 14px; color: var(--muted); }
.author.big { margin-bottom: 20px; font-size: 16px; }
.card-bottom-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; }
.read-more { font-weight: 700; white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.btn.glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn.danger { background: #fff1f2; color: #b91c1c; border-color: #fecdd3; }
.btn-sm { min-height: 38px; padding: 0 12px; border-radius: 12px; font-size: 13px; }
.full-btn { width: 100%; }
.sticky-card { position: sticky; top: 20px; padding: 20px; }
.info-card + .info-card { margin-top: 16px; }
.info-card p { color: var(--text-soft); line-height: 1.7; }
.soft-card { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.96)); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { background: #eff6ff; color: #1d4ed8; padding: 9px 12px; border-radius: 999px; font-size: 13px; }
.section-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.page-intro { margin-bottom: 18px; }
.page-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.7;
}
.site-footer { padding: 24px 0 36px; color: var(--muted); }
.footer-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-shell { overflow: hidden; }
.article-full .card-body { padding: 24px; }
.article-content {
  font-size: 17px;
  line-height: 1.82;
  color: var(--text);
}
.article-content h2, .article-content h3 { margin-top: 28px; }
.article-content p, .article-content li { margin: 0 0 14px; }
.related-products { margin-top: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid #e2e8f0;
}
.product-card img { border-radius: 14px; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 10px; }
.price { font-weight: 700; }
.share-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.install-page { min-height: 100vh; display: grid; place-items: center; }
.install-card { padding: 22px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-form label { display: grid; gap: 8px; font-weight: 700; color: var(--text); }
.grid-form input, .grid-form textarea, .inline-form-row input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.full { grid-column: 1 / -1; }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 12px; }
.alert.success { background: #ecfdf5; color: #166534; }
.alert.error { background: #fef2f2; color: #991b1b; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { padding: 18px; display: grid; gap: 8px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 30px; }
.admin-panel-block { padding: 18px; }
.admin-split { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 12px; }
.inner-card { background: #fff; border-radius: 20px; box-shadow: none; }
.admin-action-box { padding: 16px; }
.inline-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }
.responsive-table { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-title-cell { display: grid; gap: 4px; }
.table-title-cell small { color: var(--muted); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.log-list { display: grid; gap: 10px; }
.log-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; }
.log-item.success { border-left: 4px solid var(--ok); }
.log-item.error { border-left: 4px solid var(--bad); }
.muted { color: var(--muted); }
.back-link { color: #fff; font-weight: 700; }
@media (max-width: 980px) {
  .page-shell, .cards-grid, .product-grid, .stats-grid, .grid-form, .admin-split { grid-template-columns: 1fr; }
  .articles-grid-modern .featured-card { grid-column: auto; }
  .header-wrap, .blog-hero-wrap { align-items: flex-start; flex-direction: column; }
  .footer-wrap, .card-bottom-row, .section-head { flex-direction: column; align-items: flex-start; }
  .hero-panel { width: 100%; }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 16px, 1180px); }
  .blog-hero { padding: 34px 0 24px; }
  .card-body, .sticky-card, .admin-panel-block, .article-full .card-body { padding: 16px; }
  .hero-panel-inner { padding: 16px; }
  .lead { font-size: 15px; }
  .meta-line, .page-subtitle, .info-card p, .article-content { font-size: 15px; }
  .share-row .btn, .hero-actions .btn, .admin-actions-top .btn { width: 100%; }
  .table-actions { min-width: 180px; }
  th, td { padding: 10px 8px; }
}

.expert-box {
  margin: 22px 0;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.expert-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.expert-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
}
.expert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}
.article-expert-box {
  margin-top: 26px;
}
@media (max-width: 640px) {
  .expert-box { padding: 16px; border-radius: 18px; }
  .expert-title { font-size: 18px; }
  .expert-text { font-size: 14px; }
  .expert-btn { width: 100%; }
}

.article-category { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:12px; font-weight:800; }
.article-angle { margin: 10px 0 0; color: var(--text-soft); font-size: 14px; }
.order-input { max-width: 90px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
