/* Внутренние страницы: шапка, меню, контент, подвал (без главной) */

@font-face {
    font-family: 'Alumni Sans SC';
    src: url('../fonts/AlumniSansSC-VariableFont_wght.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
    font-family: "Alumni Sans SC", sans-serif;
}

p {
    font-family: "Open Sans", sans-serif;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f4cf37;
}

/* Герой (компактный) */
.hero {
    height: 20vh;
    min-height: 140px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.slideshow {
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1) translate(0, 0);
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.slide:first-child {
    opacity: 1;
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    animation: subpagesZoomPan 8s linear forwards;
}

.slide picture,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes subpagesZoomPan {
    0% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.1) translate(5px, 2px); }
    50% { transform: scale(1.2) translate(10px, 5px); }
    75% { transform: scale(1.3) translate(15px, 8px); }
    100% { transform: scale(1.4) translate(20px, 10px); }
}

.nav-container {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 10;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.museum-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
}

.museum-text .museum-text-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.museum-text .museum-text-link:hover,
.museum-text .museum-text-link:focus,
.museum-text .museum-text-link:active,
.museum-text .museum-text-link:visited,
.museum-text .museum-text-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.nav-line {
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.line {
    flex-grow: 1;
    height: 1px;
    background-color: #fff;
}

.logo {
    margin: 0 5px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
}

.logo-img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.menu-toggle {
    position: absolute;
    right: 40px;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    overflow: visible;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    width: 133.3334%;
}

.menu-toggle span:nth-child(2) {
    width: 200%;
}

.menu-toggle span:nth-child(n+3) {
    display: none;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.menu-open .overlay-menu {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

body.menu-open .menu-toggle {
    opacity: 0;
    visibility: hidden;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 20px;
}

.menu-logo {
    margin-bottom: 60px;
}

.menu-logo img {
    height: 240px;
    width: auto;
}

.menu-items {
    list-style: none;
    text-align: center;
    margin: 0 0 40px;
    padding: 0;
}

.menu-items li {
    margin: 25px 0;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #d4af37;
}

.menu-phone {
    margin-bottom: 40px;
}

.menu-phone a {
    color: #d4af37;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-phone a:hover {
    color: #f4cf37;
}

.menu-button-container .btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button-container .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Контент */
.about-honey {
    min-height: 40vh;
    background-color: #f0f0f0;
    padding: 60px 40px 80px;
    display: flex;
    align-items: flex-start;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    padding-right: 0;
    max-width: 900px;
}

.about-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: #d4af37;
    line-height: 1.4;
}

.about-title2,
.about-text h3.about-title2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 28px 0 16px;
    color: #d4af37;
    line-height: 1.35;
    font-family: "Alumni Sans SC", sans-serif;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #000;
    font-family: "Open Sans", sans-serif;
}

.breadcrumbs {
    font-family: "Open Sans", sans-serif;
    line-height: 1.8;
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.breadcrumbs a {
    font-family: "Open Sans", sans-serif;
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: inherit;
}

.breadcrumbs .separator {
    margin: 0 6px;
    color: inherit;
}

/* Карточка PDF (конкурс) */
.about-text a.doc-link:not(.contact-link) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: #333;
    font-family: "Open Sans", sans-serif;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-text a.doc-link:not(.contact-link):hover {
    background: #f5f7fa;
    transform: translateY(-2px);
    color: #333;
}

.doc-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.doc-title {
    font-size: 16px;
    font-weight: 500;
}

/* Блок информации (info.html) */
.maslenitsa-block {
    margin-bottom: 0;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.maslenitsa-grid {
    display: grid;
    gap: 0;
    align-items: stretch;
}

.maslenitsa-text {
    font-family: "Open Sans", sans-serif;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.maslenitsa-text h3 {
    font-size: 32px;
    font-weight: 500;
    color: #d4af37;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.3;
    font-family: "Alumni Sans SC", sans-serif;
}

.maslenitsa-text .contacts {
    margin-top: 0;
}

.contact-group {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-group__title {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
}

.contact-group__info {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1e1e1e;
    font-weight: 400;
    word-break: break-word;
}

.contact-link {
    color: #1e1e1e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    display: inline-block;
    margin-right: 12px;
}

.contact-link:hover {
    border-bottom-color: #d4af37;
    color: #000;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
}

.docs-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

a.doc-link.contact-link {
    position: relative;
    padding-left: 15px;
}

a.doc-link.contact-link::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #1e1e1e;
}

.footer {
    background-color: #1a1a1a;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: #ccc;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

#current-year {
    font-family: inherit;
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Кнопки и сбросы */
button.menu-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
}

button.menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

button.menu-close {
    background: transparent;
    border: none;
    padding: 0;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn,
.btn,
.btn_honey,
.btn_map,
.btn-museum-more,
.btn-hero-cta,
.modal-book-button {
    font-family: "Oswald", "Alumni Sans SC", sans-serif;
}

a.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 20px;
    }

    .museum-text {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .menu-toggle {
        right: 20px !important;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .overlay-menu {
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-content {
        height: auto;
        min-height: 100%;
        justify-content: flex-start;
        padding: 72px 20px calc(28px + env(safe-area-inset-bottom, 0));
        box-sizing: border-box;
    }

    .menu-close {
        top: 20px;
        right: 20px;
    }

    .menu-logo {
        margin-bottom: 16px;
    }

    .menu-logo img {
        height: 96px;
        width: auto;
    }

    .menu-items {
        margin-bottom: 16px;
    }

    .menu-items li {
        margin: 8px 0;
    }

    .menu-items a {
        font-size: clamp(15px, 4.2vw, 18px);
        letter-spacing: 2px;
    }

    .menu-phone {
        margin-bottom: 16px;
    }

    .menu-phone a {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .menu-button-container .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .about-honey {
        padding: 40px 20px 60px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-title2,
    .about-text h3.about-title2 {
        font-size: 24px;
        letter-spacing: 1px;
        margin: 22px 0 12px;
    }

    .maslenitsa-text {
        padding: 30px 24px;
    }

    .maslenitsa-text h3 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .maslenitsa-text {
        padding: 24px 16px;
    }

    .maslenitsa-text h3 {
        font-size: 24px;
    }

    .contact-group__info {
        font-size: 16px;
    }

    .footer p {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide,
    .slide.active,
    .overlay-menu {
        transition: none !important;
        animation: none !important;
    }

    .slide.active {
        transform: none !important;
    }
}
