/* Page builder (page-templates/page-builder.php). Mobile first: 390 design, desktop 1440 design at >=1200. */
.pb-page {
    --pb-navy: #0a4766;
    --pb-blue: #007cb0;
    --pb-link: #0084b6;
    --pb-green: #a5de00;
    --pb-chevron: #8dc63f;
    --pb-muted: #547e94;
    --pb-light: #f0f7fa;
    --pb-line: #cedae0;
    --pb-dark: #093549;
    --pb-dark-btn: #074964;
    --pb-card: #e5ecf0;
    --pb-arrow: #18aaf2;
    --pb-gutter: 16px;
    --pb-font: "ProximaNova-Regular", Arial, sans-serif;
    --pb-font-bold: "ProximaNova-Bold", Arial, sans-serif;
    --pb-font-alt: "Open Sans", Arial, sans-serif;
    color: var(--pb-navy);
    font-family: var(--pb-font);
    overflow-x: clip;
}

.pb-page *,
.pb-page *::before,
.pb-page *::after {
    box-sizing: border-box;
}

/* :where() keeps the reset at class specificity: above theme element rules, below component classes */
.pb-page :where(h1, h2, h3, p, ul, li, figure) {
    margin: 0;
    padding: 0;
}

.pb-page :where(p) {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-align: inherit;
}

.pb-page :where(ul) {
    list-style: none;
}

.pb-page :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
}

.pb-page :where(a) {
    text-decoration: none;
}

.pb-container {
    width: 100%;
    max-width: calc(1260px + var(--pb-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--pb-gutter);
}

.pb-dark {
    background: var(--pb-dark);
    color: #fff;
}

/* Shared type */
.pb-eyebrow {
    color: var(--pb-blue);
    font-size: 13px;
    line-height: 20px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pb-h2 {
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
}

.pb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

/* Buttons */
.pb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    font-family: var(--pb-font-bold);
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    transition: background-color .2s, color .2s;
}

.pb-btn--primary {
    background: var(--pb-green);
    color: var(--pb-navy);
}

.pb-btn--primary:hover,
.pb-btn--primary:focus-visible {
    background: #95c900;
    color: var(--pb-navy);
}

.pb-btn--white {
    background: #fff;
    color: var(--pb-navy);
}

.pb-btn--white:hover,
.pb-btn--white:focus-visible {
    background: var(--pb-light);
    color: var(--pb-navy);
}

.pb-btn--dark {
    background: var(--pb-dark-btn);
    color: #fff;
}

.pb-btn--dark:hover,
.pb-btn--dark:focus-visible {
    background: #0b5a7b;
    color: #fff;
}

/* Theme sets a:visited { color: inherit } */
.pb-btn--primary:visited,
.pb-btn--white:visited,
.pb-dir__link:visited,
.pb-tag:visited {
    color: var(--pb-navy);
}

.pb-btn--dark:visited {
    color: #fff;
}

.pb-article__link:visited {
    color: var(--pb-link);
}

/* Slider arrows */
.pb-nav {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.pb-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pb-light);
    color: var(--pb-arrow);
    cursor: pointer;
    transition: background-color .2s;
}

.pb-nav__btn:hover,
.pb-nav__btn:focus-visible {
    background: #dcecf4;
}

.pb-nav__btn svg {
    width: 10px;
    height: 19px;
}

/* Horizontal scroll-snap slider */
.pb-slider__track {
    display: flex;
    gap: 8px;
    margin-right: calc(var(--pb-gutter) * -1);
    padding-right: var(--pb-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pb-slider__track::-webkit-scrollbar {
    display: none;
}

.pb-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* ---------------------------------------------------------------- Hero */
.pb-hero {
    margin-bottom: 80px;
}

.pb-hero .pb-container {
    padding: 0;
}

.pb-hero__media {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 225px 0 16px;
    border-radius: 0 0 60px 0;
    overflow: hidden;
}

.pb-hero__picture,
.pb-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pb-hero__img {
    object-fit: cover;
    object-position: 30% 50%;
    max-width: none !important;
}

.pb-hero__card {
    position: relative;
    margin: 0 var(--pb-gutter);
    padding: 30px 24px 32px;
    border-radius: 0 0 50px 0;
    background: var(--pb-card);
    text-align: center;
}

.pb-hero .pb-eyebrow {
    font-size: 13px;
}

.pb-hero__title {
    margin-top: 10px;
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 56px;
    line-height: 49px;
}

.pb-hero__subtitle {
    margin-top: 16px;
    font-size: 20px;
    line-height: 23px;
}

.pb-hero__buttons {
    flex-direction: column;
    margin-top: 42px;
}

.pb-hero__buttons .pb-btn {
    width: 100%;
}

.pb-hero__buttons .pb-btn--primary {
    order: -1;
}

.pb-hero__socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.pb-hero__socials a {
    display: block;
    transition: opacity .2s;
}

.pb-hero__socials a:hover {
    opacity: .8;
}

.pb-hero__socials img {
    width: 40px;
    height: 40px;
}

/* --------------------------------------------------------------- About */
.pb-about {
    padding: 78px 0 84px;
    background: linear-gradient(180deg, #e8f3db 0, #edf2f7 750px, #edf2f7 100%);
}

.pb-about__title {
    margin-top: 6px;
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 26px;
    line-height: 37px;
}

.pb-about__text {
    font-size: 20px;
    line-height: 27px;
}

/* Mobile order: eyebrow, title, stats, text — the intro wrapper is flattened into the flex column */
.pb-about__grid {
    display: flex;
    flex-direction: column;
}

.pb-about__intro {
    display: contents;
}

.pb-about__intro .pb-eyebrow {
    order: 1;
}

.pb-about__title {
    order: 2;
}

.pb-stats {
    display: grid;
    gap: 10px;
    order: 3;
    margin-top: 30px;
}

.pb-about__text {
    order: 4;
    margin-top: 33px;
}

.pb-stat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 116px;
    padding: 24px 24px 20px 24px;
    border-radius: 8px;
    background: #fff;
}

.pb-stat__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-stat__value {
    font-family: var(--pb-font-bold);
    font-size: 32px;
    line-height: 36px;
}

.pb-stat__label {
    color: var(--pb-muted);
    font-family: var(--pb-font-bold);
    font-size: 15px;
    line-height: 21px;
}

.pb-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--pb-light);
}

.pb-stat__icon img {
    width: 32px;
    height: 32px;
}

.pb-awards {
    display: grid;
    gap: 10px;
    margin-top: 84px;
}

.pb-award {
    padding: 32px 24px 24px;
    border-radius: 8px;
    background: #fff;
}

.pb-award__logo {
    display: flex;
    align-items: center;
    height: 50px;
}

/* Raster logos are @2x: capped at 72px (50px on mobile) they render at the design size */
.pb-award__logo img {
    width: auto;
    max-height: 50px;
}

.pb-award__title {
    margin-top: 22px;
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
}

.pb-award__text {
    margin-top: 11px;
    font-size: 18px;
    line-height: 25px;
}

/* ---------------------------------------------------------- Directions */
.pb-dir {
    padding: 78px 0 40px;
}

.pb-dir__head {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 12px;
}

.pb-dir__title {
    font-family: var(--pb-font-alt);
    font-weight: 700;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
}

.pb-search {
    display: flex;
    height: 44px;
    border-radius: 6px;
    background: var(--pb-light);
    overflow: hidden;
}

.pb-search__field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.pb-search__icon {
    position: absolute;
    left: 17px;
    color: #7d9fb0;
    pointer-events: none;
}

.pb-search__input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 39px;
    border: 0;
    background: transparent;
    color: var(--pb-navy);
    font-family: var(--pb-font);
    font-size: 16px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.pb-search__input::placeholder {
    color: #7d9fb0;
    opacity: 1;
}

.pb-search:focus-within {
    box-shadow: 0 0 0 2px #cfe6f1;
}

.pb-search__btn {
    flex: 0 0 120px;
    border: 0;
    background: var(--pb-green);
    color: var(--pb-navy);
    font-family: var(--pb-font-alt);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .2s;
}

.pb-search__btn:hover {
    background: #95c900;
}

.pb-dir__list {
    display: grid;
}

.pb-dir__item {
    position: relative;
    border-bottom: 1px solid var(--pb-line);
}

.pb-dir__list.is-collapsed:not(.is-expanded):not(.is-filtering) .is-extra-m {
    display: none;
}

.pb-dir__link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 71px;
    padding: 21px 8px 20px 4px;
    color: var(--pb-navy);
    font-family: var(--pb-font-alt);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    transition: background-color .2s;
}

a.pb-dir__link:hover,
a.pb-dir__link:focus-visible {
    color: var(--pb-navy);
}

.pb-dir__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.pb-dir__icon img {
    width: auto;
    max-width: 18px;
    max-height: 18px;
}

.pb-dir__name {
    flex: 1 1 auto;
}

.pb-dir__link .pb-chevron {
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--pb-chevron);
}

.pb-dir__more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 34px auto 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pb-link);
    font-family: var(--pb-font-alt);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.pb-dir__more .pb-chevron {
    color: var(--pb-chevron);
    transition: transform .2s;
}

.pb-dir__more[aria-expanded="true"] .pb-chevron {
    transform: rotate(180deg);
}

.pb-dir .pb-container {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------- Departments */
.pb-depts {
    padding: 40px 0 80px;
}

.pb-dept {
    width: calc(100% - 28px);
}

.pb-dept__inner {
    position: relative;
    display: block;
    aspect-ratio: 330 / 300;
    border-radius: 8px;
    overflow: hidden;
}

.pb-dept:first-child .pb-dept__inner {
    border-top-left-radius: 60px;
}

.pb-dept__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .4s;
}

a.pb-dept__inner:hover .pb-dept__img {
    transform: scale(1.03);
}

.pb-dept__address {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff;
    color: var(--pb-navy);
    font-size: 14px;
    line-height: 18px;
}

.pb-depts__text {
    margin-top: 32px;
    font-size: 20px;
    line-height: 27px;
}

/* ------------------------------------------------------------ Gallery */
.pb-gallery {
    padding: 80px 0 48px;
}

.pb-gallery .pb-h2 {
    margin-bottom: 40px;
}

.pb-gallery__main {
    position: relative;
    aspect-ratio: 358 / 198;
    border-radius: 10px;
    overflow: hidden;
    background: #0d2c3b;
}

.pb-gallery__poster,
.pb-gallery__main iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border: 0;
    object-fit: cover;
}

.pb-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform .2s;
}

.pb-gallery__play svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pb-gallery__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.pb-gallery__main.is-playing .pb-gallery__play,
.pb-gallery__main.is-playing .pb-gallery__poster {
    visibility: hidden;
}

.pb-gallery__side {
    position: relative;
    margin-top: 24px;
}

.pb-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-right: calc(var(--pb-gutter) * -1);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pb-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.pb-gallery__thumbs li {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

.pb-gallery__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 160 / 104;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #0d2c3b;
    overflow: hidden;
    cursor: pointer;
}

.pb-gallery__thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.pb-gallery__thumb.is-active {
    border-color: var(--pb-green);
}

.pb-gallery__arrow {
    display: none;
}

/* --------------------------------------------------------------- Team */
.pb-team {
    padding: 48px 0 80px;
}

.pb-team__title {
    margin-bottom: 40px;
    font-size: 24px;
    line-height: 32px;
}

/* The desktop line break does not fit the mobile measure */
@media (max-width: 767px) {
    .pb-team__title br {
        display: none;
    }
}

.pb-team__grid {
    display: grid;
    grid-template-columns: 175px 175px 358px 175px;
    grid-template-rows: 230px 220px;
    grid-template-areas:
        "a b c c"
        "d d c c";
    gap: 8px;
    margin-right: calc(var(--pb-gutter) * -1);
    padding-right: var(--pb-gutter);
    overflow-x: auto;
    scrollbar-width: none;
}

.pb-team__grid::-webkit-scrollbar {
    display: none;
}

.pb-team__item {
    border-radius: 8px;
    overflow: hidden;
}

.pb-team__item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.pb-team__item--1 { grid-area: a; }
.pb-team__item--5 { grid-area: b; }
.pb-team__item--3 { grid-area: d; }
.pb-team__item--2 { grid-area: c; }
.pb-team__item--4 { display: none; }

.pb-team__buttons {
    flex-direction: column;
    margin-top: 32px;
}

.pb-team__buttons .pb-btn {
    width: 100%;
}

/* ------------------------------------------------------------ Reviews */
.pb-reviews {
    padding: 0 0 80px;
}

.pb-reviews--divider .pb-container::before {
    content: "";
    display: block;
    height: 2px;
    margin-bottom: 80px;
    background: var(--pb-dark-btn);
}

.pb-reviews .pb-head .pb-nav,
.pb-media .pb-head .pb-nav {
    display: none;
}

.pb-review {
    display: flex;
    flex-direction: column;
    width: calc(100% - 8px);
    padding: 24px 24px 40px;
    border-radius: 8px;
    background: #fff;
    color: var(--pb-navy);
}

.pb-slide.pb-review:first-child {
    border-top-left-radius: 50px;
}

.pb-review__head {
    display: flex;
    gap: 16px;
}

.pb-review__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2b2b2b;
    color: #fff;
    font-family: var(--pb-font-bold);
    font-size: 20px;
}

.pb-review__author {
    font-family: var(--pb-font-bold);
    font-size: 16px;
    line-height: 22px;
}

.pb-review__date {
    display: block;
    margin-top: 4px;
    color: var(--pb-muted);
    font-size: 16px;
    line-height: 22px;
}

.pb-review__text {
    margin-top: 32px;
    font-size: 20px;
    line-height: 27px;
}

.pb-review__text p {
    margin: 0;
}

/* Cards in the slider stretch to the tallest one, so long reviews are clamped */
.pb-review__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.pb-review__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    margin-top: 32px;
}

.pb-review__tags-label {
    width: 100%;
    color: #3b6c85;
    font-size: 16px;
    line-height: 22px;
}

.pb-tag {
    padding: 2px 4px;
    border-radius: 2px;
    background: var(--pb-light);
    color: var(--pb-navy);
    font-size: 16px;
    line-height: 20px;
    transition: background-color .2s;
}

a.pb-tag:hover {
    background: #e0eef4;
    color: var(--pb-navy);
}

.pb-reviews__nav-mobile,
.pb-media__nav-mobile {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pb-reviews__more {
    margin-top: 40px;
}

.pb-reviews__more .pb-btn {
    width: 100%;
}

/* -------------------------------------------------------------- Media */
.pb-media {
    padding: 40px 0 80px;
}

.pb-article {
    display: flex;
    flex-direction: column;
    width: calc(100% - 8px);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pb-slide.pb-article:first-child {
    border-top-left-radius: 50px;
}

.pb-article__img {
    width: 100%;
    aspect-ratio: 513 / 256;
    height: auto !important;
    object-fit: cover;
}

.pb-article__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 24px 24px;
    color: var(--pb-navy);
}

.pb-article__title {
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
}

.pb-article__text {
    margin-top: 12px;
    font-size: 18px;
    line-height: 25px;
}

.pb-article__link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--pb-link);
    font-family: var(--pb-font-bold);
    font-size: 20px;
    line-height: 24px;
}

.pb-article__link:hover {
    color: #006b94;
}

/* ------------------------------------------------------------- Signup */
.pb-signup {
    padding: 48px 0 48px;
    text-align: center;
}

.pb-signup__title {
    margin-bottom: 24px;
    font-family: var(--pb-font-bold);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
}

/* Reuse the theme CF7 markup, without the .p-signup background and overlay */
.pb-signup .p-signup {
    padding: 0;
    background: none;
}

.pb-signup .p-signup::before {
    content: none;
}

.pb-signup .wpcf7-form {
    font-size: 14px;
}

.pb-signup .wpcf7-form .p-form-control {
    height: 52px;
    font-size: 15px;
}

.pb-signup .wpcf7-form .p-btn {
    min-height: 52px;
}

.pb-signup .wpcf7-form .p-form-text.p-mb-pseudo {
    margin-top: 23px;
    margin-bottom: 28px;
}

.pb-signup .wpcf7-form .p-form-text.p-small {
    margin-bottom: 0;
}

/* ===================================================== Tablet >= 768 */
@media (min-width: 768px) {
    .pb-page {
        --pb-gutter: 32px;
    }

    .pb-h2,
    .pb-team__title,
    .pb-signup__title {
        font-size: 32px;
        line-height: 44px;
    }

    .pb-hero .pb-container {
        padding: 0 var(--pb-gutter);
    }

    .pb-hero__media {
        display: block;
        min-height: 600px;
        padding: 40px;
    }

    .pb-hero__picture,
    .pb-hero__img {
        inset: 0;
        height: 100%;
    }

    .pb-hero .pb-eyebrow {
        font-size: 14px;
    }

    .pb-hero__card {
        width: 505px;
        max-width: 100%;
        margin: 0;
        padding: 40px 40px 40px;
        border-radius: 50px 0 0 0;
        text-align: left;
    }

    .pb-hero__buttons {
        flex-direction: row;
    }

    .pb-hero__buttons .pb-btn {
        width: auto;
    }

    .pb-hero__buttons .pb-btn--primary {
        order: 0;
    }

    .pb-hero__socials {
        justify-content: flex-start;
        gap: 16px;
    }

    .pb-hero__socials img {
        width: 28px;
        height: 28px;
    }

    .pb-stats,
    .pb-awards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pb-dir__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pb-dir__title {
        text-align: left;
    }

    .pb-search {
        flex: 0 1 532px;
    }

    .pb-dir__list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }

    .pb-dept {
        width: calc((100% - 20px) / 2);
    }

    .pb-slider__track {
        gap: 20px;
    }

    .pb-team__grid {
        grid-template-columns: 320fr 550fr 350fr;
        grid-template-rows: 300px 100px 260px;
        grid-template-areas:
            "a c c"
            "b c c"
            "b d e";
        gap: 20px;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }

    .pb-team__item--1 { grid-area: a; }
    .pb-team__item--2 { grid-area: b; }
    .pb-team__item--3 { grid-area: c; }
    .pb-team__item--4 { grid-area: d; display: block; }
    .pb-team__item--5 { grid-area: e; }

    .pb-team__buttons,
    .pb-reviews__more {
        flex-direction: row;
        justify-content: center;
    }

    .pb-team__buttons .pb-btn,
    .pb-reviews__more .pb-btn {
        width: auto;
    }

    .pb-reviews .pb-head .pb-nav,
    .pb-media .pb-head .pb-nav {
        display: flex;
    }

    .pb-reviews__nav-mobile,
    .pb-media__nav-mobile {
        display: none;
    }

    .pb-review,
    .pb-article {
        width: calc((100% - 20px) / 2);
    }
}

/* ===================================================== Desktop >= 1200 */
@media (min-width: 1200px) {
    .pb-page {
        --pb-gutter: 16px;
    }

    .pb-head {
        margin-bottom: 40px;
    }

    .pb-btn {
        min-height: 44px;
        padding: 0 25px;
    }

    /* Hero: 1260 x 655, card 505 x 575 inset 40 */
    .pb-hero {
        margin-top: 30px;
        margin-bottom: 100px;
    }

    .pb-hero .pb-container {
        padding: 0 var(--pb-gutter);
    }

    .pb-hero__media {
        height: 655px;
        min-height: 0;
        padding: 40px;
    }

    .pb-hero__card {
        height: 575px;
        padding: 38px 40px 40px;
        display: flex;
        flex-direction: column;
    }

    .pb-hero__title {
        margin-top: 16px;
        font-size: 72px;
        line-height: 70px;
    }

    .pb-hero__subtitle {
        margin-top: 22px;
        font-size: 24px;
        line-height: 28px;
    }

    .pb-hero__buttons {
        margin-top: 40px;
    }

    .pb-hero__buttons .pb-btn {
        min-width: 206px;
    }

    .pb-hero__socials {
        gap: 12px;
        margin-top: auto;
    }

    .pb-hero__socials img {
        width: 32px;
        height: 32px;
    }

    /* About: stats grid 726 wide on the right, intro on the left */
    .pb-about {
        padding: 78px 0 80px;
    }

    .pb-about__grid {
        display: grid;
        grid-template-columns: 1fr 727px;
        grid-template-rows: auto 1fr;
        column-gap: 40px;
        row-gap: 0;
    }

    .pb-about__intro {
        display: flex;
        flex-direction: column;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .pb-about__title {
        margin-top: 14px;
        font-size: 40px;
        line-height: 43px;
    }

    .pb-about__text {
        margin-top: auto;
        max-width: 470px;
    }

    .pb-stats {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 160px;
        grid-template-columns: repeat(2, 353px);
        gap: 20px 21px;
    }

    .pb-stat {
        gap: 8px;
        min-height: 131px;
        padding: 24px 24px 24px 24px;
    }

    .pb-stat__body {
        gap: 7px;
        padding-top: 9px;
    }

    .pb-stat__value {
        font-size: 36px;
        line-height: 40px;
    }

    .pb-stat__label {
        line-height: 21px;
    }

    .pb-stat__icon {
        margin-top: 0;
    }

    .pb-eyebrow {
        font-size: 14px;
    }

    .pb-stat:nth-child(-n+2) {
        min-height: 148px;
    }

    .pb-stat__icon {
        width: 76px;
        height: 76px;
    }

    .pb-stat__icon img {
        width: 32px;
        height: 32px;
    }

    .pb-awards {
        grid-template-columns: repeat(3, 1fr);
        gap: 21px;
        margin-top: 160px;
    }

    .pb-award {
        min-height: 297px;
        padding-top: 40px;
    }

    .pb-award__logo {
        height: 56px;
    }

    .pb-award__logo img {
        max-height: 72px;
    }

    .pb-award__title {
        margin-top: 54px;
        font-size: 24px;
        line-height: 30px;
    }

    .pb-award__text {
        margin-top: 12px;
        font-size: 20px;
        line-height: 27px;
    }

    /* Directions: 3 columns of 393 */
    .pb-dir {
        padding: 180px 0 0;
    }

    .pb-dir__head {
        margin-bottom: 21px;
    }

    .pb-dir__title {
        font-size: 32px;
        line-height: 44px;
    }

    .pb-search {
        flex-basis: 532px;
        height: 45px;
    }

    .pb-search__input {
        font-size: 18px;
    }

    .pb-search__btn {
        flex-basis: 193px;
    }

    .pb-dir__list {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 39px;
    }

    .pb-dir__list.is-collapsed:not(.is-expanded):not(.is-filtering) .is-extra-m {
        display: block;
    }

    .pb-dir__list.is-collapsed:not(.is-expanded):not(.is-filtering) .is-extra {
        display: none;
    }

    .pb-dir__link {
        align-items: flex-start;
        gap: 14px;
        min-height: 71px;
        padding: 24px 6px 17px 0;
    }

    .pb-dir__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        margin-top: -4px;
    }

    .pb-dir__icon img {
        max-width: 32px;
        max-height: 32px;
    }

    .pb-dir__link .pb-chevron {
        margin-top: 5px;
    }

    a.pb-dir__link::before {
        content: "";
        position: absolute;
        inset: -1px -20px 0;
        z-index: -1;
        border-radius: 4px;
        background: var(--pb-light);
        opacity: 0;
        transition: opacity .2s;
    }

    .pb-dir__item {
        z-index: 0;
    }

    a.pb-dir__link:hover::before,
    a.pb-dir__link:focus-visible::before {
        opacity: 1;
    }

    .pb-dir__more {
        margin: 40px 0 0;
        align-self: flex-start;
    }

    /* Departments slider: cards 513 x 422 */
    .pb-depts {
        padding: 182px 0 98px;
    }

    .pb-depts .pb-head {
        margin-bottom: 38px;
    }

    .pb-dept {
        width: 513px;
    }

    .pb-dept__inner {
        aspect-ratio: auto;
        height: 422px;
    }

    .pb-dept__address {
        bottom: 16px;
        font-size: 16px;
        line-height: 20px;
    }

    .pb-depts__text {
        max-width: 690px;
        margin-top: 42px;
    }

    /* Gallery: main 1080 x 600, thumbs 160 x 104 */
    .pb-gallery {
        padding: 80px 0 0;
    }

    .pb-gallery .pb-h2 {
        margin-bottom: 39px;
    }

    .pb-gallery__grid {
        display: grid;
        grid-template-columns: 1080px 1fr;
        gap: 20px;
    }

    .pb-gallery__main {
        aspect-ratio: auto;
        height: 600px;
    }

    .pb-gallery__play {
        width: 120px;
        height: 88px;
    }

    .pb-gallery__side {
        margin-top: 0;
        height: 600px;
    }

    /* The scrollbar sits 12px outside the 160px column, as in the design */
    .pb-gallery__thumbs {
        display: block;
        width: calc(100% + 19px);
        height: 100%;
        margin: 0;
        padding-right: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .pb-gallery__thumbs li {
        width: 160px;
    }

    /* Chrome ignores ::-webkit-scrollbar once scrollbar-width is set, so keep it for other engines only */
    @supports not selector(::-webkit-scrollbar) {
        .pb-gallery__thumbs {
            scrollbar-width: thin;
            scrollbar-color: #93a6af #274e5f;
        }
    }

    .pb-gallery__thumbs::-webkit-scrollbar {
        display: block;
        width: 7px;
    }

    .pb-gallery__thumbs::-webkit-scrollbar-track {
        border-radius: 4px;
        background: #274e5f;
    }

    .pb-gallery__thumbs::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: #93a6af;
    }

    .pb-gallery__thumbs li + li {
        margin-top: 20px;
    }

    .pb-gallery__arrow {
        position: absolute;
        left: 64px;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(240, 247, 250, .25);
        color: #fff;
        opacity: 0;
        cursor: pointer;
        transition: opacity .2s;
    }

    .pb-gallery__arrow--up {
        top: -41px;
    }

    .pb-gallery__arrow--up .pb-chevron {
        transform: rotate(180deg);
    }

    .pb-gallery__arrow--down {
        bottom: -41px;
    }

    .pb-gallery__side:hover .pb-gallery__arrow,
    .pb-gallery__arrow:focus-visible {
        opacity: 1;
    }

    /* Team mosaic: 320 | 920, total 700 */
    .pb-team {
        padding: 80px 0 78px;
    }

    .pb-team__title {
        margin-bottom: 40px;
        line-height: 43px;
        text-align: center;
    }

    .pb-team__grid {
        grid-template-columns: 320px 550px 350px;
        grid-template-rows: 300px 100px 260px;
        gap: 20px;
    }

    .pb-team__item--5 {
        border-bottom-right-radius: 60px;
    }

    .pb-team__buttons {
        margin-top: 40px;
    }

    .pb-team__buttons .pb-btn {
        min-width: 188px;
        padding: 0 17px;
    }

    /* Reviews: 3 cards of 407 */
    .pb-reviews {
        padding: 0 0 104px;
    }

    .pb-reviews--divider .pb-container::before {
        margin-bottom: 79px;
    }

    .pb-reviews .pb-head {
        margin-bottom: 39px;
    }

    .pb-review {
        width: calc((100% - 40px) / 3);
        padding: 26px 24px 23px;
    }

    .pb-review__text {
        margin-top: 34px;
    }

    .pb-review__tags {
        margin-top: 33px;
    }

    .pb-review:last-child {
        border-bottom-right-radius: 50px;
    }

    .pb-reviews__more {
        margin-top: 40px;
    }

    .pb-reviews__more .pb-btn {
        min-width: 200px;
    }

    /* Media: cards 513 x 513 */
    .pb-media {
        padding: 55px 0 0;
    }

    .pb-media .pb-slider__track {
        gap: 21px;
    }

    .pb-article {
        width: 513px;
        min-height: 513px;
    }

    .pb-article__img {
        aspect-ratio: auto;
        height: 256px !important;
    }

    .pb-article__body {
        padding: 24px 24px 25px;
    }

    .pb-article__title {
        font-size: 24px;
        line-height: 33px;
    }

    .pb-article__text {
        max-width: 460px;
        margin-top: 13px;
        font-size: 20px;
        line-height: 27px;
    }

    .pb-article__link {
        padding-top: 22px;
    }

    /* Signup: form 1055 wide */
    .pb-signup {
        padding: 126px 0 41px;
    }

    .pb-signup__title {
        margin-bottom: 32px;
        font-size: 41px;
        line-height: 48px;
    }

    .pb-signup__form {
        max-width: 1055px;
        margin: 0 auto;
    }
}

/* ===================================================== Mobile < 768 (390 design) */
@media (max-width: 767px) {
    .pb-h2,
    .pb-team__title {
        font-size: 26px;
        line-height: 37px;
    }

    .pb-dir__link {
        padding-top: 25px;
        padding-bottom: 16px;
    }

    .pb-gallery {
        padding-top: 77px;
    }

    .pb-gallery .pb-h2 {
        margin-bottom: 33px;
    }

    .pb-team {
        padding-top: 29px;
    }

    .pb-team__title {
        margin-bottom: 32px;
    }

    .pb-review__text {
        -webkit-line-clamp: 6;
    }

    .pb-reviews__nav-mobile,
    .pb-media__nav-mobile {
        margin-top: 20px;
    }

    .pb-reviews__more {
        margin-top: 32px;
    }

    .pb-media {
        padding-top: 81px;
    }

    /* The mobile design uses a lighter navy for the signup block */
    .pb-signup {
        padding: 42px 0 37px;
        background: #193448;
    }

    .pb-signup__title {
        margin-bottom: 26px;
        font-size: 23px;
    }

    .pb-signup .wpcf7-form .p-form-control {
        height: 40px;
    }

    .pb-signup .wpcf7-form .p-btn {
        min-height: 40px;
    }

    /* Theme utilities are !important */
    .pb-signup .wpcf7-form .p-mb-1 {
        margin-bottom: 8px !important;
    }

    .pb-signup .wpcf7-form .p-form-text.p-mb-pseudo {
        margin-top: 14px;
        margin-bottom: 19px;
    }

    .pb-signup .wpcf7-form .p-form-text.p-small {
        margin-top: 4px !important;
    }

    .pb-team__title {
        max-width: 310px;
    }

    .pb-stat {
        padding-bottom: 17px;
    }

    .pb-stat__body {
        gap: 11px;
        padding-top: 3px;
    }

    .pb-award__logo img {
        max-width: 92px;
    }

    /* Cards take the full container; the next one peeks in from the right */
    .pb-review,
    .pb-article {
        width: 100%;
    }

    .pb-review {
        padding-bottom: 47px;
    }

    .pb-review__author {
        line-height: 24px;
    }

    .pb-review__date {
        margin-top: 5px;
    }

    .pb-review__tags {
        margin-top: 34px;
    }

    .pb-article__img {
        aspect-ratio: auto;
        height: 256px !important;
    }

    .pb-article__body {
        padding-bottom: 26px;
    }

    .pb-article__title {
        line-height: 29px;
    }

    .pb-article__text {
        margin-top: 10px;
    }

    .pb-article__link {
        padding-top: 24px;
    }
}

/* "Медицинский" is wider than "Медичний" and does not fit the card at the UA size */
.pb-hero__title:lang(ru) {
    font-size: 44px;
    line-height: 44px;
}

@media (min-width: 768px) {
    .pb-hero__title:lang(ru) {
        font-size: 64px;
        line-height: 66px;
    }
}

@media (min-width: 992px) {
    .pb-awards {
        grid-template-columns: repeat(3, 1fr);
    }
}
