/*
Theme Name: Ardenisov
Theme URI: https://ardenisov.ru
Author: Артём Денисов
Author URI: https://ardenisov.ru
Description: Кастомная тема экспертного блога Артёма Денисова (Gen AI, Midjourney, no-code автоматизации). Дизайн «Editorial Tech» — микс эстетики Яндекс Практикума и Нетологии. Светлая, конверсионная, заточена под SEO/GEO-лонгриды.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ardenisov
*/

/* ============ Tokens ============ */
:root {
  --ink: #0e0f14;
  --text: #2a2d3a;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --border: #e8e9f1;

  --blue: #0a84ff;
  --cyan: #00d2ff;
  --violet: #7f5dd8;
  --yellow: #ffe000;
  --pro: #0f9d58;
  --con: #e0552d;

  --grad: linear-gradient(135deg, var(--blue), var(--cyan));
  --grad-vi: linear-gradient(135deg, var(--blue), var(--violet));

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(16, 18, 40, .07);
  --shadow-sm: 0 4px 14px rgba(16, 18, 40, .06);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.3rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-family: var(--font-head); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 20px rgba(255, 224, 0, .35); }
.btn-cta:hover { box-shadow: 0 10px 26px rgba(255, 224, 0, .5); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: nowrap; }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; flex-shrink: 0; }
.brand b { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.18rem; white-space: nowrap; }
.brand span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: nowrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .btn-cta { padding: 9px 18px; font-size: .9rem; white-space: nowrap; box-shadow: 0 4px 14px rgba(255, 224, 0, .3); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ============ Hero ============ */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; color: var(--muted); margin-bottom: 18px; font-weight: 600;
}
.hero h1 { margin: 0 0 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 34ch; margin: 0 0 24px; }
.trust { display: flex; gap: 28px; margin: 22px 0 26px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item small { display: block; color: var(--muted); font-size: .78rem; }
.trust-item b { font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.hero-visual {
  aspect-ratio: 1 / .82; border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 80% 10%, rgba(0, 210, 255, .25), transparent 50%),
              radial-gradient(120% 120% at 20% 90%, rgba(127, 93, 216, .22), transparent 55%),
              var(--surface);
  border: 1px solid var(--border); position: relative;
}
.hero-visual .chip {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--ink);
}

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

/* Program cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.4rem; margin-bottom: 16px; font-weight: 800;
}
.card.violet .ic { background: var(--grad-vi); }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.card a.more { font-weight: 700; font-family: var(--font-head); }

/* Post cards */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; }
.post-card .meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.badge { background: var(--surface); border: 1px solid var(--border); color: var(--violet); font-weight: 700; font-size: .74rem; padding: 4px 10px; border-radius: 999px; }
.post-card .meta time { color: var(--muted); font-size: .8rem; }
.post-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--grad-vi); color: #fff; border-radius: var(--radius-lg);
  padding: 48px; text-align: center; margin: 24px 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 56ch; margin: 12px auto 24px; opacity: .95; }

/* ============ Article ============ */
.article { padding: 48px 0 64px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 28px; }
.article-header .badge { margin-bottom: 14px; }
.article-header h1 { margin: 0 0 12px; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; }
.article-body { font-size: 1.05rem; }
.article-body h2 { scroll-margin-top: 90px; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); font-weight: 600; }

/* GEO/SEO content blocks (совпадают с mu-plugin ardenisov-geo) */
.geo-answer { position: relative; background: linear-gradient(135deg, rgba(10,132,255,.07), rgba(0,210,255,.07)); border: 1px solid rgba(10,132,255,.22); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px 20px 18px 48px; margin: 0 0 28px; font-size: 1.05rem; }
.geo-answer::before { content: "\2726"; position: absolute; left: 18px; top: 16px; color: var(--blue); font-size: 1.2rem; }
.review-table { margin: 0 0 28px; width: 100%; overflow-x: auto; }
.review-table table { width: 100%; border-collapse: collapse; }
.review-table th, .review-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.review-table th[scope="row"] { width: 34%; font-weight: 700; color: var(--ink); background: var(--surface); }
.source-note { color: var(--muted); font-size: .9rem; margin: -14px 0 26px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 28px; }
.proscons .pros, .proscons .cons { border-radius: var(--radius); padding: 18px 20px; background: #fff; border: 1px solid var(--border); }
.proscons .pros { border-top: 4px solid var(--pro); }
.proscons .cons { border-top: 4px solid var(--con); }
.proscons h3 { margin-top: 0; }
.expert-comment { border-left: 4px solid var(--cyan); background: #f3fdff; border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.expert-comment cite { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: normal; }
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; color: var(--blue); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 18px 16px; margin: 0; }
.cta-box { background: var(--grad-vi); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; margin: 32px 0; }
.cta-box h3 { color: #fff; margin-top: 0; }
.cta-button { display: inline-block; background: var(--yellow); color: var(--ink) !important; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; margin-top: 8px; }
.author-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 22px; margin: 32px 0 0; font-size: .98rem; }
.author-box strong { color: var(--ink); }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #c9cbd6; padding: 48px 0 32px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; color: #8a8d9c; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .cards { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: #fff; padding: 18px 24px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .btn { display: none; }
  .proscons { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
}

/* ============ Лид-магнит (бонус-блок, отличается от основного CTA) ============ */
.article-body .cta-box.lead-magnet { background: #fffdf2; color: var(--text); border: 2px dashed #e0a500; }
.article-body .cta-box.lead-magnet h3 { color: var(--ink); }
.article-body .cta-box.lead-magnet em { color: #9a7b00; }

/* ============ Пиксель-hero (лонгриды/pillar) ============ */
.pixel-hero {
  position: relative; width: 100%; min-height: clamp(420px, 64vh, 600px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 100% at 78% 18%, rgba(127,93,216,.32) 0%, rgba(127,93,216,0) 55%),
    radial-gradient(90% 90% at 12% 100%, rgba(10,132,255,.22) 0%, rgba(10,132,255,0) 60%),
    linear-gradient(160deg, #140f29 0%, #0b0a17 55%, #07060d 100%);
}
.pixel-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.pixel-hero__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,6,13,.82) 0%, rgba(7,6,13,.55) 42%, rgba(7,6,13,.12) 72%, rgba(7,6,13,0) 100%),
    linear-gradient(0deg, rgba(7,6,13,.65) 0%, rgba(7,6,13,0) 45%);
}
.pixel-hero__content {
  position: relative; z-index: 3; width: 100%; max-width: var(--container);
  margin: 0 auto; padding: clamp(28px,6vw,72px) 24px;
}
.pixel-hero__kicker {
  display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-head);
  font-weight: 700; font-size: clamp(.72rem,1.4vw,.82rem); letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: rgba(127,93,216,.28);
  border: 1px solid rgba(180,160,240,.45); border-radius: 999px; padding: .5em 1em; backdrop-filter: blur(4px);
}
.pixel-hero__kicker::before { content: ""; width: .55em; height: .55em; border-radius: 2px; background: var(--yellow); box-shadow: 0 0 10px rgba(255,224,0,.9); }
.pixel-hero__title {
  font-family: var(--font-head); font-weight: 800; color: #fff; line-height: 1.08;
  letter-spacing: -.02em; font-size: clamp(2rem,5.4vw,4rem); margin: .5em 0 .35em;
  max-width: 18ch; text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.pixel-hero__subtitle {
  font-size: clamp(1rem,2.1vw,1.28rem); color: rgba(255,255,255,.86);
  max-width: 56ch; margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
@media (max-width: 640px) {
  .pixel-hero { min-height: clamp(360px,66vh,500px); }
  .pixel-hero__overlay { background: linear-gradient(0deg, rgba(7,6,13,.85) 0%, rgba(7,6,13,.35) 55%, rgba(7,6,13,.1) 100%); }
  .pixel-hero__title { max-width: none; }
}
