/* Стили для страницы gemologist */
.gemologist-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(15px, 2vw, 30px) clamp(10px, 1.5vw, 20px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e84118;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

/* Основной layout - Левая узкая, правая широкая */
.main-content-layout.gemologist-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: clamp(30px, 4vw, 60px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2rem;
    align-items: start;
    flex: 1;
}

/* Левая колонка - КОНТЕНТ (узкая) */
.left-column {
    min-width: 0;
    width: 400px;
}

/* Правая колонка - КАРТОЧКА (широкая) */
.right-column {
    position: sticky;
    top: 20px;
    height: fit-content;
    width: 100%;
}

.gemologist-card-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gemologist-content {
    width: 100%;
}

.gemologist-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.gemologist-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.gemologist-intro p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Основное изображение геммолога */
.gemologist-main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.gemologist-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Секция с дополнительной информацией */
.gemologist-info-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #e84118;
}

.type-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.type-header {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #e84118;
    margin: 0;
    padding-bottom: 0.5rem;
}

/* Список информации */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e84118;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.info-item h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Навигация */
.page-links.gemologist-navigation {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    width: 100%;
}

.nav-buttons-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 2px solid #e84118;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
}

.prev-button {
    color: #e84118;
    background: white;
    justify-self: start;
}

.home-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: center;
    min-width: 120px;
}

.next-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: end;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 65, 24, 0.3);
}

.prev-button:hover {
    background: #e84118;
    color: white;
}

.next-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

.home-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

/* АДАПТИВНОСТЬ */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .main-content-layout.gemologist-layout {
        grid-template-columns: 350px 1fr;
        gap: clamp(25px, 3vw, 40px);
    }

    .left-column {
        width: 350px;
    }

    .info-item {
        padding: 1rem;
    }
}

/* Большие мобильные */
@media screen and (max-width: 768px) {
    .main-content-layout.gemologist-layout {
        grid-template-columns: 1fr;
        gap: clamp(20px, 2.5vw, 30px);
    }

    .left-column {
        width: 100%;
        order: 1;
    }

    .right-column {
        position: static;
        width: 100%;
        order: 2;
    }

    .gemologist-card-section {
        max-width: 500px;
        margin: 0 auto;
    }

    .type-header-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .info-list {
        gap: 1rem;
    }

    /* Навигация для планшетов */
    .nav-buttons-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 300px;
    }

    .nav-button {
        width: 100%;
        justify-self: center;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .gemologist-page {
        padding: 10px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .gemologist-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .gemologist-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .gemologist-intro p {
        font-size: 0.9rem;
    }

    .gemologist-info-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .type-header {
        font-size: 1.2rem;
    }

    .info-item {
        padding: 0.9rem;
    }

    .info-item h3 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    /* Навигация для мобильных */
    .gemologist-navigation {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .nav-buttons-container {
        gap: 0.6rem;
    }

    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .home-button {
        min-width: 100px;
    }
}

/* Очень маленькие мобильные */
@media screen and (max-width: 360px) {
    .gemologist-content h1 {
        font-size: 1.2rem;
    }

    .type-header {
        font-size: 1.1rem;
    }

    .info-item {
        padding: 0.8rem;
    }

    .nav-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Улучшенная поддержка касаний */
@media (hover: none) and (pointer: coarse) {
    .nav-button:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-button:active {
        transform: translateY(-1px);
    }

    .info-item:hover {
        transform: none;
        box-shadow: none;
    }

    .info-item:active {
        transform: translateX(2px);
    }
}

/* Сохраняем совместимость с оригинальными стилями для карточек */
section.gemologist__content > article.card,
section.gemologist__content > article.card > ul > li {
    font-size: 22px;
}