
#rb-model-page {
    --rb-model-blue: #1873d7;
    color: #20334b;
    background: #f5f8fc;
    padding-bottom: 48px;
}
#rb-model-page, #rb-model-page * { box-sizing: border-box; }
#rb-model-page [hidden] { display: none !important; }
#rb-model-page .container { width: 100%; max-width: 1360px; padding: 0 24px; margin: 0 auto; }
#rb-model-page a { text-decoration: none; }
#rb-model-page button, #rb-model-page input { font-family: inherit; }
#rb-model-page a:focus-visible, #rb-model-page button:focus-visible, #rb-model-page input:focus-visible {
    outline: 3px solid #efc943; outline-offset: 3px;
}
#rb-model-page .first-screen.common {
    position: relative; display: block; isolation: isolate; overflow: hidden;
    height: auto; min-height: 330px; margin: 140px 0 0; padding: 42px 0 44px;
    background-color: #edf5ff; background-size: cover; background-position: center 45%;
    border-bottom: 1px solid #dfe9f5;
}
#rb-model-page .first-screen.common::before {
    content: ''; display: block; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg,rgba(239,247,255,.94) 0%,rgba(239,247,255,.85) 38%,rgba(225,239,255,.4) 66%,rgba(227,240,255,.16) 100%);
}
#rb-model-page .first-screen.common::after { content: none; }
#rb-model-page .first-screen.common .heading-wrapper {
    position: relative; z-index: 1; display: block; width: 100%; max-width: 730px;
    height: auto; min-height: 0; margin: 0; padding: 0; text-align: left;
}
#rb-model-page .rb-model-eyebrow {
    display: inline-block; margin: 0 0 13px; color: var(--rb-model-blue);
    font-size: 13px; font-weight: 700; letter-spacing: .035em;
}
#rb-model-page .first-screen.common h1 {
    display: block; width: 100%; max-width: 730px; height: auto; margin: 0 0 16px;
    color: #143b66; font-family: inherit; font-size: clamp(30px,3.3vw,48px);
    font-weight: 700; line-height: 1.12; text-align: left; text-transform: none;
    white-space: normal; overflow: visible; overflow-wrap: break-word;
}
#rb-model-page .rb-model-intro {
    max-width: 610px; margin: 0 0 21px; color: #425e78; font-size: 16px; line-height: 1.5;
}
#rb-model-page .rb-model-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#rb-model-page .rb-model-button, #rb-model-page .zap-find--wrapper > .main-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 46px; padding: 12px 18px; margin: 0; border: 1px solid transparent;
    border-radius: 10px; background: var(--rb-model-blue); background-image: none;
    color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4;
    text-transform: none; text-shadow: none; box-shadow: none;
}
#rb-model-page .rb-model-button:hover, #rb-model-page .zap-find--wrapper > .main-btn:hover {
    background: #125fb5; color: #fff; box-shadow: none;
}
#rb-model-page .rb-model-button::before, #rb-model-page .rb-model-button::after,
#rb-model-page .zap-find--wrapper > .main-btn::before, #rb-model-page .zap-find--wrapper > .main-btn::after { content: none; }
#rb-model-page .rb-model-button--light { background: rgba(255,255,255,.88); border-color: #c5d7eb; color: #175599; }
#rb-model-page .rb-model-button--light:hover { background: #fff; color: #124777; }
#rb-model-page .first-screen.common .f-scr-preim {
    display: flex; flex-direction: row; align-items: center; gap: 11px; width: fit-content; max-width: 100%;
    margin: 20px 0 0; padding: 11px 14px; border: 1px solid #d4e4f5; border-radius: 12px;
    background: rgba(255,255,255,.82); color: #305a80; font-family: inherit;
    font-size: 13px; font-weight: 400; line-height: 1.4; box-shadow: none;
}
#rb-model-page .first-screen.common .f-scr-preim img { flex: 0 0 28px; width: 28px; height: 31px; object-fit: contain; }
#rb-model-page .breadcrumbs { margin: 0; padding: 18px 0 22px; background: transparent; }
#rb-model-page .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; background: none; }
#rb-model-page .breadcrumb li { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
#rb-model-page .breadcrumb li::after { content: none; }
#rb-model-page .breadcrumb li + li::before { content: '/'; position: static; display: inline-block; width: auto; height: auto; margin: 0; padding: 0 8px 0 0; border: 0; background: none; transform: none; font-size: 13px; color: #93a6ba; }
#rb-model-page .breadcrumb a { color: #5c7894; }
#rb-model-page .breadcrumb li.active { color: #20334b; }
#rb-model-page .zap-find { margin: 0 0 30px; padding: 0; background: none; }
#rb-model-page .zap-find--wrapper {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    float: none !important; max-width: none !important; width: 100%; padding: 20px 24px !important;
    border: 1px solid #d8e6f7 !important; border-radius: 14px !important;
    background: #eaf3ff; box-shadow: none !important; text-align: left !important;
}
#rb-model-page .zap-find--wrapper h2 { margin: 0 0 5px; color: #173e68; font-size: 20px; line-height: 1.3; font-weight: 700; }
#rb-model-page .zap-find--wrapper p { margin: 0; color: #536f89; font-size: 14px; line-height: 1.5; }
#rb-model-page .zap-find--wrapper > .main-btn { flex: 0 0 auto; }
#rb-model-page .podbor { margin: 0; padding: 0; background: none; scroll-margin-top: 90px; }
#rb-model-page .podbor-wrapper { width: 100%; margin: 0; padding: 0; }
#rb-model-page .rb-model-toolbar { margin: 0 0 22px; padding: 0; }
#rb-model-page .rb-model-toolbar h2 { margin: 0 0 7px; color: #173e68; font-size: 27px; font-weight: 700; line-height: 1.3; }
#rb-model-page .rb-model-toolbar p { margin: 0 0 17px; color: #627993; font-size: 14px; line-height: 1.5; }
#rb-model-page .rb-model-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
#rb-model-page .rb-model-search { display: block; position: relative; width: min(570px,100%); margin: 0; }
#rb-model-page .rb-model-search > label { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
#rb-model-page .rb-model-search input {
    display: block; width: 100%; min-width: 0; height: 50px; padding: 12px 47px 12px 44px;
    border: 1px solid #d4e1ef; border-radius: 11px; background: #fff;
    color: #20334b; font-size: 16px; line-height: 24px; box-shadow: none; appearance: none;
}
#rb-model-page .rb-model-search input::-webkit-search-cancel-button { display: none; }
#rb-model-page .rb-model-search input:focus { border-color: #1873d7; outline: 0; box-shadow: 0 0 0 3px rgba(24,115,215,.12); }
#rb-model-page .rb-model-search svg { position: absolute; top: 15px; left: 15px; width: 20px; height: 20px; color: #1873d7; pointer-events: none; }
#rb-model-page .rb-model-search-clear { position: absolute; top: 7px; right: 8px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: #f0f5fc; color: #486788; font-size: 22px; line-height: 1; }
#rb-model-page .rb-model-search-clear:hover { background: #e1edfb; }
#rb-model-page .rb-model-count { color: #627993; font-size: 13px; line-height: 1.5; }
#rb-model-page .podbor_seria { width: 100%; margin: 0; padding: 0; }
#rb-model-page .podbor_seria--wrapper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 18px; margin: 0; padding: 0 !important; }
#rb-model-page .podbor_seria--item {
    display: block; position: relative; float: none; width: auto; max-width: none; min-width: 0;
    height: auto; margin: 0; padding: 20px; border: 1px solid #dfe8f2;
    border-radius: 14px; background: #fff; box-shadow: 0 2px 5px rgba(25,59,94,.025);
}
#rb-model-page .podbor_seria--item:hover { border-color: #b4cfee; }
#rb-model-page .rb-model-card-heading { display: grid; grid-template-columns: 82px minmax(0,1fr); grid-template-areas: 'photo title'; align-items: center; gap: 14px; min-height: 80px; margin-bottom: 13px; }
#rb-model-page .rb-model-card-title { grid-area: title; display: block; min-width: 0; margin: 0; padding: 0; background: none; color: #173e68; font-size: 19px; line-height: 1.3; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
#rb-model-page .rb-model-photo { grid-area: photo; display: flex; justify-content: center; align-items: center; width: 100%; height: 80px; min-width: 0; margin: 0; padding: 3px; border: 0; background: #fff; }
#rb-model-page .rb-model-photo img { display: block; position: static; width: auto !important; max-width: 100%; height: auto; max-height: 74px; margin: 0; padding: 0; object-fit: contain; border: 0; border-radius: 0; transform: none; }
#rb-model-page .rb-model-models { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; width: 100%; margin: 0; padding: 0; list-style: none; }
#rb-model-page .rb-model-models > li { display: block; float: none; width: auto; max-width: 100%; margin: 0; padding: 0; list-style: none; }
#rb-model-page .rb-model-models > li::before, #rb-model-page .rb-model-models > li::after { content: none; }
#rb-model-page .rb-model-models > li > a { display: block; max-width: 100%; min-height: 34px; margin: 0; padding: 7px 9px; border: 1px solid #dce7f5; border-radius: 7px; background: #f5f9ff; color: #295c93; font-size: 13px; line-height: 18px; font-weight: 400; text-align: left; overflow-wrap: anywhere; }
#rb-model-page .rb-model-models > li > a:hover { border-color: #1873d7; background: #eaf3ff; color: #125fb5; }
#rb-model-page .rb-model-models > li > a.rb-model-match { border-color: #1873d7; background: #1873d7; color: #fff; }
#rb-model-page .rb-model-card--no-photo .rb-model-card-heading { grid-template-columns: minmax(0,1fr); grid-template-areas: 'title'; }
#rb-model-page .rb-model-empty { padding: 26px; border: 1px solid #dfe8f2; border-radius: 14px; background: #fff; color: #536f89; font-size: 15px; line-height: 1.5; }
#rb-model-page .rb-model-empty h3 { margin: 0 0 7px; color: #173e68; font-size: 20px; }
#rb-model-page .rb-model-empty p { margin: 0 0 15px; }
@media (max-width:1199px) {
    #rb-model-page .first-screen.common { margin-top: 45px; padding: 34px 0 38px; min-height: 300px; }
    #rb-model-page .podbor_seria--wrapper { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
    #rb-model-page .container { padding: 0 16px; }
    #rb-model-page .first-screen.common { min-height: 0; padding: 28px 0 30px; background-position: 62% center; }
    #rb-model-page .first-screen.common::before { background: linear-gradient(90deg,rgba(239,247,255,.94),rgba(239,247,255,.75)); }
    #rb-model-page .first-screen.common h1 { font-size: 32px; }
    #rb-model-page .rb-model-eyebrow { font-size: 11px; }
    #rb-model-page .rb-model-intro { font-size: 14px; }
    #rb-model-page .rb-model-button { min-height: 43px; padding: 10px 12px; font-size: 13px; }
    #rb-model-page .first-screen.common .f-scr-preim { padding: 10px 12px; font-size: 12px; }
    #rb-model-page .breadcrumbs { padding: 15px 0 20px; }
    #rb-model-page .breadcrumb { font-size: 12px; }
    #rb-model-page .zap-find { margin-bottom: 25px; }
    #rb-model-page .zap-find--wrapper { display: block; padding: 17px !important; }
    #rb-model-page .zap-find--wrapper h2 { font-size: 19px; }
    #rb-model-page .zap-find--wrapper p { font-size: 13px; }
    #rb-model-page .zap-find--wrapper > .main-btn { min-height: 42px; margin-top: 14px; padding: 10px 15px; font-size: 13px; }
    #rb-model-page .rb-model-toolbar h2 { font-size: 24px; }
    #rb-model-page .rb-model-toolbar p { font-size: 13px; }
    #rb-model-page .rb-model-search-row { gap: 10px; }
    #rb-model-page .podbor_seria--wrapper { grid-template-columns: 1fr; gap: 13px; }
    #rb-model-page .podbor_seria--item { padding: 18px; }
    #rb-model-page .rb-model-card-heading { grid-template-columns: 68px minmax(0,1fr); gap: 12px; min-height: 70px; }
    #rb-model-page .rb-model-photo { height: 70px; }
    #rb-model-page .rb-model-photo img { max-height: 64px; }
    #rb-model-page .rb-model-models > li > a { min-height: 36px; padding: 8px 9px; font-size: 13px; }
    #rb-model-page .rb-model-empty { padding: 20px; }
}
@media (prefers-reduced-motion:reduce) { #rb-model-page * { scroll-behavior: auto !important; transition: none !important; } }

/* Только три небольшие формы заявки. Остальные окна Fancybox не затрагиваются. */
#findZapsForm.contact-form {
    --rb-modal-blue: #1873d7;
    box-sizing: border-box;
    width: 440px;
    max-width: 100%;
    padding: 32px;
    margin: 0;
    border: 1px solid #dce8f6;
    border-radius: 22px;
    background: #fff;
    color: #173d65;
    box-shadow: 0 24px 80px rgba(7, 30, 59, .22);
    text-align: left;
    vertical-align: middle;
    overflow: visible;
}
#findZapsForm.contact-form *,
#findZapsForm.contact-form *::before,
#findZapsForm.contact-form *::after {
    box-sizing: border-box;
}
#findZapsForm .rb-modal-eyebrow {
    display: block;
    margin: 0 40px 12px 0;
    color: var(--rb-modal-blue);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
}
#findZapsForm.contact-form h3 {
    padding: 0;
    margin: 0;
    max-width: 100%;
    color: #173d65;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    text-transform: none;
    letter-spacing: -.3px;
    overflow-wrap: break-word;
}
#findZapsForm .rb-modal-description {
    margin: 12px 0 0;
    color: #627993;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}
#findZapsForm.contact-form .form-group {
    display: block;
    padding: 0;
    margin: 24px 0 0;
    width: 100%;
}
#findZapsForm.contact-form .text-input {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    text-align: left;
}
#findZapsForm .rb-modal-field-label {
    display: block;
    margin: 0 0 7px;
    color: #294c71;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    cursor: text;
}
#findZapsForm .rb-modal-optional {
    margin-left: 5px;
    color: #627993;
    font-size: 12px;
    font-weight: 400;
}
#findZapsForm .rb-modal-required {
    color: var(--rb-modal-blue);
}
#findZapsForm.contact-form .text-input input:not([type="hidden"]) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    margin: 0;
    border: 1px solid #cedff1;
    border-radius: 10px;
    background: #f7faff;
    color: #173d65;
    font: inherit;
    font-size: 16px;
    line-height: normal;
    box-shadow: none;
    outline: none;
    appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#findZapsForm.contact-form .text-input input::placeholder {
    color: #7e90a5;
    opacity: 1;
}
#findZapsForm.contact-form .text-input input:hover {
    border-color: #8fb9e7;
}
#findZapsForm.contact-form .text-input input:focus {
    border-color: var(--rb-modal-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 115, 215, .12);
}
#findZapsForm.contact-form .text-input input.error,
#findZapsForm.contact-form .text-input input[aria-invalid="true"] {
    border-color: #c63843;
}
#findZapsForm.contact-form span.error {
    display: block;
    margin: 6px 0 0;
    color: #b42d38;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}
#findZapsForm.contact-form span.error:empty {
    display: none;
}
#findZapsForm.contact-form .main-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    height: auto;
    padding: 14px 12px;
    margin: 24px 0 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--rb-modal-blue);
    background-image: none;
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    text-shadow: none;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}
#findZapsForm.contact-form .main-btn:hover {
    background: #125fb5;
    color: #fff;
    box-shadow: none;
}
#findZapsForm.contact-form .main-btn:focus-visible {
    outline: 2px solid #00397f;
    outline-offset: 3px;
}
#findZapsForm.contact-form .main-btn:active {
    background: #00397f;
}
#findZapsForm.contact-form .main-btn:disabled,
#findZapsForm.contact-form[aria-busy="true"] .main-btn {
    opacity: .65;
    cursor: wait;
}
#findZapsForm.contact-form .fancybox-close-small {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: #f0f5fc;
    color: #486788;
    opacity: 1;
    box-shadow: none;
}
#findZapsForm.contact-form .fancybox-close-small:hover {
    background: #e1edfb;
    color: #00397f;
}
#findZapsForm.contact-form .fancybox-close-small:focus-visible {
    outline: 2px solid var(--rb-modal-blue);
    outline-offset: 2px;
}
.rb-request-modal-container .fancybox-bg {
    background: #0c294a;
    backdrop-filter: blur(2px);
}
.rb-request-modal-container.fancybox-is-open .fancybox-bg {
    opacity: .65;
}
.rb-request-modal-container .fancybox-slide--html {
    padding: 24px 16px;
}
@media (max-width: 480px) {
    #findZapsForm.contact-form {
        padding: 28px 22px 24px;
        border-radius: 18px;
    }
    #findZapsForm.contact-form h3 {
        font-size: 24px;
    }
    #findZapsForm .rb-modal-eyebrow {
        font-size: 10px;
    }
    #findZapsForm.contact-form .fancybox-close-small {
        top: 12px;
        right: 12px;
    }
    .rb-request-modal-container .fancybox-slide--html {
        padding: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #findZapsForm.contact-form input {
        transition: none;
    }
}

