/* ============================================================
   yulyessa.ru — дизайн-система
   Палитра и типографика перенесены из версии 1 (лендинг практикума),
   переписаны начисто под многостраничник + раздел статей.
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-2: #0c0c1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(139, 92, 246, 0.35);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --text: #e8e8f0;
  --text-muted: #9096a6;
  --text-dim: #6b7280;
  --green: #10b981;
  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ea580c);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139, 92, 246, 0.1); border: 1px solid var(--border-accent);
  border-radius: 100px; padding: 6px 15px;
  font-size: 0.74rem; font-weight: 600; color: var(--purple-light);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { font-size: 1.06rem; margin-top: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn-primary { background: var(--gradient-warm); color: #fff; box-shadow: 0 8px 30px rgba(245, 158, 11, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(245, 158, 11, .45); }
.btn-ghost { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 15, 0.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-logo span { color: var(--purple-light); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-tg { padding: 9px 20px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-accent); color: var(--text) !important; }

/* ── Hero ── */
.hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -280px; left: 55%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, .13) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.16rem; color: var(--text-muted); margin-bottom: 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; border-radius: 20px; display: block;
  border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .18);
}

/* ── Trust / About ── */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo img { width: 100%; border-radius: 18px; border: 1px solid var(--border); }
.about-text h2 { margin-bottom: 18px; }
.about-text p + p { margin-top: 14px; }
.about-proofs { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.proof-num { font-size: 1.8rem; font-weight: 800; }
.proof-label { font-size: 0.9rem; color: var(--text-dim); }

/* ── Cards (entry points / articles) ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s, background .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-accent); background: var(--bg-card-hover); }
.card-ico { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; flex-grow: 1; }
.card-link { margin-top: 16px; color: var(--purple-light); font-weight: 600; font-size: 0.95rem; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.article-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.article-card .body { padding: 24px; }
.article-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--purple-light); font-weight: 600; }
.article-card h3 { margin: 10px 0; font-size: 1.1rem; }
.article-card p { font-size: 0.94rem; }
.placeholder { display: flex; align-items: center; justify-content: center; min-height: 240px; color: var(--text-dim); border-style: dashed; }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); transition: transform .2s, border-color .2s; }
.review:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.review img { width: 100%; display: block; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }

/* ── Consult CTA band ── */
.band {
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(139, 92, 246, .12));
  border: 1px solid var(--border-accent); border-radius: 20px;
  padding: 48px; text-align: center;
}
.band h2 { margin-bottom: 14px; }
.band p { max-width: 560px; margin: 0 auto 26px; font-size: 1.06rem; }

/* ── FAQ (GEO) ── */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple-light); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; }

/* ── Article ── */
.subhero { padding: 54px 0 8px; }
.breadcrumbs { font-size: 0.86rem; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.article-hero { max-width: 760px; }
.article-hero h1 { margin: 14px 0 14px; }
.article-meta { font-size: 0.9rem; color: var(--text-dim); }
.article-lead { font-size: 1.18rem; color: var(--text-muted); margin-top: 18px; }
.article-body { max-width: 720px; margin: 38px auto 0; font-size: 1.08rem; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; color: var(--text-muted); }
.article-body a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--purple); padding: 4px 0 4px 20px; margin: 26px 0; color: var(--text); font-style: italic; }
.article-body strong { color: var(--text); }
.article-cta { max-width: 720px; margin: 46px auto 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 52px 0 40px; background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 34px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.96rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: 0.88rem; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; }
  .about-photo { max-width: 320px; }
  .cards, .articles-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-tg) { display: none; }
  .band { padding: 34px 22px; }
  .section { padding: 62px 0; }
}
