.site-header { position: relative; z-index: 20; background: #141817; color: #fff; }
.site-header .shell { width: calc(100% - 40px); max-width: 1280px; width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.site-header a { color: #fff; text-decoration: none; }
.site-header .header-main { min-height: 72px; display: flex; flex-wrap: nowrap; align-items: center; }
.site-header .logo { width: 176px; display: inline-flex; flex: 0 0 176px; flex-direction: column; justify-content: center; line-height: 1; }
.site-header .logo-wordmark { font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: 700; line-height: 26px; white-space: nowrap; }
.site-header .logo-wordmark sup { margin-left: 1px; color: #2bcbf3; font-size: 8px; line-height: 1; }
.site-header .logo-tagline { font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height: 12px; white-space: nowrap; }
.site-header .main-nav { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 36px; margin-left: 106px; white-space: nowrap; }
.site-header .main-nav a, .site-header .brand-menu-toggle { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 25px; transition: color .2s; white-space: nowrap; }
.site-header .main-nav > a:hover, .site-header .brand-menu-toggle:hover, .site-header .nav-dropdown.open .brand-menu-toggle, .site-header .header-contacts a:hover { color: #2bcbf3; }
.site-header .nav-dropdown { position: relative; display: flex; align-items: center; align-self: stretch; }
.site-header .brand-menu-toggle { display: inline-flex; align-items: center; height: 100%; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.site-header .brand-menu { width: 220px; position: absolute; z-index: 30; top: 100%; left: -20px; display: grid; padding: 10px 0; background: #fff; border: 1px solid #e7ebea; border-top: 2px solid #2bcbf3; box-shadow: 0 18px 38px rgba(9,20,18,.16); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.site-header .brand-menu a { display: block; padding: 10px 20px; color: #111716; font-size: 15px; line-height: 22px; }
.site-header .brand-menu a:hover, .site-header .brand-menu a:focus-visible { color: #067f94; background: #f3fafb; outline: 0; }
.site-header .nav-dropdown:hover .brand-menu, .site-header .nav-dropdown:focus-within .brand-menu, .site-header .nav-dropdown.open .brand-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-header .header-context-link { display: none; }
.site-header .header-mobile-choice { display: none; }
.site-header .header-contacts { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.site-header .header-contacts a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 25px; white-space: nowrap; }
.site-header .header-contacts img { width: 16px; height: 16px; }
.site-header .header-socials { display: flex; align-items: center; gap: 12px; margin-left: 24px; }
.site-header .header-socials :is(a,button) { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.site-header .header-socials img { width: 32px; height: 32px; display: block; }
.site-header .header-socials .messenger-max-icon { filter: brightness(0) invert(1); }
.site-header .menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid #3e4644; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.site-header .menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.site-header .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .menu-toggle.active span:nth-child(2) { opacity: 0; }
.site-header .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header .main-nav :is(a,button):focus-visible, .site-header .header-socials :is(a,button):focus-visible, .site-header .menu-toggle:focus-visible { outline: 2px solid #2bcbf3; outline-offset: 3px; }

@media (max-width: 1250px) {
    .site-header .logo { width: 156px; flex-basis: 156px; }
    .site-header .logo-wordmark { font-size: 21px; line-height: 23px; }
    .site-header .logo-tagline { font-size: 9px; line-height: 11px; }
    .site-header .main-nav { gap: 17px; margin-left: 52px; }
    .site-header .header-contacts a:last-child { display: none; }
}

@media (max-width: 820px) {
    .site-header .shell { width: calc(100% - 30px); width: min(100% - 30px, 1280px); }
    .site-header .menu-toggle { display: inline-flex; order: 3; margin-left: 16px; }
    .site-header .header-contacts { order: 1; margin-left: auto; }
    .site-header .header-socials { order: 2; margin-left: 16px; }
    .site-header .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 22px 15px; flex-direction: column; align-items: stretch; gap: 0; background: #101615; border-top: 1px solid #303735; box-shadow: 0 18px 35px rgba(0,0,0,.2); }
    .site-header .main-nav.open { display: flex; }
    .site-header .main-nav > a { padding: 13px 5px; border-bottom: 1px solid #29302f; }
    .site-header .main-nav .header-context-link { display: block; }
    .site-header .main-nav .header-mobile-choice { display: block; }
    .site-header .main-nav .header-mobile-booking { display: block; width: 100%; padding: 13px 5px; border: 0; color: #2bcbf3; background: transparent; text-align: left; font-size: 16px; cursor: pointer; }
    .site-header .main-nav .header-mobile-booking[hidden] { display: none; }
    .site-header .header-mobile-choice .hero-contact-options { width: min(100%, 500px); grid-template-columns: minmax(0, 1fr) 40px; }
    .site-header .header-mobile-choice .hero-contact-options .button { width: 100%; }
    .site-header .header-mobile-choice .button-light, .site-header .header-mobile-choice .hero-contact-reset { color: #111716; }
    .site-header .header-mobile-choice .hero-contact-options .button:nth-child(2) { grid-column: 1; grid-row: 2; }
    .site-header .header-mobile-choice .hero-contact-reset { grid-column: 2; grid-row: 1; }
    .site-header .nav-dropdown { display: block; }
    .site-header .brand-menu-toggle { width: 100%; padding: 13px 5px; justify-content: flex-start; border-bottom: 1px solid #29302f; }
    .site-header .brand-menu { width: 100%; position: static; display: none; padding: 4px 0 8px 18px; background: #0e1312; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .site-header .brand-menu a { color: #fff; }
    .site-header .nav-dropdown:hover .brand-menu, .site-header .nav-dropdown:focus-within .brand-menu { display: none; }
    .site-header .nav-dropdown.open .brand-menu { display: grid; }
}

@media (max-width: 599px) {
    html { scroll-padding-top: 72px; }
    .site-header { position: sticky; top: 0; }
}

@media (max-width: 560px) {
    html { scroll-padding-top: 64px; }
    .site-header .shell { width: calc(100% - 24px); width: min(100% - 24px, 1280px); }
    .site-header .header-main { min-height: 64px; }
    .site-header .logo { width: 140px; flex-basis: 140px; }
    .site-header .logo-wordmark { font-size: 20px; line-height: 22px; }
    .site-header .logo-tagline { font-size: 9px; line-height: 11px; }
    .site-header .logo-since { display: block; }
    .site-header .main-nav { top: 64px; }
    .site-header .header-contacts { display: none; }
    .site-header .header-socials { margin-left: auto; }
}

/* Shared price breakdown for maintenance estimates and model repair pages. */
.sp-price-panel:is(.mp-estimate, .rr-price-panel) {
    padding: 28px 34px;
    border: 0;
    border-radius: 8px;
}
.sp-price-panel:is(.mp-estimate, .rr-price-panel) > h3:first-child {
    font-size: 22px;
    line-height: 29px;
}
.sp-price-panel:is(.mp-estimate, .rr-price-panel) > .sp-price-intro {
    margin-top: 14px !important;
    color: #666;
}
.sp-cost-group {
    min-width: 0;
    padding: 6px;
    border: 1px solid #2bcbf3;
    border-radius: 10px;
    background: #fff;
}
.service-page .sp-cost-group h3 {
    margin: 0;
    padding: 14px;
    background: #f4f8fc;
    color: #000;
    font-size: 20px;
    line-height: 29px;
    font-weight: 700;
}
.sp-cost-list {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
}
.sp-cost-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 49px;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 25px;
}
.sp-cost-list li + li {
    border-top: 1px dashed rgba(89, 94, 97, .5);
}
.sp-cost-list li.sp-cost-inspection-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}
.sp-cost-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.sp-cost-name small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}
.sp-cost-inspection-description { white-space: pre-line; }
.sp-cost-quantity {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 6px;
    border: 1px solid rgba(102, 102, 102, .5);
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}
.sp-cost-price {
    flex: 0 0 auto;
    min-width: 104px;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}
@media (max-width: 1199px) {
    .sp-price-panel:is(.mp-estimate, .rr-price-panel) { padding: 28px 32px; }
}
@media (max-width: 599px) {
    .sp-price-panel:is(.mp-estimate, .rr-price-panel) { padding: 24px 18px; }
    .sp-price-panel:is(.mp-estimate, .rr-price-panel) > h3:first-child { font-size: 20px; line-height: 26px; }
    .service-page .sp-cost-group h3 { font-size: 18px; line-height: 24px; }
    .sp-cost-list { padding-top: 4px; }
    .sp-cost-list li { flex-wrap: wrap; gap: 4px 8px; padding: 10px; font-size: 13px; line-height: 20px; }
    .sp-cost-name { flex-basis: 100%; }
    .sp-cost-name small { font-size: 12px; line-height: 18px; }
    .sp-cost-quantity { min-width: 0; font-size: 12px; }
    .sp-cost-price { min-width: 0; font-size: 13px; }
}
.mp-calculator { position: relative; isolation: isolate; overflow: hidden; background: #fff; padding: 48px 0 56px; }
/* Preserve the Figma 1440x433 crop: cover in a 1440x594 layer at y=-125.
   Explicit image bounds keep the same source region on wider desktops. */
.mp-calculator-background { position: absolute; z-index: -1; pointer-events: none; left: -11.7328%; top: -28.8684%; width: 123.4655%; max-width: none; height: 137.1824%; -o-object-fit: fill; object-fit: fill; -o-object-position: center; object-position: center; opacity: .79; }
.model-page .mp-calculator h1 { font-size: 46px; line-height: 52px; margin: 8px 0; }
.mp-calculator h1 span { color: var(--sp-cyan); }
.mp-calculator h1 .mp-title-prefix { color: inherit; }
.mp-intro { color: #666; font-size: 19px; line-height: 29px; max-width: 504px; }
.mp-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; margin-top: 42px; padding: 20px; background: white; border-left: 5px solid var(--sp-cyan); border-radius: 4px; box-shadow: 0 4px 16px #23394b08; }
.mp-form label { display: grid; gap: 8px; min-width: 0; font-size: 16px; line-height: 25px; color: #343b39; }
.mp-form select { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; background: #fff; width: 100%; min-width: 0; height: 60px; padding: 12px 16px 12px 20px; border: 1px solid #d9dbe2; border-radius: 3px; font-family: inherit; font-size: 16px; color: #656c70; }
.mp-form select:focus-visible { outline: 2px solid #007e98; outline-offset: 3px; }
.mp-form .sp-button { width: 100%; }
.model-page .mp-disclaimer { margin-top: 12px; font-size: 12px; line-height: 18px; color: #667078; }
.mp-services-grid { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 24px; align-items: start; }
.mp-services-grid .sp-related { grid-column: 1; grid-row: auto; }
.mp-services-grid .sp-price-panel { grid-column: 2; grid-row: auto; }
.mp-estimate { scroll-margin-top: 24px; }
.mp-estimate:focus { outline: none; }
.mp-estimate .sp-cost-group { margin-top: 18px; }
.mp-estimate .sp-cost-group:first-of-type { margin-top: 24px; }
.mp-total { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; color: #000; font-size: 26px; line-height: 28px; letter-spacing: -1px; }
.model-page .mp-estimate-note { margin-top: 6px; color: #666; font-size: 14px; line-height: 25px; }
.model-page .mp-result-status { margin-top: 8px; color: #666; font-size: 14px; line-height: 25px; }
.mp-result-status[hidden] { display: none; }
.mp-form .sp-button:disabled { cursor: not-allowed; opacity: .55; }
.mp-form select:disabled { background: #f4f5f6; }
.mp-total strong { min-width: 0; }
.mp-total strong:last-child { flex-shrink: 0; }
.mp-retry { margin-top: 12px; padding: 8px 0; border: 0; background: transparent; color: #007e98; text-decoration: underline; font: inherit; }
.mp-retry[hidden], #estimate-lines[hidden] { display: none; }

@media (max-width: 1199px) {
    .mp-calculator { padding: 64px 0 56px; background: #f6f6f8; }
    .mp-calculator-background { left: 0; top: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
    .model-page .mp-calculator h1 { font-size: 32px; line-height: 38px; }
    .mp-intro { font-size: 13px; line-height: 18px; max-width: none; }
    .mp-form { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; padding: 20px; }
    .mp-form label { font-size: 16px; }
    .mp-form .sp-button { min-height: 60px; }
    .mp-services-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mp-services-grid .sp-price-panel { grid-column: 1; }
    .mp-total { font-size: 26px; }
}

@media (max-width: 599px) {
    .mp-calculator { padding: 64px 0 56px; background: #fff; }
    .model-page .mp-calculator h1 { font-size: 26px; line-height: 28px; }
    .mp-intro { font-size: 13px; line-height: 18px; }
    .mp-form { margin-top: 24px; padding: 20px 12px; gap: 16px; border-left-width: 3px; }
    .mp-form label { font-size: 16px; gap: 8px; }
    .mp-form select { font-size: 16px; padding-left: 24px; }
    .mp-form .sp-button { min-height: 60px; }
    .mp-total { font-size: 24px; line-height: 30px; }
    .model-page .mp-disclaimer, .model-page .mp-estimate-note { font-size: 11px; line-height: 17px; }
}

/* Keep the calculator and header stable while the rest of the page CSS loads. */
:root { --ink: #111716; --white: #fff; --cyan: #2bcbf3; --sp-cyan: #2bcbf3; --sp-soft: #f2f3f8; --font-display: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
.service-page { color: #000; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.service-page :is(h1,h2,h3,p) { margin: 0; }
.sp-shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.sp-skip { position: fixed; top: 8px; left: 8px; z-index: 120; padding: 12px; background: #fff; transform: translateY(-150%); }
.sp-skip:focus { transform: none; }
.service-page .sp-eyebrow { color: #00869e; font-size: 13px; line-height: 20px; text-transform: uppercase; }
.sp-button { display: inline-flex; justify-content: center; align-items: center; min-height: 60px; width: 240px; max-width: 100%; padding: 14px 24px; border: 0; border-radius: 0; background: var(--sp-cyan); color: #fff; font-size: 16px; line-height: 24px; font-weight: 500; }

@media (max-width: 1199px) {
    .sp-shell { width: calc(100% - 64px); }
    .sp-button { min-height: 52px; font-size: 14px; }
}

@media (max-width: 599px) {
    .sp-shell { width: calc(100% - 40px); }
    .sp-button { width: 100%; min-height: 56px; }
}
