/**
 * Fixes for Bitrix lp template when used as static (non-slider) pages in Laravel.
 * Original CSS assumes full-viewport absolute slides with exactly 3 service columns.
 */
html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body.agency-static {
    overflow: auto !important;
}

.agency-static .wrap,
.agency-static .content,
.agency-static main,
.agency-static .main_slider {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.agency-static .slide {
    position: relative !important;
    height: auto !important;
    min-height: calc(100vh - 120px);
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    padding-bottom: 80px;
}

.agency-static .slide .container {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 120px;
    padding-bottom: 40px;
}

.agency-static .footer {
    position: relative !important;
    display: block !important;
    height: auto !important;
    padding: 28px 0;
    margin-top: 0;
}

.agency-static .main_slider_navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.agency-static .main_slider_navigation .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* Service cards: 3-column flex that wraps cleanly */
.agency-static .services_cols {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    width: 100%;
    align-items: flex-start;
}

.agency-static .services_col {
    width: calc(33.333% - 28px);
    max-width: none;
    box-sizing: border-box;
    min-width: 240px;
}

.agency-static .services_h3 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.agency-static .services_h3 a {
    border-bottom: none;
    text-decoration: none;
    color: inherit;
}

.agency-static .services_h3 a:hover {
    color: #48ab41;
}

.agency-static .services_ul {
    margin-top: 16px;
}

.agency-static .services_ul li {
    font-size: 15px;
    line-height: 1.55;
    padding-left: 28px;
}

.agency-static .agency-hero {
    max-width: 720px;
    margin-bottom: 32px;
}

.agency-static .agency-hero h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #ececec;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.agency-static .agency-hero p {
    font-size: 18px;
    line-height: 1.55;
    color: #c6c6c6;
    font-weight: 300;
    margin: 0 0 16px;
}

.agency-static .agency-hero .services_ul {
    margin-top: 20px;
}

.agency-static .main_slider h2 {
    margin-top: 24px;
    opacity: 1;
    font-size: 36px;
    line-height: 1.2;
}

.agency-static .textpage {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.agency-static .textpage__content {
    flex: 1 1 560px;
    max-width: 720px;
}

.agency-static .textpage__content h1 {
    font-size: 36px;
    line-height: 1.25;
    color: #ececec;
    margin: 0 0 20px;
}

.agency-static .textpage__content p,
.agency-static .textpage__content li {
    color: #c6c6c6;
    font-weight: 300;
    line-height: 1.6;
}

.agency-static .textpage__aside {
    flex: 0 0 220px;
}

.agency-static .textpage__aside .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid #48ab41;
    color: #ececec;
    text-decoration: none;
    border-radius: 4px;
}

.agency-static .textpage__aside .btn:hover {
    background: #48ab41;
    color: #111;
}

.agency-static .new-clients {
    /* keep original lp grid from style.css */
}

.agency-static .new-client__title {
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(198, 198, 198, 0.25);
    border-radius: 8px;
    color: #c6c6c6;
}

@media (max-width: 1199.98px) {
    .agency-static .services_col {
        width: calc(50% - 20px);
    }
}

@media (max-width: 767.98px) {
    .agency-static .slide .container {
        padding-top: 90px;
    }
    .agency-static .agency-hero h1 {
        font-size: 28px;
    }
    .agency-static .services_col {
        width: 100%;
    }
}
