:root {
    --rw-green: #173d2d;
    --rw-green-dark: #102d21;
    --rw-accent: #d3aa79;
    --rw-accent-dark: #bf9462;
    --rw-bg: #f7f5f0;
    --rw-bg-light: #fbfaf7;
    --rw-white: #ffffff;
    --rw-text: #202520;
    --rw-muted: #6c716d;
    --rw-border: #e6e1d9;
    --rw-radius-sm: 8px;
    --rw-radius-md: 14px;
    --rw-radius-lg: 22px;
    --rw-container: 1280px;
    --rw-section-space: 100px;
    --rw-shadow: 0 18px 50px rgba(16, 45, 33, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--rw-text);
    background: var(--rw-white);
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.rw-container { width: min(calc(100% - 40px), var(--rw-container)); margin-inline: auto; }
.rw-content-wrap { max-width: 860px; }
.rw-section { padding: var(--rw-section-space) 0; }
.rw-section--soft { background: var(--rw-bg-light); }
.rw-main { min-height: 60vh; }

h1, h2, h3 { margin-top: 0; color: var(--rw-green); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 840px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin-top: 0; }

.rw-eyebrow { margin-bottom: 18px; color: var(--rw-green); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rw-eyebrow--light { color: rgba(255,255,255,.72); }
.rw-lead { max-width: 650px; color: #4e554f; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.rw-section-head { max-width: 820px; margin-bottom: 42px; }

.rw-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--rw-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}
.rw-btn--primary { background: var(--rw-green); color: white; }
.rw-btn--primary:hover { background: var(--rw-green-dark); }
.rw-btn--outline { border-color: var(--rw-green); color: var(--rw-green); background: transparent; }
.rw-btn--accent { background: var(--rw-accent); color: #19251e; }
.rw-btn--accent:hover { background: var(--rw-accent-dark); }

.rw-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--rw-border); backdrop-filter: blur(12px); }
.rw-header__inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.rw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--rw-green-dark); font-weight: 800; text-decoration: none; }
.rw-logo__mark { font-size: 28px; }
.rw-logo__text { letter-spacing: .08em; }
.rw-nav { margin-left: auto; }
.rw-nav__list, .rw-footer__menu, .rw-mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.rw-nav__list { display: flex; align-items: center; gap: 26px; }
.rw-nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.rw-header__actions { display: flex; align-items: center; gap: 18px; }
.rw-header__phone { white-space: nowrap; text-decoration: none; font-weight: 700; }
.rw-menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 10px; }
.rw-menu-toggle span { display: block; height: 2px; background: var(--rw-green); margin: 5px 0; }
.rw-mobile-menu { border-top: 1px solid var(--rw-border); background: white; }
.rw-mobile-menu__list { padding: 18px 0 28px; }
.rw-mobile-menu__list li + li { margin-top: 12px; }
.rw-mobile-menu__list a { text-decoration: none; font-weight: 700; }

.rw-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: var(--rw-muted); font-size: 13px; }
.rw-breadcrumbs a { text-decoration: none; }

.rw-service-hero { padding: 36px 0 68px; background: linear-gradient(90deg, var(--rw-bg-light) 0%, #fff 55%); }
.rw-service-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 52px; }
.rw-service-hero__content { align-self: center; padding: 40px 0; }
.rw-service-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rw-service-hero__media { min-height: 520px; overflow: hidden; border-radius: 0 0 0 80px; background: #e9e5dd; }
.rw-service-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.rw-grid { display: grid; gap: 22px; }
.rw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rw-feature { padding: 26px 24px; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-md); background: white; }
.rw-feature span { display: inline-grid; width: 44px; height: 44px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--rw-bg); color: var(--rw-green); font-size: 13px; font-weight: 800; }
.rw-feature p { margin-bottom: 0; color: var(--rw-muted); font-size: 15px; }

.rw-card { overflow: hidden; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-md); background: white; box-shadow: var(--rw-shadow); }
.rw-card__media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dcd7cb, #eee9df); }
.rw-card__body { padding: 24px; }
.rw-card__body p { color: var(--rw-muted); font-size: 15px; }
.rw-card__body a { color: var(--rw-green); font-weight: 800; text-decoration: none; }

.rw-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.rw-process__item { position: relative; text-align: center; }
.rw-process__item span { display: inline-grid; width: 62px; height: 62px; place-items: center; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--rw-border); background: white; color: var(--rw-green); font-weight: 800; }
.rw-process__item h3 { margin-bottom: 0; font-size: 1rem; }

.rw-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px; border-radius: var(--rw-radius-lg); background: var(--rw-green-dark); color: white; }
.rw-cta h2 { color: white; margin-bottom: 14px; }
.rw-cta p { max-width: 650px; color: rgba(255,255,255,.76); margin-bottom: 0; }

.rw-content { color: #363b37; }
.rw-content h2 { margin-top: 58px; }
.rw-content h3 { margin-top: 38px; }
.rw-content a { color: var(--rw-green); font-weight: 650; }
.rw-content table { width: 100%; border-collapse: collapse; }
.rw-content th, .rw-content td { padding: 14px; border: 1px solid var(--rw-border); text-align: left; }

.rw-article { padding: 64px 0 100px; }
.rw-article__meta { margin-bottom: 28px; color: var(--rw-muted); font-size: 14px; }
.rw-article__image { margin: 34px 0 44px; overflow: hidden; border-radius: var(--rw-radius-lg); }

.rw-footer { padding: 70px 0 24px; background: #0c271c; color: rgba(255,255,255,.76); }
.rw-footer a { color: white; text-decoration: none; }
.rw-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.rw-logo--footer { color: white; margin-bottom: 18px; }
.rw-footer__title { color: white; font-size: 17px; }
.rw-footer__text { max-width: 360px; }
.rw-footer__menu li + li { margin-top: 8px; }
.rw-footer__bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 1100px) {
    :root { --rw-section-space: 80px; }
    .rw-nav, .rw-header__phone, .rw-header .rw-btn { display: none; }
    .rw-header__actions { margin-left: auto; }
    .rw-menu-toggle { display: block; }
    .rw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rw-process { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    :root { --rw-section-space: 64px; }
    body { font-size: 16px; }
    .rw-container { width: min(calc(100% - 32px), var(--rw-container)); }
    .rw-header__inner { min-height: 70px; }
    .rw-service-hero { padding-top: 18px; }
    .rw-service-hero__grid { grid-template-columns: 1fr; gap: 26px; }
    .rw-service-hero__content { padding: 20px 0 0; }
    .rw-service-hero__media { min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--rw-radius-lg); }
    .rw-service-hero__actions { display: grid; grid-template-columns: 1fr; }
    .rw-btn { width: 100%; min-height: 52px; }
    .rw-process { grid-template-columns: 1fr; text-align: left; }
    .rw-process__item { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 16px; text-align: left; }
    .rw-process__item span { margin-bottom: 0; }
    .rw-cta { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
    .rw-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
    .rw-grid--4 { grid-template-columns: 1fr; }
    h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
    h2 { font-size: 2rem; }
}

/* v0.2 service system */
.rw-section-description { max-width: 720px; color: var(--rw-muted); }
.rw-grid--solutions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rw-card__media { overflow: hidden; }
.rw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rw-card:hover .rw-card__media img { transform: scale(1.025); }
.rw-feature__icon { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; }
.rw-feature__icon img { max-width: 38px; max-height: 38px; object-fit: contain; }
.rw-image-placeholder { width: 100%; height: 100%; min-height: inherit; background: linear-gradient(135deg, #d8d2c8, #eee9df); }
.rw-service-hero__media { position: relative; }
.rw-hero-badge { position: absolute; left: 26px; bottom: 26px; max-width: 300px; padding: 17px 20px; border-radius: 12px; background: rgba(16,45,33,.92); color: white; box-shadow: 0 14px 32px rgba(0,0,0,.15); backdrop-filter: blur(8px); }
.rw-hero-badge strong, .rw-hero-badge span { display: block; }
.rw-hero-badge strong { margin-bottom: 4px; font-size: 15px; }
.rw-hero-badge span { color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.45; }
.rw-process__item p { margin: 7px auto 0; max-width: 190px; color: var(--rw-muted); font-size: 14px; line-height: 1.5; }
.rw-portfolio-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 250px; gap: 18px; }
.rw-portfolio-item { margin: 0; overflow: hidden; border-radius: var(--rw-radius-md); background: var(--rw-bg); }
.rw-portfolio-item:first-child { grid-row: span 2; }
.rw-portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.rw-pricing-table { overflow: hidden; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-md); background: white; }
.rw-pricing-row { display: grid; grid-template-columns: 1.5fr .8fr .7fr; align-items: center; gap: 24px; padding: 20px 24px; }
.rw-pricing-row + .rw-pricing-row { border-top: 1px solid var(--rw-border); }
.rw-pricing-row__title { font-weight: 750; color: var(--rw-green); }
.rw-pricing-row__detail { color: var(--rw-muted); }
.rw-pricing-row__price { font-weight: 800; text-align: right; }
.rw-pricing-note { margin: 18px 0 0; width: 100%; max-width: none; color: var(--rw-muted); font-size: 14px; }
.rw-faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.rw-faq-layout .rw-section-head { margin-bottom: 0; position: sticky; top: 120px; }
.rw-faq { border-top: 1px solid var(--rw-border); }
.rw-faq__item { border-bottom: 1px solid var(--rw-border); }
.rw-faq__item summary { position: relative; cursor: pointer; list-style: none; padding: 24px 52px 24px 0; color: var(--rw-green); font-size: 18px; font-weight: 750; }
.rw-faq__item summary::-webkit-details-marker { display: none; }
.rw-faq__item summary::after { content: '+'; position: absolute; right: 8px; top: 20px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rw-border); border-radius: 50%; font-size: 20px; font-weight: 400; }
.rw-faq__item[open] summary::after { content: '−'; }
.rw-faq__answer { padding: 0 52px 22px 0; color: var(--rw-muted); }
.rw-faq__answer > :last-child { margin-bottom: 0; }
.rw-admin-hint { padding: 20px 24px; border: 1px dashed var(--rw-border); border-radius: var(--rw-radius-md); color: var(--rw-muted); background: var(--rw-bg-light); }

@media (max-width: 1100px) {
    .rw-grid--solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rw-portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
    .rw-portfolio-item:first-child { grid-row: auto; }
}

@media (max-width: 800px) {
    .rw-hero-badge { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .rw-faq-layout { grid-template-columns: 1fr; gap: 24px; }
    .rw-faq-layout .rw-section-head { position: static; }
    .rw-pricing-row { grid-template-columns: 1fr; gap: 5px; padding: 18px; }
    .rw-pricing-row__price { text-align: left; margin-top: 4px; }
    .rw-portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 12px; }
}

@media (max-width: 560px) {
    .rw-grid--solutions { grid-template-columns: 1fr; }
    .rw-portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .rw-portfolio-item { aspect-ratio: 4 / 3; }
    .rw-faq__item summary { font-size: 17px; }
}

/* v0.3 native service fields */
.rw-problems-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rw-problem { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-md); background: #fff; }
.rw-problem > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--rw-green); color: #fff; font-size: 13px; font-weight: 800; }
.rw-problem h3 { margin-bottom: 7px; }
.rw-problem p { margin-bottom: 0; color: var(--rw-muted); font-size: 15px; }
.rw-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rw-selection__media { overflow: hidden; border-radius: var(--rw-radius-lg); background: var(--rw-bg); aspect-ratio: 4 / 3; }
.rw-selection__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
    .rw-problems-grid, .rw-selection { grid-template-columns: 1fr; }
    .rw-selection { gap: 30px; }
}


/* v0.5 refined service frontend */
:root {
    --rw-shadow-sm: 0 8px 26px rgba(16, 45, 33, .06);
    --rw-shadow-lg: 0 26px 70px rgba(16, 45, 33, .11);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(211,170,121,.35); }

.rw-section { position: relative; }
.rw-section-head h2 { margin-bottom: 16px; max-width: 760px; }
.rw-section-description { margin-bottom: 0; }

.rw-service-hero {
    overflow: hidden;
    padding: 30px 0 76px;
    background:
        radial-gradient(circle at 14% 22%, rgba(211,170,121,.13), transparent 27%),
        linear-gradient(105deg, #f8f5ef 0%, #fff 62%);
}
.rw-service-hero__grid { grid-template-columns: minmax(0,.92fr) minmax(480px,1.08fr); gap: clamp(36px,5vw,76px); }
.rw-service-hero__content { position: relative; z-index: 2; }
.rw-service-hero__content h1 { margin-bottom: 24px; }
.rw-service-hero__media {
    min-height: 570px;
    border-radius: 3px 3px 3px 72px;
    box-shadow: var(--rw-shadow-lg);
}
.rw-service-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(8,31,21,.14));
}
.rw-hero-badge { z-index: 2; border: 1px solid rgba(255,255,255,.16); }

.rw-btn { gap: 8px; cursor: pointer; }
.rw-btn:focus-visible, .rw-faq__item summary:focus-visible, a:focus-visible {
    outline: 3px solid rgba(211,170,121,.65);
    outline-offset: 3px;
}
.rw-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16,45,33,.18); }
.rw-btn--outline:hover { background: var(--rw-green); color: #fff; transform: translateY(-1px); }

.rw-feature {
    min-height: 100%;
    padding: 28px 25px;
    box-shadow: var(--rw-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.rw-feature:hover { transform: translateY(-4px); border-color: #d9d1c5; box-shadow: 0 16px 38px rgba(16,45,33,.09); }
.rw-feature h3 { margin-bottom: 9px; }

.rw-grid--solutions { gap: 26px; }
.rw-card {
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform .22s ease, box-shadow .22s ease;
}
.rw-card:hover { transform: translateY(-5px); box-shadow: var(--rw-shadow-lg); }
.rw-card__body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.rw-card__body h3 { margin-bottom: 10px; }
.rw-card__body p { flex: 1; margin-bottom: 18px; }
.rw-card__body a { align-self: flex-start; }

.rw-problems-grid { gap: 22px; }
.rw-problem { padding: 28px; box-shadow: var(--rw-shadow-sm); }
.rw-problem > span { background: var(--rw-bg); color: var(--rw-green); border: 1px solid var(--rw-border); }

.rw-selection__content .rw-content { max-width: 620px; }
.rw-selection__media { box-shadow: var(--rw-shadow-lg); }

.rw-process { position: relative; gap: 26px; }
.rw-process::before {
    content: '';
    position: absolute;
    top: 31px;
    left: 7%;
    right: 7%;
    height: 1px;
    background: var(--rw-border);
}
.rw-process__item { z-index: 1; }
.rw-process__item span {
    position: relative;
    background: var(--rw-bg-light);
    border-color: #d9d2c7;
    box-shadow: 0 0 0 9px var(--rw-bg-light);
}
.rw-process__item h3 { font-size: 1.02rem; }
.rw-process__item p { max-width: 210px; }

.rw-portfolio-grid { gap: 20px; }
.rw-portfolio-item { box-shadow: var(--rw-shadow-sm); }
.rw-portfolio-item img { transition: transform .45s ease; }
.rw-portfolio-item:hover img { transform: scale(1.025); }

.rw-pricing-table { box-shadow: var(--rw-shadow-sm); }
.rw-pricing-row { transition: background .18s ease; }
.rw-pricing-row:hover { background: #fcfbf8; }

.rw-service-content { background: #fff; }
.rw-service-content .rw-content { font-size: 18px; line-height: 1.72; }
.rw-service-content .rw-content > :first-child { margin-top: 0; }
.rw-service-content .rw-content h2 { scroll-margin-top: 110px; }
.rw-service-content .rw-content h3 { scroll-margin-top: 110px; }
.rw-service-content .rw-content ul, .rw-service-content .rw-content ol { padding-left: 1.3em; }
.rw-service-content .rw-content li + li { margin-top: 7px; }

.rw-faq__item summary { transition: color .18s ease; }
.rw-faq__item summary:hover { color: var(--rw-accent-dark); }
.rw-faq__item[open] summary { color: var(--rw-green-dark); }

.rw-cta {
    overflow: hidden;
    position: relative;
    padding: 58px 62px;
    box-shadow: var(--rw-shadow-lg);
}
.rw-cta::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -105px;
    border-radius: 50%;
    background: rgba(211,170,121,.08);
}
.rw-cta > * { position: relative; z-index: 1; }

@media (max-width: 1100px) {
    .rw-service-hero__grid { grid-template-columns: .95fr 1.05fr; gap: 38px; }
    .rw-service-hero__media { min-height: 500px; }
    .rw-process::before { display: none; }
}

@media (max-width: 800px) {
    .rw-service-hero { padding: 16px 0 52px; }
    .rw-service-hero__grid { grid-template-columns: 1fr; gap: 30px; }
    .rw-service-hero__content h1 { margin-bottom: 18px; }
    .rw-service-hero__media { min-height: 0; aspect-ratio: 4/3; border-radius: 18px; }
    .rw-service-hero__actions { margin-top: 24px; }
    .rw-feature:hover, .rw-card:hover { transform: none; }
    .rw-process__item { align-items: flex-start; }
    .rw-process__item p { max-width: none; }
    .rw-cta { padding: 38px 28px; }
    .rw-service-content .rw-content { font-size: 17px; }
}

@media (max-width: 560px) {
    .rw-breadcrumbs { margin-bottom: 22px; }
    .rw-service-hero__media { aspect-ratio: 1 / .78; }
    .rw-hero-badge { padding: 14px 16px; }
    .rw-feature, .rw-problem, .rw-card__body { padding: 22px; }
    .rw-section-head { margin-bottom: 30px; }
    .rw-problem { grid-template-columns: 42px 1fr; gap: 14px; }
    .rw-problem > span { width: 40px; height: 40px; }
    .rw-faq__item summary { padding-top: 21px; padding-bottom: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* v0.7 responsive/content-state refinements */
.rw-service-hero__grid--text-only {
    grid-template-columns: minmax(0, 860px);
    justify-content: start;
}
.rw-service-hero__grid--text-only .rw-service-hero__content {
    padding-bottom: 16px;
}
.rw-hero-badge--inline {
    position: static;
    max-width: 560px;
    margin-top: 24px;
    background: var(--rw-green-dark);
}

/* Five real solutions look more balanced as 3 + 2 than 4 + 1. */
.rw-grid--solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rw-card--text-only .rw-card__body {
    min-height: 100%;
    padding: 30px;
}
.rw-card--text-only {
    background: linear-gradient(145deg, #fff, #fbfaf7);
}
.rw-card--text-only h3 {
    font-size: 1.35rem;
}
.rw-card--text-only p:last-child {
    margin-bottom: 0;
}

.rw-selection--text-only {
    grid-template-columns: minmax(0, 860px);
    justify-content: start;
}
.rw-selection--text-only .rw-selection__content .rw-content {
    max-width: 820px;
    font-size: 18px;
    line-height: 1.72;
}

.rw-footer__grid--no-menu {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .65fr);
}

@media (max-width: 1100px) {
    .rw-grid--solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rw-process__item p { margin-inline: 0; }
}

@media (max-width: 800px) {
    .rw-service-hero__grid--text-only { display: block; }
    .rw-hero-badge--inline { margin-top: 22px; }
    .rw-selection--text-only { display: block; }
    .rw-process__item { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
    .rw-process__item span { width: 54px; height: 54px; box-shadow: none; }
    .rw-process__item p { margin: 6px 0 0; max-width: none; }
    .rw-footer__grid--no-menu { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    :root { --rw-section-space: 56px; }
    .rw-service-hero { padding-bottom: 44px; }
    .rw-service-hero__content { padding-top: 12px; }
    .rw-service-hero__content h1 {
        font-size: clamp(2.05rem, 10.2vw, 2.75rem);
        line-height: 1.08;
        letter-spacing: -.035em;
    }
    h2 { font-size: clamp(1.8rem, 8vw, 2rem); }
    .rw-lead { font-size: 1.03rem; line-height: 1.6; }
    .rw-grid--solutions { grid-template-columns: 1fr; }
    .rw-card--text-only .rw-card__body { padding: 24px 22px; }
    .rw-selection--text-only .rw-selection__content .rw-content { font-size: 16px; line-height: 1.68; }
    .rw-problems-grid { gap: 14px; }
    .rw-problem { box-shadow: none; }
    .rw-process { gap: 26px; }
    .rw-process__item h3 { font-size: 1.05rem; }
    .rw-faq-layout { gap: 10px; }
    .rw-faq__item summary { padding-right: 46px; line-height: 1.4; }
    .rw-faq__answer { padding-right: 0; }
    .rw-cta { padding: 32px 22px; border-radius: 18px; }
}

/* =========================================================
   Riverwood v0.8 visual refinement
   FAQ intentionally unchanged in this release.
   ========================================================= */

/* Header / desktop dropdown */
.rw-header { z-index: 1000; box-shadow: 0 2px 14px rgba(16,45,33,.025); }
.rw-header__inner { min-height: 72px; gap: 26px; padding-block: 10px; }
.rw-logo { flex: 0 0 auto; }
.rw-logo__mark { font-size: 24px; }
.rw-logo__text { font-size: 13px; }
.rw-nav { position: relative; }
.rw-nav__list { gap: 24px; }
.rw-nav__list > li { position: relative; }
.rw-nav__list > li > a { display: inline-flex; min-height: 44px; align-items: center; }
.rw-nav .menu-item-has-children > a::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.rw-nav .sub-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 4px);
    left: -10px;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid var(--rw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(0,0,0,.10);
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.rw-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.rw-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; line-height: 1.35; }
.rw-nav .sub-menu a:hover,
.rw-nav .sub-menu a:focus-visible { background: var(--rw-bg); color: var(--rw-green); }
.rw-nav li:hover > .sub-menu,
.rw-nav li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.rw-header__actions { gap: 16px; }
.rw-header__phone { font-size: 14px; font-weight: 700; }
.rw-header .rw-btn { min-height: 46px; padding-inline: 22px; }

/* Mobile drawer */
.rw-mobile-overlay,
.rw-mobile-menu { display: none; }
body.rw-menu-open { overflow: hidden; }

/* Hero */
.rw-service-hero { padding: 34px 0 76px; }
.rw-breadcrumbs { margin-bottom: 28px; }
.rw-service-hero__grid { grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); gap: clamp(44px,4.5vw,60px); align-items: center; }
.rw-service-hero__content { padding: 32px 0; }
.rw-service-hero__content h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(2.75rem,4.35vw,3.875rem); line-height: 1.045; letter-spacing: -.035em; }
.rw-service-hero .rw-eyebrow { margin-bottom: 14px; font-size: 12px; }
.rw-service-hero .rw-lead { max-width: 620px; font-size: clamp(1.05rem,1.35vw,1.125rem); line-height: 1.65; }
.rw-service-hero__actions { gap: 12px; margin-top: 26px; }
.rw-service-hero__actions .rw-btn { min-height: 50px; }
.rw-service-hero__media { min-height: 0; aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: var(--rw-shadow-lg); }
.rw-hero-badge { left: 20px; bottom: 20px; max-width: 315px; padding: 16px 18px; }

/* General section rhythm */
.rw-section { padding-block: 96px; }
.rw-section-head { margin-bottom: 38px; }
.rw-section-head h2 { font-size: clamp(2.15rem,3vw,2.5rem); line-height: 1.12; }

/* Advantages */
.rw-grid--4 { gap: 18px; }
.rw-feature { padding: 25px 24px; min-height: 188px; }
.rw-feature > span,
.rw-feature__icon { width: 40px; height: 40px; margin-bottom: 17px; }
.rw-feature h3 { margin-bottom: 9px; font-size: 1.075rem; line-height: 1.25; }
.rw-feature p { font-size: 14.5px; line-height: 1.6; }

/* Solution cards: 3 + centered 2 */
.rw-grid--solutions { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 24px; }
.rw-grid--solutions > .rw-card { grid-column: span 2; }
.rw-grid--solutions > .rw-card:nth-last-child(2):nth-child(4) { grid-column: 2 / span 2; }
.rw-grid--solutions > .rw-card:nth-last-child(1):nth-child(5) { grid-column: 4 / span 2; }
.rw-card { border-radius: 14px; }
.rw-card__body { padding: 20px; }
.rw-card__body h3 { font-size: 1.075rem; line-height: 1.3; }
.rw-card__body p { font-size: 14.5px; line-height: 1.6; }

/* Problems */
.rw-problems-grid { gap: 16px; }
.rw-problem { grid-template-columns: 42px 1fr; gap: 15px; padding: 21px 22px; box-shadow: 0 7px 22px rgba(16,45,33,.05); }
.rw-problem > span { width: 38px; height: 38px; font-size: 12px; }
.rw-problem h3 { margin-bottom: 6px; font-size: 1rem; }
.rw-problem p { font-size: 14px; line-height: 1.55; }

/* Selection block: desktop heading/text in left column, photo right. */
.rw-selection {
    display: grid;
    grid-template-columns: minmax(0,1.04fr) minmax(400px,.96fr);
    grid-template-areas: 'head media' 'text media';
    column-gap: 58px;
    row-gap: 14px;
    align-items: center;
}
.rw-selection__head { grid-area: head; align-self: end; }
.rw-selection__head h2 { margin-bottom: 0; }
.rw-selection__text { grid-area: text; align-self: start; max-width: 620px; }
.rw-selection__text > :last-child { margin-bottom: 0; }
.rw-selection__media { grid-area: media; aspect-ratio: 4 / 3; border-radius: 18px; }
.rw-selection--text-only { display: block; max-width: none; }
.rw-selection--text-only .rw-selection__head,
.rw-selection--text-only .rw-selection__text { max-width: 860px; }

/* Process / timeline */
.rw-process { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px; }
.rw-process::before { top: 24px; left: 9%; right: 9%; }
.rw-process__item span { width: 48px; height: 48px; margin-bottom: 16px; box-shadow: 0 0 0 8px var(--rw-bg-light); font-size: 12px; }
.rw-process__item h3 { margin-bottom: 7px; font-size: 15.5px; line-height: 1.3; }
.rw-process__item p { max-width: 205px; margin: 0 auto; font-size: 13.5px; line-height: 1.6; color: var(--rw-muted); }

/* CTA */
#consultation.rw-section { padding-top: 82px; padding-bottom: 82px; }
.rw-cta { min-height: 220px; padding: 44px 48px; border-radius: 18px; }
.rw-cta h2 { max-width: 620px; margin-bottom: 13px; font-size: clamp(2rem,2.8vw,2.25rem); line-height: 1.1; }
.rw-cta p { font-size: 16px; line-height: 1.6; }
.rw-cta .rw-btn { flex: 0 0 auto; min-height: 52px; padding-inline: 26px; }

@media (max-width: 1100px) {
    .rw-nav, .rw-header__phone, .rw-header .rw-btn { display: none; }
    .rw-header__actions { margin-left: auto; }
    .rw-menu-toggle { display: block; width: 48px; height: 48px; cursor: pointer; }
    .rw-menu-toggle span { transition: transform .18s ease, opacity .18s ease; }
    .rw-menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .rw-menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
    .rw-menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .rw-mobile-overlay {
        display: block;
        position: fixed;
        z-index: 1300;
        inset: 0;
        background: rgba(8,25,18,.42);
        backdrop-filter: blur(2px);
    }
    .rw-mobile-overlay[hidden],
    .rw-mobile-menu[hidden] {
        display: none !important;
    }

    .rw-mobile-menu {
        display: flex;
        position: fixed;
        z-index: 1400;
        top: 0;
        right: 0;
        width: min(88vw,380px);
        height: 100dvh;
        flex-direction: column;
        border: 0;
        background: #fff;
        box-shadow: -18px 0 45px rgba(0,0,0,.14);
        overflow: hidden;
    }
    .rw-mobile-menu__head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--rw-border); }
    .rw-mobile-menu__title { color: var(--rw-green-dark); font-size: 16px; font-weight: 800; }
    .rw-mobile-menu__close { width: 48px; height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--rw-green); font-size: 30px; line-height: 1; cursor: pointer; }
    .rw-mobile-menu__body { flex: 1; overflow-y: auto; padding: 10px 18px 26px; }
    .rw-mobile-menu__list { padding: 0; }
    .rw-mobile-menu__list > li { position: relative; margin: 0 !important; border-bottom: 1px solid var(--rw-border); }
    .rw-mobile-menu__list > li > a { display: flex; min-height: 52px; align-items: center; padding-right: 54px; font-size: 16px; }
    .rw-mobile-menu .sub-menu { margin: 0 0 12px; padding: 4px 0 4px 14px; list-style: none; border-left: 1px solid var(--rw-border); }
    .rw-mobile-menu .sub-menu li { margin: 0; }
    .rw-mobile-menu .sub-menu a { display: flex; min-height: 44px; align-items: center; color: #49524b; font-size: 14.5px; font-weight: 600; }
    .rw-mobile-submenu-toggle { position: absolute; top: 2px; right: 0; width: 48px; height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--rw-green); font-size: 23px; cursor: pointer; }
    .rw-mobile-menu__contact { display: grid; gap: 12px; margin-top: 26px; }
    .rw-mobile-menu__phone { display: flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--rw-border); border-radius: 8px; color: var(--rw-green); font-weight: 800; text-decoration: none; }
    .rw-mobile-menu__contact .rw-btn { display: inline-flex; width: 100%; }

    .rw-service-hero__grid { grid-template-columns: .98fr 1.02fr; gap: 36px; }
    .rw-grid--solutions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rw-grid--solutions > .rw-card,
    .rw-grid--solutions > .rw-card:nth-last-child(2):nth-child(4),
    .rw-grid--solutions > .rw-card:nth-last-child(1):nth-child(5) { grid-column: auto; }
    .rw-grid--solutions > .rw-card:last-child:nth-child(odd) { width: calc(50% - 12px); grid-column: 1 / -1; justify-self: center; }
    .rw-process { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .rw-process::before { display: none; }
    .rw-process__item p { margin-inline: auto; }
}

@media (max-width: 800px) {
    .rw-header__inner { min-height: 68px; padding-block: 8px; }
    .rw-service-hero { padding: 18px 0 52px; }
    .rw-breadcrumbs { margin-bottom: 24px; }
    .rw-service-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .rw-service-hero__content { padding: 10px 0 0; }
    .rw-service-hero__content h1 { max-width: 680px; font-size: clamp(2.25rem,8.2vw,2.75rem); line-height: 1.06; }
    .rw-service-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .rw-service-hero__media { margin-top: 0; aspect-ratio: 4 / 3; }
    .rw-hero-badge { left: 16px; right: 16px; bottom: 16px; max-width: 315px; }

    .rw-section { padding-block: 64px; }
    .rw-section-head { margin-bottom: 32px; }
    .rw-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rw-feature { min-height: 0; }

    .rw-problems-grid { grid-template-columns: 1fr; gap: 12px; }
    .rw-problem { padding: 19px 20px; }

    .rw-selection {
        grid-template-columns: 1fr;
        grid-template-areas: 'head' 'media' 'text';
        gap: 22px;
    }
    .rw-selection__head h2 { margin-bottom: 0; }
    .rw-selection__media { width: 100%; }
    .rw-selection__text { max-width: none; }

    .rw-process { grid-template-columns: 1fr; gap: 0; }
    .rw-process__item { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding-bottom: 25px; text-align: left; }
    .rw-process__item:not(:last-child)::after { content: ''; position: absolute; top: 48px; bottom: 0; left: 23.5px; width: 1px; background: var(--rw-border); }
    .rw-process__item span { width: 48px; height: 48px; margin: 0; box-shadow: none; }
    .rw-process__item h3 { margin-top: 2px; font-size: 16px; }
    .rw-process__item p { max-width: none; margin: 6px 0 0; font-size: 14px; }

    #consultation.rw-section { padding-top: 64px; padding-bottom: 64px; }
    .rw-cta { min-height: 0; padding: 34px 28px; }
    .rw-cta h2 { font-size: 30px; }
    .rw-cta .rw-btn { width: 100%; }
}

@media (max-width: 560px) {
    .rw-container { width: calc(100% - 32px); }
    .rw-service-hero { padding-bottom: 46px; }
    .rw-service-hero__content h1 { font-size: clamp(2.125rem,9vw,2.5rem); line-height: 1.06; }
    .rw-service-hero .rw-lead { font-size: 16px; line-height: 1.62; }
    .rw-service-hero__actions { grid-template-columns: 1fr; }
    .rw-service-hero__actions .rw-btn { width: 100%; min-height: 50px; }
    .rw-service-hero__media { margin-top: 0; }

    .rw-section { padding-block: 56px; }
    .rw-section-head h2 { font-size: clamp(1.75rem,8vw,2rem); }
    .rw-grid--4 { grid-template-columns: 1fr; gap: 12px; }
    .rw-feature { padding: 21px; }
    .rw-feature > span,
    .rw-feature__icon { margin-bottom: 14px; }

    .rw-grid--solutions { grid-template-columns: 1fr; gap: 16px; }
    .rw-grid--solutions > .rw-card:last-child:nth-child(odd) { width: 100%; grid-column: auto; }
    .rw-card__body { padding: 19px; }

    .rw-problem { grid-template-columns: 40px 1fr; gap: 13px; padding: 18px; }
    .rw-problem > span { width: 38px; height: 38px; }

    .rw-selection { gap: 20px; }
    .rw-selection__head + .rw-selection__media { margin-top: 0; }
    .rw-selection__text { font-size: 16px; line-height: 1.68; }

    .rw-process__item { grid-template-columns: 48px minmax(0,1fr); gap: 15px; padding-bottom: 24px; }

    #consultation.rw-section { padding-block: 56px; }
    .rw-cta { padding: 29px 22px; }
    .rw-cta h2 { font-size: 28px; }
    .rw-cta p { font-size: 15px; }
}

@media (max-width: 430px) {
    .rw-logo__mark { font-size: 22px; }
    .rw-logo__text { font-size: 12px; }
    .rw-service-hero__content h1 { font-size: clamp(2.1rem,9.4vw,2.4rem); }
    .rw-card__body, .rw-feature { padding-inline: 19px; }
    .rw-cta { padding-inline: 20px; }
}

/* =========================================================
   Riverwood v0.8.2 micro-polish
   FAQ is intentionally untouched.
   ========================================================= */

/* Slightly more confident desktop canvas without changing the page structure. */
:root { --rw-container: 1340px; }

@media (min-width: 1101px) {
    .rw-service-hero__grid { gap: clamp(48px, 4.2vw, 62px); }
}

@media (max-width: 800px) {
    /* Keep the mobile ending tighter and give the final action more weight. */
    #consultation.rw-section { padding-top: 48px; padding-bottom: 56px; }
    .rw-cta .rw-btn { min-height: 54px; }

    /* Compact footer rhythm on narrow screens. */
    .rw-footer { padding: 56px 0 20px; }
    .rw-footer__grid { gap: 28px; }
    .rw-footer__bottom { margin-top: 34px; }
}

@media (max-width: 560px) {
    /* Hero: reduce the gap between actions and the visual. */
    .rw-service-hero__grid { gap: 16px; }
    .rw-service-hero__actions { margin-top: 22px; }

    /* Advantages: a little denser without feeling cramped. */
    .rw-feature { padding: 18px 19px; }
    .rw-feature > span,
    .rw-feature__icon { margin-bottom: 12px; }
    .rw-feature h3 { margin-bottom: 7px; }
    .rw-feature p { line-height: 1.55; }

    /* Solution cards: strengthen the title hierarchy. */
    .rw-grid--solutions .rw-card__body h3 { font-size: 18px; }

    /* Problems: shorten the long mobile section while preserving content. */
    .rw-problems-grid { gap: 10px; }
    .rw-problem { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; }
    .rw-problem > span { width: 36px; height: 36px; }
    .rw-problem h3 { margin-bottom: 5px; }
    .rw-problem p { line-height: 1.5; }

    /* Mobile process timeline: make the sequence more legible. */
    .rw-process__item { grid-template-columns: 52px minmax(0,1fr); gap: 15px; padding-bottom: 24px; }
    .rw-process__item span { width: 52px; height: 52px; font-size: 12.5px; border-color: #d8d1c5; }
    .rw-process__item:not(:last-child)::after { top: 52px; left: 25.5px; background: #d8d1c5; }
    .rw-process__item h3 { margin-top: 3px; font-size: 16px; }

    /* Final CTA: less empty space before it, stronger full-width action. */
    #consultation.rw-section { padding-top: 40px; padding-bottom: 52px; }
    .rw-cta { padding: 28px 20px; }
    .rw-cta .rw-btn { width: 100%; min-height: 54px; }

    /* Footer stays compact after the final CTA. */
    .rw-footer { padding-top: 50px; }
    .rw-footer__grid { gap: 26px; }
    .rw-footer__bottom { margin-top: 30px; }
}

@media (max-width: 430px) {
    .rw-service-hero__grid { gap: 14px; }
    .rw-feature { padding-inline: 18px; }
    .rw-problem { padding: 15px; }
    .rw-cta { padding-inline: 18px; }
}


/* =========================================================
   Riverwood v0.8.3 — FAQ visual polish only
   Layout, position, markup and FAQ content intentionally unchanged.
   ========================================================= */
.rw-faq {
    border-top-color: #e8e4dc;
}

.rw-faq__item {
    border-bottom-color: #e8e4dc;
    transition: background-color .18s ease;
}

.rw-faq__item summary {
    padding-top: 18px;
    padding-bottom: 18px;
    color: var(--rw-green);
    font-size: 15.5px;
    line-height: 1.4;
    font-weight: 650;
    transition: color .18s ease, background-color .18s ease;
}

.rw-faq__item summary::after {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-color: #e7e1d8;
    background: #f4f0e9;
    color: var(--rw-green);
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.rw-faq__item summary:hover {
    color: var(--rw-green-dark);
}

.rw-faq__item summary:hover::after {
    border-color: #ddd3c5;
    background: #eee8de;
    color: var(--rw-green-dark);
}

.rw-faq__item[open] {
    background: #faf8f4;
}

.rw-faq__item[open] summary {
    color: var(--rw-green-dark);
}

.rw-faq__item[open] summary::after {
    content: '−';
    border-color: #d9cfbf;
    background: #eee6d9;
    color: var(--rw-green-dark);
}

.rw-faq__answer {
    padding-top: 0;
    padding-bottom: 18px;
    color: #5f665f;
    font-size: 15px;
    line-height: 1.65;
}

.rw-faq__answer p {
    margin-top: 0;
}

.rw-faq__item summary:focus-visible {
    outline: 2px solid rgba(21,61,43,.32);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .rw-faq__item summary {
        padding-top: 15px;
        padding-bottom: 15px;
        padding-right: 44px;
        font-size: 15px;
        line-height: 1.42;
    }

    .rw-faq__item summary::after {
        right: 4px;
        width: 30px;
        height: 30px;
        font-size: 17px;
    }

    .rw-faq__answer {
        padding-right: 0;
        padding-bottom: 16px;
        font-size: 14.5px;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-faq__item,
    .rw-faq__item summary,
    .rw-faq__item summary::after {
        transition: none;
    }
}

/* =========================================================
   Riverwood v1.0.0 front page template
   Uses the same visual language as service pages.
   ========================================================= */
.rw-home-hero {
    padding: 46px 0 86px;
    background: linear-gradient(90deg, var(--rw-bg-light) 0%, #fff 58%);
}
.rw-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: clamp(46px, 4.8vw, 72px);
    align-items: center;
}
.rw-home-hero__content h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(2.9rem, 4.55vw, 4.25rem);
    line-height: 1.035;
    letter-spacing: -.04em;
}
.rw-home-hero__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: linear-gradient(135deg, #e9e3d8, #f8f5ee);
    box-shadow: var(--rw-shadow-lg, 0 24px 60px rgba(16,45,33,.12));
}
.rw-home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rw-home-hero__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(211,170,121,.28), transparent 38%),
        linear-gradient(135deg, #d7d0c3, #f5f0e8);
    color: rgba(23,61,45,.22);
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rw-grid--home-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.rw-home-service-card {
    display: flex;
    flex-direction: column;
}
.rw-home-service-card .rw-card__media {
    display: block;
    overflow: hidden;
}
.rw-home-service-card .rw-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}
.rw-home-service-card:hover .rw-card__media img {
    transform: scale(1.035);
}
.rw-home-service-card .rw-card__body {
    flex: 1;
}
.rw-home-service-card .rw-card__body h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.rw-home-service-card .rw-card__body p:empty::before {
    content: 'Подробнее о направлении Riverwood и подходе к реализации работ под ключ.';
}
.rw-home-split {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(44px, 5vw, 72px);
    align-items: start;
}
.rw-home-split h2 {
    max-width: 620px;
}
.rw-home-split__text {
    max-width: 720px;
    color: #4e554f;
    font-size: 18px;
    line-height: 1.72;
}
.rw-home-split__text > :last-child {
    margin-bottom: 0;
}
.rw-process--home::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 9%;
    right: 9%;
    height: 1px;
    background: var(--rw-border);
}
.rw-home-faq-layout .rw-section-head h2 {
    max-width: 520px;
}

@media (max-width: 1100px) {
    .rw-home-hero__grid {
        grid-template-columns: .98fr 1.02fr;
        gap: 36px;
    }
    .rw-grid--home-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rw-home-split {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .rw-process--home::before {
        display: none;
    }
}

@media (max-width: 800px) {
    .rw-home-hero {
        padding: 22px 0 56px;
    }
    .rw-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rw-home-hero__content h1 {
        font-size: clamp(2.3rem, 8.6vw, 2.85rem);
        line-height: 1.055;
    }
    .rw-home-hero .rw-service-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .rw-home-hero__media {
        aspect-ratio: 4 / 3;
    }
    .rw-grid--home-services {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .rw-home-split__text {
        font-size: 16px;
        line-height: 1.68;
    }
    .rw-home-faq-layout {
        gap: 22px;
    }
}

@media (max-width: 560px) {
    .rw-home-hero {
        padding-bottom: 48px;
    }
    .rw-home-hero__content h1 {
        font-size: clamp(2.1rem, 9.2vw, 2.45rem);
    }
    .rw-home-hero .rw-service-hero__actions {
        grid-template-columns: 1fr;
    }
    .rw-home-hero__placeholder {
        font-size: 2rem;
    }
    .rw-home-service-card .rw-card__body h3 {
        font-size: 1.1rem;
    }
}

/* =========================================================
   Riverwood v1.1.0 editable front page — approach image
   ========================================================= */
.rw-home-approach-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
    gap: clamp(44px, 5vw, 72px);
    align-items: center;
}
.rw-home-approach__content h2 { max-width: 680px; }
.rw-home-approach__media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(16,45,33,.10);
}
.rw-home-approach__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
    .rw-home-approach-grid { grid-template-columns: 1fr; gap: 24px; }
    .rw-home-approach__media { order: 2; }
}

/* =========================================================
   Riverwood v1.3.5 — homepage mobile polish only
   Desktop service grid, FAQ and Approach section untouched.
   ========================================================= */
@media (max-width: 560px) {
    /* 1. Hero: tighten only the space between the action area and photo. */
    .rw-home-hero__grid {
        gap: 14px;
    }

    /* 2. Service cards: give the link and card ending a little more air. */
    .rw-home-service-card .rw-card__body {
        padding-bottom: 24px;
    }

    /* 3. Homepage benefits: slightly denser vertical rhythm. */
    .home .rw-section--soft .rw-grid--4 {
        gap: 9px;
    }

    /* 4. Homepage process: clearer separation between timeline steps. */
    .rw-process--home .rw-process__item:not(:last-child) {
        padding-bottom: 31px;
    }
    .rw-process--home .rw-process__item:last-child {
        padding-bottom: 0;
    }

    /* 5. Final CTA: stronger vertical breathing room, same layout/content. */
    .home #consultation .rw-cta {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    /* 6. Footer: more space between brand description and contacts. */
    .rw-footer__grid--no-menu {
        row-gap: 34px;
    }
}


/* =========================================================
   Riverwood v1.3.6 — sync homepage Hero + FAQ with service page
   Only homepage Hero proportions/rhythm and FAQ outer layout.
   ========================================================= */
.rw-home-hero {
    overflow: hidden;
    padding: 34px 0 76px;
    background:
        radial-gradient(circle at 14% 22%, rgba(211,170,121,.13), transparent 27%),
        linear-gradient(105deg, #f8f5ef 0%, #fff 62%);
}
.rw-home-hero__grid {
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    gap: clamp(44px, 4.5vw, 60px);
    align-items: center;
}
.rw-home-hero__content {
    padding: 32px 0;
}
.rw-home-hero__content h1 {
    max-width: 680px;
    margin-bottom: 22px;
    font-size: clamp(2.75rem, 4.35vw, 3.875rem);
    line-height: 1.045;
    letter-spacing: -.035em;
}
.rw-home-hero .rw-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
}
.rw-home-hero .rw-lead {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.35vw, 1.125rem);
    line-height: 1.65;
}
.rw-home-hero .rw-service-hero__actions {
    gap: 12px;
    margin-top: 26px;
}
.rw-home-hero .rw-service-hero__actions .rw-btn {
    min-height: 50px;
}
.rw-home-hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    box-shadow: var(--rw-shadow-lg);
}

@media (max-width: 1100px) {
    .rw-home-hero__grid {
        grid-template-columns: .98fr 1.02fr;
        gap: 36px;
    }
}

@media (max-width: 800px) {
    .rw-home-hero {
        padding: 18px 0 52px;
    }
    .rw-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rw-home-hero__content {
        padding: 10px 0 0;
    }
    .rw-home-hero__content h1 {
        max-width: 680px;
        margin-bottom: 18px;
        font-size: clamp(2.25rem, 8.2vw, 2.75rem);
        line-height: 1.06;
    }
    .rw-home-hero .rw-service-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }
    .rw-home-hero__media {
        margin-top: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 560px) {
    .rw-home-hero {
        padding-bottom: 46px;
    }
    .rw-home-hero__content h1 {
        font-size: clamp(2.125rem, 9vw, 2.5rem);
        line-height: 1.06;
    }
    .rw-home-hero .rw-lead {
        font-size: 16px;
        line-height: 1.62;
    }
    .rw-home-hero .rw-service-hero__actions {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }
    .rw-home-hero .rw-service-hero__actions .rw-btn {
        width: 100%;
        min-height: 50px;
    }
}

/* =========================================================
   Riverwood v1.4.0 — Blog system
   ========================================================= */
.rw-article-hero { padding: 52px 0 44px; background: radial-gradient(circle at 14% 22%, rgba(211,170,121,.13), transparent 27%), linear-gradient(105deg,#f8f5ef 0%,#fff 62%); }
.rw-article-hero__inner { max-width: 980px; }
.rw-article-hero__category, .rw-blog-card__category { margin-bottom: 12px; color: var(--rw-green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rw-article-hero h1 { max-width: 900px; margin: 0 0 20px; font-size: clamp(2.6rem,5vw,4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.rw-article-hero__lead { max-width: 760px; margin: 0 0 24px; color: var(--rw-muted); font-size: 18px; line-height: 1.65; }
.rw-article-hero__meta { display:flex; flex-wrap:wrap; gap:10px 22px; color:var(--rw-muted); font-size:14px; }
.rw-article-cover { overflow:hidden; max-width:1180px; margin:34px auto 0; border-radius:20px; box-shadow:var(--rw-shadow-lg); aspect-ratio:16/8.5; }
.rw-article-cover img { width:100%; height:100%; object-fit:cover; }
.rw-article-layout { display:grid; grid-template-columns:230px minmax(0,780px); justify-content:center; gap:64px; padding-top:70px; padding-bottom:96px; }
.rw-toc { position:sticky; top:100px; align-self:start; max-height:calc(100vh - 130px); overflow:auto; padding:18px 0; border-top:1px solid var(--rw-border); border-bottom:1px solid var(--rw-border); }
.rw-toc__title { margin-bottom:12px; color:var(--rw-green); font-weight:800; }
.rw-toc ol { list-style:none; margin:0; padding:0; }
.rw-toc li { margin:0; }
.rw-toc a { display:block; padding:7px 0; color:var(--rw-muted); font-size:13px; line-height:1.4; text-decoration:none; }
.rw-toc a:hover { color:var(--rw-green); }
.rw-toc__level-3 a { padding-left:16px; font-size:12.5px; }
.rw-article-body { min-width:0; }
.rw-article-body > :first-child { margin-top:0; }
.rw-article-body p, .rw-article-body li { font-size:17px; line-height:1.72; }
.rw-article-body h2 { margin:58px 0 20px; font-size:clamp(1.8rem,3vw,2.35rem); line-height:1.15; letter-spacing:-.025em; scroll-margin-top:100px; }
.rw-article-body h3 { margin:38px 0 16px; font-size:clamp(1.35rem,2vw,1.65rem); line-height:1.25; scroll-margin-top:100px; }
.rw-article-body img { border-radius:14px; }
.rw-article-body figure { margin:34px 0; }
.rw-article-body blockquote { margin:32px 0; padding:22px 26px; border-left:3px solid var(--rw-accent); background:var(--rw-bg-light); border-radius:0 12px 12px 0; }
.rw-article-body table { width:100%; border-collapse:collapse; margin:30px 0; font-size:15px; }
.rw-article-body th,.rw-article-body td { padding:13px 14px; border:1px solid var(--rw-border); text-align:left; }
.rw-article-body th { background:var(--rw-bg-light); }
.rw-blog-cta { display:flex; align-items:center; justify-content:space-between; gap:30px; margin:64px 0 48px; padding:34px 36px; border-radius:18px; background:var(--rw-green-dark); color:white; }
.rw-blog-cta h2 { margin:6px 0 10px; color:white; font-size:28px; }
.rw-blog-cta p { margin:0; max-width:520px; color:rgba(255,255,255,.74); font-size:15px; }
.rw-author-box { display:grid; grid-template-columns:80px 1fr; gap:22px; align-items:center; padding:28px 0; border-top:1px solid var(--rw-border); }
.rw-author-box__avatar img { display:block; border-radius:50%; }
.rw-author-box h2 { margin:4px 0 7px; font-size:22px; }
.rw-author-box p { margin:0; color:var(--rw-muted); font-size:14px; line-height:1.6; }
.rw-related-posts { padding-block:82px; }
.rw-blog-index__hero { padding:68px 0 58px; background:radial-gradient(circle at 14% 22%,rgba(211,170,121,.13),transparent 27%),linear-gradient(105deg,#f8f5ef 0%,#fff 62%); }
.rw-blog-index__hero h1 { max-width:800px; margin:10px 0 16px; font-size:clamp(2.7rem,5vw,4.3rem); line-height:1.04; letter-spacing:-.04em; }
.rw-blog-index__hero p,.rw-blog-index__description { max-width:700px; color:var(--rw-muted); font-size:17px; line-height:1.65; }
.rw-blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.rw-blog-card { overflow:hidden; border:1px solid var(--rw-border); border-radius:14px; background:white; box-shadow:var(--rw-shadow); }
.rw-blog-card__media { display:block; aspect-ratio:4/3; overflow:hidden; background:var(--rw-bg); }
.rw-blog-card__media img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.rw-blog-card:hover .rw-blog-card__media img { transform:scale(1.025); }
.rw-blog-card__placeholder { display:grid; place-items:center; width:100%; height:100%; color:rgba(21,61,43,.2); font-size:28px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.rw-blog-card__body { padding:20px; }
.rw-blog-card__title { margin:0 0 10px; font-size:20px; line-height:1.25; }
.rw-blog-card__title a { color:var(--rw-green); text-decoration:none; }
.rw-blog-card__body p { margin:0 0 18px; color:var(--rw-muted); font-size:14px; line-height:1.6; }
.rw-blog-card__meta { display:flex; justify-content:space-between; gap:14px; align-items:center; color:var(--rw-muted); font-size:12px; }
.rw-blog-card__meta a { color:var(--rw-green); font-weight:700; text-decoration:none; }
.rw-pagination { margin-top:46px; }
.rw-pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.rw-pagination a,.rw-pagination span { display:grid; min-width:42px; height:42px; place-items:center; padding:0 12px; border:1px solid var(--rw-border); border-radius:9px; color:var(--rw-green); text-decoration:none; }
.rw-pagination .current { background:var(--rw-green); color:#fff; border-color:var(--rw-green); }
.rw-empty-state { max-width:600px; padding:50px 0; }

@media (max-width: 1024px) {
  .rw-article-layout { grid-template-columns:1fr; max-width:820px; gap:30px; }
  .rw-toc { position:static; max-height:none; border:1px solid var(--rw-border); border-radius:12px; padding:18px 20px; }
  .rw-blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .rw-article-hero { padding:34px 0 30px; }
  .rw-article-hero h1 { font-size:clamp(2.2rem,10vw,3rem); }
  .rw-article-hero__lead { font-size:16px; }
  .rw-article-cover { margin-top:22px; border-radius:14px; aspect-ratio:4/3; }
  .rw-article-layout { padding-top:36px; padding-bottom:64px; }
  .rw-article-body p,.rw-article-body li { font-size:16px; line-height:1.7; }
  .rw-article-body h2 { margin-top:46px; }
  .rw-blog-cta { display:block; padding:28px 22px; }
  .rw-blog-cta .rw-btn { width:100%; margin-top:20px; }
  .rw-author-box { grid-template-columns:64px 1fr; gap:16px; }
  .rw-blog-grid { grid-template-columns:1fr; gap:18px; }
  .rw-blog-index__hero { padding:46px 0 38px; }
}


/* =========================================================
   Riverwood v1.4.1 — article polishing
   Keeps the article structure intact; refines hero, reading
   typography, in-article CTA and author presentation.
   ========================================================= */
@media (min-width: 768px) {
    .rw-article-hero {
        padding: 38px 0 32px;
    }
    .rw-article-hero h1 {
        max-width: 900px;
        margin-bottom: 16px;
        font-size: clamp(2.55rem, 4.35vw, 4rem);
        line-height: 1.04;
    }
    .rw-article-hero__category {
        margin-bottom: 10px;
    }
    .rw-article-hero__lead {
        margin-bottom: 20px;
    }
    .rw-article-cover {
        max-width: 1080px;
        margin-top: 26px;
        aspect-ratio: 16 / 8.7;
    }
    .rw-article-layout {
        grid-template-columns: 220px minmax(0, 800px);
        gap: 58px;
        padding-top: 56px;
        padding-bottom: 88px;
    }
    .rw-article-body p,
    .rw-article-body li {
        font-size: 18px;
        line-height: 1.72;
    }
    .rw-article-body h2 {
        margin: 54px 0 18px;
        font-size: clamp(1.95rem, 2.55vw, 2.2rem);
        line-height: 1.14;
    }
    .rw-article-body h3 {
        margin: 34px 0 14px;
        font-size: clamp(1.45rem, 1.9vw, 1.6rem);
        line-height: 1.22;
    }
    .rw-blog-cta {
        margin: 56px 0 42px;
        padding: 28px 30px;
    }
    .rw-blog-cta h2 {
        margin: 5px 0 8px;
        font-size: 25px;
    }
    .rw-author-box {
        grid-template-columns: 72px 1fr;
        gap: 20px;
        padding: 26px 0;
    }
}

@media (max-width: 767px) {
    .rw-article-hero {
        padding: 28px 0 24px;
    }
    .rw-article-hero h1 {
        margin-bottom: 16px;
        font-size: clamp(2.15rem, 9.6vw, 2.45rem);
        line-height: 1.06;
        letter-spacing: -.03em;
    }
    .rw-article-hero__meta {
        gap: 8px 14px;
        font-size: 13px;
    }
    .rw-article-cover {
        margin-top: 18px;
    }
    .rw-article-layout {
        padding-top: 32px;
        padding-bottom: 58px;
    }
    .rw-article-body p,
    .rw-article-body li {
        font-size: 16.5px;
        line-height: 1.72;
    }
    .rw-article-body h2 {
        margin: 42px 0 16px;
        font-size: clamp(1.75rem, 8vw, 2rem);
        line-height: 1.15;
    }
    .rw-article-body h3 {
        margin: 30px 0 12px;
        font-size: clamp(1.35rem, 6.6vw, 1.55rem);
        line-height: 1.22;
    }
    .rw-blog-cta {
        margin: 48px 0 36px;
        padding: 24px 20px;
    }
    .rw-blog-cta h2 {
        font-size: 24px;
        line-height: 1.15;
    }
    .rw-author-box {
        padding: 24px 0;
    }
}


/* =========================================================
   Riverwood v1.4.2 — article editorial cleanup
   Wider reading column, Riverwood TOC styling, tighter author,
   simplified related cards. In-article CTA/category removed in PHP.
   ========================================================= */
@media (min-width: 768px) {
    .rw-article-layout {
        grid-template-columns: 220px minmax(0, 820px);
        gap: 56px;
    }
}

.rw-toc {
    padding: 18px;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    background: #faf8f4;
    box-shadow: 0 8px 24px rgba(20, 43, 31, .035);
}
.rw-toc__title {
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: .01em;
}
.rw-toc a {
    padding: 6px 0;
    color: #626960;
    font-size: 13px;
    line-height: 1.45;
}
.rw-toc a:hover,
.rw-toc a:focus-visible {
    color: var(--rw-green);
}

.rw-author-box {
    padding: 20px 0;
}

.rw-related-posts .rw-section-head {
    margin-bottom: 28px;
}
.rw-related-card {
    overflow: hidden;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--rw-shadow);
}
.rw-related-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--rw-bg);
}
.rw-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.rw-related-card:hover .rw-related-card__media img {
    transform: scale(1.025);
}
.rw-related-card__body {
    padding: 18px 20px 20px;
}
.rw-related-card__title {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.25;
}
.rw-related-card__title a {
    color: var(--rw-green);
    text-decoration: none;
}
.rw-related-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--rw-muted);
    font-size: 12px;
}
.rw-related-card__meta a {
    color: var(--rw-green);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .rw-toc {
        position: static;
        max-height: none;
        padding: 16px 18px;
    }
}

@media (max-width: 767px) {
    .rw-article-body h2 {
        margin: 40px 0 14px;
        font-size: clamp(1.6rem, 7.2vw, 1.85rem);
        line-height: 1.16;
    }
    .rw-author-box {
        padding: 18px 0;
    }
    .rw-related-card__body {
        padding: 16px 17px 18px;
    }
    .rw-related-card__title {
        margin-bottom: 14px;
        font-size: 18px;
    }
}


/* =========================================================
   Riverwood v1.4.3 — modern article metadata
   ========================================================= */
.rw-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    color: var(--rw-muted);
    font-size: 14px;
    line-height: 1.4;
}
.rw-article-meta__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rw-article-meta__avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--rw-bg);
}
.rw-article-meta__avatar-img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
}
.rw-article-meta__name {
    color: var(--rw-green);
    font-weight: 700;
    white-space: nowrap;
}
.rw-article-meta__details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.rw-article-meta__separator {
    color: #c9c3b9;
}

@media (max-width: 560px) {
    .rw-article-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 16px;
        font-size: 13.5px;
    }
    .rw-article-meta__author {
        gap: 9px;
    }
    .rw-article-meta__avatar,
    .rw-article-meta__avatar-img {
        width: 36px;
        height: 36px;
    }
    .rw-article-meta__avatar {
        flex-basis: 36px;
    }
    .rw-article-meta__details {
        padding-left: 45px;
        gap: 6px 8px;
    }
}


/* =========================================================
   Riverwood v1.4.4 — long-form SEO article readability
   Article-body only. Article hero and other templates untouched.
   ========================================================= */
@media (min-width: 768px) {
    .rw-article-layout {
        grid-template-columns: 220px minmax(0, 860px);
        gap: 58px;
    }
}

/* Long-form heading rhythm */
.rw-article-body h2 {
    margin-top: 64px;
    margin-bottom: 20px;
}
.rw-article-body h3 {
    margin-top: 42px;
    margin-bottom: 16px;
}
.rw-article-body h2 + h3 {
    margin-top: 26px;
}

/* Lists */
.rw-article-body ul,
.rw-article-body ol {
    margin: 22px 0 30px;
    padding-left: 1.45em;
}
.rw-article-body li {
    margin: 8px 0;
    padding-left: .18em;
}
.rw-article-body li::marker {
    color: var(--rw-green);
    font-weight: 700;
}
.rw-article-body li > ul,
.rw-article-body li > ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Inline/article images */
.rw-article-body figure,
.rw-article-body .wp-block-image {
    margin-top: 38px;
    margin-bottom: 38px;
}
.rw-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}
.rw-article-body figcaption {
    margin-top: 10px;
    color: var(--rw-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

/* Tables: readable desktop, horizontally scrollable mobile */
.rw-article-body .wp-block-table {
    margin: 34px 0 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    background: #fff;
}
.rw-article-body .wp-block-table table,
.rw-article-body > table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.55;
}
.rw-article-body > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 34px 0 40px;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    background: #fff;
}
.rw-article-body th,
.rw-article-body td {
    padding: 15px 16px;
    border: 0;
    border-right: 1px solid var(--rw-border);
    border-bottom: 1px solid var(--rw-border);
    vertical-align: top;
}
.rw-article-body th:last-child,
.rw-article-body td:last-child {
    border-right: 0;
}
.rw-article-body tr:last-child td {
    border-bottom: 0;
}
.rw-article-body th {
    background: #f6f2ea;
    color: var(--rw-green);
    font-weight: 700;
}

/* Stronger TOC for long SEO articles */
.rw-toc {
    padding: 20px;
    border-color: #ddd6ca;
    background: #f8f5ef;
    box-shadow: 0 10px 30px rgba(20, 43, 31, .055);
}
.rw-toc__title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.rw-toc a {
    position: relative;
    padding: 7px 0 7px 12px;
    border-left: 2px solid transparent;
    color: #596158;
    font-size: 13px;
    line-height: 1.45;
}
.rw-toc a:hover,
.rw-toc a:focus-visible {
    border-left-color: var(--rw-accent);
    color: var(--rw-green);
}
.rw-toc__level-3 a {
    padding-left: 24px;
}

/* Author block: slightly more substantial after long reads */
.rw-author-box {
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 30px 0 32px;
}
.rw-author-box__avatar img {
    width: 88px;
    height: 88px;
    object-fit: cover;
}
.rw-author-box h2 {
    font-size: 23px;
}
.rw-author-box p {
    max-width: 620px;
    font-size: 14.5px;
    line-height: 1.65;
}

/* Pull related materials closer to the article ending */
.rw-related-posts {
    padding-top: 56px;
    padding-bottom: 82px;
}

@media (max-width: 767px) {
    .rw-article-body h2 {
        margin-top: 48px;
        margin-bottom: 15px;
    }
    .rw-article-body h3 {
        margin-top: 34px;
        margin-bottom: 13px;
    }
    .rw-article-body ul,
    .rw-article-body ol {
        margin: 18px 0 26px;
        padding-left: 1.3em;
    }
    .rw-article-body li {
        margin: 7px 0;
    }
    .rw-article-body figure,
    .rw-article-body .wp-block-image {
        margin-top: 28px;
        margin-bottom: 30px;
    }
    .rw-article-body img {
        border-radius: 13px;
    }
    .rw-article-body .wp-block-table,
    .rw-article-body > table {
        margin: 28px 0 34px;
        border-radius: 12px;
    }
    .rw-article-body .wp-block-table table,
    .rw-article-body > table {
        min-width: 620px;
        font-size: 14px;
    }
    .rw-article-body th,
    .rw-article-body td {
        padding: 12px 13px;
    }
    .rw-toc {
        padding: 18px;
        border-radius: 13px;
    }
    .rw-toc a {
        padding-top: 7px;
        padding-bottom: 7px;
        font-size: 13.5px;
    }
    .rw-author-box {
        grid-template-columns: 72px 1fr;
        gap: 18px;
        padding: 26px 0 28px;
    }
    .rw-author-box__avatar img {
        width: 72px;
        height: 72px;
    }
    .rw-author-box h2 {
        font-size: 21px;
    }
    .rw-related-posts {
        padding-top: 42px;
        padding-bottom: 64px;
    }
}


/* =========================================================
   Riverwood v1.5.0 — blog index / category archive
   ========================================================= */
.rw-blog-index__hero {
    padding: 72px 0 62px;
    background:
        radial-gradient(circle at 14% 22%, rgba(211,170,121,.13), transparent 27%),
        linear-gradient(105deg,#f8f5ef 0%,#fff 62%);
}
.rw-blog-index__hero h1 {
    max-width: 820px;
    margin: 10px 0 16px;
    font-size: clamp(2.8rem,5vw,4.25rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}
.rw-blog-index__hero p,
.rw-blog-index__description {
    max-width: 720px;
    color: var(--rw-muted);
    font-size: 17px;
    line-height: 1.65;
}
.rw-blog-index__description p:last-child { margin-bottom: 0; }
.rw-blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.rw-blog-cats a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--rw-border);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--rw-green);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.rw-blog-cats a:hover,
.rw-blog-cats a:focus-visible,
.rw-blog-cats a.is-current {
    border-color: var(--rw-green);
    background: var(--rw-green);
    color: #fff;
}
.rw-blog-listing { padding-top: 72px; }
.rw-blog-grid { gap: 26px; }
.rw-blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.rw-blog-card:hover { transform: translateY(-3px); box-shadow: var(--rw-shadow-lg); }
.rw-blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.rw-blog-card__title { font-size: 21px; line-height: 1.24; }
.rw-blog-card__body > p { flex: 1; }
.rw-blog-card__meta { margin-top: auto; padding-top: 2px; }
.rw-blog-empty {
    max-width: 720px;
    padding: 34px;
    border: 1px solid var(--rw-border);
    border-radius: 16px;
    background: var(--rw-bg-light);
}
.rw-blog-empty h2 { margin-bottom: 8px; color: var(--rw-green); }
.rw-blog-empty p { margin: 0; color: var(--rw-muted); }

@media (max-width: 767px) {
    .rw-blog-index__hero { padding: 46px 0 40px; }
    .rw-blog-index__hero h1 { font-size: clamp(2.25rem,10vw,2.8rem); }
    .rw-blog-index__hero p,
    .rw-blog-index__description { font-size: 16px; }
    .rw-blog-cats {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .rw-blog-cats::-webkit-scrollbar { display: none; }
    .rw-blog-cats a { flex: 0 0 auto; }
    .rw-blog-listing { padding-top: 48px; }
    .rw-blog-card__body { padding: 20px; }
    .rw-blog-card__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .rw-blog-card { transition: none; }
    .rw-blog-card:hover { transform: none; }
}


/* =========================================================
   Riverwood v1.6.0 — Search + 404
   Keeps blog/category visual language.
   ========================================================= */
.rw-search-hero .rw-search-form {
    margin-top: 28px;
}
.rw-search-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 700px);
}
.rw-search-form input[type="search"] {
    min-width: 0;
    flex: 1 1 auto;
    height: 50px;
    padding: 0 17px;
    border: 1px solid var(--rw-border);
    border-radius: 10px;
    background: #fff;
    color: var(--rw-text);
    font: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: 0 6px 22px rgba(26,49,37,.035);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.rw-search-form input[type="search"]::placeholder { color: #92978f; }
.rw-search-form input[type="search"]:focus {
    border-color: rgba(21,61,43,.55);
    box-shadow: 0 0 0 3px rgba(21,61,43,.08);
}
.rw-search-form .rw-btn { flex: 0 0 auto; min-width: 106px; }
.rw-search-results { min-height: 420px; }
.rw-search-empty {
    width: min(100%, 700px);
    margin-inline: auto;
    padding: 54px 44px;
    border: 1px solid var(--rw-border);
    border-radius: 18px;
    background: var(--rw-bg-light);
    text-align: center;
}
.rw-search-empty__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid var(--rw-border);
    border-radius: 50%;
    background: #fff;
    color: var(--rw-green);
    font-size: 27px;
}
.rw-search-empty h2 { margin: 0 0 10px; color: var(--rw-green); font-size: 30px; }
.rw-search-empty p { max-width: 560px; margin: 0 auto; color: var(--rw-muted); line-height: 1.7; }
.rw-search-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.rw-404-hero {
    overflow: hidden;
    padding: 82px 0 92px;
    background:
        radial-gradient(circle at 14% 22%, rgba(211,170,121,.13), transparent 27%),
        linear-gradient(105deg,#f8f5ef 0%,#fff 62%);
}
.rw-404-hero__inner { max-width: 860px; }
.rw-404-code {
    margin: 8px 0 4px;
    color: rgba(21,61,43,.12);
    font-size: clamp(6.5rem, 14vw, 10rem);
    line-height: .88;
    font-weight: 800;
    letter-spacing: -.065em;
}
.rw-404-hero h1 {
    max-width: 680px;
    margin: 0 0 16px;
    color: var(--rw-green);
    font-size: clamp(2.7rem,5vw,4.3rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}
.rw-404-hero__inner > p {
    max-width: 700px;
    margin: 0;
    color: var(--rw-muted);
    font-size: 17px;
    line-height: 1.7;
}
.rw-search-form--404 { margin-top: 30px; }
.rw-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rw-404-services { padding-top: 68px; }
.rw-404-services__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.rw-404-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 22px 24px;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    background: #fff;
    color: var(--rw-green);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--rw-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rw-404-service b { font-size: 20px; font-weight: 500; }
.rw-404-service:hover,
.rw-404-service:focus-visible { transform: translateY(-2px); border-color: rgba(21,61,43,.25); box-shadow: var(--rw-shadow-lg); }

@media (max-width: 900px) {
    .rw-404-services__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .rw-search-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .rw-search-form .rw-btn { width: 100%; }
    .rw-search-empty { padding: 38px 22px; }
    .rw-search-empty h2 { font-size: 27px; }
    .rw-search-empty__actions { display: grid; grid-template-columns: 1fr; }
    .rw-search-empty__actions .rw-btn { width: 100%; }
    .rw-404-hero { padding: 54px 0 62px; }
    .rw-404-code { font-size: clamp(5.5rem,28vw,7.5rem); }
    .rw-404-hero h1 { font-size: clamp(2.25rem,10vw,2.8rem); }
    .rw-404-hero__inner > p { font-size: 16px; }
    .rw-404-actions { display: grid; grid-template-columns: 1fr; }
    .rw-404-actions .rw-btn { width: 100%; }
    .rw-404-services { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .rw-404-service { transition: none; }
    .rw-404-service:hover { transform: none; }
}

/* =========================================================
   Riverwood v1.6.2 — Search page
   Search-only styles. Blog/category/article templates unchanged.
   ========================================================= */
.rw-search-hero {
    padding-bottom: 52px;
}
.rw-search-hero h1 {
    margin-bottom: 14px;
}
.rw-search-summary {
    margin-bottom: 0;
}
.rw-search-form--page {
    max-width: 760px;
    margin-top: 28px;
}
.rw-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.rw-search-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rw-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 45, 32, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}
.rw-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 45, 32, .085);
}
.rw-search-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--rw-bg-light);
}
.rw-search-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}
.rw-search-card:hover .rw-search-card__media img {
    transform: scale(1.025);
}
.rw-search-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(22, 61, 44, .22);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: .13em;
}
.rw-search-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 18px;
}
.rw-search-card__type {
    margin-bottom: 8px;
    color: var(--rw-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.rw-search-card__title {
    margin: 0;
    font-size: 19px;
    line-height: 1.28;
}
.rw-search-card__title a {
    color: var(--rw-green);
    text-decoration: none;
}
.rw-search-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--rw-muted);
    font-size: 13px;
}
.rw-search-card__meta a {
    color: var(--rw-green);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.rw-search-pagination {
    margin-top: 42px;
}

@media (max-width: 1024px) {
    .rw-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .rw-search-hero {
        padding-top: 44px;
        padding-bottom: 38px;
    }
    .rw-search-form--page {
        margin-top: 22px;
    }
    .rw-search-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .rw-search-card__body {
        padding: 18px 17px 17px;
    }
    .rw-search-card__title {
        font-size: 18px;
    }
    .rw-search-card__meta {
        padding-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-search-card,
    .rw-search-card__media img {
        transition: none;
    }
    .rw-search-card:hover,
    .rw-search-card:hover .rw-search-card__media img {
        transform: none;
    }
}


/* =========================================================
   Riverwood v1.7.0 — production support
   ========================================================= */
.rw-logo--custom { display: flex; align-items: center; }
.rw-logo--custom .custom-logo-link { display: inline-flex; align-items: center; }
.rw-logo--custom .custom-logo { width: auto; max-width: 170px; max-height: 42px; object-fit: contain; }
@media (max-width: 767px) {
    .rw-logo--custom .custom-logo { max-width: 150px; max-height: 38px; }
}


/* =========================================================
   Riverwood v1.7.1 — extended footer
   ========================================================= */
.rw-footer--extended {
    padding-top: 64px;
}
.rw-footer__grid--extended {
    grid-template-columns: 1.35fr .95fr .95fr 1.15fr;
    gap: clamp(34px, 4vw, 64px);
    align-items: start;
}
.rw-footer__brand .rw-footer__text {
    max-width: 330px;
    margin-top: 22px;
    line-height: 1.7;
}
.rw-footer__logo-image {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 64px;
    object-fit: contain;
}
.rw-footer__title {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.25;
}
.rw-footer__brand-title {
    color: var(--rw-accent);
}
.rw-footer__menu {
    font-size: 15px;
    line-height: 1.5;
}
.rw-footer__menu li + li {
    margin-top: 10px;
}
.rw-footer__menu a,
.rw-footer__contacts a {
    transition: color .18s ease, opacity .18s ease;
}
.rw-footer__menu a:hover,
.rw-footer__contacts a:hover {
    color: var(--rw-accent);
}
.rw-footer__contacts p {
    margin: 0 0 7px;
    line-height: 1.55;
}
.rw-footer__hours {
    margin-top: 28px !important;
}
.rw-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.rw-footer__socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    color: #0c271c;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.rw-footer__socials a:hover {
    background: var(--rw-accent);
    color: #0c271c;
}

@media (max-width: 1024px) {
    .rw-footer__grid--extended {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 42px 48px;
    }
}

@media (max-width: 767px) {
    .rw-footer--extended { padding-top: 50px; }
    .rw-footer__grid--extended {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .rw-footer__brand .rw-footer__text { max-width: none; margin-top: 18px; }
    .rw-footer__hours { margin-top: 22px !important; }
    .rw-footer__bottom { margin-top: 34px; }
}


/* =========================================================
   Riverwood v1.7.2 — footer polish + explicit logo opt-in
   ========================================================= */
.rw-footer--extended .rw-footer__title {
    font-weight: 700;
    letter-spacing: -.01em;
}
.rw-footer--extended .rw-footer__menu li + li {
    margin-top: 8px;
}
.rw-footer--extended .rw-footer__contacts a {
    text-underline-offset: 3px;
}
.rw-footer--extended .rw-footer__hours {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.rw-footer--extended .rw-footer__socials {
    gap: 8px;
    margin-top: 20px;
}
.rw-footer--extended .rw-footer__socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    box-shadow: none;
}

@media (max-width: 767px) {
    .rw-footer--extended {
        padding-top: 52px;
    }
    .rw-footer--extended .rw-footer__grid--extended {
        gap: 42px;
    }
    .rw-footer--extended .rw-footer__title {
        margin-bottom: 13px;
        font-size: 17px;
    }
    .rw-footer--extended .rw-footer__menu {
        font-size: 14.5px;
        line-height: 1.45;
    }
    .rw-footer--extended .rw-footer__menu li + li {
        margin-top: 6px;
    }
    .rw-footer--extended .rw-footer__brand .rw-footer__text {
        margin-top: 20px;
        line-height: 1.65;
    }
    .rw-footer--extended .rw-footer__contacts p {
        margin-bottom: 6px;
    }
    .rw-footer--extended .rw-footer__hours {
        margin-top: 20px !important;
        padding-top: 16px;
    }
    .rw-footer--extended .rw-footer__socials {
        margin-top: 18px;
    }
}


/* =========================================================
   Riverwood v1.7.3 — logo sizing + footer contrast
   ========================================================= */
.rw-header__inner { min-height: 88px; }
.rw-logo--custom-header .custom-logo-link { display: inline-flex; align-items: center; }
.rw-logo--custom-header .custom-logo {
    width: auto;
    max-width: 230px;
    max-height: 56px;
    object-fit: contain;
}

.rw-logo--footer-has-image {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.rw-footer__logo-image {
    max-width: 250px;
    max-height: 72px;
}

@media (max-width: 767px) {
    .rw-header__inner { min-height: 82px; }
    .rw-logo--custom-header .custom-logo {
        max-width: 190px;
        max-height: 46px;
    }
    .rw-logo--footer-has-image {
        padding: 8px 12px;
        border-radius: 12px;
    }
    .rw-footer__logo-image {
        max-width: 210px;
        max-height: 60px;
    }
}


/* =========================================================
   Riverwood v1.7.4 — separate footer logo
   ========================================================= */
.rw-logo--footer-dedicated {
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.rw-logo--footer-dedicated .rw-footer__logo-image--dedicated {
    width: auto;
    max-width: 260px;
    max-height: 78px;
    object-fit: contain;
}
@media (max-width: 767px) {
    .rw-logo--footer-dedicated .rw-footer__logo-image--dedicated {
        max-width: 220px;
        max-height: 64px;
    }
}


/* =========================================================
   Riverwood v1.7.5 — nested desktop navigation flyout
   ========================================================= */
@media (min-width: 1025px) {
    .rw-nav .sub-menu > li {
        position: relative;
    }

    /* Second and deeper levels open to the right of parent item. */
    .rw-nav .sub-menu .sub-menu {
        top: -10px;
        left: calc(100% + 8px);
        min-width: 280px;
        transform: translateX(8px);
    }

    /* Invisible bridge prevents the nested flyout closing while moving cursor. */
    .rw-nav .sub-menu .sub-menu::before {
        top: 0;
        bottom: 0;
        left: -10px;
        right: auto;
        width: 10px;
        height: auto;
    }

    .rw-nav .sub-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 34px;
    }

    /* Nested items use a right chevron instead of the top-level down chevron. */
    .rw-nav .sub-menu .menu-item-has-children > a::after {
        position: absolute;
        top: 50%;
        right: 13px;
        margin: 0;
        transform: translateY(-50%) rotate(-45deg);
    }

    .rw-nav .sub-menu li:hover > .sub-menu,
    .rw-nav .sub-menu li:focus-within > .sub-menu {
        transform: translateX(0);
    }
}


/* =========================================================
   Riverwood v1.7.6 — collapsible SEO text on service pages
   Full SEO content remains present in the initial HTML/DOM.
   ========================================================= */
.rw-service-seo {
    background: #fff;
}
.rw-service-seo__inner {
    max-width: 1080px;
}
.rw-service-seo__head {
    max-width: 860px;
    margin-bottom: 28px;
}
.rw-service-seo__box {
    position: relative;
    max-width: 860px;
}
.rw-service-seo__content {
    position: relative;
    font-size: 17px;
    line-height: 1.72;
}
.rw-service-seo__content > :first-child {
    margin-top: 0;
}
.rw-service-seo__content > :last-child {
    margin-bottom: 0;
}
.rw-service-seo__box.is-collapsible .rw-service-seo__content {
    max-height: 270px;
    overflow: hidden;
}
.rw-service-seo__box.is-expanded .rw-service-seo__content {
    max-height: none;
    overflow: visible;
}
.rw-service-seo__fade {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 58px;
    height: 105px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 88%);
}
.rw-service-seo__box.is-expanded .rw-service-seo__fade {
    display: none;
}
.rw-service-seo__toggle {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    min-width: 138px;
}
.rw-service-seo__box.is-collapsible:not(.is-expanded) .rw-service-seo__toggle {
    margin-top: 0;
}
.rw-service-seo__content h2 {
    margin-top: 44px;
    font-size: clamp(1.65rem, 2.2vw, 2rem);
}
.rw-service-seo__content h3 {
    margin-top: 30px;
    font-size: clamp(1.25rem, 1.7vw, 1.45rem);
}
.rw-service-seo__content ul,
.rw-service-seo__content ol {
    padding-left: 1.35em;
}

@media (max-width: 767px) {
    .rw-service-seo__head {
        margin-bottom: 22px;
    }
    .rw-service-seo__content {
        font-size: 16px;
        line-height: 1.68;
    }
    .rw-service-seo__box.is-collapsible .rw-service-seo__content {
        max-height: 235px;
    }
    .rw-service-seo__fade {
        bottom: 56px;
        height: 92px;
    }
    .rw-service-seo__toggle {
        width: 100%;
        min-height: 48px;
    }
}


/* =========================================================
   Riverwood v1.7.7 — SEO text polish
   ========================================================= */
.rw-service-seo__content {
    position: relative;
}
.rw-service-seo:not(.is-expanded) .rw-service-seo__content {
    max-height: 235px;
    overflow: hidden;
}
.rw-service-seo:not(.is-expanded) .rw-service-seo__content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 92px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
}
.rw-service-seo.is-expanded .rw-service-seo__content {
    max-height: none;
    overflow: visible;
}
.rw-service-seo.is-expanded .rw-service-seo__content::after {
    display: none;
}
.rw-service-seo__toggle {
    margin-top: 16px;
}

@media (max-width: 767px) {
    .rw-service-seo:not(.is-expanded) .rw-service-seo__content {
        max-height: 205px;
    }
    .rw-service-seo:not(.is-expanded) .rw-service-seo__content::after {
        height: 78px;
    }
    .rw-service-seo__toggle {
        margin-top: 14px;
    }
    .rw-service-seo__content {
        font-size: 16px;
        line-height: 1.7;
    }
    .rw-service-seo__content h2 {
        margin-top: 34px;
        margin-bottom: 14px;
        font-size: clamp(1.55rem, 7vw, 1.7rem);
        line-height: 1.18;
    }
    .rw-service-seo__content h3 {
        margin-top: 26px;
        margin-bottom: 12px;
        font-size: clamp(1.25rem, 5.8vw, 1.4rem);
        line-height: 1.24;
    }
    .rw-service-seo__content ul,
    .rw-service-seo__content ol {
        margin: 16px 0 20px;
        padding-left: 1.35em;
    }
    .rw-service-seo__content li + li {
        margin-top: 8px;
    }
}


/* =========================================================
   Riverwood v1.7.8 — SEO disclosure state fix
   ========================================================= */
.rw-service-seo__box.is-collapsible:not(.is-expanded) .rw-service-seo__content {
    overflow: hidden;
}
.rw-service-seo__box.is-expanded .rw-service-seo__content {
    max-height: none !important;
    overflow: visible !important;
}
.rw-service-seo__box.is-expanded .rw-service-seo__content::after {
    display: none !important;
    content: none !important;
}
.rw-service-seo__box.is-expanded .rw-service-seo__fade {
    display: none !important;
}


/* =========================================================
   Riverwood v1.7.9 — full-width desktop SEO text
   ========================================================= */
@media (min-width: 768px) {
    .rw-service-seo__inner,
    .rw-service-seo__head,
    .rw-service-seo__box {
        width: 100%;
        max-width: none;
    }
}


/* =========================================================
   Riverwood v1.7.10 — desktop SEO block aligned to site container
   Keep the section inside the standard Riverwood container while
   limiting the heading and long-form text to comfortable measures.
   ========================================================= */
@media (min-width: 768px) {
    .rw-service-seo__inner {
        width: min(calc(100% - 40px), var(--rw-container));
        max-width: none;
        margin-inline: auto;
    }
    .rw-service-seo__head {
        width: 100%;
        max-width: 880px;
    }
    .rw-service-seo__box {
        width: 100%;
        max-width: 1080px;
    }
    .rw-service-seo__content {
        width: 100%;
        max-width: 1080px;
    }
    .rw-service-seo__toggle {
        margin-left: 0;
        margin-right: auto;
    }
}


/* =========================================================
   Riverwood v1.7.11 — SEO content fills the actual rw-container
   ========================================================= */
@media (min-width: 768px) {
    .rw-service-seo__inner {
        /* This element already has .rw-container. Do not calculate its width twice. */
        width: min(calc(100% - 40px), var(--rw-container));
        max-width: var(--rw-container);
        margin-inline: auto;
    }
    .rw-service-seo__head {
        width: 100%;
        max-width: 880px;
    }
    .rw-service-seo__box,
    .rw-service-seo__content {
        width: 100%;
        max-width: none;
    }
    .rw-service-seo__toggle {
        margin-left: 0;
        margin-right: auto;
    }
}


/* =========================================================
   Riverwood v1.7.12 — homepage testimonials
   ========================================================= */
.rw-home-testimonials {
    background: #fbfaf7;
}
.rw-testimonials__head {
    max-width: 760px;
}
.rw-testimonials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.rw-testimonial {
    position: relative;
    min-width: 0;
    padding: 28px 30px 30px;
    border: 1px solid var(--rw-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18,45,32,.045);
}
.rw-testimonial__person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 42px;
}
.rw-testimonial__avatar {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rw-bg);
    border: 1px solid var(--rw-border);
    color: var(--rw-green);
    font-size: 18px;
    font-weight: 800;
}
.rw-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rw-testimonial__person h3 {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.25;
}
.rw-testimonial__role {
    margin: 0;
    color: var(--rw-muted);
    font-size: 14px;
    line-height: 1.4;
}
.rw-testimonial__quote {
    position: absolute;
    top: 18px;
    right: 24px;
    color: rgba(211,170,121,.55);
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: 1;
}
.rw-testimonial__text {
    margin: 22px 0 0;
    color: #4d5550;
    font-size: 15.5px;
    line-height: 1.72;
}

@media (max-width: 800px) {
    .rw-testimonials {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rw-testimonial {
        padding: 22px 20px 24px;
    }
    .rw-testimonial__avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
    .rw-testimonial__person h3 {
        font-size: 17px;
    }
    .rw-testimonial__text {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.68;
    }
    .rw-testimonial__quote {
        top: 15px;
        right: 18px;
        font-size: 46px;
    }
}


/* =========================================================
   Riverwood v1.7.13 — homepage latest articles
   ========================================================= */
.rw-home-latest-posts {
    background: #fff;
}
.rw-home-latest-posts__head {
    max-width: 760px;
}
.rw-home-latest-posts__grid {
    align-items: stretch;
}
.rw-home-latest-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.rw-home-latest-card .rw-blog-card__body {
    flex: 1;
}
.rw-home-latest-card .rw-blog-card__title {
    margin-bottom: 20px;
}
.rw-home-latest-card .rw-blog-card__meta {
    margin-top: auto;
}
@media (max-width: 767px) {
    .rw-home-latest-posts__head {
        max-width: none;
    }
    .rw-home-latest-card .rw-blog-card__title {
        margin-bottom: 16px;
    }
}


/* =========================================================
   Riverwood v1.7.16 — nested mobile navigation
   ========================================================= */
@media (max-width: 1100px) {
    /* Every item with children owns the absolute toggle beside its own row. */
    .rw-mobile-menu .menu-item-has-children {
        position: relative;
    }

    .rw-mobile-menu .menu-item-has-children > a {
        padding-right: 54px;
    }

    /* Second level gets a clearer visual hierarchy without becoming a card. */
    .rw-mobile-menu .sub-menu {
        margin-bottom: 10px;
    }

    .rw-mobile-menu .sub-menu .sub-menu {
        margin: 2px 0 8px 8px;
        padding-left: 14px;
        border-left-color: #d8d1c5;
    }

    .rw-mobile-menu .sub-menu .sub-menu a {
        min-height: 42px;
        color: var(--rw-green-dark);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
    }

    .rw-mobile-menu .sub-menu .rw-mobile-submenu-toggle {
        top: 0;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}


/* =========================================================
   Riverwood v1.7.17 — back to top
   ========================================================= */
.rw-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 45;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: var(--rw-green-dark);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, visibility .2s ease;
    cursor: pointer;
}
.rw-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.rw-back-to-top:hover {
    background: var(--rw-green);
    transform: translateY(-2px);
}
.rw-back-to-top:focus-visible {
    outline: 3px solid rgba(211,170,121,.48);
    outline-offset: 3px;
}
.rw-back-to-top__icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    .rw-back-to-top {
        right: 16px;
        bottom: 18px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
    .rw-back-to-top__icon {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-back-to-top {
        transition: none;
    }
    .rw-back-to-top:hover {
        transform: none;
    }
}

/* ===== v1.8.0: language switcher / Polylang ===== */
.rw-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--rw-border);
    border-radius: 10px;
    background: rgba(255,255,255,.72);
}
.rw-language-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 7px;
    border-radius: 7px;
    color: var(--rw-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
.rw-language-switcher a.rw-language-switcher__item:hover {
    background: rgba(15,61,45,.08);
}
.rw-language-switcher__item.is-current {
    background: var(--rw-green);
    color: #fff;
}
.rw-language-switcher--mobile {
    justify-self: start;
    margin-bottom: 4px;
    background: #fff;
}
@media (max-width: 1024px) {
    .rw-language-switcher--desktop { display: none; }
}
@media (min-width: 1025px) {
    .rw-language-switcher--mobile { display: none; }
}

/* =========================================================
   Riverwood v1.9.4 — blog article final refinements
   Scope: single blog articles only.
   - author avatars removed in PHP;
   - wider desktop reading column;
   - mobile tables contained within viewport.
   ========================================================= */

/* Wider long-form content while preserving the existing TOC column. */
@media (min-width: 1025px) {
    .rw-blog-single .rw-article-layout {
        grid-template-columns: 220px minmax(0, 960px);
        gap: 58px;
    }
}

/* Author areas no longer reserve space for an avatar. */
.rw-blog-single .rw-article-meta__author {
    gap: 0;
}

.rw-blog-single .rw-author-box {
    display: block;
    grid-template-columns: none;
}

.rw-blog-single .rw-author-box p {
    max-width: 760px;
}

@media (max-width: 560px) {
    .rw-blog-single .rw-article-meta__details {
        padding-left: 0;
    }
}

/*
 * Tables on narrow screens:
 * keep the table inside the article width and, when it genuinely needs
 * more horizontal space, scroll the table itself instead of the page.
 */
@media (max-width: 767px) {
    .rw-blog-single .rw-article-body {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .rw-blog-single .rw-article-body .wp-block-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    .rw-blog-single .rw-article-body .wp-block-table table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        margin: 0;
    }

    .rw-blog-single .rw-article-body > table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    .rw-blog-single .rw-article-body th,
    .rw-blog-single .rw-article-body td {
        max-width: 280px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .rw-blog-single .rw-article-body th img,
    .rw-blog-single .rw-article-body td img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================================================
   Riverwood v1.9.5 — publication / update dates with icons
   ========================================================= */
.rw-post-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    min-width: 0;
}

.rw-post-date,
.rw-article-meta__reading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rw-muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.rw-post-date__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--rw-green);
}

.rw-post-date--updated {
    color: #777f7a;
}

.rw-blog-card__meta,
.rw-related-card__meta,
.rw-search-card__meta {
    align-items: flex-end;
}

.rw-blog-card__dates,
.rw-related-card__dates,
.rw-search-card__dates {
    flex: 1 1 auto;
}

.rw-article-meta__details {
    flex-wrap: wrap;
    gap: 8px 16px;
}

.rw-article-meta__dates {
    gap: 8px 16px;
}

.rw-article-meta__reading {
    font-size: inherit;
}

@media (max-width: 767px) {
    .rw-blog-card__meta,
    .rw-related-card__meta,
    .rw-search-card__meta {
        gap: 12px;
    }

    .rw-post-dates {
        gap: 6px 12px;
    }

    .rw-post-date {
        font-size: 11.5px;
    }
}

/* =========================================================
   Riverwood v1.9.6 — single article hero alignment + author label
   Scope: single blog articles only.
   ========================================================= */

/* Match breadcrumbs, H1 and article metadata to the left edge of the
   1180px featured image without changing the established H1 width. */
.rw-blog-single .rw-article-hero__inner {
    max-width: 1180px;
}

.rw-blog-single .rw-author-box__label {
    margin: 0 0 7px;
    color: var(--rw-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rw-blog-single .rw-author-box__label + h2 {
    margin-top: 0;
}

@media (max-width: 767px) {
    .rw-blog-single .rw-author-box__label {
        margin-bottom: 6px;
        font-size: 11px;
    }
}

/* =========================================================
   Riverwood v1.9.7 — blog author label + article FAQ parity
   Scope: single blog articles only.
   ========================================================= */

/* Match the established Riverwood heading green. */
.rw-blog-single .rw-author-box__label {
    color: var(--rw-green-dark);
}

/* Article FAQ uses the same visual language as service-page FAQ. */
.rw-blog-single .faq-block {
    margin: 54px 0 42px;
}

.rw-blog-single .faq-block > h2 {
    margin: 0 0 24px;
}

.rw-blog-single .faq-block .faq-item {
    margin: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #e8e4dc;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color .18s ease;
}

.rw-blog-single .faq-block .faq-item:first-of-type {
    border-top: 1px solid #e8e4dc;
}

.rw-blog-single .faq-block .faq-item:hover {
    border-color: #e8e4dc;
    box-shadow: none;
}

.rw-blog-single .faq-block .faq-item[open] {
    border-color: #e8e4dc;
    background: #faf8f4;
    box-shadow: none;
}

.rw-blog-single .faq-block .faq-item summary {
    position: relative;
    display: block;
    min-height: 0;
    padding: 18px 52px 18px 0;
    color: var(--rw-green);
    background: transparent;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: color .18s ease, background-color .18s ease;
}

.rw-blog-single .faq-block .faq-item summary::-webkit-details-marker {
    display: none;
}

.rw-blog-single .faq-block .faq-item summary::marker {
    content: '';
}

/* Remove article-only numeric counters so FAQ matches service pages. */
.rw-blog-single .faq-block .faq-item summary::before {
    content: none;
    display: none;
}

.rw-blog-single .faq-block .faq-item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e7e1d8;
    border-radius: 50%;
    background: #f4f0e9;
    color: var(--rw-green);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.rw-blog-single .faq-block .faq-item summary:hover {
    color: var(--rw-green-dark);
    background: transparent;
}

.rw-blog-single .faq-block .faq-item summary:hover::after {
    border-color: #ddd3c5;
    background: #eee8de;
    color: var(--rw-green-dark);
}

.rw-blog-single .faq-block .faq-item[open] summary {
    color: var(--rw-green-dark);
    border-bottom: 0;
}

.rw-blog-single .faq-block .faq-item[open] summary::after {
    content: '−';
    border-color: #d9cfbf;
    background: #eee6d9;
    color: var(--rw-green-dark);
}

.rw-blog-single .faq-block .faq-answer {
    max-width: none;
    padding: 0 52px 18px 0;
    color: #5f665f;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.rw-blog-single .faq-block .faq-answer p {
    margin-top: 0;
}

.rw-blog-single .faq-block .faq-answer > :last-child {
    margin-bottom: 0;
}

.rw-blog-single .faq-block .faq-item summary:focus-visible {
    outline: 2px solid rgba(21,61,43,.32);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .rw-blog-single .faq-block {
        margin: 42px 0 32px;
    }

    .rw-blog-single .faq-block > h2 {
        margin-bottom: 20px;
    }

    .rw-blog-single .faq-block .faq-item summary {
        padding: 15px 44px 15px 0;
        font-size: 15px;
        line-height: 1.42;
    }

    .rw-blog-single .faq-block .faq-item summary::after {
        right: 4px;
        width: 30px;
        height: 30px;
        font-size: 17px;
    }

    .rw-blog-single .faq-block .faq-answer {
        padding: 0 0 16px;
        font-size: 14.5px;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-blog-single .faq-block .faq-item,
    .rw-blog-single .faq-block .faq-item summary,
    .rw-blog-single .faq-block .faq-item summary::after {
        transition: none;
    }
}
