.clinic-gallery {
    padding: 22px 20px 40px;
    background: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    }
    .clinic-gallery__container {
    width: min(840px, 100%);
    margin: 0 auto;
    }
    .clinic-gallery__header {
    margin-bottom: 59px;
    text-align: center;
    }
    .clinic-gallery__header h2 {
    margin: 0;
    color: #3e84ca;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 4px;
    }
    .clinic-gallery__header span {
    display: block;
    width: 312px;
    max-width: 70%;
    height: 1px;
    margin: 17px auto 0;
    background: #9fcf43;
    }
    .clinic-gallery__carousel {
    position: relative;
    padding-bottom: 30px;
    }
    .clinic-gallery__viewport {
    width: 100%;
    overflow: hidden;
    }
    .clinic-gallery__track {
    display: flex;
    gap: 57px;
    transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    }
    .clinic-gallery__slide {
    flex: 0 0 calc((100% - 114px) / 3);
    height: 180px;
    margin: 0;
    overflow: hidden;
    background: #eeeeee;
    }
    .clinic-gallery__image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    }
    .clinic-gallery__image-button:focus-visible {
    outline: 3px solid #3e84ca;
    outline-offset: -3px;
    }
    .clinic-gallery__image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease, filter 350ms ease;
    }
    .clinic-gallery__image-button:hover img,
    .clinic-gallery__image-button:focus-visible img {
    transform: scale(1.04);
    filter: brightness(0.92);
    }
    .clinic-gallery__arrow {
    position: absolute;
    top: 90px;
    z-index: 5;
    display: flex;
    width: 28px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #ededed;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
    }
    .clinic-gallery__arrow:hover {
    color: #bfbfbf;
    transform: translateY(-50%) scale(1.12);
    }
    .clinic-gallery__arrow:focus-visible {
    outline: 2px solid #3e84ca;
    outline-offset: 3px;
    }
    .clinic-gallery__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    }
    .clinic-gallery__arrow--previous {
    left: -19px;
    }
    .clinic-gallery__arrow--next {
    right: -19px;
    }
    .clinic-gallery__dots {
    display: flex;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    }
    .clinic-gallery__dot {
    width: 4px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfcfcf;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
    }
    .clinic-gallery__dot.is-active {
    background: #111111;
    transform: scale(1.1);
    }
    .clinic-gallery__dot:focus-visible {
    outline: 2px solid #3e84ca;
    outline-offset: 3px;
    }
    .gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    padding: 30px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
    }
    .gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    }
    .gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    }
    .gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1200px, 100%);
    height: min(86vh, 820px);
    align-items: center;
    justify-content: center;
    }
    .gallery-lightbox__figure {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    }
    .gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 45px);
    border-radius: 4px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 280ms ease, opacity 280ms ease;
    }
    .gallery-lightbox.is-open .gallery-lightbox__image {
    transform: scale(1);
    opacity: 1;
    }
    .gallery-lightbox__caption {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin-top: 14px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    }
    .gallery-lightbox__counter {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    }
    .gallery-lightbox__close {
    position: fixed;
    top: 22px;
    right: 25px;
    z-index: 3;
    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
    }
    .gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(6deg) scale(1.06);
    }
    .gallery-lightbox__close:focus-visible,
    .gallery-lightbox__arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    }
    .gallery-lightbox__close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    }
    .gallery-lightbox__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 48px;
    height: 64px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 180ms ease, transform 180ms ease;
    }
    .gallery-lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) scale(1.08);
    }
    .gallery-lightbox__arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    }
    .gallery-lightbox__arrow--previous {
    left: 0;
    }
    .gallery-lightbox__arrow--next {
    right: 0;
    }
    body.gallery-lightbox-open {
    overflow: hidden;
    }
    @media (max-width: 900px) {
    .clinic-gallery__container {
    width: min(720px, 100%);
    }
    .clinic-gallery__track {
    gap: 28px;
    }
    .clinic-gallery__slide {
    flex-basis: calc((100% - 28px) / 2);
    }
    .clinic-gallery__arrow--previous {
    left: -26px;
    }
    .clinic-gallery__arrow--next {
    right: -26px;
    }
    .gallery-lightbox__dialog {
    width: calc(100% - 70px);
    }
    .gallery-lightbox__arrow--previous {
    left: -55px;
    }
    .gallery-lightbox__arrow--next {
    right: -55px;
    }
    }
    @media (max-width: 700px) {
    .clinic-gallery {
    padding-right: 42px;
    padding-left: 42px;
    }
    .clinic-gallery__header {
    margin-bottom: 42px;
    }
    .clinic-gallery__header h2 {
    font-size: 30px;
    letter-spacing: 2px;
    }
    .clinic-gallery__track {
    gap: 18px;
    }
    .clinic-gallery__slide {
    flex-basis: 100%;
    height: 220px;
    }
    .clinic-gallery__arrow {
    top: 110px;
    }
    .clinic-gallery__arrow--previous {
    left: -34px;
    }
    .clinic-gallery__arrow--next {
    right: -34px;
    }
    .gallery-lightbox {
    padding: 70px 14px 24px;
    }
    .gallery-lightbox__dialog {
    width: 100%;
    height: 100%;
    }
    .gallery-lightbox__image {
    max-height: calc(100% - 80px);
    }
    .gallery-lightbox__arrow {
    top: auto;
    bottom: 0;
    width: 48px;
    height: 48px;
    transform: none;
    }
    .gallery-lightbox__arrow:hover {
    transform: scale(1.06);
    }
    .gallery-lightbox__arrow--previous {
    left: calc(50% - 58px);
    }
    .gallery-lightbox__arrow--next {
    right: calc(50% - 58px);
    }
    .gallery-lightbox__caption {
    padding-bottom: 57px;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    }
    }
    @media (max-width: 460px) {
    .clinic-gallery {
    padding: 40px 36px 42px;
    }
    .clinic-gallery__header h2 {
    font-size: 25px;
    letter-spacing: 1px;
    }
    .clinic-gallery__slide {
    height: 190px;
    }
    .clinic-gallery__arrow {
    top: 95px;
    }
    .clinic-gallery__arrow--previous {
    left: -31px;
    }
    .clinic-gallery__arrow--next {
    right: -31px;
    }
    .gallery-lightbox__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    }
    }
    @media (prefers-reduced-motion: reduce) {
    .clinic-gallery__track,
    .clinic-gallery__image-button img,
    .gallery-lightbox,
    .gallery-lightbox__image {
    transition: none;
    }
    }