/* Темы оформления. Базовые стили — styles.css (тема «Классика»). */

/* =========================================================
   2. КОРПОРАТИВНАЯ — графит, синий, строгая сетка
   ========================================================= */
html[data-theme="corporate"] {
  --ink:#16202b; --muted:#5b6875; --forest:#132133; --sage:#e8edf3; --paper:#f4f6f9; --white:#fff;
  --terracotta:#1f5ae0; --terracotta-pale:#dfe8fc; --line:#d5dde6; --accent-on-dark:#8fb4ff;
  --serif:"IBM Plex Serif", Georgia, serif; --sans:"IBM Plex Sans", system-ui, sans-serif;
  --tip-bg:#132133; --tip-ink:#fff;
}
[data-theme="corporate"] .site-header { background:rgba(244,246,249,.94); border-bottom:1px solid var(--line); }
[data-theme="corporate"] h1 { font-weight:600; letter-spacing:-.025em; line-height:1.03; font-size:clamp(42px,4.6vw,66px); }
[data-theme="corporate"] h2 { font-weight:600; letter-spacing:-.02em; line-height:1.06; font-size:clamp(32px,3.5vw,48px); }
[data-theme="corporate"] h3 { letter-spacing:-.02em; }
[data-theme="corporate"] .eyebrow, [data-theme="corporate"] .section-index { letter-spacing:.14em; }
[data-theme="corporate"] .section-index::before, [data-theme="corporate"] .eyebrow::before { content:''; display:block; width:34px; height:2px; margin-bottom:12px; background:var(--terracotta); }
[data-theme="corporate"] .button, [data-theme="corporate"] .nav-contact { border-radius:2px; }
/* IBM Plex Sans доходит до 700 — не даём браузеру синтезировать 800 */
[data-theme="corporate"] .brand, [data-theme="corporate"] .eyebrow, [data-theme="corporate"] .section-index, [data-theme="corporate"] .button, [data-theme="corporate"] .text-link, [data-theme="corporate"] .service-card span, [data-theme="corporate"] .case-card .role, [data-theme="corporate"] .timeline time, [data-theme="corporate"] .outcome-list li::before, [data-theme="corporate"] .education span, [data-theme="corporate"] .menu-toggle { font-weight:700; }
[data-theme="corporate"] .portrait-accent { top:auto; right:auto; bottom:18px; left:-28px; width:86%; height:80%; border-radius:0; }
[data-theme="corporate"] .portrait-card { padding:10px; border:1px solid var(--line); box-shadow:none; }
[data-theme="corporate"] .portrait-card img { height:288px; filter:grayscale(.28) saturate(.9) contrast(1.04); }
[data-theme="corporate"] .portrait-card figcaption { border-top:1px solid var(--line); margin-top:10px; padding-top:12px; }
[data-theme="corporate"] .stats { background:var(--white); color:var(--ink); border-top:2px solid var(--forest); border-bottom:1px solid var(--line); }
[data-theme="corporate"] .stats div, [data-theme="corporate"] .stats div:nth-child(-n+2), [data-theme="corporate"] .stats div:last-child { border-color:var(--line); }
[data-theme="corporate"] .stats strong { color:var(--terracotta); font:600 40px/1 var(--sans); letter-spacing:-.03em; }
[data-theme="corporate"] .stats span { color:var(--muted); font-size:11px; letter-spacing:.02em; }
[data-theme="corporate"] .approach { background:var(--white); }
[data-theme="corporate"] blockquote { padding-left:22px; border-left:4px solid var(--terracotta); font:600 clamp(21px,2.3vw,28px)/1.32 var(--sans); letter-spacing:-.02em; }
[data-theme="corporate"] .service-card { border-top:2px solid transparent; transition:background .2s ease, border-top-color .2s ease; }
[data-theme="corporate"] .service-card:hover { background:var(--white); border-top-color:var(--terracotta); }
[data-theme="corporate"] .service-card span { display:inline-block; padding:4px 9px; background:var(--terracotta-pale); }
[data-theme="corporate"] .outcome-list { counter-reset:oc; }
[data-theme="corporate"] .outcome-list li { padding-left:44px; border-color:rgba(22,32,43,.16); color:#3a4854; }
[data-theme="corporate"] .outcome-list li::before { content:counter(oc,decimal-leading-zero); counter-increment:oc; font-size:12px; letter-spacing:.06em; }
[data-theme="corporate"] .case-meta { padding-left:16px; border-left:2px solid var(--terracotta); }
[data-theme="corporate"] .education { border-left:3px solid var(--terracotta); }
[data-theme="corporate"] .timeline time { letter-spacing:.04em; }
@media (min-width: 901px) {
  [data-theme="corporate"] .hero-grid { grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr); gap:64px; }
  [data-theme="corporate"] .hero-copy { order:2; }
  [data-theme="corporate"] .portrait-wrap { order:1; }
  [data-theme="corporate"] .portrait-wrap { flex-direction:column; gap:16px; }
  [data-theme="corporate"] .portrait-caption { position:static; width:auto; transform:none; }
  [data-theme="corporate"] .case-card { grid-template-columns:230px 1fr; gap:56px; }
  [data-theme="corporate"] .section-heading { grid-template-columns:1fr 2.6fr; }
}

/* =========================================================
   3. НОЧЬ — тёмная премиальная, золотой акцент
   ========================================================= */
html[data-theme="noir"] {
  --ink:#f2efe9; --muted:#95918a; --forest:#08080a; --sage:#101013; --paper:#0c0c0e; --white:#101013;
  --terracotta:#c8a96a; --terracotta-pale:#1c1913; --line:#2a2a30; --accent-on-dark:#c8a96a;
  --serif:"Prata", Georgia, serif; --sans:"Golos Text", system-ui, sans-serif;
  --tip-bg:#c8a96a; --tip-ink:#0c0c0e;
}
[data-theme="noir"] .site-header { background:rgba(12,12,14,.88); border-bottom:1px solid var(--line); }
[data-theme="noir"] h1 { font-weight:400; letter-spacing:-.01em; line-height:1.06; font-size:clamp(40px,4.6vw,68px); }
[data-theme="noir"] h2 { font-weight:400; letter-spacing:-.01em; line-height:1.1; font-size:clamp(32px,3.6vw,50px); }
[data-theme="noir"] h3 { font-weight:600; letter-spacing:-.02em; }
[data-theme="noir"] .eyebrow, [data-theme="noir"] .section-index { letter-spacing:.2em; }
[data-theme="noir"] .button, [data-theme="noir"] .nav-contact { border-radius:0; }
[data-theme="noir"] .button-primary { background:var(--terracotta); color:#0c0c0e; }
[data-theme="noir"] .nav-contact { border-color:rgba(200,169,106,.5); color:var(--terracotta); }
[data-theme="noir"] .nav-contact:hover { background:var(--terracotta); color:#0c0c0e!important; }
[data-theme="noir"] .text-link { border-bottom-color:rgba(200,169,106,.55); }
[data-theme="noir"] .menu-toggle { color:var(--ink); }
[data-theme="noir"] .menu-toggle span, [data-theme="noir"] .menu-toggle span::after { background:var(--ink); }
[data-theme="noir"] .portrait-accent { background:transparent; border:1px solid rgba(200,169,106,.35); border-radius:0; }
[data-theme="noir"] .portrait-card { padding:0; background:transparent; box-shadow:none; }
[data-theme="noir"] .portrait-card img { height:380px; filter:grayscale(1) sepia(.4) contrast(1.06) brightness(.94); }
[data-theme="noir"] .portrait-card figcaption { padding:16px 0 0; color:var(--terracotta); letter-spacing:.22em; }
[data-theme="noir"] .portrait-card figcaption strong { color:var(--ink); letter-spacing:-.01em; font-family:var(--serif); font-weight:400; }
[data-theme="noir"] .stats { background:transparent; color:var(--ink); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
[data-theme="noir"] .stats div, [data-theme="noir"] .stats div:nth-child(-n+2), [data-theme="noir"] .stats div:last-child { border-color:var(--line); }
[data-theme="noir"] .stats strong { color:var(--terracotta); font-weight:400; font-size:50px; }
[data-theme="noir"] .stats span { color:var(--muted); }
[data-theme="noir"] .approach, [data-theme="noir"] .experience, [data-theme="noir"] .contribution { background:#101013; }
[data-theme="noir"] .outcomes { background:#0c0c0e; }
[data-theme="noir"] .services { border-bottom-color:var(--line); }
[data-theme="noir"] blockquote { max-width:820px; padding:0; border:0; font-weight:400; text-align:center; margin:56px auto 0; }
[data-theme="noir"] .outcome-list { border-top-color:var(--line); }
[data-theme="noir"] .outcome-list li { border-color:var(--line); color:var(--muted); }
[data-theme="noir"] .outcome-list li::before { content:'—'; }
[data-theme="noir"] .outcome-list strong { color:var(--ink); }
[data-theme="noir"] .case-list, [data-theme="noir"] .case-card, [data-theme="noir"] .timeline li, [data-theme="noir"] .service-card { border-color:var(--line); }
[data-theme="noir"] .case-card h3 { font-family:var(--serif); font-weight:400; letter-spacing:-.01em; }
[data-theme="noir"] .expertise-grid, [data-theme="noir"] .expertise-grid article { border-color:rgba(200,169,106,.25); }
[data-theme="noir"] .expertise-grid p { color:rgba(242,239,233,.6); }
[data-theme="noir"] .education { background:transparent; border:1px solid var(--line); }
[data-theme="noir"] .contact-links a { border-bottom-color:rgba(255,255,255,.14); }
[data-theme="noir"] .site-footer { border-top-color:var(--line); }
@media (min-width: 901px) {
  [data-theme="noir"] .hero-grid { grid-template-columns:1fr; gap:56px; justify-items:center; text-align:center; }
  [data-theme="noir"] .hero-copy { max-width:920px; }
  [data-theme="noir"] .hero-copy h1, [data-theme="noir"] .hero-lead { max-width:none; margin-left:auto; margin-right:auto; }
  [data-theme="noir"] .hero-actions { justify-content:center; }
  [data-theme="noir"] .portrait-wrap { width:100%; min-height:0; }
  [data-theme="noir"] .portrait-accent { inset:auto; top:-18px; left:0; right:0; width:100%; height:calc(100% + 36px); }
  [data-theme="noir"] .portrait-card { width:min(100%, 430px); }
  [data-theme="noir"] .portrait-card img { height:auto; object-fit:contain; }
  [data-theme="noir"] .portrait-card figcaption { text-align:center; }
  [data-theme="noir"] .portrait-caption { display:none; }
  [data-theme="noir"] .service-grid { grid-template-columns:1fr; border-left:0; }
  [data-theme="noir"] .service-card { display:grid; grid-template-columns:70px minmax(0,1fr) minmax(0,1.2fr); gap:40px; align-items:start; min-height:0; padding:32px 0; border-right:0; }
  [data-theme="noir"] .service-card h3 { margin:0; }
  [data-theme="noir"] .service-card p { font-size:14px; }
  [data-theme="noir"] .case-card { grid-template-columns:200px 1fr; gap:64px; }
}

/* =========================================================
   4. ЖУРНАЛ — крупная типографика, чёрно-белое, красный акцент
   ========================================================= */
html[data-theme="editorial"] {
  --ink:#111; --muted:#575450; --forest:#111; --sage:#eeece6; --paper:#fff; --white:#f5f3ee;
  --terracotta:#d23b2c; --terracotta-pale:#f7e3e0; --line:#d8d5cf; --accent-on-dark:#ff7d6b;
  --serif:"Playfair Display", Georgia, serif; --sans:"Onest", system-ui, sans-serif;
  --tip-bg:#111; --tip-ink:#fff;
}
[data-theme="editorial"] .site-header { background:rgba(255,255,255,.95); border-bottom:1px solid var(--ink); }
[data-theme="editorial"] h1 { font-weight:700; letter-spacing:-.03em; line-height:.94; font-size:clamp(46px,7vw,100px); max-width:none; }
[data-theme="editorial"] h2 { font-weight:700; letter-spacing:-.025em; line-height:1.02; font-size:clamp(34px,4.4vw,60px); }
[data-theme="editorial"] h3 { font-family:var(--serif); font-weight:700; font-size:24px; letter-spacing:-.01em; }
[data-theme="editorial"] .eyebrow, [data-theme="editorial"] .section-index { letter-spacing:.2em; font-size:10px; }
[data-theme="editorial"] .button, [data-theme="editorial"] .nav-contact { border-radius:0; }
[data-theme="editorial"] .portrait-accent { display:none; }
[data-theme="editorial"] .portrait-card { padding:0; background:transparent; box-shadow:none; }
[data-theme="editorial"] .portrait-card img { height:360px; filter:grayscale(1) contrast(1.07); }
[data-theme="editorial"] .portrait-card figcaption { margin-top:12px; padding:12px 0 0; border-top:1px solid var(--ink); }
[data-theme="editorial"] .stats { background:var(--paper); color:var(--ink); border-top:4px double var(--ink); border-bottom:1px solid var(--ink); }
[data-theme="editorial"] .stats div, [data-theme="editorial"] .stats div:nth-child(-n+2), [data-theme="editorial"] .stats div:last-child { border-color:var(--line); }
[data-theme="editorial"] .stats strong { color:var(--ink); font-weight:700; font-size:54px; }
[data-theme="editorial"] .stats span { color:var(--muted); letter-spacing:.06em; }
[data-theme="editorial"] .approach, [data-theme="editorial"] .experience, [data-theme="editorial"] .contribution { background:var(--paper); }
[data-theme="editorial"] .outcomes { background:var(--white); }
[data-theme="editorial"] blockquote { max-width:900px; margin:56px auto 0; padding:28px 0; border:0; border-top:3px solid var(--ink); border-bottom:3px solid var(--ink); font-style:italic; text-align:center; }
[data-theme="editorial"] .services { border-bottom:1px solid var(--ink); }
[data-theme="editorial"] .service-grid { border-left:0; border-top-color:var(--ink); }
[data-theme="editorial"] .service-card { border-bottom:0; padding:28px 24px 30px 0; }
[data-theme="editorial"] .service-card span { display:block; font:700 34px/1 var(--serif); letter-spacing:0; }
[data-theme="editorial"] .service-card h3 { margin-top:26px; }
[data-theme="editorial"] .outcome-list li::before { content:'—'; }
[data-theme="editorial"] .case-list { border-top-color:var(--ink); }
[data-theme="editorial"] .case-meta span:first-child { font:700 30px/1 var(--serif); }
[data-theme="editorial"] .case-meta span:last-child { font-size:11px; letter-spacing:.16em; text-transform:uppercase; }
[data-theme="editorial"] .timeline time { letter-spacing:.06em; }
[data-theme="editorial"] .education { background:var(--sage); border-top:3px solid var(--terracotta); }
@media (min-width: 901px) {
  [data-theme="editorial"] .section { padding:132px 0; }
  [data-theme="editorial"] .hero-grid { grid-template-columns:1fr; gap:48px; }
  [data-theme="editorial"] .portrait-wrap { min-height:0; }
  [data-theme="editorial"] .portrait-card { width:min(100%, 430px); }
  [data-theme="editorial"] .portrait-card img { height:auto; object-fit:contain; }
  [data-theme="editorial"] .portrait-card figcaption { display:flex; gap:10px; align-items:baseline; }
  [data-theme="editorial"] .portrait-caption { left:auto; right:0; bottom:-4px; transform:none; width:auto; }
  [data-theme="editorial"] .columns { gap:0; }
  [data-theme="editorial"] .columns p:first-child::first-letter { float:left; margin:6px 12px 0 0; color:var(--terracotta); font:700 64px/.78 var(--serif); }
  [data-theme="editorial"] .columns p:last-child { padding-left:40px; border-left:1px solid var(--line); }
  [data-theme="editorial"] .case-card { grid-template-columns:1fr 2.6fr; gap:64px; }
  [data-theme="editorial"] .section-heading { grid-template-columns:1fr 2.4fr; }
}

/* =========================================================
   5. ПРОДУКТ — карточки, индиго, SaaS
   ========================================================= */
html[data-theme="saas"] {
  --ink:#0f172a; --muted:#5b6478; --forest:#2b2a70; --sage:#eaeeff; --paper:#f5f7fc; --white:#fff;
  --terracotta:#4f46e5; --terracotta-pale:#e7e9ff; --line:#e2e6f0; --accent-on-dark:#a5b4fc;
  --serif:"Rubik", system-ui, sans-serif; --sans:"Golos Text", system-ui, sans-serif;
  --tip-bg:#2b2a70; --tip-ink:#fff;
}
[data-theme="saas"] .site-header { background:rgba(245,247,252,.92); border-bottom:1px solid var(--line); }
[data-theme="saas"] h1 { font-weight:600; letter-spacing:-.035em; line-height:1.04; font-size:clamp(40px,4.7vw,66px); }
[data-theme="saas"] h2 { font-weight:600; letter-spacing:-.032em; line-height:1.07; font-size:clamp(31px,3.4vw,46px); }
[data-theme="saas"] h3 { font-family:var(--serif); font-weight:600; letter-spacing:-.03em; font-size:21px; }
[data-theme="saas"] .button { border-radius:10px; padding:15px 20px; }
[data-theme="saas"] .button-primary { background:var(--terracotta); box-shadow:0 10px 24px rgba(79,70,229,.24); }
[data-theme="saas"] .nav-contact { border-radius:9px; border-color:var(--line); background:var(--white); }
[data-theme="saas"] .nav-contact:hover { background:var(--terracotta); border-color:var(--terracotta); }
[data-theme="saas"] .portrait-accent { background:linear-gradient(155deg,#e7e9ff,#f5f7fc); border-radius:26px; }
[data-theme="saas"] .portrait-card { padding:10px; border-radius:20px; box-shadow:0 18px 42px rgba(15,23,42,.12); }
[data-theme="saas"] .portrait-card img { height:270px; border-radius:14px; filter:saturate(1.04); }
[data-theme="saas"] .portrait-card figcaption { padding:14px 6px 2px; }
[data-theme="saas"] .stats { background:transparent; color:var(--ink); gap:14px; }
[data-theme="saas"] .stats div, [data-theme="saas"] .stats div:nth-child(-n+2), [data-theme="saas"] .stats div:last-child { background:var(--white); border:1px solid var(--line); border-radius:16px; box-shadow:0 6px 18px rgba(15,23,42,.05); }
[data-theme="saas"] .stats strong { color:var(--terracotta); font:600 40px/1 var(--serif); letter-spacing:-.035em; }
[data-theme="saas"] .stats span { color:var(--muted); font-size:12px; }
[data-theme="saas"] .approach, [data-theme="saas"] .experience, [data-theme="saas"] .contribution { background:var(--white); }
[data-theme="saas"] blockquote { padding:24px 26px; border-left:4px solid var(--terracotta); border-radius:0 16px 16px 0; background:var(--sage); font:600 clamp(21px,2.3vw,29px)/1.3 var(--serif); letter-spacing:-.03em; }
[data-theme="saas"] .services { border-bottom:0; }
[data-theme="saas"] .service-grid { gap:16px; border:0; }
[data-theme="saas"] .service-card { border:1px solid var(--line); border-radius:18px; background:var(--white); box-shadow:0 4px 14px rgba(15,23,42,.04); transition:transform .2s ease, box-shadow .2s ease; }
[data-theme="saas"] .service-card:hover { transform:translateY(-3px); box-shadow:0 16px 32px rgba(15,23,42,.09); }
[data-theme="saas"] .service-card span { display:inline-block; padding:5px 11px; border-radius:999px; background:var(--terracotta-pale); }
[data-theme="saas"] .outcome-list { border-top:0; display:grid; gap:10px; }
[data-theme="saas"] .outcome-list li { padding:18px 20px 18px 48px; background:var(--white); border:1px solid var(--line); border-radius:14px; color:#404b60; }
[data-theme="saas"] .outcome-list li::before { content:'✓'; left:20px; top:18px; }
[data-theme="saas"] .case-list { border-top:0; display:grid; gap:16px; }
[data-theme="saas"] .case-card { padding:28px; background:var(--white); border:1px solid var(--line); border-radius:18px; }
[data-theme="saas"] .case-meta span { display:inline-block; padding:5px 11px; border-radius:999px; background:var(--sage); color:var(--muted); font-size:11px; }
[data-theme="saas"] .case-meta span:last-child { background:var(--terracotta-pale); color:var(--terracotta); }
[data-theme="saas"] .timeline li { padding:16px 20px; border:1px solid var(--line); border-radius:14px; background:var(--white); margin-bottom:10px; }
[data-theme="saas"] .expertise-grid { border:0; gap:14px; }
[data-theme="saas"] .expertise-grid article, [data-theme="saas"] .expertise-grid article:nth-child(even), [data-theme="saas"] .expertise-grid article:nth-child(n+3) { border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.06); }
[data-theme="saas"] .education { border-radius:16px; }
[data-theme="saas"] .contact-links a { padding:14px 18px; margin-bottom:9px; border:1px solid rgba(255,255,255,.16); border-radius:12px; background:rgba(255,255,255,.06); }
[data-theme="saas"] .contact-links a:hover { background:rgba(255,255,255,.12); }
@media (min-width: 901px) {
  [data-theme="saas"] .section-heading { grid-template-columns:1fr; gap:12px; margin-bottom:44px; }
  [data-theme="saas"] .section-heading-wide { grid-template-columns:1fr 1.6fr; gap:60px; }
  [data-theme="saas"] .split-intro { grid-template-columns:1fr 2.6fr; gap:60px; }
  [data-theme="saas"] .case-card { grid-template-columns:1fr 3fr; gap:48px; }
}

/* =========================================================
   6. БУМАГА — тёплая пастель, мягкие формы
   ========================================================= */
html[data-theme="paper"] {
  --ink:#3f362f; --muted:#7d7166; --forest:#4a3a3f; --sage:#f0e8f0; --paper:#fdf7f0; --white:#fffaf4;
  --terracotta:#b3607a; --terracotta-pale:#f7e5ea; --line:#e9ded2; --accent-on-dark:#f0b7c6;
  --serif:"Alegreya", Georgia, serif; --sans:"Nunito", system-ui, sans-serif;
  --tip-bg:#4a3a3f; --tip-ink:#fffaf4;
}
[data-theme="paper"] .site-header { background:rgba(253,247,240,.93); border-bottom:1px solid var(--line); }
[data-theme="paper"] h1 { font-weight:700; letter-spacing:-.02em; line-height:1.04; font-size:clamp(42px,5vw,72px); }
[data-theme="paper"] h2 { font-weight:700; letter-spacing:-.02em; line-height:1.08; font-size:clamp(33px,3.7vw,52px); }
[data-theme="paper"] h3 { font-weight:700; letter-spacing:-.01em; }
[data-theme="paper"] .button { border-radius:999px; padding:15px 24px; }
[data-theme="paper"] .button-primary { background:var(--forest); }
[data-theme="paper"] .nav-contact { border-radius:999px; border-color:var(--line); background:var(--white); }
[data-theme="paper"] .portrait-accent { top:12px; right:-22px; width:88%; height:88%; background:var(--terracotta-pale); border-radius:999px 999px 44px 44px; }
[data-theme="paper"] .portrait-card { padding:14px; border-radius:190px 190px 30px 30px; box-shadow:0 16px 36px rgba(90,70,60,.13); }
[data-theme="paper"] .portrait-card img { height:290px; border-radius:170px 170px 20px 20px; filter:sepia(.14) saturate(.96); }
[data-theme="paper"] .portrait-card figcaption { text-align:center; padding-top:14px; }
[data-theme="paper"] .stats { background:transparent; color:var(--ink); gap:12px; }
[data-theme="paper"] .stats div, [data-theme="paper"] .stats div:nth-child(-n+2), [data-theme="paper"] .stats div:last-child { background:var(--white); border:1px solid var(--line); border-radius:24px; }
[data-theme="paper"] .stats strong { color:var(--terracotta); font-family:var(--serif); font-weight:700; font-size:42px; }
[data-theme="paper"] .stats span { color:var(--muted); font-size:12px; }
[data-theme="paper"] .approach, [data-theme="paper"] .experience, [data-theme="paper"] .contribution { background:var(--white); }
[data-theme="paper"] blockquote { padding:28px 32px; border:0; border-radius:28px; background:var(--terracotta-pale); font-weight:700; }
[data-theme="paper"] .services { border-bottom:0; }
[data-theme="paper"] .service-grid { gap:14px; border:0; }
[data-theme="paper"] .service-card { border:1px solid var(--line); border-radius:26px; background:var(--white); padding:28px; }
[data-theme="paper"] .outcome-list { border-top:0; display:grid; gap:9px; }
[data-theme="paper"] .outcome-list li { padding:18px 22px 18px 46px; border:1px solid var(--line); border-radius:20px; background:var(--white); color:#5d5147; }
[data-theme="paper"] .outcome-list li::before { content:'●'; left:22px; top:19px; font-size:9px; }
[data-theme="paper"] .case-list { border-top:0; display:grid; gap:14px; }
[data-theme="paper"] .case-card { padding:30px; border:1px solid var(--line); border-radius:28px; background:var(--white); }
[data-theme="paper"] .timeline li { padding:15px 22px; border:1px solid var(--line); border-radius:18px; background:var(--white); margin-bottom:9px; }
[data-theme="paper"] .expertise-grid { border:0; gap:12px; }
[data-theme="paper"] .expertise-grid article, [data-theme="paper"] .expertise-grid article:nth-child(even), [data-theme="paper"] .expertise-grid article:nth-child(n+3) { border:0; border-radius:24px; background:rgba(255,255,255,.08); }
[data-theme="paper"] .education { border-radius:24px; }
[data-theme="paper"] .contact-links a { padding:14px 24px; margin-bottom:9px; border:0; border-radius:999px; background:rgba(255,255,255,.09); }
[data-theme="paper"] .contact-links a:hover { background:rgba(255,255,255,.16); }
@media (min-width: 901px) {
  [data-theme="paper"] .section-heading { grid-template-columns:1fr; gap:10px; text-align:center; justify-items:center; }
  [data-theme="paper"] .section-heading h2 { max-width:820px; }
  [data-theme="paper"] .section-heading-wide { grid-template-columns:1fr; }
  [data-theme="paper"] .section-heading-wide p:not(.section-index) { margin-inline:auto; }
  [data-theme="paper"] .split-intro { grid-template-columns:1fr 2.4fr; gap:60px; }
  [data-theme="paper"] .case-card { grid-template-columns:1fr 3fr; gap:48px; }
}

/* =========================================================
   Мобильные уточнения для всех тем
   ========================================================= */
@media (max-width: 900px) {
  [data-theme] .service-card { min-height:auto; }
  [data-theme="saas"] .case-card, [data-theme="paper"] .case-card { padding:26px; }
  [data-theme="paper"] .section-heading, [data-theme="paper"] .section-heading-wide { text-align:left; }
}
@media (max-width: 760px) {
  [data-theme] .portrait-card img { height:240px; }
  [data-theme="noir"] .portrait-card img, [data-theme="editorial"] .portrait-card img { height:300px; }
  [data-theme="noir"] .portrait-caption, [data-theme="editorial"] .portrait-caption { display:none; }
  [data-theme="editorial"] .service-card { padding:24px 20px 26px 0; border-bottom:1px solid var(--line); }
  [data-theme="editorial"] .service-card:last-child { border-bottom:0; }
  [data-theme="saas"] .case-card, [data-theme="paper"] .case-card { padding:24px; }
  [data-theme="saas"] .service-card, [data-theme="paper"] .service-card { padding:24px; }
  [data-theme="noir"] .site-nav { background:var(--paper); }
  [data-theme="noir"] blockquote, [data-theme="editorial"] blockquote { margin-top:36px; }
}
@media (max-width: 430px) {
  [data-theme] .stats div { padding:20px 18px; }
  [data-theme="paper"] .portrait-card { border-radius:150px 150px 26px 26px; }
  [data-theme="paper"] .portrait-card img { border-radius:136px 136px 16px 16px; }
}
@media (max-width: 380px) {
  .brand { max-width:96px; }
  .theme-switch { gap:4px; margin-right:10px; }
  .theme-dot { width:17px; height:17px; }
  .theme-dot > span[aria-hidden] { width:12px; height:12px; }
}
