* {
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    width: 100vw;
}
/* Шапка */
header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 300px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100vw;
    z-index: 10;
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
}
.menu {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu > li > a {
    text-decoration: none;
    color: #333333;
    font-size: 19px;
    transition: color 0.3s;
    white-space: nowrap;
}
.menu > li > a:hover {
    color: #60739B;
}
.hamb {
    display: none; 
    align-items: center;
    margin-left: auto; 
}
.hamb__field {
    padding: 10px 0;
    cursor: pointer;
}
.bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background-color: #333;
    transition: 0.2s;
}
.popup {
    position: fixed;
    top: 80px; 
    left: -100%; 
    width: 100%;
    height: calc(100% - 80px); 
    background-color: #fff;
    z-index: 99; 
    display: flex;
    transition: 0.3s;
    overflow-y: auto; 
}
.popup.open {
    left: 0; 
}
.popup .menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    padding: 50px 0;
    overflow: auto;
}
.popup .menu > li {
    width: 100%;
}
.popup .menu > li > a {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: bold;
    color: #3f3f3f;
}
.popup .menu > li > a:hover {
    background-color: rgba(96, 115, 155, 0.1); 
}
.hamb__field.active .bar:nth-child(2) {
    opacity: 0;
}
.hamb__field.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamb__field.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
body.noscroll {
    overflow: hidden; 
}

@media (max-width: 1000px) { 
    header {
        padding: 30px 20px; 
        justify-content: space-between;
    }
    .menu {
        display: none; 
    }
    .hamb {
        display: flex; 
    }
    .logo {
        margin-right: auto; 
    }
    .switch {
        margin-left: 20px; 
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: row; 
        align-items: center;
        padding: 10px 15px;
        position: fixed; 
        width: 100vw;
    }
    .logo img {
        height: 60px; 
    }
    .switch {
        margin-left: 10px; 
    }
    .popup {
        top: 70px; 
        height: calc(100% - 70px);
    }
}
@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    .menu > li > a {
        font-size: 15px;
    }
}

/* Кнопка переключения темной темы */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2.2em;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.4s;
    border-radius: 30px;
    overflow: hidden;
}
.slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.2em;
    border-radius: 20px;
    left: 0.5em;
    bottom: 0.5em;
    transition: 0.4s;
    transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
    box-shadow: inset 8px -4px 0px 0px #fff;
}
.switch input:checked + .slider {
    background-color: #60739B;
}
.switch input:checked + .slider:before {
    transform: translateX(2.2em);
    box-shadow: inset 15px -4px 0px 15px #ffcf48;
}
.star {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    width: 5px;
    transition: all 0.4s;
    height: 5px;
}
.star_1 {
    left: 2.5em;
    top: 0.5em;
}
.star_2 {
    left: 2.2em;
    top: 1.2em;
}
.star_3 {
    left: 3em;
    top: 0.9em;
}
.switch input:checked ~ .slider .star {
    opacity: 0;
}
.cloud {
    width: 3.5em;
    position: absolute;
    bottom: -1.4em;
    left: -1.1em;
    opacity: 0;
    transition: all 0.4s;
}
.switch input:checked ~ .slider .cloud {
    opacity: 1;
}

/* Заголовок */
.header {
    background-color: #60739B;
    color: white;
    text-align: center;
    padding: 30px;
    padding-top: 150px;
    font-size: 26px;
    transition: background-color 0.3s, color 0.3s;
}
@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
        padding-top: 120px;
    }
    .header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .header p {
        font-size: 16px;
        max-width: 90%;
        margin: 0 auto;
    }
}


/* Категории */
.category-nav {
    display: flex;
    justify-content: center;
    padding: 15px;
    margin: 20px 0;
}

.category-nav button {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 24px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 18px;
}

.category-nav button:hover {
    background-color: #eee;
}

.category-nav button.active {
    background-color: #60739B;
    color: white;
    border-color: #60739B;
}
@media (max-width: 768px) {
    .category-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 5px;
    }
    .category-nav button {
        padding: 8px 16px;
        font-size: 16px;
        margin: 0;
        flex-grow: 1;
        min-width: 120px;
    }
}

/* Миниатюры слева */
.container {
    display: flex;
    min-height: 100vh;
}

.thumbnails-column {
    width: 450px;
    background-color: #f0f0f0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.thumbnail {
    margin-bottom: 25px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border: 3px solid #60739B;
}

.thumbnail-content {
    padding: 20px;
}

.thumbnail-category {
    background-color: #60739B;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.thumbnail h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    color: #333;
    transition: color 0.3s;
}

.thumbnail p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    transition: color 0.3s;
}
@media (max-width: 768px) {
    .thumbnail {
        width: 260px;
        margin-right: 15px;
    }
    
    .thumbnail img {
        height: 160px;
    }
    
    .thumbnail-content {
        padding: 15px;
    }
    
    .thumbnail-category {
        font-size: 14px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .thumbnail h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .thumbnail p {
        font-size: 14px;
        line-height: 1.5;
    }
}


/* Основная информация */
.content-area {
    flex: 1;
    padding: 30px;
}

.attraction-details {
    display: none;
    transition: color 0.3s;
}

.attraction-details.active {
    display: block;
}

.attraction-details h2 {
    margin-top: 0;
    color: #333;
    transition: color 0.3s;
    font-size: 32px;
    margin-bottom: 25px;
}

.attraction-details p {
    line-height: 1.8;
    color: #555;
    transition: color 0.3s;
    font-size: 20px;
    margin-bottom: 20px;
}

.info div i {
    margin-right: 10px;
    vertical-align: middle;
    font-size: 22px;
    color: #60739B;
}

.attraction-image {
    width: 100%;
    height: 900px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

@media (max-width: 1000px) {
    .attraction-image {
        height: 600px !important; 
    }
}

.about-place {
    margin-bottom: 30px;
}

.about-place h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    transition: color 0.3s;
}

.info,
.features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.info div,
.features div {
    width: 50%;
    margin-bottom: 15px;
    color: #555;
    transition: color 0.3s;
    font-size: 18px;
}

.info div i,
.features div i {
    margin-right: 8px;
}

.features div {
    width: auto;
    margin-right: 15px;
    background-color: #eee;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 18px;
}
.info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info div {
    width: 48%;
    margin-bottom: 15px;
}
.info i.fas {
    font-size: 20px;
    width: 1.25em;
    text-align: center;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 768px) {
    .info {
        display: block;
    }
    .info div {
        width: 100%;
        margin-bottom: 12px;
        font-size: 15px;
    }
    .info div i {
        font-size: 19px;
        margin-right: 12px;
    }
    .info i.fas {
        font-size: 14px;
        margin-right: 20px;
        min-width: 28px;
    }
    .features div {
        font-size: 14px;
    }
}


/* Подвал */
footer {
    background-color: #5b75a9;
    padding: 60px 30px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-logo img {
    height: 100px;
    width: auto;
    max-width: 250px;
}
.footer-contacts h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}
.social-icons {
    display: flex;
    gap: 20px;
}
.social-icons a {
    display: block;
}
.social-icons img {
    width: 40px;
    height: 40px;
}

/* Адаптив для подвала */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .footer-logo,
    .footer-contacts {
        width: 100%;
    }
    .social-icons {
        justify-content: center;
    }
}
@media (max-width: 600px) {
    footer {
        padding: 50px 25px;
    }
    .footer-logo img {
        height: 80px;
    }
    .footer-nav h4,
    .footer-contacts h4 {
        font-size: 22px;
    }
    .social-icons img {
        width: 35px;
        height: 35px;
    }
}
@media (max-width: 768px) {
    .thumbnails-column {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail {
        flex: 0 0 auto;
        width: 300px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .thumbnail:last-child {
        margin-right: 0;
    }
    
    .thumbnail.active {
        border: 3px solid #60739B;
        box-shadow: 0 0 10px rgba(96, 115, 155, 0.5);
    }
}

/* Адаптив для основного контента */
@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .thumbnails-column {
        width: 100%;
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        height: auto;
        padding: 15px;
        position: static;
        box-shadow: none;
        background-color: #f5f5f5;
    }

    .thumbnail {
        flex: 0 0 auto;
        width: 280px;
        margin-right: 15px;
        margin-bottom: 0;
        display: inline-block;
    }

    .thumbnail:last-child {
        margin-right: 0;
    }

    .thumbnail img {
        height: 160px;
    }

    .content-area {
        padding: 20px;
    }

    .attraction-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 240px;
    }

    .thumbnail img {
        height: 140px;
    }

    .attraction-image {
        height: 200px;
    }
}



/* Темная тема */
body.dark-theme {
    background: #333;
    color: #f2f2f2;
}

header.dark-theme {
    background-color: #222;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-theme .menu > li > a {
    color: #ddd;
}

body.dark-theme .menu > li > a:hover {
    color: #60739B;
}

body.dark-theme .header {
    background-color: #60739B;
    color: #ddd;
}

body.dark-theme .category-nav button {
    background-color: #444;
    color: #ddd;
    border-color: #555;
}

body.dark-theme .category-nav button:hover {
    background-color: #666;
}

body.dark-theme .category-nav button.active {
    background-color: #60739B;
    color: #222;
    border-color: #60739B;
}

body.dark-theme .thumbnails-column {
    background-color: #333;
    box-shadow: 2px 0 5px rgba(255, 255, 255, 0.1);
}

body.dark-theme .thumbnail {
    background-color: #444;
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body.dark-theme .thumbnail.active {
    border: 3px solid #60739B;
}

body.dark-theme .thumbnail-category {
    background-color: #60739B;
    color: #222;
}

body.dark-theme .thumbnail h3 {
    color: #ddd;
}

body.dark-theme .thumbnail p {
    color: #ddd;
}

body.dark-theme .attraction-details {
    color: #ddd;
}

body.dark-theme .attraction-details h2 {
    color: #ddd;
}

body.dark-theme .attraction-details p {
    color: #ddd;
}

body.dark-theme .info div i {
    color: #60739B;
}

body.dark-theme .about-place h3 {
    color: #ddd;
}

body.dark-theme .info div,
body.dark-theme .features div {
    color: #ddd;
}

body.dark-theme .features div {
    background-color: #555;
    color: #ddd;
}

body.dark-theme footer {
    background-color: #222;
}
body.dark-theme .hamb .bar {
    background-color: #fff;
}

body.dark-theme .popup {
    background-color: #333;
}

body.dark-theme .popup .menu > li > a {
    color: #ddd;
}

body.dark-theme .popup .menu > li > a:hover {
    background-color: rgba(96, 115, 155, 0.2);
}

 /* Подвал */
footer {
    background-color: #5b75a9;
    padding: 40px 20px;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info {
    display: flex;
    gap: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

.footer-contacts h4,
.photo-sources h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: block;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.photo-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-sources li {
    margin-bottom: 8px;
}

.photo-sources a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.photo-sources a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-contacts,
    .photo-sources {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .photo-sources ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 15px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-contacts h4,
    .photo-sources h4 {
        font-size: 1.1em;
    }
    
    .social-icons img {
        width: 25px;
        height: 25px;
    }
}
