body.mastos-v3-page {
    background: #f3f4ee;
}

body.mastos-v3-page #wrapper {
    background: #f3f4ee;
}

body.mastos-v3-page .sub-page-banner,
body.mastos-v3-page .sub-page-content {
    display: none;
}

.mastos-v3-page .navbar-default .navbar-nav > li > a {
    font-size: 14px;
    letter-spacing: 0.2px;
    text-transform: none !important;
}

.mastos-v3-hero {
    position: relative;
    min-height: 380px;
    padding: 138px 0 108px;
    background:
        linear-gradient(90deg, rgba(46, 62, 48, 0.92) 0%, rgba(104, 120, 104, 0.82) 100%),
        url('../images/slider/slide1.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.mastos-v3-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.09));
}

.mastos-v3-hero__inner {
    position: relative;
    z-index: 2;
}

.mastos-v3-hero__content {
    max-width: 560px;
    color: #fff;
}

.mastos-v3-hero h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
    text-transform: none !important;
    letter-spacing: -0.2px;
}

.mastos-v3-hero p {
    margin: 0 0 20px;
    max-width: 500px;
    font-size: 17px;
    line-height: 1.68;
    color: rgba(255,255,255,0.95);
}

.mastos-v3-hero__actions,
.mastos-v3-related-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mastos-v3-btn {
    min-width: 178px;
    padding: 12px 18px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mastos-v3-btn--primary {
    background: #8bc53f !important;
    border: 1px solid #8bc53f !important;
    color: #fff !important;
}

.mastos-v3-btn--primary:hover,
.mastos-v3-btn--primary:focus {
    background: #78b032 !important;
    border-color: #78b032 !important;
}

.mastos-v3-btn--outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.58) !important;
    color: #fff !important;
}

.mastos-v3-btn--outline:hover,
.mastos-v3-btn--outline:focus {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.82) !important;
}

.mastos-v3-btn--light {
    background: #f1f5e7 !important;
    border: 1px solid #9fc16d !important;
    color: #5f7d34 !important;
}

.mastos-v3-btn--light:hover,
.mastos-v3-btn--light:focus {
    background: #ebf1de !important;
    border-color: #8eb55b !important;
    color: #4f6e26 !important;
}

.mastos-v3-shell {
    position: relative;
    margin-top: -40px;
    padding-bottom: 56px;
    z-index: 3;
}

.mastos-v3-panel {
    background: #f7f7f3;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mastos-v3-panel__row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.mastos-v3-main,
.mastos-v3-side {
    padding: 18px;
}

.mastos-v3-main {
    background: #fbfbf8;
}

.mastos-v3-side {
    background: #ebeee0;
    display: flex;
    flex-direction: column;
}

.mastos-v3-side-image {
    border: 1px solid #dde1d3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.72);
    min-height: 220px;
}

.mastos-v3-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mastos-v3-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 8px;
}

.mastos-v3-stat-card,
.mastos-v3-intro-image,
.mastos-v3-card {
    border: 1px solid #dde1d3;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
}

.mastos-v3-stat-card {
    padding: 18px 20px;
}

.mastos-v3-stat-card__number {
    margin-bottom: 12px;
    color: #89c236;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    text-transform: none !important;
}

.mastos-v3-stat-card p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.65;
    color: #60635d;
}

.mastos-v3-stat-card p:last-child {
    margin-bottom: 0;
}

.mastos-v3-intro-image {
    min-height: 210px;
    overflow: hidden;
}

.mastos-v3-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mastos-v3-section {
    padding: 12px 0 14px;
    border-bottom: 1px solid #e1e4d8;
}

.mastos-v3-section--last {
    border-bottom: 0;
    padding-bottom: 6px;
}

.mastos-v3-section h2,
.mastos-v3-card h3,
.mastos-v3-related-box h3 {
    margin: 0 0 16px;
    font-size: 21px;
    line-height: 1.24;
    font-weight: 700;
    color: #173558;
    text-transform: none !important;
}

.mastos-v3-section p,
.mastos-v3-card p,
.mastos-v3-card li,
.mastos-v3-related-box p,
.mastos-v3-related-box a {
    font-size: 15px;
    line-height: 1.8;
    color: #4f514e;
}

.mastos-v3-card {
    padding: 18px 20px;
    margin-bottom: 18px;
}

.mastos-v3-card:last-child {
    margin-bottom: 0;
}

.mastos-v3-card ul {
    margin: 0;
    padding-left: 20px;
}

.mastos-v3-card li {
    margin-bottom: 8px;
}

.mastos-v3-card li:last-child {
    margin-bottom: 0;
}

.mastos-v3-related-box {
    margin-top: 26px;
    margin-bottom: 26px;
    padding: 28px 34px 30px;
    background: #f7f7f3;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.mastos-v3-related-links {
    margin-bottom: 18px;
}

.mastos-v3-related-links a {
    color: #84bf35;
    text-decoration: none;
}

.mastos-v3-related-links a:hover,
.mastos-v3-related-links a:focus {
    color: #6ea128;
}

@media (max-width: 991px) {
    .mastos-v3-hero {
        min-height: 270px;
        padding: 58px 0 76px;
    }

    .mastos-v3-shell {
        margin-top: -24px;
    }

    .mastos-v3-panel__row {
        display: block;
    }

    .mastos-v3-intro-grid {
        grid-template-columns: 1fr;
    }

    .mastos-v3-side-image {
        min-height: 220px;
    }

    .mastos-v3-intro-image {
        min-height: 220px;
    }

    .mastos-v3-side {
        border-top: 1px solid #dde1d3;
    }
}

@media (max-width: 767px) {
    .mastos-v3-page .navbar-default .navbar-nav > li > a {
        font-size: 13px;
    }

    .mastos-v3-hero {
        min-height: auto;
        padding: 46px 0 64px;
    }

    .mastos-v3-hero__content {
        max-width: 100%;
    }

    .mastos-v3-hero h1 {
        font-size: 29px;
    }

    .mastos-v3-hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .mastos-v3-hero__actions,
    .mastos-v3-related-actions {
        gap: 10px;
    }

    .mastos-v3-btn {
        width: auto;
        min-width: 0;
        flex: 1 1 calc(50% - 5px);
    }

    .mastos-v3-main,
    .mastos-v3-side,
    .mastos-v3-related-box {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mastos-v3-section h2,
    .mastos-v3-card h3,
    .mastos-v3-related-box h3 {
        font-size: 18px;
    }

    .mastos-v3-stat-card__number {
        font-size: 30px;
    }

    .mastos-v3-stat-card p,
    .mastos-v3-section p,
    .mastos-v3-card p,
    .mastos-v3-card li,
    .mastos-v3-related-box p,
    .mastos-v3-related-box a {
        font-size: 14px;
        line-height: 1.7;
    }

    .mastos-v3-related-box {
        margin-top: 20px;
        margin-bottom: 22px;
        padding-top: 22px;
        padding-bottom: 24px;
    }
}


@media (min-width: 992px) {
  .mastos-v3-panel__row {align-items: stretch;}
  .mastos-v3-main, .mastos-v3-side {display:flex; flex-direction:column;}
  .mastos-v3-side {padding-top: 20px;}
}

@media (max-width: 991px) {
  .mastos-v3-hero {min-height:auto; padding: 118px 0 74px;}
  .mastos-v3-hero h1 {font-size: 36px;}
  .mastos-v3-side-image {min-height: 180px;}
}

@media (max-width: 767px) {
  .mastos-v3-hero {padding: 126px 0 62px;}
  .mastos-v3-hero h1 {font-size: 32px;}
  .mastos-v3-hero__actions {flex-direction: row;}
}
