/* «Ремонт обладнання» (remont.html): a service page, not a product list. The page header and
   breadcrumbs come from privacy.css. */

.rp-header { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }

.rp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 10px 0 56px; }
.rp-title { font-size: clamp(26px, 1.6vw + 20px, 40px); font-weight: 600; color: var(--text-main); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 18px; line-height: 1.15; }
.rp-lead { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 26px; max-width: 560px; }
.rp-lead b { color: var(--text-main); font-weight: 600; }
.rp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-hours { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }
.rp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border: 1px solid var(--border-strong, var(--border-light)); border-radius: 10px; background: #fff; color: var(--text-main);
    font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: 0.2s;
}
.rp-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .rp-btn:hover { border-color: var(--accent); color: var(--accent); }
    .rp-btn--primary:hover { color: #fff; filter: brightness(1.08); }
}
.rp-hero-photo { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 18px 40px rgba(15, 30, 51, 0.12); }
.rp-hero-photo img { display: block; width: 100%; height: auto; }

.rp-section { margin: 0 0 56px; }
.rp-section--soft { padding: 34px 32px; border-radius: 16px; background: var(--bg-soft); }
.rp-h2 { font-size: clamp(21px, 0.8vw + 17px, 28px); font-weight: 600; color: var(--text-main); margin: 0 0 10px; }
.rp-sub { margin: 0 0 24px; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.rp-card { padding: 24px 22px; border: 1px solid var(--border-light); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.rp-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.rp-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.rp-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.rp-card--cta { background: var(--accent); border-color: var(--accent); }
.rp-card--cta h3, .rp-card--cta p, .rp-card--cta .rp-link { color: #fff; }
.rp-card--cta .rp-ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.rp-link { margin-top: auto; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.rp-link i { font-size: 12px; margin-left: 4px; }

.rp-steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rp-steps li { position: relative; padding-top: 52px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.rp-steps li::before {
    counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.rp-steps b { display: block; color: var(--text-main); font-size: 15.5px; margin-bottom: 4px; }

.rp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 20px 0 26px; }
.rp-why b { display: block; font-size: 16px; color: var(--text-main); margin-bottom: 6px; }
.rp-why p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.rp-note { padding: 22px 24px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
.rp-note h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--text-main); }
.rp-note p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.rp-note b { color: var(--text-main); font-weight: 600; }

.rp-section--form { padding: 36px; border-radius: 16px; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(15, 30, 51, 0.06); }
.rp-form-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.rp-form-text p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 0; }
.rp-form-text a { color: var(--accent); }
.rp-form { display: flex; flex-direction: column; gap: 14px; }
.rp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.rp-field input, .rp-field textarea {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border-strong, var(--border-light)); border-radius: 10px;
    font: inherit; font-size: 15px; color: var(--text-main); background: #fff; outline: none; transition: border-color 0.2s;
}
.rp-field input:focus, .rp-field textarea:focus { border-color: var(--accent); }
.rp-field textarea { resize: vertical; min-height: 84px; }
.rp-phone { display: flex; align-items: center; border: 1px solid var(--border-strong, var(--border-light)); border-radius: 10px; background: #fff; }
.rp-phone:focus-within { border-color: var(--accent); }
.rp-phone i { font-style: normal; padding: 0 0 0 14px; font-size: 15px; color: var(--text-main); }
.rp-phone input { border: 0; padding-left: 8px; }
.rp-submit { width: 100%; margin-top: 4px; }
.rp-submit:disabled { opacity: 0.6; cursor: wait; }
.rp-privacy { margin: 0; font-size: 12px; color: var(--text-muted); }
.rp-privacy a { color: var(--accent); }
.rp-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: var(--danger); font-size: 14px; }
.rp-error[hidden], .rp-thanks[hidden], .rp-form[hidden] { display: none; }
.rp-thanks { text-align: center; padding: 28px 10px; }
.rp-thanks i { font-size: 44px; color: var(--success); }
.rp-thanks h3 { margin: 12px 0 6px; font-size: 20px; color: var(--text-main); }
.rp-thanks p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

.rp-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--border-light); border-radius: 999px; background: #fff; color: var(--text-main); font-size: 14.5px; text-decoration: none; transition: 0.2s; }
.rp-chip i { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .rp-chip:hover { border-color: var(--accent); color: var(--accent); } }

.rp-faq { max-width: 820px; display: flex; flex-direction: column; border-top: 1px solid var(--border-light); }
.rp-faq details { border-bottom: 1px solid var(--border-light); }
.rp-faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative; font-size: 16px; font-weight: 500; color: var(--text-main); }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--text-muted); }
.rp-faq details[open] summary::after { content: "–"; }
.rp-faq details p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }

@media (max-width: 960px) {
    .rp-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
    .rp-hero-photo { order: -1; }
    .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-form-wrap { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
    .rp-section { margin-bottom: 40px; }
    .rp-section--soft, .rp-section--form { padding: 24px 18px; }
    .rp-grid, .rp-steps, .rp-why { grid-template-columns: 1fr; }
    .rp-lead { font-size: 16px; }
    .rp-cta .rp-btn { flex: 1 1 100%; }
}

.rp-note p + p { margin-top: 10px; }
.rp-sign { margin: 0 0 20px; text-align: center; font-size: 15px; color: var(--text-secondary); }
.rp-lead + .rp-lead { margin-top: -10px; }
