.main {
    display: flex;
    flex-direction: column;
    gap: 125px;
    margin-bottom: 75px;
}

.main--standalone {
    padding-top: 75px;
}

.hero {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;

}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 29, 45, 0.8);
    z-index: 1;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 100px 0
	
}

.hero__title {
    font-size: 78px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
}

.hero__description {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    text-align: center;
}   

.hero___buttons {
	display: flex;
    align-items: center;
    gap: 20px;
}


.hero__btn {
    background: var(--green);
    color: var(--white) !important;
    padding: 17px 27px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    white-space: nowrap;
}

.hero__btn_white {
    background: var(--white);
    color: var(--black) !important;
    padding: 17px 27px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    white-space: nowrap;
}

.hero__btn:hover {
    background: #5aad3d;
    color: var(--white) !important;
}

.hero__btn_white:hover {
    background: var(--green);
    color: var(--white) !important;
}

.hero__image {
    display: flex;
}

.values__content_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.values__title {
    max-width: fit-content;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    background-color: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
}

.values__subtitle {
    max-width: 630px;
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

.values__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.values__description {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}

.values__slider-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0 50px;
}

.values__slider {
    overflow: hidden;
    width: 100%;
}

.values__item {
    background: var(--primary);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.values__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.values__item-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--black);
}

.values__item-description p {
    line-height: 1.6;
    color: var(--black);
}

.values__navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    width: 100%;
}

.values__button-prev,
.values__button-next {
    pointer-events: all;
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.values__button-prev:after,
.values__button-next:after {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.values__button-prev {
    left: 0;
}

.values__button-next {
    right: 0;
}

.values__item-wrapper {
    height: auto;
}

.about {
    background-color: var(--primary);
}

.about__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.about__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
}

.about__description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__button {
    font-size: 25px;
}

.about__image {
    display: flex;
    overflow: hidden;
    border-radius: 5px;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialists__content_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specialists__title {
    max-width: fit-content;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    background-color: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
}

.specialists__subtitle {
    max-width: 730px;
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

/* Specialists layout - slider on the right */
.specialists {
    overflow: hidden;
}

.specialists__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.specialists__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-shrink: 0;
    max-width: 500px;
}

.specialists__button {
    font-size: 25px;
    width: fit-content;
}

.specialists__slider-wrapper {
    position: relative;
    flex: 1;
    overflow: visible;
    padding: 0 50px;
    min-width: 0;
}

.specialists__slider {
    overflow: hidden;
    width: 100%;
}

.specialists__category-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.specialists__category-card {
    background: var(--primary);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.specialists__category-card:hover {
    background: var(--primary);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.specialists__category-card:hover .button__fill {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.specialists__category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.specialists__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.specialists__list-item {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding-left: 20px;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.specialists__list-item:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: 700;
    transition: color 0.3s ease;
}

.specialists__navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 50px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    width: 100%;
}

.specialists__button-prev,
.specialists__button-next {
    pointer-events: all;
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.specialists__button-prev:after,
.specialists__button-next:after {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.specialists__button-prev {
    left: 0;
}

.specialists__button-next {
    right: 0;
}

.contacts__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: 30px;
}

.contacts__title {
    font-size: 42px;
    color: var(--black);
    text-transform: uppercase;
}


.contacts__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacs__list--horizontal {
    flex-direction: row;
    gap: 50px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts__item_title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

.contacts__item_title--with-tooltip {
    position: relative;
    display: inline-block;
    padding-right: 16px;
    max-width: fit-content;
}

.contacts__item_title--with-tooltip .tooltip {
    position: absolute;
    top: -6px;
    right: 0;
}

.contacts__item_text {
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    font-family: 'century-regular', sans-serif;
}

.contacts__item_text a {
    font-weight: 400;
    font-family: 'century-regular', sans-serif;
}

.contacts__item_text__phone {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts__item_text--with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tooltip__trigger {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    font-size: 9px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.tooltip__trigger .tooltip__icon {
    width: 10px;
    height: 10px;
    display: block;
    fill: currentColor;
}

.tooltip__trigger:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 2px;
}

.tooltip__content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tooltip__link {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.tooltip__link:hover {
    opacity: 0.9;
}

.tooltip__content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    background: transparent;
}

.tooltip__content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--black);
}

.tooltip:hover .tooltip__content,
.tooltip:focus-within .tooltip__content {
    opacity: 1;
    pointer-events: auto;
}

.contacts__socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

#map {
    max-width: 800px;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    flex: 1;
}

.veteran-services__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.veteran-services__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

/* ============================================
   Laboratory Page Styles
   ============================================ */

.laboratory__inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.laboratory__title {
    font-size: 42px;
    color: var(--black);
    text-transform: uppercase;
    text-align: center;
}

.laboratory__tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tabs Navigation */
.laboratory__tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.laboratory__tab-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.laboratory__tab-button:hover {
    background: var(--primary);
    color: var(--black);
}

.laboratory__tab-button_active {
    background: var(--primary);
    color: var(--black);
}

/* Tabs Content */
.laboratory__tabs-content {
    position: relative;
    width: 100%;
}

.laboratory__tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.laboratory__tab-content_active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tests List */
.laboratory__tests-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.laboratory__test-item {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.laboratory__test-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ============================================
   Services Page Styles
   ============================================ */

.services__inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.services__title {
    font-size: 42px;
    color: var(--black);
    text-transform: uppercase;
    text-align: center;
}

.services__tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tabs Navigation */
.services__tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.services__tab-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services__tab-button:hover {
    background: var(--primary);
    color: var(--black);
}

.services__tab-button_active {
    background: var(--primary);
    color: var(--black);
}

/* Tabs Content */
.services__tabs-content {
    position: relative;
    width: 100%;
}

.services__tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.services__tab-content_active {
    display: block;
}

/* Services List */
.services__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.services__item {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.services__item:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

/* ============================================
   Team Page Styles
   ============================================ */

.team__inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.team__title {
    font-size: 42px;
    color: var(--black);
    text-transform: uppercase;
    text-align: center;
}

.team__tabs {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tabs Navigation */
.team__tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.team__tab-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.team__tab-button:hover {
    background: var(--primary);
    color: var(--black);
}

.team__tab-button_active {
    background: var(--primary);
    color: var(--black);
}

/* Tabs Content */
.team__tabs-content {
    position: relative;
    min-height: 300px;
    width: 100%;
}

.team__tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.team__tab-content_active {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Services Block */
.team__services-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team__services-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

.team__services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.team__service-item {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.team__service-item:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

/* Doctors Block */
.team__doctors-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team__doctors-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

.team__doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Doctor Card */
.team__doctor-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.team__doctor-card:hover {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team__doctor-card:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 3px;
}

.team__doctor-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 6px;
}

.team__doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team__doctor-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.team__doctor-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.team__doctor-direction {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.5;
}

/* ============================================
   Single Specialist Page Styles
   ============================================ */

.specialist-page__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.specialist-page__header {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    padding: 10px 0 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.specialist-page__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.specialist-page__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-page__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.specialist-page__name {
    font-size: 44px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.specialist-page__specialty {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.4;
}

.specialist-page__additional {
    --specialist-additional-collapsed-height: 140px;
    max-height: var(--specialist-additional-collapsed-height);
    overflow: hidden;
    transition: max-height 0.25s ease;
    font-size: 16px;
    line-height: 1.7;
}

.specialist-page__additional-toggle {
    display: none; /* JS shows only when needed */
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.specialist-page__additional-toggle:hover {
    opacity: 0.85;
}

.specialist-page__content {
    font-size: 18px;
    line-height: 1.8;
}

.specialist-page__content > *:first-child {
    margin-top: 0;
}

.specialist-page__content > *:last-child {
    margin-bottom: 0;
}

.specialist-page__services {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 26px;
}

.specialist-page__sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.specialist-page__education {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.specialist-page__services-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
}

.specialist-page__services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialist-page__service-item {
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    text-transform: uppercase;
    padding-left: 22px;
    position: relative;
}

.specialist-page__service-item:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.specialist-page__tabs {
    padding-top: 22px;
}
