@font-face{
    font-family: 'SC Jurere';      
    src: url('fonts/SC Jurere.ttf') format('truetype');
    font-weight: normal;              
    font-style: normal;               
}

@import url('https://fonts.googleapis.com/css2?family=Franklin+Gothic+Medium&display=swap');


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

body {
    margin: 0;
    padding: 0;
    background-color: #eee7d7;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    color: white;
    min-height: 100vh;
}

.wrapper {
    margin: 0;
    padding: 0;
    background-color: #eee7d7;
    overflow-x: hidden;
}

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

.hero {
    min-height: 100vh;
    background-image: url('img/back.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.amphora {
    max-width: 100%;
    position: relative;
    left: -150px;
}

.drum {
    max-width: 100%;
    position: relative;
    left: -80px;
}

.umbrella {
    max-width: 100%;
    position: relative;
    left: -80px;
}

.hero--info {
    width: 530px;
    padding: 0 20px;
    margin-left: 50px;
}

.hero--info h1 {
    font-family: 'SC Jurere', Georgia, 'Times New Roman', Times, serif;
    color: #324961;
    font-weight: 100;
    font-size: 102px;
    justify-content: center;
    text-align: center;
    word-spacing: -25px;
    white-space: nowrap;
}

.hero--info h2 {
    font-family: 'Franklin Gothic Medium', 'Times New Roman', Times, serif;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-decoration-line: underline overline;
}

.hero--info p {
    font-family: Impact;
    font-weight: 50;
    font-size: 23px;
}

header.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px 50px;
    z-index: 100;
}

.logo img {
    max-height: 130px;
    width: auto;
    display: block;
}

.logo {
    display: inline-block;
    margin-top: -10px;
}

header nav {
    float: right;
    width: 50%;
    margin-top: 30px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    font-family: 'SC Jurere', Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    display: inline-block;
}

header nav ul li a {
    color: #58799c;
    text-decoration: none;
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background: #58799c;
    border-radius: 10px;
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 5px solid #58799c;
}

header nav ul li.btn a {
    background: #58799c;
    color: #eee7d7;
    padding: 9px 17px;
    border-radius: 5px;
    transition: all 500ms ease;
}

header nav ul li.btn a:hover {
    background: #eee7d7;
    color: #58799c;
}

.description {
    margin-top: -50px;
    width: 100%;
    padding: 0 20px;
}

.description .model_3D {
    margin-left: 60px;
    flex: 1;
    width: 80%;
    overflow: hidden;
    border-radius: 16px;
}

.description h2 {
    margin-left: 60px;
    font-family: 'SC Jurere', Georgia, 'Times New Roman', Times, serif;
    font-size: 40px;
}

.photos {
    width: 100%;
    background-image: url('img/back copy.jpg');
    padding: 0;
    margin: 0;
}

.photos h2 {
    margin-left: 60px;
    color: #58799c;
    font-family: 'SC Jurere', Georgia, 'Times New Roman', Times, serif;
    font-size: 40px;
    margin-bottom: 20px;
}

.exhibits-grid {
    margin-left: 60px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}

.exhibit-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exhibit-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.exhibit-card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.exhibit-card p {
    color: #666;
    font-size: 14px;
}

header nav ul li {
    display: inline-block;
    position: relative;
}

header nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #58799c;
    min-width: 150px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
}

header nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

header nav ul li .dropdown li {
    display: block;
}

header nav ul li .dropdown li a {
    color: #eee7d7;
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
}

header nav ul li a[href="#1"] {
    background-color: #324961;
}

header nav ul li .dropdown li:first-child a {
    border-radius: 5px 5px 0 0;
}

header nav ul li .dropdown li:last-child a {
    border-radius: 0 0 5px 5px;
}

header nav ul li .dropdown li:not(:last-child) a {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

header nav ul li .dropdown li a:hover {
    background: #3a5a7c;
    color: #eee7d7;
}

.description-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.description-text {
    flex: 1;
}

.description-text ul {
    padding-left: 20px;
}

.description-image {
    flex: 1;
}

.description-image img {
    width: 100%;
    border-radius: 12px;
}

.model-and-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.model-and-info .model_3D {
    flex: 1;
    min-width: 300px;
}

.info-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    width: 100px;
    font-weight: 600;
    color: #E67E22;
}

.info-value {
    flex: 1;
    color: #2D2D2D;
}

.model_3D model-viewer {
    width: 100%;
    height: 500px;
    display: block;
}

.exhibit-card {
    width: 280px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.exhibit-card:hover {
    transform: translateY(-5px);
}

.exhibit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.footer {
    background-color: #2c3e2f;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about,
.footer-contacts,
.footer-hours {
    flex: 1;
    min-width: 200px;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer p {
    line-height: 1.5;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ (до 1024px) ===== */
@media (max-width: 1024px) {
    .hero--info h1 {
        font-size: 70px;
        word-spacing: -15px;
    }
    
    .hero--info {
        width: 450px;
        margin-left: 30px;
    }
    
    .amphora {
        left: -100px;
    }
    
    .drum, .umbrella {
        left: -50px;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ (до 768px) ===== */
@media (max-width: 768px) {
    /* Навигация */
    header.container {
        padding: 10px 20px;
        position: relative;
        background-color: #eee7d7;
    }
    
    header nav {
        float: none;
        width: 100%;
        margin-top: 10px;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    header nav ul li {
        font-size: 16px;
    }
    
    .logo {
        display: block;
        text-align: center;
        margin-top: 0;
    }
    
    .logo img {
        max-height: 80px;
        margin: 0 auto;
    }
    
    /* Hero секция */
    .hero {
        flex-direction: column;
        justify-content: center;
        background-size: cover;
        padding: 80px 0 50px;
    }
    
    .hero--info {
        width: 90%;
        margin-left: 0;
        text-align: center;
        order: 1;
    }
    
    .hero--info h1 {
        font-size: 48px;
        word-spacing: -5px;
        white-space: normal;
    }
    
    .hero--info h2 {
        font-size: 20px;
    }
    
    .hero--info p {
        font-size: 16px;
    }
    
    /* Картинки в hero */
    .amphora, .drum, .umbrella {
        max-width: 80%;
        left: 0;
        margin: 10px auto;
        display: block;
    }
    
    /* Описание */
    .description {
        margin-top: 0;
        padding: 0 15px;
    }
    
    .description h2 {
        margin-left: 0;
        font-size: 28px;
        text-align: center;
    }
    
    .description .model_3D {
        margin-left: 0;
        width: 100%;
    }
    
    .model_3D model-viewer {
        height: 300px;
    }
    
    /* Сетка описания */
    .description-grid {
        flex-direction: column;
    }
    
    .model-and-info {
        flex-direction: column;
    }
    
    /* Фото секция */
    .photos h2 {
        margin-left: 0;
        font-size: 28px;
        text-align: center;
    }
    
    .exhibits-grid {
        margin-left: 0;
        justify-content: center;
        gap: 15px;
    }
    
    .exhibit-card {
        width: 90%;
        max-width: 280px;
    }
    
    /* Карточка информации */
    .info-card {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Футер */
    .footer {
        padding: 30px 20px 15px;
        margin-top: 30px;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer h4 {
        font-size: 16px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ (до 480px) ===== */
@media (max-width: 480px) {
    .hero--info h1 {
        font-size: 36px;
    }
    
    .hero--info h2 {
        font-size: 16px;
    }
    
    .hero--info p {
        font-size: 14px;
    }
    
    .description h2,
    .photos h2 {
        font-size: 24px;
    }
    
    .model_3D model-viewer {
        height: 250px;
    }
    
    .exhibit-card {
        width: 100%;
    }
    
    header nav ul li {
        font-size: 14px;
    }
    
    header nav ul li.btn a {
        padding: 6px 12px;
        font-size: 14px;
    }
}
