@font-face {
    font-family: 'NAMU';
    src: url('../fonts/NAMU-Pro.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'NAMU';
    src: url('../fonts/NAMU-1750.woff2') format('woff2');
    font-weight: 400;
}

.services-section {
    padding: 48px 0 84px;
}

.services-three-level-page .container {
    max-width: 1500px;
}

.services-three-grid {
    display: grid;
    grid-template-columns: 2.4fr 2.6fr;
    gap: 20px;
    align-items: start;
}

.services-col {
    border-radius: 20px;
    border: 1px solid rgba(67, 75, 68, 0.16);
    background: rgba(224, 214, 182, 0.34);
}

.services-col--root {
    position: sticky;
    top: 128px;
    padding: 18px;
}

.services-root-item + .services-root-item {
    margin-top: 6px;
}

.services-root-inline {
    margin: 6px 0 2px 14px;
    border-left: 1px solid rgba(67, 75, 68, 0.14);
    padding-left: 10px;
}

.services-main-title {
    margin: 2px 0 14px;
    font-size: 34px;
    line-height: 1.05;
    color: #434b44;
}

.services-root-list {
    display: grid;
    gap: 7px;
}

.services-root-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: rgba(217, 207, 169, 0.48);
    color: #434b44;
    text-align: left;
    font-family: 'NAMU', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.28s ease, color 0.28s ease;
}

.services-root-btn:hover {
    background: rgba(217, 207, 169, 0.72);
}

.services-root-btn.is-active {
    background: #434b44;
    color: #ece3ca;
}

.services-col--child-inline {
    margin-top: 12px;
}

.services-child-head {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #434b44;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(67, 75, 68, 0.15);
}

.services-child-list {
    display: grid;
    gap: 7px;
    padding-top: 7px;
}

.services-child-item {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(67, 75, 68, 0.1);
    background: rgba(224, 214, 182, 0.42);
}

.services-child-item.is-active {
    border-color: rgba(67, 75, 68, 0.22);
}

.services-child-btn,
.services-nested-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #434b44;
    font-family: 'NAMU', sans-serif;
    text-align: left;
    padding: 9px 11px;
    border-radius: 11px;
    cursor: pointer;
}

.services-child-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: 0;
    width: 100%;
    transition: background-color 0.28s ease, color 0.28s ease, margin-left 0.28s ease, width 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.services-child-btn.is-active {
    background: #434b44;
    color: #ece3ca;
    margin-left: 18px;
    width: calc(100% - 18px);
    box-shadow: -8px 0 0 rgba(67, 75, 68, 0.24);
    transform: translateX(2px);
}

.services-child-btn__name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.services-child-btn__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.services-child-btn__meta {
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.75;
    text-transform: none;
}

.services-child-btn__price {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.services-child-nested {
    display: grid;
    gap: 6px;
    padding: 5px 7px 7px 16px;
}

.services-child-nested--services {
    padding-top: 2px;
}

.services-child-subhint {
    margin: 0 10px 6px 18px;
    height: 7px;
    border-left: 2px solid rgba(67, 75, 68, 0.2);
}

.services-nested-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    line-height: 1.2;
    background: rgba(224, 214, 182, 0.42);
    border: 1px solid rgba(67, 75, 68, 0.08);
    padding: 7px 9px;
    margin-left: 0;
    width: 100%;
    transition: background-color 0.28s ease, color 0.28s ease, margin-left 0.28s ease, width 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.services-child-nested--services .services-nested-btn {
    background: rgba(224, 214, 182, 0.42);
}

.services-nested-btn:hover {
    background: rgba(217, 207, 169, 0.62);
}

.services-nested-btn.is-active {
    background: #434b44;
    color: #ece3ca;
    margin-left: 20px;
    width: calc(100% - 20px);
    box-shadow: -8px 0 0 rgba(67, 75, 68, 0.24), 0 1px 0 rgba(67, 75, 68, 0.18);
    transform: translateX(2px);
}

.services-nested-btn__name {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.services-nested-btn__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.services-nested-btn__meta {
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.75;
    text-transform: none;
}

.services-prep-mark {
    position: relative;
    display: inline-flex;
    width: 16px;
    height: 16px;
    min-width: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(67, 75, 68, 0.14);
    color: #434b44;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    z-index: 1;
}

.services-child-btn.is-active .services-prep-mark,
.services-nested-btn.is-active .services-prep-mark {
    background: rgba(236, 227, 202, 0.24);
    color: #ece3ca;
}

.services-prep-floating-tip {
    position: fixed;
    left: 0;
    top: 0;
    width: min(360px, calc(100vw - 24px));
    max-width: 360px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(67, 75, 68, 0.2);
    background: #ece3ca;
    color: #434b44;
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
    font-weight: 400;
    white-space: pre-line;
    word-break: break-word;
    max-height: min(52vh, 360px);
    overflow: auto;
    box-shadow: 0 10px 20px rgba(34, 40, 36, 0.18);
    z-index: 1700;
    pointer-events: none;
    transition: none;
    animation: none;
}

.services-nested-btn__price {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.services-col--content {
    padding: 16px;
    box-sizing: border-box;
    border-color: rgba(67, 75, 68, 0.16);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

@media (min-width: 1201px) {
    .services-three-level-page {
        min-height: calc(100vh - 136px);
    }

    .services-three-grid {
        min-height: calc(100vh - 176px);
        max-height: calc(100vh - 176px);
    }

    .services-col--content {
        position: sticky;
        top: 128px;
        max-height: calc(100vh - 148px);
        overflow: auto;
    }

    .services-col--root {
        max-height: calc(100vh - 148px);
        overflow-y: auto;
        overflow-x: visible;
    }
}

.services-col--content.is-enter,
.services-col--content.is-leave {
    opacity: 0;
    transform: translateY(8px);
}

.services-content-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.services-content-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: #434b44;
    text-transform: none;
    overflow-wrap: anywhere;
}

.services-content-subtitle {
    margin-top: 5px;
    font-size: 13px;
    text-transform: none;
    color: rgba(67, 75, 68, 0.75);
}

.services-content-price {
    border-radius: 999px;
    border: 1px solid rgba(67, 75, 68, 0.16);
    background: rgba(217, 207, 169, 0.62);
    font-size: 16px;
    font-weight: 700;
    color: #434b44;
    padding: 5px 11px;
    white-space: nowrap;
}

.services-content-price--hint {
    cursor: pointer;
}

.service-info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.service-info-card {
    border-radius: 12px;
    border: 1px solid rgba(67, 75, 68, 0.12);
    background: rgba(224, 214, 182, 0.42);
    padding: 9px;
    box-sizing: border-box;
}

.service-info-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #434b44;
    margin-bottom: 6px;
}

.service-info-card__text {
    font-size: 14px;
    line-height: 1.35;
    color: #434b44;
    white-space: pre-line;
}

.service-doctor-card {
    border-radius: 12px;
    border: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
}

.service-doctor-profile {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(96px, auto);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(67, 75, 68, 0.16);
    border-radius: 12px;
    background: rgba(224, 214, 182, 0.34);
    padding: 10px;
    box-sizing: border-box;
}

.service-doctor-photo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(67, 75, 68, 0.12);
    background: rgba(217, 207, 169, 0.55);
}

.service-doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-doctor-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(67, 75, 68, 0.7);
    font-size: 12px;
}

.service-doctor-name {
    font-size: 17px;
    line-height: 1.2;
    color: #434b44;
}

.service-doctor-specs {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #434b44;
}

.service-doctor-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.service-doctor-price {
    border-radius: 999px;
    border: 1px solid rgba(67, 75, 68, 0.16);
    background: rgba(217, 207, 169, 0.62);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.service-doctor-price--hint,
.services-child-btn__price--hint,
.services-nested-btn__price--hint {
    cursor: pointer;
}

.service-doctor-book {
    border-radius: 999px;
    border: 1px solid rgba(67, 75, 68, 0.24);
    background: #434b44;
    color: #ece3ca;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.cost-modal[hidden] {
    display: none;
}

.cost-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
}

.cost-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.cost-modal__panel {
    position: relative;
    width: min(440px, calc(100vw - 24px));
    margin: 12vh auto 0;
    background: #ece3ca;
    border: 1px solid rgba(67, 75, 68, 0.18);
    border-radius: 16px;
    padding: 18px 16px 14px;
    color: #434b44;
}

.cost-modal__panel h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cost-modal__panel p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.cost-modal__panel a {
    color: #434b44;
    text-decoration: underline;
}

.cost-modal__close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #434b44;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.service-booking-inline {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease;
}

.service-booking-inline.is-open {
    max-height: 1300px;
    opacity: 1;
    margin-top: 8px;
    padding: 0;
    box-sizing: border-box;
}

.services-empty {
    border: 1px dashed rgba(67, 75, 68, 0.28);
    border-radius: 12px;
    padding: 10px;
    color: #5a5548;
    font-size: 14px;
    background: rgba(224, 214, 182, 0.42);
    box-sizing: border-box;
}

.services-right-list {
    display: grid;
    gap: 7px;
}

.services-right-row {
    width: 100%;
    border: 1px solid rgba(67, 75, 68, 0.12);
    border-radius: 12px;
    background: rgba(241, 237, 228, 0.6);
    color: #434b44;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.services-right-row.is-active {
    background: rgba(224, 214, 182, 0.85);
    border-color: rgba(67, 75, 68, 0.24);
}

.services-right-row__name {
    font-size: 14px;
    line-height: 1.25;
}

.services-right-row__price {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.services-inline-hint {
    margin-top: 8px;
    display: grid;
    gap: 7px;
}

.service-booking-inline .booking-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}

.service-booking-inline .booking-side-col {
    min-width: 0;
}

.service-booking-inline .booking-slot-box {
    margin-bottom: 10px;
    border-color: rgba(67, 75, 68, 0.1);
    box-shadow: none;
    background: rgba(241, 237, 228, 0.45);
    padding: 12px;
}

.service-booking-inline .doctor-booking-form {
    padding: 12px;
    border-color: rgba(67, 75, 68, 0.1);
    box-shadow: none;
    background: rgba(241, 237, 228, 0.45);
}

.service-booking-inline .booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-booking-inline .booking-field {
    min-width: 0;
}

.service-booking-inline .booking-field input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
}

.service-booking-inline .calendar-table {
    border-spacing: 6px;
}

.service-booking-inline .calendar-table td,
.service-booking-inline .calendar-table .day,
.service-booking-inline .calendar-empty-cell {
    height: 38px;
    min-height: 38px;
}

.service-booking-inline .booking-submit-btn {
    width: auto;
    min-width: 170px;
}

@media (max-width: 1200px) {
    .services-three-grid {
        grid-template-columns: 1fr;
    }
    .services-col--root {
        position: static;
    }
    .service-booking-inline .booking-layout {
        grid-template-columns: 1fr;
    }
    .service-booking-inline .booking-side-col {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .services-main-title {
        font-size: 30px;
    }
    .services-root-btn {
        font-size: 17px;
    }
    .services-child-btn__name {
        font-size: 14px;
    }
    .services-content-title {
        font-size: 21px;
    }
    .service-doctor-profile {
        grid-template-columns: 1fr;
    }
    .service-doctor-photo-wrap {
        width: 100%;
        max-width: 160px;
        height: 160px;
    }
    .service-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-section {
        padding: 40px 0 70px;
    }
    .services-col {
        border-radius: 14px;
    }
    .services-main-title {
        font-size: 28px;
    }
    .services-root-btn {
        font-size: 16px;
        padding: 9px 10px;
    }
    .services-child-btn__name {
        font-size: 13px;
    }
    .services-nested-btn {
        font-size: 12px;
    }
    .services-content-title {
        font-size: 19px;
    }
    .services-content-price {
        font-size: 14px;
    }
}

.service-doctor-photo-wrap{
  position: relative !important;
  overflow: hidden !important;
  background-color: #d9cfa9 !important;
}

.service-doctor-photo-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/img/logo.svg') center/54% no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.service-doctor-photo-wrap > *{
  position: relative;
  z-index: 1;
}

.service-doctor-photo-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

.service-doctor-photo{
  width:112% !important;
  height:112% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  display:block !important;
  margin:0 auto !important;
}

.service-doctor-photo-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

.service-doctor-photo{
  width:112% !important;
  height:112% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  display:block !important;
  margin:0 auto !important;
}

.service-doctor-photo--empty{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  font-size:12px !important;
  line-height:1.2 !important;
  color:#5f6458 !important;
  padding:8px !important;
}

.service-doctor-photo--empty{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  font-size:12px !important;
  line-height:1.2 !important;
  color:#5f6458 !important;
  padding:8px !important;
}

/* COST MODAL DYNAMIC PRICES 20260515 */
.cost-modal__panel {
    width: min(760px, calc(100vw - 28px));
    max-height: min(76vh, 720px);
    margin: 8vh auto 0;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
}

.cost-modal__body {
    overflow-y: auto;
    padding-right: 6px;
}

.cost-modal__list {
    display: grid;
    gap: 8px;
    margin: 8px 0 16px;
}

.cost-modal__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid rgba(67, 75, 68, .16);
    border-radius: 12px;
    background: rgba(247, 241, 223, .48);
    color: #434b44;
    text-decoration: none;
}

.cost-modal__row span {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
}

.cost-modal__row strong {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}

.cost-modal__contacts {
    padding-top: 6px;
    border-top: 1px solid rgba(67, 75, 68, .14);
}

@media (max-width: 640px) {
    .cost-modal__panel {
        width: calc(100vw - 18px);
        max-height: 82vh;
        margin-top: 7vh;
        padding: 20px 14px 16px;
    }

    .cost-modal__row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* COST MODAL POSITION AND SCROLL FIX 20260515 */
.cost-modal {
    z-index: 30000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.cost-modal[hidden] {
    display: none !important;
}

.cost-modal__panel {
    width: min(820px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 48px) !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.cost-modal__body {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

.cost-modal__close {
    z-index: 2;
}

@media (max-width: 640px) {
    .cost-modal {
        align-items: flex-end;
        padding: 12px 9px;
    }

    .cost-modal__panel {
        width: calc(100vw - 18px) !important;
        max-height: calc(100vh - 24px) !important;
    }

    .cost-modal__body {
        max-height: calc(100vh - 150px);
    }
}

/* COST MODAL TOP POSITION FINAL 20260515 */
.cost-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 118px 16px 24px !important;
    box-sizing: border-box;
}

.cost-modal__panel {
    margin: 0 auto !important;
    width: min(820px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 142px) !important;
}

.cost-modal__body {
    max-height: calc(100vh - 270px) !important;
    overflow-y: auto !important;
}

@media (max-width: 900px) {
    .cost-modal {
        padding-top: 96px !important;
    }

    .cost-modal__panel {
        max-height: calc(100vh - 116px) !important;
    }

    .cost-modal__body {
        max-height: calc(100vh - 236px) !important;
    }
}

@media (max-width: 640px) {
    .cost-modal {
        align-items: flex-start !important;
        padding: 82px 9px 12px !important;
    }

    .cost-modal__panel {
        width: calc(100vw - 18px) !important;
        max-height: calc(100vh - 94px) !important;
    }

    .cost-modal__body {
        max-height: calc(100vh - 210px) !important;
    }
}
