/* ============================================================
   Page-specific styles, извлечённые из inline <style> дизайна
   (кейс, статья, листинг блога). Подключается глобально.
   ============================================================ */

/* ---------- CASE PAGE (из case-malynovyi-slon.html) ---------- */
  /* ---------- Case page ---------- */
  .case-hero {
    position: relative;
    background:
      radial-gradient(circle at 18% 26%, rgba(94, 206, 206, 0.32), transparent 60%),
      linear-gradient(160deg, #F4FCFC 0%, #E0F6F6 100%);
    padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 70px);
    overflow: hidden;
  }
  .case-hero__tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }
  .case-hero__tag-row span {
    padding: 6px 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(94,206,206,0.4);
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-700);
  }
  .case-hero h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    background: linear-gradient(120deg, var(--ink-900) 0%, var(--teal-700) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 18px;
  }
  .case-hero__sub {
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--ink-700);
    max-width: 760px;
    margin: 0 0 36px;
    line-height: 1.55;
  }
  .case-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .case-kpi {
    background: #fff;
    border: 1px solid rgba(94,206,206,0.3);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
  }
  .case-kpi strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(30px, 3.2vw, 42px);
    color: var(--teal-700);
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .case-kpi span {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.4;
    display: block;
  }
  .case-kpi.case-kpi--orange strong { color: var(--orange-500); }

  .case-screen {
    margin: -50px 0 60px;
    position: relative;
    z-index: 1;
  }
  .case-screen__inner {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
    position: relative;
  }
  .case-screen image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* Реальный <img> (the_post_thumbnail) ведёт себя как image-slot: заполняет контейнер без растяжения */
  .case-screen__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .case-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Реальные фото на «Про нас» и карта на «Контакти»: ACF-картинки и Google-embed
     ведут себя как image-slot — заполняют контейнер без растяжения (object-fit: cover). */
  .about-intro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .team-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  /* Картка команди як посилання на сторінку автора (рендериться <a> зі збереженням .team-card). */
  a.team-card--link, .team-card--link, .team-card--link * { text-decoration: none !important; }
  .team-card--link { display: flex; flex-direction: column; color: inherit; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
  @media (hover: hover) {
  .team-card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 18px 40px rgba(0,0,0,0.12)); }
  .team-card--link:hover .team-card__name { color: var(--orange-500); }
  }
  .map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

  /* Інлайн-стилі з <head> дизайну about.html / contacts.html, яких бракувало в темі. */
  /* «Про нас»: бейдж «З 2017» на фото + двоколонкова сітка таймлайну. */
  .about-intro__sticker {
    position: absolute;
    right: 24px; bottom: 24px;
    background: var(--orange-500);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-orange);
    z-index: 2;
  }
  .timeline-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
  }
  @media (max-width: 1100px) {
    .timeline-grid { grid-template-columns: 1fr; }
  }

  /* «Контакти»: картка адреси поверх карти + хвостик пина. */
  .map-pin { white-space: nowrap; }
  .map-pin::after {
    content: "";
    position: absolute;
    left: 14px; bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--orange-500);
  }
  .map-card__addr {
    position: absolute;
    left: 22px; bottom: 22px;
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 320px;
    z-index: 2;
  }
  .map-card__addr strong {
    font-family: var(--font-head);
    color: var(--ink-900);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
  }
  .map-card__addr span {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.5;
  }

  .case-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
  }
  .case-summary {
    position: sticky;
    top: 100px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
  }
  .case-summary__row {
    padding: 14px 0;
    border-bottom: 1px dashed var(--ink-100);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .case-summary__row:last-child { border-bottom: 0; padding-bottom: 0; }
  .case-summary__row:first-child { padding-top: 0; }
  .case-summary__row span:first-child {
    font-size: 12px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-head);
  }
  .case-summary__row span:last-child {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink-900);
    font-size: 15px;
  }

  .case-body { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-700); }
  .case-body h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    margin: 56px 0 18px;
  }
  .case-body h2:first-child { margin-top: 0; }
  .case-body h3 { font-size: 20px; margin: 28px 0 10px; }
  .case-body p { margin: 0 0 18px; }
  .case-body ul, .case-body ol { margin: 0 0 20px; padding-left: 22px; }
  .case-body li { margin-bottom: 10px; }
  .case-body strong { color: var(--ink-900); }

  .steps-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    counter-reset: stp;
  }
  .steps-list li {
    counter-increment: stp;
    padding: 22px 24px 22px 70px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    position: relative;
  }
  .steps-list li::before {
    content: counter(stp, decimal-leading-zero);
    position: absolute;
    left: 22px; top: 22px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    color: var(--teal-500);
    letter-spacing: -0.02em;
  }
  .steps-list h3 { font-size: 17px; margin: 0 0 6px; }
  .steps-list p { font-size: 15px; color: var(--ink-500); margin: 0; }

  .compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 28px 0;
  }
  .compare-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
  }
  .compare-card--after {
    background: linear-gradient(160deg, var(--teal-50), #fff);
    border-color: var(--teal-300);
  }
  .compare-card__label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 14px;
    display: block;
  }
  .compare-card--after .compare-card__label { color: var(--teal-700); }
  .compare-card__value {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 38px);
    color: var(--ink-900);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
  }
  .compare-card--after .compare-card__value { color: var(--teal-700); }
  .compare-card__label-sub { display: block; font-size: 14px; color: var(--ink-500); }

  /* Mini bar chart */
  .traffic-chart {
    margin: 28px 0 8px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
  }
  .traffic-chart__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-900);
    margin: 0 0 18px;
  }
  .traffic-chart__bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: end;
    height: 160px;
  }
  .traffic-chart__bar {
    background: linear-gradient(180deg, var(--teal-300), var(--teal-500));
    border-radius: 6px 6px 0 0;
    position: relative;
    min-height: 18px;
    transition: opacity .2s;
  }
  @media (hover: hover) { .traffic-chart__bar:hover { opacity: 0.8; } }
  .traffic-chart__bar span {
    position: absolute;
    top: -22px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    color: var(--ink-700);
    white-space: nowrap;
  }
  .traffic-chart__labels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
  }
  .traffic-chart__labels span {
    text-align: center;
    font-size: 11px;
    color: var(--ink-500);
    font-family: var(--font-head);
  }

  /* Testimonial */
  .testimonial {
    margin: 60px 0;
    padding: clamp(32px, 4vw, 56px);
    background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
    color: #fff;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
  }
  .testimonial::before {
    content: """;
    position: absolute;
    top: -40px; left: -10px;
    font-family: Georgia, serif;
    font-size: 240px;
    color: rgba(255,255,255,0.08);
    line-height: 1;
  }
  .testimonial__quote {
    font-family: var(--font-head);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.5;
    margin: 0 0 28px;
    font-weight: 500;
    position: relative;
    z-index: 1;
  }
  .testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
  }
  .testimonial__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
  }
  .testimonial__avatar image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* Реальне фото (ACF) заповнює круглу аватарку без розтягнення */
  .testimonial__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .testimonial__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
  }
  .testimonial__role {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
  }

  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 40px;
  }
  .tech-stack span {
    padding: 8px 14px;
    background: var(--ink-50);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
  }

  @media (max-width: 1000px) {
    .case-layout { grid-template-columns: 1fr; }
    .case-summary { position: static; }
    .case-kpis { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .compare-grid { grid-template-columns: 1fr; }
    .case-kpis { grid-template-columns: 1fr; }
    .traffic-chart__bars { height: 120px; }
  }

/* ---------- ARTICLE PAGE (из article-geo-ai-2026.html) ---------- */
  /* ---------- Article page ---------- */
  .article-hero {
    position: relative;
    background:
      radial-gradient(circle at 18% 26%, rgba(94, 206, 206, 0.32), transparent 60%),
      linear-gradient(160deg, #F4FCFC 0%, #E0F6F6 100%);
    padding: clamp(56px, 6vw, 90px) 0 clamp(32px, 4vw, 60px);
    overflow: hidden;
  }
  .article-hero__inner {
    max-width: 820px;
    margin: 0 auto;
  }
  .article-hero__tag {
    display: inline-block;
    background: var(--teal-500);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 22px;
  }
  .article-hero h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    letter-spacing: -0.02em;
    margin: 0 0 26px;
  }
  .article-hero__lede {
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--ink-700);
    line-height: 1.55;
    margin: 0 0 32px;
  }
  .article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(94, 206, 206, 0.25);
    border-bottom: 1px solid rgba(94, 206, 206, 0.25);
  }
  .article-byline__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
  }
  .article-byline__name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink-900);
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
  }
  .article-byline__meta {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.3;
  }
  .article-byline__share {
    margin-left: auto;
    display: flex;
    gap: 8px;
  }
  .article-byline__share a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--ink-100);
    color: var(--ink-700);
    display: grid; place-items: center;
    transition: color .2s, border-color .2s;
  }
  @media (hover: hover) { .article-byline__share a:hover { color: var(--teal-700); border-color: var(--teal-500); } }

  .article-cover {
    margin: -60px 0 48px;
    position: relative;
    z-index: 1;
  }
  .article-cover__inner {
    max-width: 1040px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 8;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
    position: relative;
  }
  .article-cover image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

  .article-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(36px, 5vw, 80px);
    max-width: 1080px;
    margin: 0 auto;
  }
  .article-toc {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .article-toc__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin: 0 0 14px;
  }
  .article-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--ink-100);
  }
  .article-toc__list a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink-500);
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color .2s, border-color .2s;
    line-height: 1.4;
  }
  @media (hover: hover) { .article-toc__list a:hover { color: var(--teal-700); border-left-color: var(--teal-500); } }
  .article-toc__list a.is-active {
    color: var(--teal-700);
    border-left-color: var(--teal-500);
  }
  .article-body {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-700);
  }
  .article-body h2 {
    font-size: clamp(24px, 2.4vw, 32px);
    margin: 48px 0 16px;
    scroll-margin-top: 100px;
  }
  .article-body h3 {
    font-size: 21px;
    margin: 32px 0 12px;
  }
  .article-body p { margin: 0 0 18px; }
  .article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
  .article-body li { margin-bottom: 10px; }
  .article-body strong { color: var(--ink-900); }
  .article-body blockquote {
    margin: 32px 0;
    padding: 26px 28px;
    border-left: 4px solid var(--teal-500);
    background: var(--teal-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink-900);
  }
  .callout {
    margin: 28px 0;
    padding: 22px 24px;
    background: #FFF8EB;
    border: 1px solid #F5D38A;
    border-radius: var(--radius-md);
  }
  .callout strong {
    display: block;
    font-family: var(--font-head);
    color: var(--orange-600);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .callout p { margin: 0; font-size: 15px; }

  /* ---- Основні висновки (TL;DR) — у тілі статті, перед першим H2 ---- */
  .key-takeaways {
    margin: 30px 0 8px;
    padding: 24px 28px 22px;
    background: var(--teal-50);
    border-left: 4px solid var(--teal-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }
  .key-takeaways__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
    scroll-margin-top: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .key-takeaways__kicker {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: #fff;
    border: 1px solid var(--teal-100);
    padding: 3px 8px;
    border-radius: 999px;
  }
  .key-takeaways__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .key-takeaways__list li {
    position: relative;
    margin: 0;
    padding-left: 24px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-700);
  }
  .key-takeaways__list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(94, 206, 206, 0.18);
  }
  .key-takeaways__list li strong { color: var(--ink-900); }

  /* ---- Універсальний mid-CTA — легкий, у колонці статті ---- */
  .mid-cta {
    margin: 40px 0;
    padding: 24px 26px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-left: 4px solid var(--teal-500);
    border-radius: var(--radius-md);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
  }
  .mid-cta__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink-900);
    margin: 0 0 4px;
  }
  .mid-cta__sub { font-size: 15px; line-height: 1.5; color: var(--ink-700); margin: 0; }
  .mid-cta__form { margin: 0; }
  .mid-cta__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  .mid-cta__row .field { flex: 1 1 180px; margin: 0; }
  .mid-cta .field input { background: #fff; }
  .mid-cta__row .btn { flex: 0 0 auto; white-space: nowrap; }
  .mid-cta .form__success { margin: 0; }
  .mid-cta .form.is-submitted .mid-cta__row { display: none; }

  .article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--ink-100);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .article-tags a {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--ink-700);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, color .2s;
  }
  @media (hover: hover) { .article-tags a:hover { background: var(--teal-500); color: #fff; } }

  .author-card {
    margin-top: 40px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: center;
  }
  .author-card__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
  }
  .author-card .author-card__name { font-size: 18px; margin: 0 0 4px; }
  .author-card .role { font-size: 13px; color: var(--teal-700); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; display: block; }
  .author-card p { font-size: 14px; color: var(--ink-500); margin: 0; }

  @media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; max-width: 720px; }
    .article-toc { position: static; }
    .article-cover { margin-top: -32px; }
    .article-cover__inner { aspect-ratio: 16/10; }
  }

  /* Реальна обкладинка статті (the_post_thumbnail) — заповнює контейнер без розтягнення. */
  .article-cover__inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ================= AUTHOR / PROFILE PAGE (з дизайну Cloude Design; кристали — наш brand-xtals) ================= */
  .author-id {
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(circle at 15% 18%, rgba(94, 206, 206, 0.30), transparent 56%),
      radial-gradient(circle at 92% 4%, rgba(42, 173, 173, 0.20), transparent 52%),
      linear-gradient(160deg, #F5FCFC 0%, #E5F7F7 100%);
    padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 5vw, 68px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 46px));
    overflow: hidden;
  }
  .author-id__grid {
    display: grid;
    grid-template-columns: clamp(180px, 18vw, 224px) 1fr;
    gap: clamp(26px, 4vw, 56px);
    align-items: center;
    margin-top: 14px;
  }
  .author-id__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
    box-shadow: var(--shadow-lg);
  }
  .author-id__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .author-id__photo::after {
    content: "";
    position: absolute;
    inset: -22% -22% -28%;
    z-index: -1;
    background: radial-gradient(circle at 50% 48%, rgba(94, 206, 206, 0.55), rgba(245, 166, 35, 0.12) 55%, transparent 72%);
    filter: blur(14px);
    pointer-events: none;
  }
  .author-id__ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5vw, 56px); color: var(--teal-700); }
  .author-id__main { min-width: 0; }
  .author-id__main h1 { font-size: clamp(30px, 3.4vw, 46px); margin: 10px 0 8px; letter-spacing: -0.02em; }
  .author-id__role { font-family: var(--font-head); font-weight: 600; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-700); }
  .author-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .author-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink-100); background: rgba(255,255,255,0.7); color: var(--ink-700); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s, transform .2s; }
  @media (hover: hover) { .author-socials a:hover { background: var(--teal-500); color: #fff; border-color: var(--teal-500); transform: translateY(-2px); } }
  .author-facts { display: flex; flex-wrap: wrap; gap: clamp(22px, 3vw, 44px); margin-top: 30px; }
  .author-fact { display: flex; flex-direction: column; gap: 5px; }
  .author-fact::before { content: ""; width: 30px; height: 2px; background: var(--teal-500); margin-bottom: 8px; }
  .author-fact__val { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; color: var(--ink-900); letter-spacing: -0.01em; }
  .author-fact__val--num { color: var(--teal-700); }
  .author-fact__label { font-size: 13px; color: var(--ink-500); }

  .author-narrow { max-width: 860px; margin: 0 auto; }
  .author-block { margin-top: clamp(40px, 5vw, 64px); }
  .author-block:first-child { margin-top: 0; }
  .author-block__label { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 18px; }
  .author-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .author-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink-100); background: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink-700); transition: border-color .2s, color .2s, background .2s, transform .2s; }
  .author-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); transition: transform .2s; }
  @media (hover: hover) { .author-chip:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); transform: translateY(-2px); } }
  .author-bio p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--ink-700); margin: 0 0 16px; }
  .author-bio p:last-child { margin-bottom: 0; }
  .author-bio strong { color: var(--ink-900); }
  .author-credo { position: relative; margin: 0; padding: clamp(30px, 4vw, 44px) clamp(28px, 4vw, 48px) clamp(26px, 3vw, 36px); background: var(--teal-50); border-left: 4px solid var(--teal-500); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; overflow: hidden; }
  .author-credo__mark { position: absolute; top: clamp(2px, 1vw, 10px); right: clamp(22px, 3vw, 38px); font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 12vw, 150px); line-height: 1; color: var(--teal-300); opacity: 0.4; pointer-events: none; user-select: none; }
  .author-credo blockquote { position: relative; margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.42; letter-spacing: -0.01em; color: var(--ink-900); max-width: 34ch; }
  .author-credo figcaption { position: relative; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--teal-700); }

  .author-materials__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 40px); }
  .author-materials__head h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 40px); }
  .author-count { flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--teal-700); background: #fff; border: 1px solid var(--teal-100); border-radius: 999px; padding: 10px 18px; white-space: nowrap; }
  .author-materials .featured-post { background: #fff; }
  .post-card__metaline { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 13px; color: var(--ink-500); margin-bottom: 14px; }
  .post-card__metaline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
  .featured-post .post-card__metaline { margin-bottom: 16px; }

  .author-cta { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 12%, rgba(245, 166, 35, 0.18), transparent 46%), linear-gradient(135deg, #1F8A8A 0%, #2AADAD 60%, #4DD8D8 100%); color: #fff; }
  .author-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,0.06) 25%, transparent 25%); background-size: 72px 72px; background-position: 0 0, 0 36px; opacity: .5; pointer-events: none; }
  .author-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 60px) 0; }
  .author-cta__inner h2 { color: #fff; margin: 8px 0 0; font-size: clamp(24px, 2.8vw, 38px); max-width: 18ch; }
  .author-cta__inner .eyebrow { color: rgba(255,255,255,0.82); }
  .author-cta__inner .eyebrow::before { background: rgba(255,255,255,0.7); }
  .author-cta__btn { flex-shrink: 0; }

  @media (max-width: 760px) {
    .author-id__grid { grid-template-columns: 1fr; gap: 24px; }
    .author-id__photo { width: clamp(150px, 46vw, 200px); }
    .author-facts { flex-direction: column; gap: 18px; }
    .author-materials__head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .author-cta__inner { flex-direction: column; align-items: flex-start; }
  }
  /* Клікабельна картка автора внизу статті (веде на сторінку автора). */
  .author-card--link { cursor: pointer; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
  @media (hover: hover) { .author-card--link:hover { border-color: var(--teal-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); } }
  a.author-card--link, .author-card--link, .author-card--link * { text-decoration: none !important; }
  .author-card--link .author-card__name { transition: color .2s; }
  @media (hover: hover) { .author-card--link:hover .author-card__name { color: var(--teal-700); } }
  /* Лінк імені у верхньому байлайні — без підкреслення, колір як був. */
  .article-byline__name a { color: inherit; text-decoration: none; transition: color .2s; }
  @media (hover: hover) { .article-byline__name a:hover { color: var(--teal-700); } }
