/*================ DEVICE_PAGE ==================*/
/* ============================================
   СЕКЦИЯ ОБОРУДОВАНИЯ (ТОМОГРАФ)
   ============================================ */

/* Верхняя часть */
.apparat-hero {
    padding: 60px 0 40px;
    background: var(--white);
}

.apparat-hero-grid {
    display: flex;
    gap: 30px;
}

/* Левая колонка: Слайдер */
.apparat-gallery-wrap {
    width: 40%;
}

.apparat-main-swiper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--white);
}

.apparat-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px; /* Фиксируем высоту основного слайда */
}

.apparat-main-swiper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Слайдер превью */
.apparat-thumbs-swiper {
    width: 100%;
    padding: 4px;
}

.apparat-thumbs-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.apparat-thumbs-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.apparat-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--green);
}

.apparat-title {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.apparat-desc p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.apparat-content-section {
    padding: 40px 0 80px;
    background: var(--white);
}

.apparat-main-text {
    max-width: 900px;
}

.apparat-main-text h3 {
    color: var(--green-dark);
    font-size: 1.5rem;
    margin: 40px 0 20px;
    font-weight: 700;
}

.apparat-main-text p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.apparat-main-text ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.apparat-main-text li {
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
}

.apparat-main-text strong {
    color: var(--green-dark);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .apparat-hero-grid {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .apparat-gallery-wrap {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .apparat-hero-content {
        padding-right: 0;
    }

    .apparat-title {
        font-size: 2.2rem;
    }

    .apparat-desc {
        max-width: 700px;
        margin: 0 auto;
    }

    .apparat-main-text {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .apparat-hero {
        padding: 40px 0 20px;
    }

    .apparat-gallery-wrap {
        padding: 12px;
    }

    .apparat-main-swiper .swiper-slide {
        height: 250px; /* Уменьшаем высоту на мобильных */
    }

    .apparat-thumbs-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }

    .apparat-title {
        font-size: 1.8rem;
    }
    
    .apparat-content-section {
        padding: 30px 0 60px;
    }
}
/*================ FAQ_PAGE ==================*/

.page_box_order {
    padding: 4% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-left: 1px solid #e3e7ef;
    border-right: 1px solid #e3e7ef;
}

/*================ CONTACT_PAGE ==================*/
/* .social_box {
    display: flex;
    gap: 12px;
}
.social_link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contacts_content_grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    column-gap: 5%;
}
.contacts_content_grid h2 {
    margin-bottom: 0;
    text-align: start;
}
.contacts_content_grid table {
    width: 100%;
}
.contacts_content_grid table tr:nth-child(even) {
    background-color: #e3e7ef;
}
.contacts_content_grid table tr td {
    padding-left: 5px;
}
.contact_map {
    height: 400px;
    margin-bottom: 5%;
    border-radius: 10px;
    overflow: hidden;
}
.box_bilding_img {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.box_bilding_img .poligon {
    position: relative;
    width: 80%;
    padding-top: 80%;
}
.box_bilding_img .poligon img {
    top: 2px;
    left: 2px; 
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: cover;
}
.hex.poligon {
    position: absolute;
    width: 86%;
    padding-top: 86%;
    transform: translate(0, -3%);
} */

/* ============================================
   СТРАНИЦА КОНТАКТОВ (PREMIUM)
   ============================================ */

.contacts-page {
    background-color: #FAFAFA;
}

/* Заголовок */
.contacts-page .page_title {
    padding: 20px 0 0px;
    text-align: center;
}

.contacts-page .page_title h1 {
    font-size: 2.8rem;
    /* font-weight: 300; */
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 0;
}

/* Сетка */
.contacts_content_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-bottom: 80px;
}

/* Левая колонка */
.wrapper_contacts {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.info-block {
    border-bottom: 1px solid #E5E5E5; /* Тонкая линия-разделитель */
    padding-bottom: 32px;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Заголовки блоков */
.block-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    position: relative;
}

.block-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--green);
    margin-top: 12px;
}

/* Текст контактов */
.contact-info-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-info-text a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-info-text a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* Соцсети */
.social_box {
    display: flex;
    gap: 16px;
}

.social_link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* .social_link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 118, 103, 0.2);
} */

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.premium-table td,
.premium-table th {
    padding: 8px 0;
    text-align: left;
    font-weight: 400;
    color: var(--text-dark);
    border-bottom: 1px solid #F0F0F0;
}

.premium-table tr:last-child td,
.premium-table tr:last-child th {
    border-bottom: none;
}


.work-time-table td:first-child {
    width: 40%;
    color: var(--text-gray);
}

.work-time-table td.dash {
    width: 20px;
    text-align: center;
    color: #CCC;
    font-weight: 300;
}

.work-time-table th {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    width: 80px;
}

.work-time-table th:last-child {
    text-align: left;
    padding-left: 12px;
}

.org-name {
    font-weight: 500;
    padding-bottom: 16px !important;
    color: var(--text-gray);
}

.requisites-table td:first-child {
    color: var(--text-gray);
    width: 30%;
}

.requisites-table th {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.box_bilding_img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4 / 5;
    border-radius: 120px 24px 120px 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--white);
    background-color: var(--gray-light);
    /* transform: rotate(2deg); */
    transition: transform 0.5s ease;
}

.premium-image-wrapper:hover {
    /* transform: rotate(0deg) scale(1.02); */
}

.premium-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact_map {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
}

#yamap {
    width: 100%;
    height: 100%;
}

.page_box_order {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
}

.order-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.3;
}

.order-title span {
    font-size: 1.1rem;
    color: var(--text-gray);
    display: block;
    margin-top: 8px;
    font-weight: 400;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .contacts_content_grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .box_bilding_img {
        order: -1;
    }

    .premium-image-wrapper {
        max-width: 450px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .wrapper_contacts {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contacts-page .page_title {
        padding: 40px 0 30px;
    }
    
    .contacts-page .page_title h1 {
        font-size: 2rem;
    }

    .block-title {
        font-size: 1.2rem;
    }

    .contact_map {
        height: 300px;
        border-radius: 16px;
    }

    .page_box_order {
        padding: 40px 20px;
        border-radius: 16px;
    }
    
    .order-title {
        font-size: 1.4rem;
    }

    .premium-image-wrapper {
        border-radius: 60px 16px 60px 16px;
        border-width: 4px;
    }
}

/*================ ABOUT_PAGE ==================*/
.page-about {
    font-family: var(--ff);
}
.about_grid {
    display: grid;
    grid-template-columns: 50% 50%;

}
.about_text {
    padding-left: 20px;
}

.about_gallery {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}
.about_slider .swiper-slide {
    height: 400px;
    width: 100%;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.swiper-button-next::after, .swiper-button-prev::after {
    display: none;
}
.certificates {
    padding-top: 0;
}
.documents-slider .doc-card {
    height: 100%;
}
.doc-page-description,
.doc-down-box {
    margin-bottom: 3em;
}
@media (max-width: 780px) {
    .about_text {
        padding-left: 0px;
    }
}
/*================ BLOG ==================*/

.blog-page-title {
    padding-left: 25px;
    border-left: 5px solid var(--green-dark);
}
.blog-page-title h1 {
    margin-top: 0;
    color: #2D3436;
}
.arhive-description {
    color: #636E72;
}
.blog-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.post-image {
    position: relative;
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2 / 1.1;
}
.post-cat-label {
    position: absolute;
    left: 15px;
    top: 15px;
    border-radius: 8px;
    padding: 5px 14px;
    background-color: var(--green-hover);
    color: #fff;
    font-size: 11px;
    font-family: var(--ff);
    text-transform: uppercase;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 30px;
    margin-top: 40px;
}
.post-body {
    padding: 25px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-title {
    font-size: 20px;
    color: #2D3436;
    margin-top: 0;
    line-height: 110%;
    flex-grow: 1;
}
.post-desc {
    flex-grow: 1;
    color: var(--text-gray);
}
.post-link {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green-dark);
    color: var(--green-dark);
    font-weight: bold;
    display: block;
    margin-top: 12px;
    font-family: var(--ff);
    border-radius: var(--radius-sm);
    text-align: center;
}
.term-panel {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    margin-top: 40px;
}
.term-box {
    border-radius: var(--radius-sm);
    color: var(--green);
    font-weight: bold;
    border: 2px solid var(--green);
    padding: 12px 24px;
}
.term-box.active {
    color: #fff;
    background-color: var(--green);
}

.blog-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 15px 30px rgba(255, 182, 193, 0.2));
    border-radius: 20px;

}
.blog-body {
    margin-top: 30px;
}
.blog-body h1 {
    color: var(--green-dark);
    font-size: calc(36px + 2.5 * (100vw / 1280));
}

/* .blog-body a {
    color: var(--green-hover);
    text-decoration: underline;
}
.content-block-wrapper {
    border-top: 1px solid rgba(32, 178, 171, 0.2);
    margin-bottom: 3em;
    padding-top: 1em;
}
.content-block-wrapper > p:first-child{
    margin-top: 0;
}
.prewnext-blog .nav-links {
    display: flex;
    justify-content: space-between;
    column-gap: 1em;
}
.prewnext-blog .nav-links > div {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    min-width: 40%;
}
.prewnext-blog .nav-links > div a {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}
.prewnext-blog .nav-links .nav-next {
    text-align: right;
}
.nav-title {
    color: #000;
    font-size: 16px;
    font-weight: bold;
}
.nav-subtitle {
    font-size: 12px;
    text-transform: uppercase;
}
.pagination {
    margin-top: 40px;
}
.pagination .nav-links {
    align-items: center;
    justify-content: center;
    display: flex;
    column-gap: 10px;    
}
.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: #fff;
    color: #20B2AA;
}
.pagination .page-numbers.current {
    background-color: #20B2AA;
    color: #fff;
}
@media (max-width: 780px) {
    .doctor_box {
        margin-bottom: 15px;
    }
    .contacts_content_grid {
        grid-template-columns: none;
    }
    .about_grid {
        display: flex;
        flex-direction: column;
    }
    .about_slider .swiper-slide {
        height: 240px;
    }
    .blog-posts-grid {
        grid-template-columns: none;
    }
    .term-panel {
        row-gap: 10px;
        column-gap: 5px;
    }
} */
/* ============================================
   СТРАНИЦА БЛОГА (СТАТЬИ)
   ============================================ */

.blog-post-wrapper {
    max-width: 900px; /* Ограничиваем ширину для комфортного чтения */
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Главное изображение */
.blog-image {
    width: 100%;
    border-radius: 32px; /* Большие скругления */
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16 / 9; /* Пропорции 16:9 для единообразия */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Основной контент */
.blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Лид (Краткое описание) */
.blog-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.blog-desc p {
    margin-bottom: 16px;
}

/* Блоки контента */
.content-block {
    margin-bottom: 48px;
}

.content-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Обертка для текста, чтобы стилизовать всё внутри */
.content-block-wrapper {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-dark);
}

/* Стилизация всех базовых тегов внутри динамического контента */
.content-block-wrapper p {
    margin-bottom: 20px;
}

.content-block-wrapper a {
    color: var(--green);
    text-decoration: none;
    /* border-bottom: 1px dashed var(--green); */
    transition: all 0.3s ease;
}
/* .content-block-wrapper a u {
    text-decoration: none;
} */
.content-block-wrapper a:hover {
    color: var(--green-dark);
    /* border-bottom-style: solid; */
}

.content-block-wrapper ul,
.content-block-wrapper ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.content-block-wrapper li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 8px;
}

/* Маркеры списка */
.content-block-wrapper ul li::before {
    content: '•';
    position: absolute;
    left: -16px;
    color: var(--green);
    font-size: 1.4rem;
    line-height: 1.2;
}

.content-block-wrapper strong,
.content-block-wrapper b {
    font-weight: 700;
    color: var(--text-dark);
}

.content-block-wrapper blockquote {
    background: var(--gray-light);
    border-left: 4px solid var(--green);
    padding: 24px 32px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-gray);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.content-block-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.content-block-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.content-block-wrapper th,
.content-block-wrapper td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.content-block-wrapper th {
    background: var(--gray-light);
    font-weight: 600;
}

/* ============================================
   НАВИГАЦИЯ ПО СТАТЬЯМ
   ============================================ */
.prewnext-blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.nav-card {
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    font-family: var(--ff);
}

.nav-card:hover {
    border-color: var(--green);
    box-shadow: 0 12px 24px rgba(1, 118, 103, 0.08);
}

.nav-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-prev .nav-subtitle::before {
    content: '←';
    font-size: 1.2rem;
    line-height: 1;
}

.nav-next .nav-subtitle {
    justify-content: flex-end;
}

.nav-next .nav-subtitle::after {
    content: '→';
    font-size: 1.2rem;
    line-height: 1;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-next {
    text-align: right;
}

.nav-empty {
    display: none;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-desc {
        font-size: 1.15rem;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-post-wrapper {
        padding: 20px 16px 60px;
    }

    .blog-image {
        border-radius: 20px;
        margin-bottom: 24px;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-desc {
        font-size: 1.05rem;
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .content-block {
        margin-bottom: 32px;
    }

    .content-block h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .content-block-wrapper {
        font-size: 1rem;
    }

    /* Навигация в одну колонку */
    .prewnext-blog {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
        padding-top: 24px;
    }

    .nav-card {
        padding: 16px;
    }

    .nav-title {
        font-size: 1rem;
    }
}