:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-weak: #eff6ff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --success: #16a34a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 24px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; font-size: 22px; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom:10px;}
.textarea {min-height:82px;}
.btn {
  border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .15s;
}
.btnobs {width:100%;}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }

/* Categories */
.cats { background: #f1f5f9; border-bottom: 1px solid var(--line); }
.cats-row { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; }
.chip { white-space: nowrap; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }

/* Grid */
.grid { max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.card1, .card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card {  margin-bottom: 32px; transition: transform .15s ease; }
.cardiindex { padding: 24px; }
.card:hover { transform: translateY(-4px); }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.cover { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.cover2 { width: 100%;  object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

.card-body { padding: 16px 16px 20px; flex: 1; display: flex; flex-direction: column; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: #1d4ed8; margin-bottom: 8px; }
.title { font-size: 18px; font-weight: 700; margin: 6px 0 8px; }
.desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; flex-grow: 1; }
.btn-full { width: 100%; }

/* Newsletter */
.news { background: var(--brand-weak); border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.news-inner { max-width: 720px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.news h2 { margin: 0 0 8px; font-size: 24px; }
.news p { margin: 0 0 20px; color: var(--muted); }
.email { width: 320px; max-width: 70vw; }

/* Info sections */
.section { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.section h2 { font-size: 22px; margin: 0 0 12px; }
.section p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.links { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.links a { color: var(--brand); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { display: grid; gap: 12px; max-width: 480px; }
.contact-form input, .contact-form  textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; width: 100%; }
.contact-form textarea { min-height: 100px; resize: vertical; }

/* Footer */
.footer { background: #f1f5f9; border-top: 1px solid var(--line); padding: 40px 24px 20px; margin-top: 48px; color: var(--muted); font-size: 14px; text-align: center; }
.footer-inner { max-width: 1120px; margin: 0 auto 32px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-col h3 { font-size: 16px; margin: 0 0 12px; color: var(--text); }
.footer-col p { margin: 4px 0; }
.footer-bottom { max-width: 1120px; margin: 0 auto; text-align: center; font-size: 13px; line-height: 1.5; }
.footer-bottom p { margin: 8px 0; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3,1fr); }
  .footer-bottom { text-align: left; }
}

/* Article */
.article { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.article h1 { font-size: 32px; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.hashtags { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag, .hashtag_ru { padding: 3px 7px; border-radius: 5px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.hashtag { background: var(--brand-weak); color: var(--brand); }
.hashtag:hover { background: #dbeafe; }
.hashtag_ru { background: var(--brand); color: white; }
.article p { line-height: 1.7; margin: 0 0 20px; font-size: 16px; color: var(--text); }
.article h2 { margin: 32px 0 16px; font-size: 24px; }
.article blockquote { margin: 24px 0; padding: 16px 24px; background: var(--brand-weak); border-left: 4px solid var(--brand); border-radius: 8px; color: var(--muted); font-style: italic; }

/* Share block */
.share-block { margin: 40px 0; padding: 20px; border-top: 1px solid var(--line); text-align: center; }
.share-block p { margin: 0 0 16px; font-weight: 600; }
.share-icons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.share-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; color: #fff; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.share-icons a:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tg { background: #0088cc; } .vk { background: #4c75a3; } .wa { background: #25d366; } .copy { background: #475569; }
.share-icons svg { width: 22px; height: 22px; fill: #fff; }

/* Copy toast */
.copy-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.copy-toast.show { opacity: 1; }

/* Tables */
table { width: 100%; margin-bottom: 20px; border: 1px solid #dddddd; border-collapse: collapse; }
table th { font-weight: bold; padding: 5px; background: #efefef; border: 1px solid #dddddd; }
table td { border: 1px solid #dddddd; padding: 5px; }

/* Pagination */ .pagination{display:flex;justify-content:center;gap:8px;padding:20px} .page-btn{border:1px solid var(--line);background:#fff;padding:8px 14px;border-radius:8px;cursor:pointer;text-decoration:none;} .page-btn.active{background:var(--brand);color:#fff;border-color:var(--brand);text-decoration:none}
