.counter-number {
    display: inline-block;
}

.image-cat {
    height: 300px !important;
}

.cat-upper {
    text-transform: uppercase;
}

.head-gap {
    gap: 30px !important;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-numbers.current {
    background: var(--primary-green);
    color: white;
}
.page-numbers:hover:not(.current) {
    background: var(--bg-cream);
    color: var(--primary-green);
}

.img-proj {
    height: 600px !important;
}

/* ===== Мобильное меню ===== */

.mob-menu {
    position: fixed;  /* Изменено с absolute на fixed */
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    top: 80px;
    max-height: 355px;
    z-index: 1000;
    overflow-y: auto;  /* Добавлена прокрутка внутри меню, если контент не помещается */
    overflow-x: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mob-menu-cont {
    padding: 15px 15px 0 15px !important;
}

/* Стили для списка мобильного меню */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

/* Ссылки в мобильном меню */
.mobile-menu-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-list a:hover {
    color: var(--primary-green);
    padding-left: 0.5rem;
}

/* Активная ссылка */
.mobile-menu-list li.current-menu-item a,
.mobile-menu-list li.current-page-item a {
    color: var(--primary-green);
    font-weight: 600;
    border-left: 3px solid var(--primary-green);
    padding-left: 0.75rem;
}

/* Подменю */
.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
    background-color: var(--bg-cream);
    border-radius: 0.5rem;
}

.mobile-menu-list .sub-menu li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-list .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-menu-list .sub-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-medium);
}

.mobile-menu-list .sub-menu a:hover {
    color: var(--primary-green);
    padding-left: 0.5rem;
}

/* Убираем точки у списков */
.mobile-menu-list ul,
.mobile-menu-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Десктопная версия - скрываем мобильное меню */
@media (min-width: 1024px) {
    .mob-menu {
        display: none;
    }
}

/* ===== Форма поиска в шапке ===== */

.search-form-header {
    width: 100%;
}

.search-field-header {
    background: transparent;
    font-size: 0.95rem;
}

/* Убираем outline при фокусе */
.search-field-header:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--primary-green);
}

/* Убираем стандартный outline в браузерах */
.search-field-header:focus-visible {
    outline: none;
}

.search-field-header::placeholder {
    color: #9ca3af;
    font-weight: normal;
}

/* Мобильная форма поиска */
.search-form-mobile {
    width: 100%;
}

.search-field-mobile {
    background: transparent;
    font-size: 1rem;
}

.search-field-mobile:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--primary-green);
}

.search-field-mobile:focus-visible {
    outline: none;
}

.search-field-mobile::placeholder {
    color: #9ca3af;
}

/* Убираем крестик в поле поиска в WebKit браузерах */
.search-field-header::-webkit-search-decoration,
.search-field-header::-webkit-search-cancel-button,
.search-field-header::-webkit-search-results-button,
.search-field-header::-webkit-search-results-decoration {
    display: none;
}

.search-field-mobile::-webkit-search-decoration,
.search-field-mobile::-webkit-search-cancel-button,
.search-field-mobile::-webkit-search-results-button,
.search-field-mobile::-webkit-search-results-decoration {
    display: none;
}

/* Убираем крестик в IE/Edge */
.search-field-header::-ms-clear,
.search-field-header::-ms-reveal {
    display: none;
}

.search-field-mobile::-ms-clear,
.search-field-mobile::-ms-reveal {
    display: none;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .search-form-header {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .search-form-header {
        max-width: 150px;
    }
    
    .search-field-header {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .search-form-header {
        max-width: 120px;
    }
}

/* ===== Полноэкранный hero-блок с 3D моделью ===== */

.iframe-wrapper-hero {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.iframe-wrapper-hero iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* Если iframe не занимает всю высоту, добавим масштабирование */
.iframe-wrapper-hero iframe {
    transform: scale(1.05);
}

/* Анимация для стрелки */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Адаптивность текста */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* ===== Story Section ===== */

/* Гарантия горизонтального расположения на планшетах и десктопе */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row !important;
    }
    
    .md\:w-1\/3 {
        width: 33.333333% !important;
    }
    
    .md\:w-2\/3 {
        width: 66.666667% !important;
    }
    
    .md\:flex-1 {
        flex: 1 1 0% !important;
    }
}

/* ===== Кнопка мобильного меню (гамбургер) ===== */

#mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 100;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

#mobile-menu-button svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-dark);
    transition: stroke 0.2s ease;
}

/* Показываем кнопку только на мобильных устройствах (меньше 1024px) */
@media (max-width: 1023px) {
    #mobile-menu-button {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    #mobile-menu-button {
        display: none !important;
    }
}

/* Убираем outline при фокусе */
#mobile-menu-button:focus {
    outline: none;
}