:root {
    --rubox-accent: #d6e100;
    --rubox-accent-dark: #bac224;
    --rubox-ink: #3a3a3a;
    --rubox-muted: #666;
    --rubox-line: #e2e4e6;
    --rubox-surface: #fff;
    --rubox-soft: #f4f7e6;
    --rubox-radius: 8px;
    --rubox-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

html { scroll-behavior: smooth; }
body.rubox-page { margin: 0; color: var(--rubox-ink); background: #fff; font-family: "Roboto", Arial, sans-serif; }
body.rubox-page *, body.rubox-page *::before, body.rubox-page *::after { box-sizing: border-box; }
body.rubox-page a { color: inherit; }
body.rubox-page img { max-width: 100%; }
body.is-modal-open { overflow: hidden; }

.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100000; padding: 10px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
.rubox-shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

.rubox-header { position: relative; z-index: 1000; width: 100%; color: #fff; background: #272727 url("/media/chuttersnap-bnba1h-ngdy-unsplash.jpg") center 20% / cover no-repeat; }
.rubox-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .62); }
.home .rubox-header { position: absolute; top: 0; left: 0; background: transparent; }
.home .rubox-header::before { display: none; }
.home #main_block .elementor-background-overlay { top: 61px; }
.rubox-topbar { border-bottom: 1px solid rgba(255, 255, 255, .38); }
.rubox-topbar__inner, .rubox-navrow, .rubox-contacts, .rubox-contactline { display: flex; align-items: center; }
.rubox-topbar__inner { min-height: 61px; justify-content: space-between; gap: 18px; }
.rubox-contactline { min-width: 0; gap: 15px; font-size: 14px; }
.rubox-contactline a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.rubox-contactline img { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.rubox-contactline a:hover { color: var(--rubox-accent); }
.rubox-contacts { gap: 22px; font-size: 14px; }
.rubox-contacts a { text-decoration: none; }
.rubox-callback { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--rubox-accent); border-radius: 5px; color: var(--rubox-ink); background: var(--rubox-accent); font: inherit; font-weight: 300; text-transform: uppercase; cursor: pointer; }
.rubox-navrow { min-height: 106px; gap: 24px; justify-content: space-between; }
.rubox-logo { flex: 0 0 215px; line-height: 0; }
.rubox-logo img { width: 215px; height: auto; }
.rubox-menu { position: relative; align-self: stretch; display: flex; align-items: flex-start; justify-content: flex-end; gap: 2px; padding-top: 14px; }
body.rubox-page .rubox-menu > a, body.rubox-page .rubox-menu__dropdown > a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 7px; border-radius: 5px; color: #fff; font-size: 13px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.rubox-menu > a:hover, .rubox-menu > a.is-active, .rubox-menu__dropdown > a:hover { color: var(--rubox-accent); }
.rubox-menu > a.rubox-menu__service { min-height: 36px; margin: 4px 0 0 6px; padding: 7px 11px; color: var(--rubox-ink); background: var(--rubox-accent); font-weight: 500; }
.rubox-menu > a.rubox-menu__service:hover, .rubox-menu > a.rubox-menu__service.is-active { color: var(--rubox-ink); background: var(--rubox-accent-dark); }
.rubox-menu__dropdown { position: relative; }
.rubox-menu__submenu { position: absolute; top: 38px; left: 0; z-index: 20; display: none; width: 235px; overflow: hidden; border-radius: 3px; background: #fff; box-shadow: var(--rubox-shadow); }
.rubox-menu__dropdown:hover .rubox-menu__submenu, .rubox-menu__dropdown:focus-within .rubox-menu__submenu { display: block; }
.rubox-menu__submenu a { display: block; padding: 15px 11px; color: var(--rubox-ink); font-size: 13px; line-height: 1.25; text-decoration: none; }
.rubox-menu__submenu a:hover, .rubox-menu__submenu a:focus { background: var(--rubox-accent); }
.rubox-menu-toggle { display: none; width: 46px; height: 44px; padding: 10px; border: 0; border-radius: 5px; background: var(--rubox-accent); cursor: pointer; }
.rubox-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--rubox-ink); }

.site-main { min-height: 55vh; }
.entry-content { margin: 0; padding: 0; }
.rubox-article-header { width: min(1140px, calc(100% - 40px)); margin: 42px auto 0; }
.rubox-article-header h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; }
.rubox-article { width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 64px; font-size: 17px; line-height: 1.75; }
.rubox-article .entry-header h1 { margin: 0 0 28px; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; }
.rubox-article .post-thumbnail { margin-bottom: 28px; }
.rubox-article img { border-radius: 6px; }

.elementor-502 .elementor-element.elementor-element-499e4c1 .elementor-image-box-title a { white-space: nowrap; }

.rubox-policy-page { padding: 28px 0; background: linear-gradient(145deg, #f7f8f0 0%, #fff 58%, #f1f4df 100%); }
.rubox-policy.entry-content { position: relative; width: min(900px, calc(100% - 24px)); margin: 0 auto !important; padding: 28px 22px !important; overflow: hidden; border: 1px solid var(--rubox-line); border-radius: 12px; color: var(--rubox-ink); background: var(--rubox-surface); box-shadow: 0 16px 44px rgba(52, 61, 19, .1); }
.rubox-policy.entry-content::before { position: absolute; inset: 0 0 auto; height: 5px; background: var(--rubox-accent); content: ""; }
.rubox-policy h1 { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rubox-line); color: var(--rubox-ink); font-size: clamp(30px, 7vw, 48px); line-height: 1.12; }
.rubox-policy h2 { margin: 32px 0 12px; color: var(--rubox-ink); font-size: clamp(21px, 4.5vw, 27px); line-height: 1.28; }
.rubox-policy p { margin: 0 0 16px; color: var(--rubox-muted); font-size: 16px; line-height: 1.72; }
.rubox-policy p:last-child { margin-bottom: 0; }
.rubox-policy .privacy-policy-tutorial { color: var(--rubox-ink); font-weight: 600; }

.rubox-floating { position: fixed; right: 24px; bottom: 24px; z-index: 1500; display: grid; width: 58px; height: 58px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--rubox-accent); box-shadow: 0 0 0 0 rgba(214, 225, 0, .48); font-size: 24px; cursor: pointer; animation: rubox-pulse 3s linear infinite; }
@keyframes rubox-pulse { 70% { box-shadow: 0 0 0 20px rgba(214, 225, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 225, 0, 0); } }

.rubox-modal[hidden] { display: none; }
.rubox-modal { position: fixed; inset: 0; z-index: 3000; display: grid; padding: 20px; place-items: center; }
.rubox-modal__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .2); cursor: pointer; }
.rubox-modal__dialog { position: relative; width: min(450px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 25px; border-radius: 15px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .7); }
.rubox-modal__close { position: absolute; top: 0; right: 15px; z-index: 2; width: 40px; height: 40px; border: 0; color: var(--rubox-ink); background: transparent; font-size: 30px; cursor: pointer; }
.rubox-lead-form { display: grid; gap: 14px; }
.rubox-lead-form label { display: grid; gap: 6px; color: var(--rubox-ink); font-size: 14px; font-weight: 500; }
.rubox-lead-form input, .rubox-lead-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d5d8dc; border-radius: var(--rubox-radius); color: var(--rubox-ink); background: #fff; font: inherit; }
.rubox-lead-form textarea { resize: vertical; }
.rubox-lead-form input:focus, .rubox-lead-form textarea:focus { outline: 2px solid var(--rubox-accent); border-color: var(--rubox-accent-dark); }
.rubox-lead-form .rubox-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; font-weight: 400; }
.rubox-consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.rubox-lead-form button[type="submit"] { min-height: 50px; border: 0; border-radius: var(--rubox-radius); color: var(--rubox-ink); background: var(--rubox-accent); font: inherit; font-weight: 700; cursor: pointer; }
.rubox-lead-form button:disabled { opacity: .6; cursor: wait; }
.rubox-form-status { min-height: 20px; color: #277529; font-size: 14px; }
.rubox-form-status.is-error { color: #b3261e; }
.rubox-modal .elementor-field-option a { color: #4169e1; }

.elementor-form .rubox-form-status { flex: 0 0 100%; width: 100%; padding: 8px 0; }
.elementor-form.is-sending { opacity: .72; pointer-events: none; }
.elementor-g-recaptcha { display: none !important; }

.rubox-slider-ready .swiper-wrapper { display: block !important; transform: none !important; }
.rubox-slider-ready .swiper-slide-inner { width: 100%; margin-inline: auto; }
.rubox-slider-ready .swiper-slide { display: none; opacity: 0; }
.rubox-slider-ready .swiper-slide.is-active { display: flex; opacity: 1; animation: rubox-fade .45s ease; }
.rubox-slider-ready .swiper-pagination { display: flex; justify-content: center; gap: 9px; bottom: 24px; }
.rubox-slider-ready .swiper-pagination button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #686868; cursor: pointer; }
.rubox-slider-ready .swiper-pagination button.is-active { background: #fff; }
@keyframes rubox-fade { from { opacity: .25; } to { opacity: 1; } }

.rubox-gallery-lightbox { position: fixed; inset: 0; z-index: 3500; display: grid; padding: 32px; place-items: center; background: rgba(0, 0, 0, .9); cursor: zoom-out; }
.rubox-gallery-lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 64px); object-fit: contain; }
.elementor-gallery-item img, .e-gallery-item img { cursor: zoom-in; }

.services_slider { z-index: auto; overflow: hidden; }
.services_slider > .swiper-wrapper { display: flex; transition: transform .35s ease; }
.services_slider > .swiper-wrapper > .swiper-slide { flex: 0 0 25%; width: 25%; padding-inline: 10px; }
.slider_wrapper .arrow { cursor: pointer; }

.elementor-accordion .elementor-tab-title { cursor: pointer; }
.elementor-accordion .elementor-tab-content { display: none; }
.elementor-accordion .elementor-tab-title.elementor-active + .elementor-tab-content { display: block; }

#calc_wrapper .inside { height: auto !important; min-height: 410px; }
#calc_wrapper .inside form { display: flex !important; }
#calc_wrapper #calc .inside .line.submit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
#calc_wrapper #calc .inside .line.submit button { min-width: 0; padding-inline: 14px; white-space: nowrap; }
#calc_wrapper #calc .inside .line.submit button.info { min-width: 102px; margin-right: 0; gap: 7px; }
#calc_wrapper #calc .inside .line.submit button.info svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; margin-right: 0; }
#calc_wrapper #calc .rubox-calc-help-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
#calc_wrapper .line select { min-height: 56px; border: 0; border-radius: 8px; padding: 0 10px; background: #ddd; color: var(--rubox-ink); }
#calc_wrapper .hero-calc-note { color: #fff; font-size: 12px; line-height: 1.4; }

.rubox-error { display: grid; min-height: 55vh; padding: clamp(48px, 9vw, 116px) 0; place-items: center; background: linear-gradient(135deg, #f7f8f0 0%, #fff 56%, #eef2d5 100%); }
.rubox-error__card { position: relative; display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 82px); align-items: center; overflow: hidden; padding: clamp(30px, 6vw, 72px); border: 1px solid var(--rubox-line); border-top: 5px solid var(--rubox-accent); border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 45px rgba(52, 61, 19, .12); }
.rubox-error__card::after { position: absolute; right: -85px; bottom: -125px; width: 300px; height: 300px; border: 42px solid rgba(214, 225, 0, .16); border-radius: 50%; content: ""; pointer-events: none; }
.rubox-error__status { position: relative; z-index: 1; color: var(--rubox-accent-dark); font-size: clamp(92px, 17vw, 190px); font-weight: 700; line-height: .8; letter-spacing: -.09em; }
.rubox-error__content { position: relative; z-index: 1; max-width: 600px; }
.rubox-error__eyebrow { margin: 0 0 10px; color: #7d850e; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.rubox-error h1 { margin: 0; color: var(--rubox-ink); font-size: clamp(31px, 4vw, 48px); line-height: 1.12; }
.rubox-error__content > p:not(.rubox-error__eyebrow):not(.rubox-error__help) { max-width: 540px; margin: 18px 0 0; color: var(--rubox-muted); font-size: 17px; line-height: 1.65; }
.rubox-error__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rubox-error__actions a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 19px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.rubox-error__primary { color: var(--rubox-ink); background: var(--rubox-accent); }
.rubox-error__primary:hover { background: var(--rubox-accent-dark); transform: translateY(-1px); }
.rubox-error__secondary { border: 1px solid #cbd0b2; color: var(--rubox-ink); background: #fff; }
.rubox-error__secondary:hover { border-color: var(--rubox-accent-dark); background: var(--rubox-soft); }
.rubox-error__help { margin: 24px 0 0; color: var(--rubox-muted); font-size: 14px; }
.rubox-error__help a { color: var(--rubox-ink); font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 1180px) {
    .rubox-contactline a:nth-child(n + 4) { display: none; }
    .rubox-menu > a, .rubox-menu__dropdown > a { padding-inline: 5px; font-size: 12px; }
    .rubox-logo { flex-basis: 145px; }
    .rubox-logo img { width: 145px; }
}

@media (max-width: 1024px) {
    .rubox-menu-toggle { display: block; }
    .rubox-navrow { position: relative; min-height: 74px; }
    .rubox-menu { position: absolute; top: calc(100% - 4px); right: 0; display: none; width: min(380px, calc(100vw - 24px)); height: auto; max-height: calc(100vh - 120px); overflow-y: auto; padding: 10px; border-radius: 8px; background: #fff; box-shadow: var(--rubox-shadow); }
    .rubox-menu.is-open { display: grid; justify-content: stretch; align-items: stretch; }
    body.rubox-page .rubox-menu > a, body.rubox-page .rubox-menu__dropdown > a { width: 100%; min-height: 46px; padding: 10px 13px; color: var(--rubox-ink); font-size: 14px; }
    .rubox-menu > a.is-active { color: #879000; background: var(--rubox-soft); }
    .rubox-menu > a.rubox-menu__service { margin: 4px 0 0; justify-content: center; }
    .rubox-menu__dropdown { width: 100%; }
    .rubox-menu__submenu { position: static; width: 100%; box-shadow: none; }
    .rubox-menu__submenu a { padding-left: 24px; }
    .services_slider > .swiper-wrapper > .swiper-slide { flex-basis: 50%; width: 50%; }
}

@media (max-width: 680px) {
    .rubox-shell { width: min(100% - 24px, 1140px); }
    .home #main_block .elementor-background-overlay { top: 55px; }
    .rubox-topbar__inner { min-height: 55px; }
    .rubox-contactline a { display: none; }
    .rubox-contactline a:first-child { display: inline-flex; }
    .rubox-contactline { font-size: 14px; }
    .rubox-contacts { justify-content: flex-end; gap: 8px; }
    .rubox-callback { min-height: 36px; }
    .rubox-logo { flex-basis: 150px; }
    .rubox-logo img { width: 150px; }
    .rubox-modal__dialog { padding: 25px; }
    .rubox-floating { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .services_slider > .swiper-wrapper > .swiper-slide { flex-basis: 100%; width: 100%; }
    .slider_wrapper .service__prev.arrow { left: 4px; }
    .slider_wrapper .service__next.arrow { right: 4px; }
    .rubox-error { min-height: 0; padding-block: 32px; }
    .rubox-error__card { grid-template-columns: 1fr; gap: 25px; padding: 32px 24px; }
    .rubox-error__status { font-size: 95px; }
    .rubox-error__content > p:not(.rubox-error__eyebrow):not(.rubox-error__help) { font-size: 16px; }
    .rubox-error__actions { display: grid; grid-template-columns: 1fr; }
    .rubox-error__actions a { width: 100%; }
}

@media (min-width: 681px) {
    .rubox-policy-page { padding-block: clamp(48px, 7vw, 84px); }
    .rubox-policy.entry-content { padding: clamp(42px, 6vw, 64px) !important; }
}

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