/* ========================================
   STABLE.CSS — СТАБИЛЬНЫЕ СТИЛИ
   ======================================== */

/* ========================================
   ПОДКЛЮЧЕНИЕ ШРИФТОВ
   ======================================== */

/* ===== СЕМЕЙСТВО PF DinText Pro ===== */

/* Bold */
@font-face {
    font-family: 'PF DinText Pro';
    src: url('../fonts/PFDinTextPro-Bold.eot');
    src: url('../fonts/PFDinTextPro-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-Bold.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-Bold.woff') format('woff'),
         url('../fonts/PFDinTextPro-Bold.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-Bold.svg#PFDinTextPro-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Extra Black */
@font-face {
    font-family: 'PF DinText Pro Extra';
    src: url('../fonts/PFDinTextPro-ExtraBlack.eot');
    src: url('../fonts/PFDinTextPro-ExtraBlack.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-ExtraBlack.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-ExtraBlack.woff') format('woff'),
         url('../fonts/PFDinTextPro-ExtraBlack.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-ExtraBlack.svg#PFDinTextPro-ExtraBlack') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Extra Thin */
@font-face {
    font-family: 'PF DinText Pro ExtraThin';
    src: url('../fonts/PFDinTextPro-ExtraThin.eot');
    src: url('../fonts/PFDinTextPro-ExtraThin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-ExtraThin.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-ExtraThin.woff') format('woff'),
         url('../fonts/PFDinTextPro-ExtraThin.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-ExtraThin.svg#PFDinTextPro-ExtraThin') format('svg');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Light */
@font-face {
    font-family: 'PF DinText Pro';
    src: url('../fonts/PFDinTextPro-Light.eot');
    src: url('../fonts/PFDinTextPro-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-Light.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-Light.woff') format('woff'),
         url('../fonts/PFDinTextPro-Light.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-Light.svg#PFDinTextPro-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'PF DinText Pro';
    src: url('../fonts/PFDinTextPro-Medium.eot');
    src: url('../fonts/PFDinTextPro-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-Medium.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-Medium.woff') format('woff'),
         url('../fonts/PFDinTextPro-Medium.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-Medium.svg#PFDinTextPro-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Regular (Normal) */
@font-face {
    font-family: 'PF DinText Pro';
    src: url('../fonts/PFDinTextPro-Regular.eot');
    src: url('../fonts/PFDinTextPro-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextPro-Regular.woff2') format('woff2'),
         url('../fonts/PFDinTextPro-Regular.woff') format('woff'),
         url('../fonts/PFDinTextPro-Regular.ttf') format('truetype'),
         url('../fonts/PFDinTextPro-Regular.svg#PFDinTextPro-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== СЕМЕЙСТВО PF Din Text Comp Pro ===== */

/* Bold */
@font-face {
    font-family: 'PF Din Text Comp Pro';
    src: url('../fonts/PFDinTextCompPro-Bold.eot');
    src: url('../fonts/PFDinTextCompPro-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextCompPro-Bold.woff2') format('woff2'),
         url('../fonts/PFDinTextCompPro-Bold.woff') format('woff'),
         url('../fonts/PFDinTextCompPro-Bold.ttf') format('truetype'),
         url('../fonts/PFDinTextCompPro-Bold.svg#PFDinTextCompPro-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Light */
@font-face {
    font-family: 'PF Din Text Comp Pro';
    src: url('../fonts/PFDinTextCompPro-Light.eot');
    src: url('../fonts/PFDinTextCompPro-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextCompPro-Light.woff2') format('woff2'),
         url('../fonts/PFDinTextCompPro-Light.woff') format('woff'),
         url('../fonts/PFDinTextCompPro-Light.ttf') format('truetype'),
         url('../fonts/PFDinTextCompPro-Light.svg#PFDinTextCompPro-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'PF Din Text Comp Pro';
    src: url('../fonts/PFDinTextCompPro-Medium.eot');
    src: url('../fonts/PFDinTextCompPro-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextCompPro-Medium.woff2') format('woff2'),
         url('../fonts/PFDinTextCompPro-Medium.woff') format('woff'),
         url('../fonts/PFDinTextCompPro-Medium.ttf') format('truetype'),
         url('../fonts/PFDinTextCompPro-Medium.svg#PFDinTextCompPro-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: 'PF Din Text Comp Pro';
    src: url('../fonts/PFDinTextCompPro-Regular.eot');
    src: url('../fonts/PFDinTextCompPro-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextCompPro-Regular.woff2') format('woff2'),
         url('../fonts/PFDinTextCompPro-Regular.woff') format('woff'),
         url('../fonts/PFDinTextCompPro-Regular.ttf') format('truetype'),
         url('../fonts/PFDinTextCompPro-Regular.svg#PFDinTextCompPro-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Thin */
@font-face {
    font-family: 'PF Din Text Comp Pro';
    src: url('../fonts/PFDinTextCompPro-Thin.eot');
    src: url('../fonts/PFDinTextCompPro-Thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PFDinTextCompPro-Thin.woff2') format('woff2'),
         url('../fonts/PFDinTextCompPro-Thin.woff') format('woff'),
         url('../fonts/PFDinTextCompPro-Thin.ttf') format('truetype'),
         url('../fonts/PFDinTextCompPro-Thin.svg#PFDinTextCompPro-Thin') format('svg');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   ОСНОВНЫЕ СТИЛИ (БАЗА)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    background: #f0e7d1;
    color: #373C2E;
    padding-top: 72px;
    min-height: 200vh;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ШАПКА (ФИКСИРОВАННАЯ)
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #E8E3D7;
    box-shadow: none;
    z-index: 1000;
    padding: 0 30px;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 500;
    color: #373C2E;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-list a {
    display: block;
    padding: 8px 18px;
    color: #373C2E;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: color 0.2s;
    white-space: nowrap;
    background: transparent;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 0;
    outline: none;
}

.nav-list a:hover {
    color: #5a604a;
    background: transparent;
}

.nav-list a:active,
.nav-list a:focus,
.nav-list a:focus-visible {
    font-weight: 500;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.nav-list a.active {
    color: #5a604a;
    font-weight: 500;
}

/* ========================================
   БУРГЕР
   ======================================== */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #373C2E;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 15px; }
.burger span:nth-child(3) { top: 24px; }

.burger.active span:nth-child(1) {
    top: 15px;
    transform: translateX(-50%) rotate(45deg);
    width: 28px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.burger.active span:nth-child(3) {
    top: 15px;
    transform: translateX(-50%) rotate(-45deg);
    width: 28px;
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ
   ======================================== */

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #E8E3D7;
    flex-direction: column;
    padding: 20px 30px 30px;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #d6d0c2;
    z-index: 1001;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: #373C2E;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 0;
    transition: color 0.2s;
    background: transparent;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
}

.mobile-menu a:hover {
    color: #5a604a;
    background: transparent;
}

.mobile-menu.open {
    display: flex;
}

/* ========================================
   АДАПТИВ ШАПКИ
   ======================================== */

@media (max-width: 900px) {
    .nav-list {
        display: none;
    }
    .burger {
        display: flex;
    }
    .header {
        padding: 0 16px;
    }
    .header__inner {
        height: 72px;
    }
    .logo {
        font-size: 20px;
    }
}

@media (max-width: 820px) {
    .logo {
        font-size: 24px;
    }
}

/* ========================================
   ФУТЕР
   ======================================== */

.footer {
    background: #373C2E;
    color: #E8E3D7;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 5px solid #5a604a;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer a {
    color: #E8E3D7;
    text-decoration: none;
    margin: 0 8px;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
}

.footer a:hover {
    color: #b8b09e;
}

.footer .container span {
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
}

.footer__nav {
    display: flex;
    align-items: center;
}

.footer__nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.footer__nav-link {
    color: #E8E3D7;
    text-decoration: none;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer__nav-link:hover {
    color: #b8b09e;
}

.footer__nav-link.active {
    color: #b8b09e;
}

/* ========================================
   КАРТОЧКА ГЕРОЯ (ОБЩАЯ)
   ======================================== */

/* ===== КАРТОЧКА ГЕРОЯ (ОБЁРТКА) ===== */
.hero-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 309px;
}

.hero-card:hover {
    transform: translateY(-8px);
}

.hero-card:focus,
.hero-card:active {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

/* ===== ИЗОБРАЖЕНИЕ ГЕРОЯ (С ПОДЛОЖКОЙ) ===== */
.hero-card__image-wrapper {
    width: 309px;
    height: 400px;
    min-height: 400px;
    background-image: url('../images/imgitem.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-color: #E8E3D7;
    position: relative;
    flex-shrink: 0;
}

.hero-card__image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* ===== ФИО ГЕРОЯ ===== */
.hero-card__name {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-card__surname {
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500;
    font-size: 21px;
    color: #373C2E;
    line-height: 1.3;
}

.hero-card__firstname {
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500;
    font-size: 21px;
    color: #373C2E;
    line-height: 1.3;
}

/* ===== ОПИСАНИЕ ===== */
.hero-card__desc {
    font-family: "PF Din Text Comp Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
    font-size: 19px;
    color: #373C2E;
    margin-top: 4px;
    line-height: 1.4;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ГЕРОЯ — ПОДЛОЖКА
   ======================================== */

.hero-modal__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-image: url('../images/imgitem.jpg');
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-modal__image-placeholder .hero-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* ========================================
   COOKIES NOTICE
   ======================================== */

.cookies-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 16px 0;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    /* Скрываем по умолчанию */
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

/* Показываем только если есть класс .show */
.cookies-notice.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Класс для скрытия (оставляем для совместимости) */
.cookies-notice.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.cookies-notice__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookies-notice__text {
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: normal;
    font-size: 15px;
    color: #373C2E;
    line-height: 1.5;
    flex: 1;
}

.cookies-notice__link {
    color: #373C2E;
    text-decoration: underline;
    font-family: "PF DinText Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500;
    transition: color 0.2s;
}

.cookies-notice__link:hover {
    color: #5a604a;
}

.cookies-notice__btn {
    background: #f0e7d1;
    color: #373C2E;
    border: none;
    padding: 10px 34px;
    border-radius: 5px;
    font-weight: normal;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    font-family: "PF Din Text Comp Pro", system-ui, 'Segoe UI', Roboto, sans-serif !important;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.cookies-notice__btn:hover {
    background: #e3d9c0;
}

.cookies-notice__btn:active {
    transform: scale(0.98);
}

/* ===== АДАПТИВ COOKIES ===== */
@media (max-width: 768px) {
    .cookies-notice__container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
    .cookies-notice__text {
        font-size: 14px;
    }
    .cookies-notice__btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .cookies-notice {
        padding: 20px 0;
    }
    .cookies-notice__text {
        font-size: 13px;
    }
    .cookies-notice__btn {
        font-size: 15px;
        padding: 10px 16px;
        max-width: 100%;
    }
}

/* ========================================
   FANCYBOX — СТИЛИЗАЦИЯ
   ======================================== */

.fancybox-bg {
    background: #565d4a !important;
}

.fancybox-content {
    background: #f0e7d1 !important;
    padding: 0 !important;
}

.fancybox-slide--html .fancybox-close-small {
    background: #f0e7d1;
    color: #373C2E;
    border-radius: 0 0 0 8px;
}

.fancybox-slide--html .fancybox-close-small:hover {
    background: #e3d9c0;
    color: #373C2E;
}