.guides-page, .guide-article-page { background: var(--cream); }
.guide-header { position: relative; z-index: 20; }
.guides-hero { padding: clamp(60px, 8vw, 116px) 0; color: white; background: var(--green); }
.guides-hero-layout { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.guides-hero h1 { max-width: 760px; font-size: clamp(3.4rem, 6.8vw, 6.7rem); }
.guides-lead { max-width: 660px; margin: 0; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.guides-hero-image, .article-hero-image { position: relative; overflow: hidden; background: var(--green-deep); }
.guides-hero-image { aspect-ratio: 4 / 5; max-height: 610px; }
.guides-hero-image picture, .article-hero-image picture { display: block; height: 100%; }
.guides-hero-image img, .article-hero-image img { height: 100%; object-fit: cover; }
.guides-hero-image span { position: absolute; right: 0; bottom: 0; min-width: 104px; min-height: 104px; display: grid; place-items: center; color: white; background: var(--terracotta); font: 800 1.15rem/1 Manrope, Arial, sans-serif; }
.guides-heading { max-width: 800px; margin-bottom: 50px; }
.guide-resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: -22px 0 70px; }
.quick-answers-link { display: grid; grid-template-columns: 82px minmax(0, 1fr) 42px; gap: 24px; align-items: center; padding: 24px 28px; color: white; background: var(--green-deep); }
.diagnostic-resource-link { background: var(--green); }
.photo-resource-link { background: #6d553f; }
.calendar-resource-link { background: var(--terracotta-dark); }
.quick-answers-link > span { min-height: 68px; display: grid; place-items: center; background: var(--terracotta); font: 800 1.15rem/1 Manrope, Arial, sans-serif; }
.quick-answers-link small { display: block; margin-bottom: 5px; color: #f2c6a8; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quick-answers-link strong { display: block; max-width: 720px; font: 700 1.12rem/1.35 Manrope, Arial, sans-serif; }
.quick-answers-link > b { color: #f2c6a8; font-size: 1.45rem; text-align: right; }
.guide-filter-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin: -12px 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.guide-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.guide-filters button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); color: var(--green); background: transparent; font: 800 .78rem/1.2 Inter, Arial, sans-serif; cursor: pointer; }
.guide-filters button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.guide-filters button[aria-pressed="true"] { border-color: var(--green); color: white; background: var(--green); }
.guide-filter-status { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: .8rem; }
.guide-filter-status strong { color: var(--green); font-size: 1rem; }
.guide-journeys { margin: 0 0 86px; }
.journey-heading { max-width: 850px; margin-bottom: 34px; }
.journey-heading h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.journey-card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-top: 4px solid var(--terracotta); background: white; }
.journey-card-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 24px; }
.journey-card-head > span { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--green); font: 800 .82rem/1 Manrope, Arial, sans-serif; }
.journey-card h3 { margin: 0 0 9px; font-size: 1.35rem; }
.journey-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.journey-card ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journey-card li { border-bottom: 1px solid var(--line); }
.journey-card li:last-child { border-bottom: 0; }
.journey-card li a { min-height: 58px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 11px 0; }
.journey-card li a > span { color: var(--terracotta); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.journey-card li a > strong { font: 700 .85rem/1.35 Manrope, Arial, sans-serif; }
.journey-card li a > b { color: var(--terracotta); text-align: right; }
.journey-card li a:hover strong { color: var(--terracotta); }
.guide-card[hidden] { display: none; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: white; }
.guide-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.guide-card-image picture { display: block; height: 100%; }
.guide-card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.guide-card:hover .guide-card-image img { transform: scale(1.025); }
.guide-card-body { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.guide-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 0 38px !important; color: var(--terracotta) !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-card h3 { margin: 0 0 13px; font-size: 1.45rem; line-height: 1.16; }
.guide-card-body > p:not(.guide-card-meta) { margin: 0 0 26px; color: var(--muted); font-size: .92rem; }
.guide-card-link { margin-top: auto; color: var(--terracotta); font-size: .86rem; font-weight: 800; }
.guide-cta { padding-block: 92px; color: white; background: var(--green-deep); }
.guide-cta-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: end; }
.guide-cta .eyebrow { color: #f2c6a8; }
.guide-cta h2 { max-width: 680px; }
.guide-cta-layout > div:last-child > p { max-width: 580px; margin: 0 0 28px; color: rgba(255,255,255,.67); }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.text-action { color: #f2c6a8; font-size: .86rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.article-hero { padding: 44px 0 82px; background: var(--sand); }
.article-hero-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(44px, 7vw, 100px); align-items: center; }
.article-hero h1 { max-width: 850px; font-size: clamp(3.1rem, 5.7vw, 6rem); }
.article-deck { max-width: 700px; margin: 0 0 24px; color: var(--muted); font-size: 1.1rem; }
.article-date { margin: 0; color: var(--terracotta); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.article-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; }
.article-share > span { width: 100%; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-share button, .article-share a { min-height: 40px; display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid var(--line); color: var(--green); background: transparent; font: 800 .76rem/1 Inter, Arial, sans-serif; cursor: pointer; }
.article-share button:hover, .article-share a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.article-share > small { min-width: 90px; color: var(--terracotta); font-size: .74rem; font-weight: 700; }
.article-hero-image { aspect-ratio: 4 / 5; max-height: 600px; }
.article-layout { display: grid; grid-template-columns: .36fr .64fr; gap: clamp(48px, 8vw, 110px); padding-block: 100px; align-items: start; }
.article-aside { position: sticky; top: 28px; }
.takeaway-box { padding: 30px; color: white; background: var(--green); }
.takeaway-box .eyebrow { color: #f2c6a8; }
.takeaway-box ul { margin: 0; padding: 0; list-style: none; }
.takeaway-box li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: .91rem; }
.takeaway-box li::before { content: "✓"; position: absolute; left: 0; color: #f2c6a8; font-weight: 800; }
.aside-cta { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 22px; color: white; background: var(--terracotta); font-size: .86rem; font-weight: 800; }
.aside-cta b { font-size: 1.2rem; }
.article-copy { max-width: 760px; }
.article-copy section + section { margin-top: 76px; }
.article-copy h2 { margin-bottom: 24px; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.article-copy p, .article-copy li { color: #435451; font-size: 1.04rem; line-height: 1.78; }
.article-copy ul { padding-left: 22px; }
.article-copy li + li { margin-top: 9px; }
.article-index { display: block; margin-bottom: 18px; color: var(--terracotta); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.article-checklist { padding: 38px; border-left: 5px solid var(--terracotta); background: var(--sand); }
.article-checklist .eyebrow { margin-bottom: 12px; }
.article-checklist h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article-sources { padding-top: 58px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 1.45rem; }
.article-sources ul { padding-left: 0; list-style: none; }
.article-sources a { color: var(--terracotta); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.article-sources p { margin-top: 24px; font-size: .86rem; }
.related-guides { background: var(--sand); }
.related-guides-heading { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 44px; }
.related-guides-heading h2 { font-size: clamp(2.35rem, 4vw, 3.8rem); }
.related-guides-heading > a { color: var(--terracotta); font-size: .86rem; font-weight: 800; }
.guide-grid.compact { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .guides-hero-layout, .article-hero-layout, .guide-cta-layout, .article-layout { grid-template-columns: 1fr; }
  .guides-hero-image, .article-hero-image { max-height: 540px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .guide-card-image { aspect-ratio: auto; min-height: 280px; }
  .article-aside { position: static; }
  .guide-resource-links { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .guides-hero { padding-block: 58px; }
  .guides-hero-layout { gap: 38px; }
  .guides-hero h1 { font-size: clamp(2.7rem, 12vw, 4.25rem); }
  html[lang="ru"] .guides-hero h1, html[lang="ru"] .article-hero h1 { font-size: clamp(2.35rem, 10.2vw, 3.35rem); }
  .guides-hero-image, .article-hero-image { max-height: 430px; }
  .guides-hero-image span { min-width: 76px; min-height: 76px; }
  .guide-card { display: flex; }
  .guide-filter-bar { align-items: stretch; flex-direction: column; }
  .guide-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-filters button { min-width: 0; padding-inline: 10px; }
  .guide-card-image { aspect-ratio: 16 / 10; min-height: 0; }
  .guide-card-body { padding: 24px; }
  .guide-resource-links { margin-bottom: 54px; }
  .guide-journeys { margin-bottom: 64px; }
  .journey-card { padding: 24px 20px; }
  .journey-card-head { grid-template-columns: 42px minmax(0, 1fr); gap: 15px; }
  .journey-card-head > span { width: 42px; height: 42px; }
  .journey-card li a { grid-template-columns: 54px minmax(0, 1fr) 18px; }
  .quick-answers-link { grid-template-columns: 62px minmax(0, 1fr) 24px; gap: 15px; padding: 18px; }
  .quick-answers-link > span { min-height: 56px; }
  .quick-answers-link strong { font-size: .95rem; }
  .guide-card-meta { margin-bottom: 28px !important; }
  .guide-cta { padding-block: 72px; }
  .guide-cta-layout { gap: 34px; }
  .article-hero { padding: 26px 0 60px; }
  .article-hero-layout { gap: 38px; }
  .article-hero h1 { font-size: clamp(2.65rem, 11.5vw, 4.1rem); }
  .article-share > small { width: 100%; min-width: 0; }
  .article-layout { gap: 56px; padding-block: 72px; }
  .article-copy section + section { margin-top: 58px; }
  .article-checklist { padding: 28px 24px; }
  .guide-grid.compact { grid-template-columns: 1fr; }
  .related-guides-heading { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card-image img { transition: none; }
}
