/* SEO-раздел «Статьи» basemind.tech — оформление в точности как на главной
   (лендинг): та же шапка, тот же фон-градиент, шрифты Comfortaa/Inter,
   стеклянные карточки и такой же футер. */

:root {
  --g1: #F9E1C9;
  --g2: #F6CCE6;
  --g3: #E5D9FF;
  --g4: #DDF2FF;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-strong: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.75);
  --ring: rgba(189, 127, 255, 0.45);
  --brand1: #F2A6D6;
  --brand2: #A8C9FF;
  --ink: #0f172a;
  --muted: #475569;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Фон на html (а не на body): при overscroll/резиновом скролле за краем
     body не просвечивает белая полоса — градиент покрывает весь вьюпорт. */
  background: linear-gradient(120deg, var(--g1) 0%, var(--g2) 35%, var(--g3) 70%, var(--g4) 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Контентная часть — та же ширина, что на главной (max-w-7xl ≈ 1280px) */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; width: 100%; }

main.container { flex: 1; width: 100%; padding-top: 8px; padding-bottom: 48px; }

/* ── Header (как LandingHeader на главной) ─────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo svg { display: block; }
.logo-text {
  font-family: 'Comfortaa', sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-family: 'Comfortaa', sans-serif;
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-login {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.header-login:hover { color: var(--ink); }

/* Кнопка как на главной (.btn-primary из landing-styles.css) */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 10px 18px;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 20px rgba(189, 127, 255, 0.35);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 220% at -10% 0%, rgba(255, 255, 255, 0.35), transparent 40%),
              radial-gradient(120% 220% at 110% 120%, rgba(255, 255, 255, 0.25), transparent 45%);
  opacity: 0.6;
}
.btn-primary::after {
  content: "";
  position: absolute; top: -150%; left: -30%; width: 60%; height: 300%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  filter: blur(16px);
  opacity: 0.35;
  animation: shimmer 2.1s linear infinite;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(189, 127, 255, 0.45); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Бургер — только на мобильных */
.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 8px; border-radius: 10px;
}
.burger:hover { background: rgba(255, 255, 255, 0.5); }

/* Мобильное меню */
.mobile-menu {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mobile-menu nav {
  max-width: 1280px; margin: 0 auto; padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px; color: var(--muted); text-decoration: none;
  padding: 10px 8px; border-radius: 10px;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ink); background: rgba(255,255,255,0.6); }
.mobile-menu .btn-primary { justify-content: center; margin-top: 8px; }

/* ── Breadcrumbs ────────────────────────── */
.breadcrumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 22px 0 10px; font-size: 13px; color: #94a3b8; }
.breadcrumbs a { color: #64748b; text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* ── Карточка статьи (стекло, как lg-glass на главной) ── */
.article, .index-head {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 44px;
  margin: 14px 0 36px;
  box-shadow: 0 10px 30px rgba(52, 72, 104, 0.15), 0 4px 12px rgba(52, 72, 104, 0.10);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.article-head { margin-bottom: 28px; }
.article-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #64748b; margin-bottom: 14px; flex-wrap: wrap; }
.cat {
  background: linear-gradient(135deg, rgba(242,166,214,.25), rgba(168,201,255,.25));
  color: #7c3aed; padding: 4px 12px; border-radius: 999px; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.article h1 { font-size: 34px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; font-family: 'Comfortaa', sans-serif; font-weight: 700; }
.article-lead { font-size: 18px; color: var(--muted); margin: 0; }

.article-body h2 {
  font-size: 24px; margin: 38px 0 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08); padding-top: 26px;
  font-family: 'Comfortaa', sans-serif;
}
.article-body h3 { font-size: 19px; margin: 26px 0 10px; color: #312e81; font-family: 'Comfortaa', sans-serif; }
.article-body p { margin: 0 0 16px; }
.article-body .lead { font-size: 17px; color: var(--muted); }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #1e1b4b; }
.article-body a { color: #6d28d9; text-decoration: underline; text-underline-offset: 3px; }
blockquote {
  margin: 20px 0; padding: 16px 22px; border-left: 4px solid var(--brand1);
  background: rgba(242, 166, 214, 0.12); border-radius: 0 14px 14px 0; color: #4c1d95;
}
.seo-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; background: rgba(255,255,255,.7); border-radius: 12px; overflow: hidden; }
.seo-table td { padding: 10px 14px; border-bottom: 1px solid rgba(15,23,42,.07); }

/* ── FAQ ────────────────────────────────── */
.faq { margin-top: 40px; }
.faq h2 { font-size: 24px; font-family: 'Comfortaa', sans-serif; }
.faq-item {
  background: rgba(255,255,255,.75); border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px; margin-bottom: 12px; padding: 14px 18px;
}
.faq-item summary { font-weight: 600; cursor: pointer; color: #1e1b4b; }
.faq-item p { margin: 12px 0 4px; color: var(--muted); font-size: 15px; }

/* ── Related ────────────────────────────── */
.related { margin-top: 40px; }
.related h2 { font-size: 22px; font-family: 'Comfortaa', sans-serif; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.rel-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(100,116,139,.18); }
.rel-tag { font-size: 12px; color: #7c3aed; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rel-title { font-weight: 600; font-size: 15px; line-height: 1.4; }

/* ── CTA ────────────────────────────────── */
.cta {
  margin-top: 44px; padding: 34px 36px; border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, rgba(242,166,214,.28), rgba(168,201,255,.3));
  border: 1px solid rgba(255,255,255,.9);
}
.cta h2 { margin: 0 0 10px; font-size: 24px; font-family: 'Comfortaa', sans-serif; }
.cta p { color: var(--muted); margin: 0 0 20px; }

/* ── Блок «Как BaseMind решает эту проблему» ── */
.bm-card {
  position: relative;
  margin: 28px 0;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(242,166,214,.18), rgba(168,201,255,.22));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(52, 72, 104, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.bm-badge {
  display: inline-block;
  font-family: 'Comfortaa', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.bm-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 20px; margin: 0 0 12px; color: var(--ink);
}
.bm-text { color: var(--muted); margin: 0 0 14px; }
.bm-items { margin: 0 0 18px; padding-left: 20px; }
.bm-items li { margin-bottom: 8px; color: var(--ink); }
.bm-card .btn-primary { margin-top: 4px; }


/* ── Index / cards ──────────────────────── */
.index-head h1 { font-size: 36px; margin: 0 0 14px; font-family: 'Comfortaa', sans-serif; }
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 40px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 26px; text-decoration: none; color: var(--ink);
  box-shadow: 0 10px 30px rgba(52, 72, 104, 0.15), 0 4px 12px rgba(52, 72, 104, 0.10);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(100,116,139,.18); }
.post-card h2 { font-size: 18px; line-height: 1.35; margin: 0; font-family: 'Comfortaa', sans-serif; }
.post-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.post-cat { font-size: 12px; color: #7c3aed; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.post-meta { font-size: 13px; color: #94a3b8; }

/* ── Footer (как LandingFooter на главной) ── */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 32px 0 48px;
  background: rgba(255, 255, 255, 0.4);
  font-family: 'Comfortaa', sans-serif;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: #64748b; font-size: 14px; }

/* ── Animations ─────────────────────────── */
@keyframes shimmer {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* ── Cookie-баннер (как CookieBanner на главной) ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  animation: cookieSlideUp 0.4s ease-out;
  font-family: 'Inter', system-ui, sans-serif;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-content { flex: 1; min-width: 300px; }
.cookie-title {
  font-size: 1rem; font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Comfortaa', sans-serif;
}
.cookie-text {
  font-size: 0.875rem; line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}
.cookie-text a { color: #F2A6D6; text-decoration: underline; }
.cookie-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.cookie-link { font-size: 0.813rem; color: #F2A6D6; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Comfortaa', sans-serif;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, #F2A6D6, #A8C9FF);
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 166, 214, 0.4);
}
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 166, 214, 0.5); }
.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-btn-decline:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 768px) {
  .cookie-banner { padding: 1rem; }
  .cookie-container { flex-direction: column; gap: 1rem; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 860px) {
  .article, .index-head { padding: 26px 22px; border-radius: 18px; }
  .article h1 { font-size: 26px; }
  .article-body h2 { font-size: 20px; }
  .posts-grid, .rel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .burger { display: inline-flex; }
  .article h1 { font-size: 24px; }
  .footer-links { gap: 12px 16px; }
}
