/* Страница «Ремонт и обустройство под ключ» (/remont-kvartir). Все стили в пространстве .rp */
.rp {
    --rp-bg: #e3ded8;
    --rp-card: #f5f2ed;
    --rp-ink: #242823;
    --rp-muted: #55594f;
    --rp-line: #ccc7bf;
    --rp-accent: #fb8500;
    --rp-navy: #023047;
    --rp-radius: 20px;
    color: var(--rp-ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.rp *, .rp-mobile-cta { box-sizing: border-box; }
.rp [x-cloak] { display: none !important; }
.rp figure, .rp p, .rp h1, .rp h2, .rp h3, .rp ol { margin: 0; }
.rp img { display: block; max-width: 100%; height: auto; }
.rp h1, .rp h2, .rp h3 { line-height: 1.16; letter-spacing: -.04em; font-weight: 550; color: var(--rp-ink); }
.rp h2 { font-size: 42px; }
.rp h3 { font-size: 22px; }
.rp p { color: var(--rp-muted); }
.rp a:focus-visible, .rp button:focus-visible, .rp summary:focus-visible,
.rp input:focus-visible, .rp select:focus-visible, .rp textarea:focus-visible,
.rp-mobile-cta:focus-visible { outline: 3px solid var(--rp-navy); outline-offset: 4px; }
.rp section[id] { scroll-margin-top: 24px; }

.rp-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--rp-muted) !important; margin-bottom: 20px !important; }
.rp-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    min-height: 54px; padding: 15px 24px; border: 0; border-radius: 9px;
    background: var(--rp-accent); color: #1d1f1b !important;
    font-weight: 650; font-size: 14px; line-height: 1.4; text-decoration: none; cursor: pointer;
    transition: background .15s;
}
.rp-button:hover { background: #f49a31; }
.rp-button:disabled { opacity: .6; cursor: wait; }
.rp-text-link { display: inline-block; font-size: 14px; font-weight: 600; border-bottom: 1px solid #a8a59b; padding-block: 8px; line-height: 1.5; color: var(--rp-ink); text-decoration: none; }
.rp-text-link:hover { color: var(--rp-navy); border-color: var(--rp-navy); }
.rp-note { font-size: 14px; margin: 26px 0 !important; max-width: 800px; }

/* ---- Первый экран ---- */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; padding: 20px 0 56px; }
.rp-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; font-size: 12px; color: var(--rp-muted); margin-bottom: 40px; }
.rp-breadcrumbs a { color: var(--rp-muted); text-decoration: none; }
.rp-breadcrumbs a:hover { text-decoration: underline; }
.rp-hero h1 { font-size: 58px; line-height: 1.05; letter-spacing: -.055em; }
.rp-lead { font-size: 16px; line-height: 1.7; margin-top: 24px !important; max-width: 500px; }
.rp-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.rp-photo { background: var(--rp-card); border-radius: 18px; overflow: hidden; }
.rp-photo img { width: 100%; }
.rp-photo figcaption { padding: 14px 18px; font-size: 12px; color: var(--rp-muted); }

.rp-section-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; border-block: 1px solid var(--rp-line); padding-block: 16px; font-size: 13px; }
.rp-section-nav a { padding-block: 4px; color: var(--rp-ink); text-decoration: none; }
.rp-section-nav a:hover { text-decoration: underline; }

/* ---- Секции ---- */
.rp-section { padding-block: 72px; }
.rp-panel { background: var(--rp-card); border-radius: var(--rp-radius); padding: 64px 48px; margin-block: 24px; }
.rp-head { max-width: 760px; margin-bottom: 34px; }
.rp-head > p:not(.rp-eyebrow) { margin-top: 20px; max-width: 670px; font-size: 15px; }

.rp-grid { display: grid; gap: 20px; list-style: none; padding: 0; }
.rp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rp-card { background: var(--rp-card); padding: 28px; border-radius: var(--rp-radius); }
.rp-card-alt { background: var(--rp-bg); }
.rp-card h3 { font-size: 21px; margin-bottom: 14px; }
.rp-card p { font-size: 14px; }
.rp-number { display: grid; place-content: center; width: 36px; height: 36px; border: 1px solid #bcb7ae; border-radius: 50%; font-size: 12px; margin-bottom: 30px; }

/* ---- До / после ---- */
.rp-comparison + .rp-comparison { border-top: 1px solid var(--rp-line); margin-top: 44px; padding-top: 44px; }
.rp-comparison-title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.rp-comparison-title h3 { font-size: 27px; }
.rp-comparison-title p { font-size: 14px; max-width: 560px; }
.rp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 12px; background: var(--rp-bg); }
.rp-pair figcaption { font-size: 13px; font-weight: 650; padding: 12px 0 0; color: var(--rp-ink); }
.rp-demo-note { font-size: 12px; line-height: 1.65; max-width: 830px; margin-top: 12px !important; }

/* ---- Реальный проект ---- */
.rp-facts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; margin: 0 0 36px; }
.rp-facts span { display: block; font-size: 10px; letter-spacing: .1em; color: var(--rp-muted); margin-bottom: 10px; }
.rp-facts p { font-size: 15px; color: var(--rp-ink); }
.rp-case-gallery { display: grid; grid-template-columns: 9fr 4fr; gap: 24px; align-items: start; margin-bottom: 16px; }
.rp-case-gallery img { width: 100%; border-radius: 14px; }
.rp-case-gallery figcaption { font-size: 12px; color: var(--rp-muted); padding: 12px 0; }

/* ---- FAQ ---- */
.rp-faq { border-top: 1px solid #bcb7ae; }
.rp-faq details { border-bottom: 1px solid #bcb7ae; }
.rp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 22px 0; cursor: pointer; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.45; }
.rp-faq summary span { flex-shrink: 0; display: grid; place-content: center; width: 32px; height: 32px; border: 1px solid #bcb7ae; border-radius: 50%; font-size: 21px; transition: transform .15s; }
.rp-faq details[open] summary span { transform: rotate(45deg); }
.rp-faq details p { padding: 0 64px 24px 0; max-width: 930px; font-size: 14px; }

/* ---- Форма ---- */
.rp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.rp-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 40px; }
.rp-contact span { font-size: 12px; color: var(--rp-muted); margin-bottom: 6px; }
.rp-contact a { color: var(--rp-ink); text-decoration: none; font-size: 14px; }
.rp-contact .rp-contact-phone { font-size: 25px; letter-spacing: -.04em; }
.rp-form { background: var(--rp-card); border-radius: var(--rp-radius); padding: 32px; }
.rp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--rp-ink); }
.rp-field-wide { grid-column: 1 / -1; }
.rp-form input:not([type=checkbox]), .rp-form select, .rp-form textarea {
    width: 100%; min-height: 49px; padding: 12px; border: 1px solid #aba79f; border-radius: 7px;
    background: #fff; color: var(--rp-ink); font: inherit; font-size: 14px;
}
.rp-form textarea { resize: vertical; min-height: 90px; }
.rp-form input::placeholder, .rp-form textarea::placeholder { color: #73736b; opacity: 1; }
.rp-form [aria-invalid="true"] { border-color: #9a2821 !important; }
.rp-error { font-size: 12px; color: #9a2821; line-height: 1.5; }
.rp-more-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 20px 0 0; padding: 16px 0; background: none; border: 0; border-block: 1px solid var(--rp-line); font: inherit; font-size: 13px; font-weight: 600; color: var(--rp-ink); cursor: pointer; }
.rp-more-toggle span { font-size: 20px; transition: transform .15s; }
.rp-more-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.rp-more { padding: 18px 0 4px; }
.rp-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.6; margin: 22px 0 4px; color: var(--rp-muted); cursor: pointer; }
.rp-consent input { width: 19px; height: 19px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--rp-navy); }
.rp-consent a { color: inherit; text-decoration: underline; }
.rp-form .rp-button { width: 100%; margin-top: 18px; }
.rp-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rp-notice { border-radius: 12px; padding: 18px 20px; font-size: 14px; margin-bottom: 16px; }
.rp-notice-ok { background: #e2efe4; color: #1f4a2a; }
.rp-notice-error { background: #f7e1df; color: #7a211b; }
.rp-notice a { color: inherit; text-decoration: underline; }

.rp-mobile-cta { display: none; }

/* ---- Планшет ---- */
@media (max-width: 1199px) {
    .rp-hero { gap: 36px; }
    .rp-hero h1 { font-size: 46px; }
    .rp h2 { font-size: 36px; }
    .rp-grid-4 { grid-template-columns: 1fr 1fr; }
    .rp-panel { padding: 52px 32px; }
    .rp-split { gap: 40px; }
}
@media (max-width: 900px) {
    .rp-hero, .rp-split { grid-template-columns: 1fr; }
    .rp-grid-3 { grid-template-columns: 1fr; }
    .rp-facts { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- Телефон ---- */
@media (max-width: 767px) {
    .rp { font-size: 16px; }
    .rp-hero { padding: 8px 0 36px; gap: 28px; }
    .rp-breadcrumbs ol { margin-bottom: 24px; font-size: 11px; }
    .rp-hero h1 { font-size: 38px; }
    .rp-br { display: none; }
    .rp-lead { font-size: 16px; }
    .rp-actions .rp-button { width: 100%; }
    .rp h2 { font-size: 29px; }
    .rp-eyebrow { font-size: 10px; letter-spacing: .12em; }
    .rp-section { padding-block: 48px; }
    .rp-panel { padding: 36px 20px; border-radius: 16px; }
    .rp-head > p:not(.rp-eyebrow) { font-size: 15px; }
    .rp-grid-4 { grid-template-columns: 1fr; }
    .rp-grid { gap: 14px; }
    .rp-card { padding: 22px; }
    .rp-number { margin-bottom: 20px; }
    .rp-comparison-title { display: block; }
    .rp-comparison-title p { margin-top: 10px; }
    .rp-comparison-title h3 { font-size: 23px; }
    .rp-pair { grid-template-columns: 1fr; gap: 14px; }
    .rp-case-gallery { grid-template-columns: 1fr; gap: 14px; }
    .rp-case-gallery figure:last-child { max-width: 420px; }
    .rp-faq summary h3 { font-size: 16px; }
    .rp-faq details p { padding: 0 0 20px; font-size: 15px; }
    .rp-form { padding: 22px 18px; }
    .rp-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .rp-form input:not([type=checkbox]), .rp-form select, .rp-form textarea { font-size: 16px; }
    .rp-section-nav { gap: 6px 20px; font-size: 12px; }

    .rp-mobile-cta {
        display: flex; position: fixed; z-index: 30;
        left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom));
        box-shadow: 0 0 0 8px rgba(227, 222, 216, .94);
        transition: opacity .2s, transform .2s;
    }
    .rp-mobile-cta.is-hidden, .rp-mobile-cta.is-typing { opacity: 0; transform: translateY(140%); pointer-events: none; }
}
@media (max-width: 374px) {
    .rp-hero h1 { font-size: 33px; }
    .rp h2 { font-size: 26px; }
    .rp-button { padding-inline: 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .rp *, .rp-mobile-cta { transition: none !important; }
}