:root {
    color: #141414;
    font-family: Arial, Arial, sans-serif;
}

html, body { margin: 0; min-width: 280px; }
body { background: #fff; }
*, *::before, *::after { box-sizing: border-box; }
button, select, input { font: inherit; }
.robonet-page { min-height: 100vh; overflow-x: clip; }
.robonet-content, .robonet-record { width: 100%; }
.robonet-content h1.tn-atom { margin: 0; }
.robonet-content img { max-width: 100%; }
.robonet-content [hidden] { display: none !important; }
.robonet-content .tn-atom__img { display: block; }
.robonet-artboard-frame { position: relative; }
.robonet-artboard-frame .t396__artboard { transform-origin: top left; }
.robonet-content .t396__group { position: absolute; }
.robonet-content .tn-molecule { position: relative; width: 100%; height: 100%; }
.robonet-content .t396__group-flex > .tn-molecule { display: flex; }
.robonet-content .t396__elem-flex { position: relative; flex: 0 0 auto; }

/* Tilda Grid (.t-col_6.t-prefix_6) рассчитана на content-box на десктопе (>=960px),
   иначе padding-left: 600px сжимает max-width: 560px в узкую полоску (FAQ #rec1802838271). */
@media screen and (min-width: 960px) {
    #allrecords .t-col { box-sizing: content-box; }
}

/* Раскрытие ответов FAQ поверх базового display:none из imported.css */
#allrecords .t668__content:not([hidden]) { display: block !important; }
#allrecords .t668__content[hidden] { display: none !important; }

/* Все Zero Block кнопки корректно переносят длинный текст на 2 строки (включая Hero CTA на >=1200px и правки из WP Admin) */
#allrecords .tn-elem[data-elem-type="button"] .tn-atom {
    white-space: normal !important;
    padding: 0 18px;
}

/* Предотвращаем разрыв последних цифр телефонов в шапке на 960px */
#rec1802837991 a[href^="tel:"],
#rec1802837991 a[href*="wa.me"],
#rec1802838021 a[href^="tel:"],
#rec1802838021 a[href*="wa.me"] {
    white-space: nowrap;
}

/* Липкая шапка #rec1802838021 не создаёт пустой зазор под Hero; парящая тень только на плашке */
#rec1802838021 .robonet-artboard-frame { height: 0 !important; overflow: visible; }
#rec1802838021 .t396__artboard {
    background-color: transparent !important;
    transition: transform .22s ease, opacity .22s ease;
}
#rec1802838021 .tn-elem[data-elem-type="shape"] .tn-atom {
    box-shadow: 0 8px 26px rgb(10 77 164 / 14%);
}

/* Оба слайдера (#rec1802838111 и #rec1802838191): перебиваем ID-селектор overflow:visible из imported.css */
#allrecords .zero-slider-wrapper {
    overflow: hidden !important;
}
#allrecords .zero-slider-wrapper > .tn-molecule {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    cursor: grab;
}
#allrecords .zero-slider-wrapper > .tn-molecule.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}
#allrecords .zero-slider-wrapper > .tn-molecule::-webkit-scrollbar { display: none; }
#allrecords .zero-slider-wrapper .zero-card {
    scroll-snap-align: start;
    flex: 0 0 auto !important;
}
.robonet-content .zero-button-prev,
.robonet-content .zero-button-next {
    cursor: pointer;
    visibility: visible;
    transition: transform .15s ease, opacity .15s ease;
}
.robonet-content .zero-button-prev:hover,
.robonet-content .zero-button-next:hover {
    transform: scale(.95);
}
.robonet-slider-dots {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.robonet-slider-dot {
    background: #d5d5d5;
    border: 0;
    border-radius: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, width .2s ease;
}
.robonet-slider-dot[aria-current="true"] {
    background: #0a4da4;
    width: 18px;
}

/* На <=640px оставляем место внизу страницы и поднимаем cookie-баннер выше фиксированной кнопки «Позвонить» (#rec1802838351) */
@media screen and (max-width: 640px) {
    .robonet-page { padding-bottom: 64px; }
    #rec1802838361 .t887 { bottom: 68px !important; }
}

.robonet-dialog {
    position: fixed;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    width: min(94vw, 560px);
    max-height: 88vh;
    max-height: 88dvh;
    color: #17191c;
    background: #fff;
    box-shadow: 0 12px 64px rgb(0 0 0 / 22%);
}
.robonet-dialog::backdrop { background: rgb(0 0 0 / 62%); }
.robonet-dialog-card { position: relative; padding: clamp(24px, 6vw, 46px); }
.robonet-dialog-card h2 { margin: 0 34px 6px 0; font-size: clamp(26px, 6vw, 36px); line-height: 1.15; }
.robonet-dialog-card > p { margin: 0 0 22px; }
.robonet-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 30px;
    color: #232323;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.robonet-dialog form, .robonet-dialog label { display: grid; gap: 9px; }
.robonet-dialog form { gap: 15px; }
.robonet-dialog label { font-size: 15px; }
.robonet-dialog input[type="tel"], .robonet-dialog select {
    width: 100%;
    min-height: 45px;
    padding: 8px 11px;
    border: 1px solid #80909b;
    border-radius: 6px;
    background: #fff;
    color: #15191b;
}
.robonet-dialog .robonet-consent { grid-template-columns: auto 1fr; align-items: start; font-size: 14px; }
.robonet-dialog .robonet-consent input { margin-top: 3px; }
#allrecords .robonet-consent a,
.robonet-consent a { color: #0053a6 !important; text-decoration: underline !important; }
.robonet-submit {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: #006fd6;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.robonet-submit:disabled { opacity: .7; cursor: wait; }
.robonet-form-result { margin: 0; font-size: 15px; }
.robonet-form-result:empty { display: none; }
.robonet-form-result[data-error] { color: #a71c22; }
.robonet-form-hotline {
    margin: 18px 0 0;
    font-size: 14px;
    color: #4b5563;
    text-align: center;
}
#allrecords .robonet-form-hotline a,
.robonet-form-hotline a {
    color: #0053a6 !important;
    font-weight: 600;
    text-decoration: underline !important;
    white-space: nowrap;
}
.robonet-form-trap, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.robonet-skip:focus { top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; padding: 10px; background: #fff; clip-path: none; }
.robonet-content :focus-visible, .robonet-dialog :focus-visible { outline: 2px solid #075bb3; outline-offset: 3px; }
.robonet-wordpress-page { max-width: 850px; margin: 0 auto; padding: 42px 22px; }

/* Локальная карточка-заглушка карты (без сетевых запросов при загрузке страницы) */
.robonet-map-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 240px;
    padding: 24px;
    border: 1px solid #d5e4ef;
    border-radius: 20px;
    background: linear-gradient(145deg, #eef6fc 0%, #e1effa 100%);
    color: #142230;
    text-align: center;
    font-family: Arial, Arial, sans-serif;
}
.robonet-map-pin {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #0a4da4;
    box-shadow: 0 4px 14px rgb(10 77 164 / 14%);
}
.robonet-map-address {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #142230;
}
.robonet-map-note {
    margin: 0;
    font-size: 14px;
    color: #4f6275;
}
#allrecords .robonet-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #0a4da4;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .15s ease;
}
#allrecords .robonet-map-link:hover {
    background: #073a7d;
}

/* Адаптив длинных рекламных UTM-заголовков H1 (до 61 символа), чтобы не наезжали на подзаголовок Hero */
@media screen and (max-width: 1199px) {
    #rec1802837991 h1[data-robonet-utm-applied] { font-size: 32px !important; line-height: 1.12 !important; }
}
@media screen and (max-width: 959px) {
    #rec1802837991 h1[data-robonet-utm-applied] { font-size: 28px !important; line-height: 1.12 !important; }
}
@media screen and (max-width: 639px) {
    #rec1802837991 h1[data-robonet-utm-applied] { font-size: 24px !important; line-height: 1.12 !important; }
}
@media screen and (max-width: 479px) {
    #rec1802837991 h1[data-robonet-utm-applied] { font-size: 21px !important; line-height: 1.08 !important; }
}

/* Исправляем вылет заголовка #rec1802838231 (left:30 + width:461 = 491px) на ширине 480px */
@media screen and (max-width: 639px) and (min-width: 480px) {
    #rec1802838231 .tn-elem[data-elem-id="1752507733069"] { width: 420px !important; }
}

@media print {
    #rec1802838021, #rec1802838351, #rec1802838361, .robonet-dialog, .robonet-skip { display: none !important; }
    .robonet-page { padding-bottom: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .robonet-content *, .robonet-content *::before, .robonet-content *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
