* {
    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: 1200px) {
    header {
        padding: 15px;
    }
    .menu {
        gap: 15px;
    }
    .menu > li > a {
        font-size: 18px;
    }
}
@media (max-width: 1000px) { 
    header {
        padding: 10px 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(1.8em);
    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;
}


/* Паралакс */
.parallax h1 {
    font-size: 120px;
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.651);
}
.parallax-1 {
    background: url('../images/Вологда ночь.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 700px;
    padding-top: 80px;
}
.parallax-2 {
    background: url('../images/Вологда зима.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 700px;
}
.parallax-3 {
    background: url('../images/центр.JPEG') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 700px;
}
.parallax-inner {
    padding: 10% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
@media (max-width: 768px) {
    .parallax h1 {
        font-size: 60px;
    }
    .parallax-1, .parallax-2, .parallax-3 {
        height: 300px;
    }
    .parallax-1 {
        padding-top: 70px; 
    }
    .parallax-inner {
        padding: 5% 0;
    }
}


/* Информационный блок */
.info-section {
    background-color: #60739B;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    flex-wrap: wrap;
}
.info-text {
    max-width: 650px;
    font-size: 21px;
    line-height: 30px;
    margin: 0 50px 40px;
    text-align: center;
}
.circle-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.circle-images img {
    width: 559px;
    height: 460px;
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        padding: 20px;
    }
    .info-text {
        margin: 0 0 20px 0;
        font-size: 17px;
        line-height: 24px;
    }
    .circle-images {
        flex-direction: column;
        gap: 10px;
    }
}

/* карточки */
.zag-card {
    text-align: center; 
    margin: 40px auto; 
    padding: 0 20px; 
}
.zag-card h1 {
    font-size: 50px;
    color: #000;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1540px;
    margin: 0 auto;
}
.card {
    width: 100%;
    height: 600px;
    background: #60739B;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.2s ease-in-out;
    overflow: hidden;
    padding: 5px;
    position: relative;
}
.card img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: 0.2s ease-in-out;
    z-index: 1;
    display: block;
    object-fit: cover;
}
.textBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.2s ease-in-out;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
}
.textBox > .text {
    font-weight: bold;
}
.textBox > .head {
    font-size: 30px;
}
.textBox > span {
    font-size: 21px;
    color: lightgrey;
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
}
.card:hover > .textBox {
    opacity: 1;
}
.card:hover > img {
    filter: blur(7px);
    animation: anim 3s infinite;
    border-radius: 20px;
}
@keyframes anim {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
.card:hover {
    transform: scale(1.04) rotate(-1deg);
}
@media (max-width: 1024px) {
    .zag-card {
        width: 90%;
        margin-bottom: 30px; 
        margin-right: 0;
    }
}
@media (max-width: 768px) {
    .zag-card {
        margin-bottom: 20px;
        padding: 0 15px; 
    }
    .zag-card h1 {
        font-size: 24px;
    }
}
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 10px;
        gap: 10px;
    }
    .card {
        height: 450px;
    }
  .textBox > .head {
    font-size: 19px !important;
  }

    .textBox > span {
        font-size: 17px !important;
        padding-left: 20px; 
        padding-right: 20px;
    }
}


/* Карта */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
}
.text-container {
    width: 800px;
    text-align: center;
    margin-right: 100px;
}
.text-container h1 { 
    font-size: 50px; 
}
.text-container p {
    font-size: 21px;
}
.route-button-container {
    margin-top: 30px;
    text-align: center;
}

.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #60739B;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.route-button:hover {
    background-color: #4a5d80;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.route-button svg {
    transition: transform 0.3s ease;
}

.route-button:hover svg {
    transform: translateX(3px);
}

.dark-theme .route-button {
    background-color: #4a5d80;
}

.dark-theme .route-button:hover {
    background-color: #3a4a6b;
}
.map-container {
    width: 50%;
    height: 620px;
}
.map-container iframe {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: block;
}
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    .text-container {
        width: 90%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .map-container {
        width: 95%;
        height: 400px;
        margin-bottom: 30px;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .text-container {
        margin-bottom: 20px;
        word-break: break-word;
    }
    .text-container h1 {
        font-size: 24px;
     }
    .text-container p {
        font-size: 17px;
    }
    .map-container {
        width: 100%;
        height: 300px;
        margin-bottom: 25px;
    }
}


/* Подвал */
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-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}
.footer-contacts 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;
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-logo,
    .footer-contacts {
        width: 100%;
    }
    .social-icons {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    footer {
        padding: 30px 15px;
    }
    .footer-logo img {
        height: 60px;
    }
    .footer-nav h4,
    .footer-contacts h4 {
        font-size: 1.1em;
    }
    .social-icons img {
        width: 25px;
        height: 25px;
    }
}


/* Темная тема */
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;
}
.info-section.dark-theme {
    background-color: #60739B;
    color: #ddd;
}
footer.dark-theme {
    background-color: #222;
}
.footer-center.dark-theme {
    color: #ddd;
}
.footer-links.dark-theme a {
    color: #ddd;
}
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);
}
body.dark-theme .zag-card h1 {
    color: #ddd;
}

 /* Подвал */
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;
    }
}
