:root {
    --green: #04A45C;
    --green-dark: #038a4c;
    --green-light: #edf8f2;
    --mint: #B6F3E1;
    --red: #E1525B;
    --red-bright: #FF0000;
    --red-dark: #c9444d;
    --text: #1e2b24;
    --text-muted: #5f7168;
    --border: #dceee4;
    --border-strong: #b6f3e1;
    --surface: #ffffff;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(4, 164, 92, 0.06);
    --shadow-md: 0 4px 16px rgba(4, 164, 92, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Inter', 'Nunito', sans-serif;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

/* Blind mode */
body.blind-mode {
    font-size: 18px !important;
    line-height: 1.6 !important;
    background-color: #ffffff !important;
    color: #000 !important;
}

body.blind-mode a {
    color: #0000ee !important;
    text-decoration: underline;
}

body.blind-mode img {
    filter: grayscale(100%) contrast(150%);
}

body.blind-mode .btn,
body.blind-mode .card,
body.blind-mode .shadow,
body.blind-mode .bg-light {
    background: none !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
    color: #000 !important;
}

body.blind-mode .nav-head,
body.blind-mode .nav-home,
body.blind-mode .foot {
    background: #ffffff !important;
}

/* Header top bar */
.nav-head {
    min-height: 40px;
    background: var(--green-light);
    border-bottom: 1px solid var(--border) !important;
    font-size: 14px;
}

.nav-head .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-head .nav-link:hover,
.nav-head .nav-link:focus {
    background: rgba(255, 255, 255, 0.7);
    color: var(--green-dark) !important;
    text-shadow: none;
    transform: none;
}

.nav-head .navbar,
.nav-head .container-fluid {
    background: transparent !important;
}

.nav-head .form-control {
    height: 30px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-head .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(4, 164, 92, 0.12);
}

.btn-search,
.btn-blind,
.btn-burger {
    background: #fff;
    border: 1px solid var(--border);
}

.btn-search {
    height: 30px;
    width: 56px;
    padding: 0;
}

.btn-blind {
    height: 30px;
    width: 42px;
    padding: 0;
}

.btn-burger {
    line-height: 1;
    border: none;
    background: transparent;
}

.btn-burger:hover {
    box-shadow: none;
    color: var(--green);
}

.btn-blind:hover img {
    filter: none;
    opacity: 0.75;
}

/* Logo block */
.base {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.logo img {
    max-height: 72px;
    width: auto;
}

.text-logo {
    color: var(--green-dark);
}

.text-logo > h1:nth-child(1) {
    margin-bottom: 0;
}

div.text-logo > h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.05;
    margin-left: -8px;
}

.phone {
    font-size: 17px;
    line-height: 1.35;
    color: var(--text);
    font-weight: 600;
}

.info {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-top: 0;
}

.custom-schedule {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    border-radius: 999px;
    width: auto;
    min-width: 190px;
    height: 38px;
    padding: 0 18px;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.custom-schedule:hover,
.custom-schedule:focus {
    background: var(--red-dark);
    color: #fff;
    text-decoration: none;
    transform: none;
}

/* Main navigation */
.nav-home {
    min-height: 48px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.nav-link {
    color: var(--text) !important;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    text-shadow: none;
    transform: none;
    color: var(--green-dark) !important;
}

.nav-home .nav-link {
    padding: 12px 14px 10px;
    border-bottom: 2px solid transparent;
}

.nav-home .nav-link:hover,
.nav-home .nav-link:focus {
    border-bottom-color: var(--green);
    color: var(--green-dark) !important;
}

.nav-dir {
    font-weight: 600;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px;
}

.dropdown-item {
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--green-light);
    color: var(--green-dark);
}

/* Main content */
main {
    padding-top: 8px;
}

/* Carousel / ads */
.ad {
    --ad-banner-side-safe: 84px;
    margin-top: 24px;
    margin-bottom: 32px;
    height: 460px;
}

.ad .carousel {
    height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.ad .carousel-inner {
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ad .carousel-item {
    position: relative;
    height: 100%;
}

.ad .carousel-img,
.ad img.carousel-img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
}

.ad .ad-banner.carousel-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    object-fit: initial;
}

.ad .carousel-control-prev,
.ad .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    opacity: 1;
    transform: translateY(-50%);
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

.ad .carousel-control-prev {
    left: 24px;
}

.ad .carousel-control-next {
    right: 24px;
}

.ad-banner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 32px max(var(--ad-banner-side-safe), 12%) 40px;
    box-sizing: border-box;
}

.ad-banner--doctor .ad-banner__date,
.ad-banner--doctor .ad-banner__spec {
    color: var(--red-bright);
}

.ad-banner--doctor .ad-banner__lead,
.ad-banner--doctor .ad-banner__name {
    color: #000;
}

.ad-banner--doctor .ad-banner__spec,
.ad-banner--doctor .ad-banner__name {
    text-transform: uppercase;
}

.ad-banner--doctor .ad-banner__photo-wrap {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ad-banner__content {
    flex: 0 1 auto;
    max-width: min(560px, 52%);
    text-align: left;
}

.ad-banner__date {
    color: var(--red-bright);
    font-size: clamp(48px, 5.8vw, 72px);
    font-weight: 600;
    line-height: 1;
}

.ad-banner__lead {
    margin-top: 12px;
    color: var(--text);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ad-banner__spec {
    margin-top: 16px;
    color: var(--red-bright);
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 600;
    line-height: 1.2;
}

.ad-banner__name {
    margin-top: 12px;
    color: var(--text);
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 600;
    line-height: 1.1;
}

.ad-banner__photo-wrap {
    width: clamp(240px, 34vw, 340px);
    height: clamp(240px, 34vw, 340px);
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    border: 4px solid var(--mint);
    flex: 0 0 auto;
    box-sizing: border-box;
}

.ad-banner__photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.ad-banner__photo {
    display: block;
}

.ad .carousel-item .ad-banner__action {
    position: absolute;
    right: max(var(--ad-banner-side-safe), 7%);
    bottom: 24px;
    left: auto;
    text-align: right;
    padding: 0;
}

.ad .carousel-item:not(:has(.ad-banner)) .ad-banner__action {
    right: auto;
    left: max(var(--ad-banner-side-safe), 7%);
    text-align: left;
}

.detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-button:hover,
.detail-button:focus {
    border-color: var(--green);
    color: var(--green-dark);
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

/* Stats counters */
.stats-bar {
    padding: 28px 0 32px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.text-count {
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    color: var(--green);
    background: none;
    -webkit-text-fill-color: currentColor;
}

main [x-data^="counter("] {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

main [x-data^="counter("]:hover {
    transform: none;
}

.stats-bar .text-muted {
    font-size: 14px;
    line-height: 1.4;
    max-width: 120px;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Section blocks */
.dir {
    padding: 48px 20px 36px;
    text-align: center;
}

.dir h2,
.txt-clinic {
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.dir p {
    font-size: 19px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
}

.dir-text,
.comment_text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
}

.txt-clinic-p1,
.txt-clinic-p2 {
    font-size: 18px;
    line-height: 1.75;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.dir p + p,
.txt-clinic-p1 + .txt-clinic-p1 {
    margin-top: 18px;
}

.dir .row {
    margin-top: 36px;
    text-align: initial;
}

.txt-clinic-p2 {
    margin-top: 24px;
    font-weight: 500;
    color: var(--text);
}

/* Service buttons */
.service-button {
    border-radius: var(--radius);
    min-height: 52px;
}

a.service-button {
    border: 1px solid var(--border) !important;
    background: #fff;
    padding: 12px 16px !important;
    box-shadow: none;
    color: var(--text) !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.service-button:hover,
a.service-button:focus {
    border-color: var(--green) !important;
    background: var(--green-light);
    box-shadow: none;
    transform: none;
}

.text-serv {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Doctors */
.doctors-page {
    padding: 32px 0 48px;
}

.doctors-grid {
    row-gap: 28px;
}

.doctors-carousel-row {
    gap: 20px;
    padding: 8px 36px 4px;
}

.doctor-card-wrap {
    flex: 0 0 275px;
    max-width: 275px;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.doctor-card__photo-link {
    display: block;
    padding: 8px 8px 0;
    background: linear-gradient(180deg, #effdf7, #ffffff);
    text-decoration: none;
}

.doctor-card__photo {
    height: 186px;
    background: #f5f9f7;
    border: 1px solid rgba(4, 164, 92, 0.11);
    border-radius: 12px;
    overflow: hidden;
}

.doctor-card__img,
.doc-img,
.doctor-card img:not(.doctor-card__img) {
    width: 100%;
    height: 186px;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 0 !important;
}

.doctor-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 14px;
    text-align: center;
}

.doctor-card--compact .doctor-card__body {
    padding: 8px 10px 12px;
    gap: 4px;
}

.doctor-name {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.doctor-name a {
    color: var(--text);
    text-decoration: none;
}

.doctor-name a:hover {
    color: var(--green-dark);
}

.doctor-dir {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.doctor-meta {
    margin: 0;
    font-size: 13px;
    color: var(--green-dark);
}

.doctor-rating {
    min-height: 0;
}

.doctor-rating__stars {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.doctor-rating__label {
    font-weight: 600;
    color: var(--text);
}

.doctor-rating__value {
    color: var(--text-muted);
    font-size: 12px;
}

.doctor-rating__icons {
    color: #f0b429;
    letter-spacing: 0.5px;
}

#doctors-carousel,
#carouselDoctors {
    position: relative;
    margin-top: 8px;
}

#carouselDoctors .carousel-inner {
    padding-bottom: 4px;
}

.doc-btn-l,
.doc-btn-r {
    top: 42%;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.doc-btn-l {
    left: 4px;
}

.doc-btn-r {
    right: 4px;
}

.doctors-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    margin-top: 20px;
}

.custom-btn-doc {
    display: inline-block;
    margin-top: 16px;
}

.custom-btn-doc img {
    display: block;
    max-width: 220px;
    height: auto;
}

/* Doctor detail page */
.doctor-page {
    padding: 32px 0 56px;
}

.doctor-profile {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.doctor-profile__photo {
    text-align: center;
}

.doctor-profile__photo img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.doctor-profile__main h1 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 16px;
}

.doctor-facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-facts li {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
}

.doctor-facts strong {
    color: var(--text);
    font-weight: 600;
}

.doctor-section {
    margin-top: 28px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.doctor-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--green-dark);
}

.doctor-section p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
}

.doctor-reviews {
    margin-top: 36px;
}

.doctor-reviews > h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.doctor-review {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.doctor-review:last-of-type {
    border-bottom: none;
}

.doctor-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.doctor-review__author {
    font-weight: 600;
    color: var(--text);
}

.doctor-review__date {
    font-size: 13px;
    color: var(--text-muted);
}

.doctor-review__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.doctor-review-form {
    margin-top: 28px;
    padding: 24px;
    background: var(--green-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.doctor-review-form h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.btn-doctor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 999px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-doctor:hover,
.btn-doctor:focus {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff !important;
}

.btn-doctor-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--green-dark) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.btn-doctor-outline:hover,
.btn-doctor-outline:focus {
    border-color: var(--green);
    color: var(--green-dark) !important;
}

.btn-doctor-sm {
    min-height: 34px;
    padding: 0 16px;
    font-size: 13px;
    margin-top: 4px;
}

.doctor-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.doctor-pagination .btn-doctor-outline.is-active {
    background: var(--green-light);
    border-color: var(--green);
    pointer-events: none;
}

/* Footer */
.foot {
    margin-top: 48px;
    background: var(--green-light);
    border-top: 1px solid var(--border);
    padding-bottom: 0;
}

footer.foot div.container {
    padding-top: 24px;
}

footer.foot p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}

footer.foot p:last-child {
    font-size: 14px;
    color: var(--text-muted);
}

footer.foot iframe {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border) !important;
}

.foot-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.foot-info p {
    font-size: 14px !important;
    line-height: 1.7;
    color: var(--text-muted);
}

footer.foot a {
    color: var(--text);
}

footer.foot a:hover,
footer.foot a:focus {
    color: var(--green-dark);
}

/* Inner pages */
.about_h3,
.about_h5 {
    color: var(--text);
}

.about_p,
.about2_p {
    font-size: 17px;
    color: var(--text-muted);
}

.about2 {
    border: 1px solid rgba(225, 82, 91, 0.35);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: #fff;
}

.about2_h3 {
    font-size: 20px;
    color: var(--red);
}

.custom-header {
    background: var(--green-dark);
    color: #fff;
}

.weekend {
    background-color: #fff5f5 !important;
}

.note {
    font-style: italic;
    color: var(--text-muted);
}

.vacancy-title {
    color: var(--red);
    font-weight: 600;
    font-size: 22px;
}

.vacancy-subtitle {
    font-weight: 600;
}

.email-note {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 18px;
}

.vacancy-text {
    font-size: 16px;
    color: var(--text-muted);
}

.doctor-review-form h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.doctor-review-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.star-rating-input {
    direction: rtl;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.star-rating-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.star-rating-input label {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #d5dde8;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-input label:hover {
    transform: scale(1.06);
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f0b429;
}

/* Rating display (read-only) */
.star-rating {
    direction: rtl;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #d5dde8;
    cursor: pointer;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5b942;
}

.rati {
    font-size: 12px;
}

/* Tables in main */
body:not(.blind-mode) main .table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

button:focus,
button:active,
.btn:focus,
.btn:active,
a.btn:focus,
a.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.text-number p {
    margin-bottom: 0;
}

/* Mobile menu panel */
.mobile-menu-panel {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border);
    z-index: 1050;
}

.mobile-menu-backdrop {
    background-color: rgba(30, 43, 36, 0.2);
    z-index: 1049;
}

@media (min-width: 768px) {
    .nav-home {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 767.98px) {
    .logo img {
        height: 52px;
    }

    div.text-logo > h1 {
        font-size: 14px !important;
        margin-left: -6px;
    }

    .phone {
        font-size: 13px;
    }

    .info {
        font-size: 10px;
        line-height: 1.2;
    }

    .ad {
        --ad-banner-side-safe: 60px;
        margin-top: 12px;
        margin-bottom: 20px;
        height: 220px;
    }

    .ad .carousel-control-prev {
        left: 12px;
    }

    .ad .carousel-control-next {
        right: 12px;
    }

    .carousel-img {
        height: 220px !important;
    }

    .ad-banner {
        padding: 12px max(var(--ad-banner-side-safe), 10%) 14px;
        gap: 10px;
    }

    .ad-banner__content {
        max-width: none;
        flex: 1 1 auto;
    }

    .ad-banner__date {
        font-size: clamp(22px, 6vw, 28px);
    }

    .ad-banner__lead {
        margin-top: 4px;
        font-size: clamp(11px, 3vw, 14px);
    }

    .ad-banner__spec {
        margin-top: 4px;
        font-size: clamp(9px, 2.4vw, 11px);
    }

    .ad-banner__name {
        margin-top: 4px;
        font-size: clamp(11px, 3.2vw, 14px);
    }

    .ad-banner__photo-wrap {
        width: clamp(92px, 24vw, 112px);
        height: clamp(92px, 24vw, 112px);
        padding: 4px;
        border-width: 2px;
    }

    .ad .carousel-item .ad-banner__action {
        right: max(var(--ad-banner-side-safe), 10%);
        bottom: 10px;
    }

    .ad .carousel-item:not(:has(.ad-banner)) .ad-banner__action {
        left: max(var(--ad-banner-side-safe), 10%);
    }

    .detail-button {
        min-width: 100px;
        height: 30px;
        font-size: 11px;
        padding: 0 12px;
    }

    .text-count {
        font-size: 36px;
    }

    .dir {
        padding: 32px 12px 24px;
    }

    .dir h2,
    .txt-clinic {
        font-size: 26px;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    .dir p,
    .txt-clinic-p1,
    .txt-clinic-p2 {
        font-size: 16px;
        line-height: 1.65;
    }

    .doc-btn-l {
        left: 0;
    }

    .doc-btn-r {
        right: 0;
    }

    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 16px;
    }

    .doctor-profile__photo img {
        max-width: 200px;
    }

    .doctors-carousel-row {
        padding: 8px 28px 4px;
        gap: 12px;
    }

    .doctor-card-wrap {
        flex-basis: 240px;
        max-width: 240px;
    }

    .doctor-section,
    .doctor-review-form {
        padding: 18px 16px;
    }

    .patient_block {
        margin: 0;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
