/* Стили статей блога «Академия Ремонта» (akademiyastroitelstva.ru).
   Визуальный язык общий с главной: Oswald/Impact-заголовки, жёлтый #ffc400, чёрный, бумага. */

:root {
    --ar-yellow: #ffc400;
    --ar-black: #070707;
    --ar-paper: #f7f7f4;
    --ar-muted: #686868;
    --ar-line: #dedede;
    --ar-radius: 14px;
}

/* === Hero статьи === */
.ar-article-hero {
    background: var(--ar-black);
    color: #fff;
    padding: clamp(28px, 3.5vw, 50px) 0 clamp(40px, 5vw, 72px);
}
.ar-article-hero .ar-wrap {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}
.ar-article-hero .ar-kicker {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 6px;
    background: var(--ar-yellow);
    color: #080808;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ar-article-hero h1 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    font-size: clamp(34px, 5.4vw, 64px);
    color: #fff;
    margin: 20px 0 18px;
}
.ar-article-hero .ar-article-lead {
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.5;
    color: #e4e4e4;
    max-width: 820px;
}
.ar-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #2a2a2a;
}
.ar-article-meta img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    border: 2px solid var(--ar-yellow);
}
.ar-article-meta b { display: block; font-size: 15px; }
.ar-article-meta span { display: block; font-size: 12.5px; color: #9a9a9a; margin-top: 2px; }

/* === Тело статьи === */
.ar-article-body {
    background: var(--ar-paper);
    padding: clamp(36px, 5vw, 64px) 0;
}
.ar-article-body .ar-wrap {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}
.ar-article-body p {
    font-size: 17.5px;
    line-height: 1.72;
    color: #1c1c1c;
    margin: 0 0 22px;
}
.ar-article-body > .ar-wrap > h2 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.05;
    font-size: clamp(28px, 4vw, 44px);
    margin: clamp(44px, 6vw, 64px) 0 20px;
    color: var(--ar-black);
}
.ar-article-body ul:not(.ar-checklist) {
    margin: 0 0 22px;
    padding-left: 22px;
}
.ar-article-body ul:not(.ar-checklist) li {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 10px;
}
.ar-article-body ul:not(.ar-checklist) li::marker { color: var(--ar-yellow); }

/* Ссылки в тексте: тёмные с жёлтым подчёркиванием (жёлтый текст на белом не читается) */
.ar-article-body a,
.ar-article-hero a:not(.ar-btn) {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ar-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.ar-article-body a:hover { background: var(--ar-yellow); }

/* Цитата-врезка */
.ar-pullquote {
    margin: clamp(34px, 5vw, 50px) 0;
    padding: 26px 30px;
    border-left: 6px solid var(--ar-yellow);
    background: #fff;
    border-radius: 0 var(--ar-radius) var(--ar-radius) 0;
    font: italic 21px/1.45 Georgia, serif;
    color: #111;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

/* Фото в статье */
.ar-article-figure {
    margin: clamp(34px, 5vw, 50px) 0;
}
.ar-article-figure img {
    width: 100%;
    height: clamp(260px, 42vw, 480px);
    object-fit: cover;
    border-radius: var(--ar-radius);
    display: block;
}
.ar-article-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ar-muted);
}

/* === Карточки проверок (01–07) === */
.ar-check {
    position: relative;
    margin: clamp(34px, 5vw, 52px) 0;
    padding: clamp(24px, 3.4vw, 40px);
    background: #fff;
    border: 1px solid var(--ar-line);
    border-radius: var(--ar-radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .06);
}
.ar-check > em {
    position: absolute;
    top: -22px;
    left: clamp(20px, 3vw, 34px);
    padding: 6px 14px;
    background: var(--ar-black);
    color: var(--ar-yellow);
    border-radius: 8px;
    font: 600 26px/1 "Oswald Local", sans-serif;
    font-style: normal;
}
.ar-check h2 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.08;
    font-size: clamp(24px, 3.4vw, 36px);
    margin: 14px 0 18px;
    color: var(--ar-black);
}
.ar-check p { font-size: 17px; }

/* Ответы: нормальный / тревожный */
.ar-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}
.ar-answers .ar-answer {
    padding: 18px 20px;
    border-radius: 10px;
    font-size: 15.5px;
    line-height: 1.55;
}
.ar-answers .ar-answer b {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ar-answer-good { background: #f2f7ec; border: 1px solid #cfe0bb; }
.ar-answer-good b { color: #4a7a1e; }
.ar-answer-bad { background: #fbeeee; border: 1px solid #ecc7c7; }
.ar-answer-bad b { color: #a03434; }
.ar-answer p, .ar-answers .ar-answer { margin: 0; }

/* Чек-лист с галочками */
.ar-checklist {
    list-style: none;
    margin: 18px 0 24px;
    padding: 0;
}
.ar-checklist li {
    position: relative;
    padding: 12px 16px 12px 46px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--ar-line);
    border-radius: 10px;
    font-size: 16.5px;
    line-height: 1.5;
}
.ar-checklist li:before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 11px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ar-yellow);
    color: #080808;
    font-size: 13px;
    font-weight: 900;
}

/* Честный блок «когда не нужна» */
.ar-honest {
    margin: clamp(40px, 6vw, 60px) 0;
    padding: clamp(26px, 4vw, 44px);
    background: #efede6;
    border-radius: var(--ar-radius);
    border: 1px dashed #b9b4a4;
}
.ar-honest h2 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(26px, 3.6vw, 40px);
    line-height: 1.05;
    margin: 0 0 16px;
}


/* === FAQ === */
.ar-faq { margin: clamp(40px, 6vw, 60px) 0; }
.ar-faq > h2 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    margin: 0 0 22px;
}
.ar-faq details {
    background: #fff;
    border: 1px solid var(--ar-line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.ar-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
}
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary:after {
    content: "+";
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ar-yellow);
    color: #080808;
    font-size: 20px;
    font-weight: 900;
    transition: transform .2s;
}
.ar-faq details[open] summary:after { transform: rotate(45deg); }
.ar-faq details p {
    padding: 0 22px 20px;
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* === Финальный CTA статьи === */
.ar-article-cta {
    margin: clamp(44px, 6vw, 70px) 0 0;
    padding: clamp(30px, 4.6vw, 56px);
    background: var(--ar-black);
    color: #fff;
    border-radius: var(--ar-radius);
    position: relative;
    overflow: hidden;
}
.ar-article-cta:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: radial-gradient(ellipse at 70% 100%, rgba(255, 196, 0, .22), transparent 65%);
    pointer-events: none;
}
.ar-article-cta .ar-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--ar-yellow);
    color: #080808;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ar-article-cta h2 {
    font-family: "Oswald Local", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.02;
    font-size: clamp(30px, 4.4vw, 50px);
    color: #fff;
    margin: 16px 0 14px;
}
.ar-article-cta p {
    color: #ddd;
    font-size: 17px;
}
.ar-article-cta .ar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}
.ar-article-cta .ar-btn {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 8px;
    background: var(--ar-yellow);
    color: #080808 !important;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .04em;
    text-decoration: none !important;
    border: 2px solid var(--ar-yellow);
}
.ar-article-cta .ar-btn-outline {
    background: transparent;
    color: #fff !important;
    border-color: #666;
}
.ar-article-cta .ar-cta-note {
    margin-top: 14px;
    font-size: 13px;
    color: #9a9a9a;
}

/* === Автор в конце === */
.ar-author {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: clamp(40px, 6vw, 60px) 0 0;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--ar-line);
    border-radius: var(--ar-radius);
}
.ar-author img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    flex: 0 0 auto;
    border: 3px solid var(--ar-yellow);
}
.ar-author b { display: block; font-size: 17px; margin-bottom: 4px; }
.ar-author p { margin: 0; font-size: 14.5px; color: var(--ar-muted); line-height: 1.55; }

/* Хлебные крошки статьи */
.ar-crumbs {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 22px;
}
.ar-crumbs a { color: var(--ar-yellow); text-decoration: none; }

/* У записей блога свой hero — штатный hero Blocksy (дубль H1, рубрики) скрываем */
body.single-post .hero-section { display: none !important; }

/* === Фиксы каркаса Blocksy для записей блога === */
/* Blocksy сужает контент записи до var(--theme-block-width) (~90%): страница «уезжает» влево,
   чёрный фон hero обрывается. Возвращаем 100%, как на страницах. */
body.single-post .entry-content.is-layout-constrained > * { width: 100% !important; }

/* Real project media embedded contextually in blog articles. */
.ar-article-real-media {
  margin: clamp(34px, 5vw, 62px) 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #d8d8d2;
  border-radius: 18px;
  background: #f3f3ef;
}
.ar-article-real-media-head { margin-bottom: 22px; }
.ar-article-real-media-head span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #ffc400;
  color: #090909;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ar-article-real-media-head h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
}
.ar-article-real-media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
}
.ar-article-video,
.ar-article-real-photo {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #0a0a0a;
  color: #fff;
}
.ar-article-video { max-width: 220px; }
.ar-article-real-photo { max-width: 420px; background: #fff; color: #111; }
.ar-article-video-frame { aspect-ratio: 9 / 16; background: #050505; }
.ar-article-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.ar-article-video figcaption,
.ar-article-real-photo figcaption {
  padding: 12px 14px 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.ar-article-real-photo figcaption { color: #333; padding-bottom: 12px; }
.ar-article-real-photo figcaption span { display: block; margin-top: 4px; color: #777; font-size: 11px; }
.ar-article-real-photo { display: flex; flex-direction: column; }
.ar-article-real-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
  margin: auto;
  cursor: zoom-in;
}
.ar-article-lightbox .ar-lightbox-prev,
.ar-article-lightbox .ar-lightbox-next { visibility: hidden; }
@media (max-width: 620px) {
  .ar-article-real-media { margin-inline: -6px; padding: 18px; }
  .ar-article-video { max-width: 240px; }
  .ar-article-real-photo { max-width: 100%; }
  .ar-article-real-photo img { max-height: 70vh; }
}
/* Штатный верхний отступ контейнера — та самая «белая полоса» между шапкой и hero */
body.single-post .ct-container-full { padding-top: 0 !important; }
/* Штатный блок «поделиться» Blocksy (Facebook/X/Pinterest/LinkedIn) не используем */
body.single-post .ct-share-box { display: none !important; }

/* === Мобильная адаптация === */
@media (max-width: 720px) {
    .ar-article-hero .ar-kicker { letter-spacing: .03em; font-size: 11px; }
    .ar-answers { grid-template-columns: 1fr; }
    .ar-author { flex-direction: column; align-items: flex-start; }
    .ar-article-cta .ar-actions { flex-direction: column; }
    .ar-article-cta .ar-btn { width: 100%; text-align: center; box-sizing: border-box; }
}
