@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

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

body {
    font-family: "Oswald", sans-serif;
    color: #fff;
    height: 200vh;
    background-color: #1a2a3a; 
}

html {
    scroll-behavior: smooth;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: #1a2a3a;
}

#bg-video-desktop {
    display: block;
}

#bg-video-mobile {
    display: none;
}

#bg-video-desktop,
#bg-video-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 992px) {
    #bg-video-desktop {
        display: none;
    }
    #bg-video-mobile {
        display: block;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero,
.tour-search-section,
.section-wrapper,
.map-section,
.reviews-section,
.awards-wrapper,
.contact-setka,
.footer-container,
.separator-wave {
    position: relative;
    z-index: 5; 
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 20px;
    border-radius: 0px 0px 20px 20px;
    background: linear-gradient(160deg, #04bdad 0%, #039b8e 50%, #027a70 100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background-color: rgba(34, 34, 34, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header--hidden {
    transform: translate(-50%, -100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 60px;
    display: block;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    z-index: 1001;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #9df3ec;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-contacts .phone {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

.btn-tour {
    background-color: #04BDAD;
    color: #fff;
    border: none;
    padding: 9px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(4, 189, 173, 0.4);
    white-space: nowrap;
}

.btn-tour:hover {
    background-color: #03a093;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(4, 189, 173, 0.6);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
    order: 3; 
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 992px) {
    .burger {
        display: flex; 
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(160deg, #039b8e 0%, #027a70 100%);
        padding: 20px 0;
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
        margin-top: 15px;
        border-radius: 0px 0px 20px 20px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .header-contacts {
        gap: 8px;
    }

    .header-contacts .phone {
        font-size: 12px;
    }

    .btn-tour {
        padding: 5px 6px;
        font-size: 12px;
    }

    .logo img {
        height: 40px;
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateY(-15px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: float 5s ease-in-out infinite alternate;
}

.hero-content h1 {
    font-size: 48px;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content p {
    font-size: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #04BDAD;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 40px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(4, 189, 173, 0.4);
    border: 1px solid transparent;
}

.btn:hover {
    background-color: #03a093;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(4, 189, 173, 0.6);
}

.wind-animation .letter {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(100px) scaleX(2) skewX(-30deg);
    animation: windIn 0.8s ease-out forwards;
}

.tv-wrapper {
    position: absolute !important;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    width: auto;
}

.tv-wrapper .tv-free-button {
    transform: scale(0.9);
    transform-origin: left center;
}

@keyframes windIn {
    0% { opacity: 0; filter: blur(10px); transform: translateX(100px) scaleX(2) skewX(-30deg); }
    50% { opacity: 0.5; filter: blur(5px); }
    100% { opacity: 1; filter: blur(0); transform: translateX(0) scaleX(1) skewX(0deg); }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

.tour-search-section {
    padding: 80px 20px;
    border-radius: 50px 50px 0px 0px;
    background: #eaf1f1;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    font-family: Arial, sans-serif;
    align-items: center;
    min-height: 100vh;
}

.section-title-line-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    color: #2c3e50;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.section-title-line-2::before,
.section-title-line-2::after {
    content: '';
    display: inline-block;
    width: 150px;
    height: 12px;
    background: radial-gradient(circle at 50% 100%, transparent 4px, #099F81 4px, #099F81 7px, transparent 7px) 0 0,
                radial-gradient(circle at 50% 0%, transparent 4px, #099F81 4px, #099F81 7px, transparent 7px) 10px 0;
    background-size: 20px 100%;
    background-repeat: repeat-x;
}

.section-title-line-2::before {
    transform: scaleX(-1);
}

@media (max-width: 992px) {
    .tour-search-section {
        padding: 50px 15px;
    }

    .section-title-line-2 {
        font-size: 1.5rem;
    }

    .section-title-line-2::before,
    .section-title-line-2::after {
        width: 80px;
        background-size: 15px 100%;
    }
}

@media (max-width: 576px) {
    .section-title-line-2 {
        font-size: 1.2rem;
        gap: 5px;
    }

    .section-title-line-2::before,
    .section-title-line-2::after {
        width: 50px;
        background-size: 10px 100%;
    }
}

.section-wrapper {
    background-color: #1d8d77;
    padding: 40px 20px;
    width: 100%;
}

.zaglushka-bento {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    min-height: 450px;
    background-image: url('/images/site_update/source/zaglushka.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 60px 80px 20px;
    font-family: "Oswald", sans-serif;
}

.zaglushka-bento::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.zaglushka-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.empty-title {
    font-size: 38px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.empty-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 300;
}

.hide-zaglushka {
    display: none !important;
}

@media (max-width: 992px) {
    .zaglushka-bento {
        justify-content: center;
        text-align: center;
        padding: 40px 20px;
        background-position: center;
    }

    .zaglushka-content {
        text-align: center;
        align-items: center;
        max-width: 90%;
    }

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

    .empty-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .zaglushka-bento {
        min-height: 300px;
        margin: 20px auto;
    }

    .empty-title {
        font-size: 22px;
    }

    .empty-subtitle {
        font-size: 14px;
    }
}

.about-us-section {
    position: relative;
    padding: 30px 20px;
    background: rgb(240, 253, 250);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 40px;
    width: 60%;
    margin: auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
}

.bento-item {
    background: #fff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    padding: 25px;
    transition: transform 0.2s ease;
}

.bento-item:hover {
    transform: translateY(-3px);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    border: none;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px;
    background: none;
}

.bento-main::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.main-logo {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 80px;
    object-fit: contain;
    z-index: 10;
    margin: 0;
    align-self: auto;
}

.main-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.btn-consult {
    background: #56a3a6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    align-self: flex-start;
    transition: background-color 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: "Oswald", sans-serif;
}

.btn-consult:hover {
    background: #468c8f;
}

.main-desc {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 800;
    text-align: right;
    max-width: 320px;
    line-height: 1.5;
    margin-left: auto;
    font-family: "Oswald", sans-serif;
}

.bento-mini {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-mini .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.card-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.bento-mini .card-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.card-title {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    margin-top: auto;
    text-align: right;
}

.card-text {
    color: #2c3e50;
    display: block;
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
    font-weight: 400;
    margin: 0;
}

.search-card {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 30px;
}

.search-card .card-title {
    margin: 0;
    text-align: right;
    font-weight: bold;
}

.search-card .card-text {
    margin: 5px 0 0 0;
}

.search-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    height: 100%;
    width: 100%;
}

@media (max-width: 1100px) {
    .about-us-section {
        width: 90%;
    }

    .main-desc {
        font-size: 19px;
        margin-left: 0;
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }

    .bento-main {
        grid-column: span 2;
        grid-row: span 1;
        min-height: auto;
        padding: 20px;
    }
    
    .bento-mini {
        height: 200px;
    }

    .bento-wide {
        height: 300px;
    }

    .main-content {
        padding: 20px;
        align-items: flex-end;
    }

    .main-desc {
        font-size: 18px;
        max-width: 70%;
        text-align: right;
        order: 2;
    }

    .main-logo {
        position: relative;
        width: 70px;
        right: auto;
        bottom: auto;
        margin-bottom: 15px;
        order: 1;
        align-self: flex-end;
    }

    .main-bottom {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .btn-consult {
        order: 3;
        align-self: flex-end;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .bento-main {
        min-height: 350px;
    }

    .main-desc {
        font-size: 16px;
        max-width: 100%;
        text-align: left;
        margin: 10px 0;
    }

    .search-card .card-content {
        align-items: flex-end;
        text-align: left;
    }

    .bento-mini {
        height: 200px;
    }

    .bento-wide {
        height: 200px;
    }

    .main-logo {
        width: 60px;
        margin-bottom: 10px;
    }

    .btn-consult {
        padding: 8px 18px;
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-main {
        grid-column: span 1;
    }

    .bento-mini {
        height: 200px;
    }

    .bento-wide {
        grid-column: span 1;
        height: 200px;
    }

    .about-us-section {
        width: 95%;
        padding: 20px 15px;
    }

    .card-title, .card-text {
        text-align: right;
    }

    .search-card .card-content {
        align-items: flex-end;
        text-align: left;
    }

    .main-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bento-main {
        min-height: 450px;
    }

    .main-desc {
        font-size: 13px;
    }
}

.separator-wave {
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    background-color: transparent; 
}

#wave-v{
    object-fit: cover;
    display: block;
    height: 100%;
    width: 100%;
}

#pesok {
    filter: brightness(0.97) contrast(1.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-section {
    background-color: #d4c99b;
    margin-top: -1px;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.map-inner-card {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f0fdfa;
    border-radius: 60px;
    padding: 60px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    position: relative !important;
}

.contact-map {
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
    min-height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.decor-item {
    position: absolute;
    z-index: 6; 
    pointer-events: none;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
}

.starfish {
    top: 15%;
    left: 4%;
    width: 200px;
    transform: rotate(-20deg);
    animation: levitation 6s ease-in-out infinite;
    --rotation: -20deg;
}

.scallop {
    bottom: 20%;
    right: 5%;
    width: 220px;
    transform: rotate(35deg);
    animation: levitation 8s ease-in-out infinite 1s;
    --rotation: 35deg;
}

@keyframes levitation {
    0% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
    100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
}

.help-action-btn {
    width: 32px;
    height: 32px;
    background-color: #04bdad;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-family: "Oswald", sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    right: 50px;
    bottom: 20px;
}

.help-action-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #04bdad;
}

@media (max-width: 1100px) {
    .decor-item {
        display: none;
    }
}

@media (max-width: 992px) {
    .map-inner-card {
        padding: 40px 25px;
        border-radius: 40px;
    }

    .contact-map {
        height: 450px;
        min-height: 450px;
    }

    .help-action-btn {
        right: 25px;
        bottom: 15px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .map-inner-card {
        padding: 25px 15px;
        border-radius: 30px;
    }

    .contact-map {
        height: 350px;
        min-height: 350px;
    }

    .help-action-btn {
        right: 15px;
        bottom: 10px;
    }
}

.office-details {
    max-width: 1100px;
    margin: 30px auto 0;
    background: rgba(240, 253, 250, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.office-details.visible {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 50px;
    max-height: 1000px;
}

.details-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 40px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.details-content::-webkit-scrollbar {
    display: none;
}

.office-photos {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: #ffffff;
    padding: 12px 12px 35px 12px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 260px;
    cursor: pointer;
}

.photo-card:nth-child(odd) { transform: rotate(-2deg); }
.photo-card:nth-child(even) { transform: rotate(2deg); }

.photo-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.office-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
}

.photo-caption {
    padding-top: 15px;
    color: #555;
    font-size: 0.9rem;
    font-family: "Merriweather", serif;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .office-details.visible {
        max-height: none;
        margin-bottom: 30px;
    }

    .details-content {
        flex-direction: column;
        padding: 25px 15px;
        overflow-x: visible;
    }

    .office-photos {
        flex-direction: column;
        align-items: center;
    }

    .photo-card {
        width: 90%;
        max-width: 300px;
        transform: rotate(0deg) !important;
    }

    .photo-card:hover {
        transform: scale(1.02) translateY(-5px) !important;
    }

    .office-photo {
        height: 200px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.photo-modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    border: 10px solid #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.contact-setka {
    background-color: #008175;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.contact-grid-setka {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto; 
    align-items: center;
    gap: 20px;
    padding: 20px 40px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1200px;
}

.c-item {
    display: flex;
    flex-direction: column;
}

.c-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.c-tag {
    font-size: 10px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.c-main {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

.c-social {
    display: flex;
    gap: 10px;
}

.s-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.s-btn:hover {
    background: #04BDAD;
    transform: translateY(-2px);
}

.s-btn img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .contact-grid-setka {
        display: grid;
        grid-template-columns: repeat(5, 1fr); 
        gap: 20px;
    }

    .c-item:has(.c-social) {
        grid-column: 1 / -1; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        margin-top: 10px;
    }

    .c-social {
        display: flex;
        justify-content: center; 
    }

    .c-divider {
        display: none;
    }
}

@media (max-width: 900px) {
    .contact-grid-setka {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: auto;
    }

    .c-item {
        align-items: center;
        text-align: center;
    }

    .c-social {
        grid-column: span 2;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .contact-setka {
        padding: 15px;
    }

    .contact-grid-setka {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px !important;
    }

    .c-social {
        grid-column: span 1;
    }

    .c-tag {
        font-size: 9px;
    }

    .c-main {
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
    }
}

.reviews-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #008175;
    box-sizing: border-box;
}

.reviews-card {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px !important;
    background: #f0fdfa;
    border-radius: 40px;
    overflow: hidden; 
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%; 
}

.reviews-viewport {
    overflow: hidden;
    flex: 1; 
}

.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    will-change: transform;
}

.review-item {
    /* расчет: (100% - (кол-во зазоров * размер зазора)) / кол-во карточек */
    flex: 0 0 calc((100% - 40px) / 3); 
    min-width: 0; 
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.nav-btn {
    background: rgba(4, 189, 173, 0.2);
    border: 1px solid #04BDAD;
    color: #04BDAD;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.nav-btn:hover {
    background: #04BDAD;
    color: #fff;
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .review-item {
        /* 2 карточки: (100% - 20px зазора) / 2 */
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .reviews-card {
        padding: 20px !important;
        border-radius: 25px;
        height: auto;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 600px) {
    .carousel-wrapper {
        gap: 5px;
    }

    .review-item {
        flex: 0 0 100%;
    }
    
    .nav-btn {
        display: none; 
    }
}

.awards-wrapper {
    background: #008175;
    padding: 50px 20px;
}

.awards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.awards-grid img {
    height: 250px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.awards-grid img:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .awards-wrapper {
        padding: 30px 15px;
    }

    .awards-grid {
        gap: 20px;
    }

    .awards-grid img {
        height: 170px;
    }
}

@media (max-width: 576px) {
    .awards-wrapper {
        padding: 20px 10px;
    }

    .awards-grid {
        gap: 15px;
    }

    .awards-grid img {
        height: 150px;
    }
}


.footer-container {
    background-color: #008175;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-item {
    display: inline-block;
    white-space: nowrap;
}

.footer-item:not(:last-child)::after {
    content: "\2022";
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.footer-links .footer-item:last-child::after,
.footer-links a:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 6px 12px;
        font-size: 12px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-item:not(:last-child)::after {
        margin-left: 8px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        padding: 15px 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-item {
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }
    
    .footer-links a {
        white-space: normal;
        word-break: break-word;
    }

    .footer-item:after {
        display: none;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideInModal 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px 20px 30px;
    background: rgb(4, 189, 173);
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    font-family: "Oswald", sans-serif;
    letter-spacing: 1px;
}

.modal-close {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    max-height: 55vh;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    font-family: "Merriweather", serif;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: "Oswald", sans-serif;
}

.modal-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.modal-btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px 30px;
}

.modal-form input,
.modal-form textarea {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: "Merriweather", serif;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fefefe;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #04BDAD;
    box-shadow: 0 0 0 3px rgba(4, 189, 173, 0.1);
    background: white;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #aaa;
    font-weight: 300;
}

.modal-form textarea {
    height: 100px;
    resize: vertical;
}

.form-agreement {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    font-family: "Oswald", serif;
}

.form-agreement a {
    color: #04BDAD;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid #04BDAD;
}

.form-agreement a:hover {
    color: #027a70;
    border-bottom: 1px solid #027a70;
}

.btn-submit {
    display: inline-block;
    padding: 14px 36px;
    background-color: #04BDAD;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: "Oswald", sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(4, 189, 173, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #03a093;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(4, 189, 173, 0.6);
}

.btn-submit:active {
    transform: translateY(0px) scale(0.98);
}

@media (max-width: 576px) {
    .modal-container {
        width: 92%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 18px 20px 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
        max-height: 50vh;
    }

    .modal-form {
        padding: 20px;
        gap: 15px;
    }

    .modal-form input,
    .modal-form textarea {
        padding: 12px 15px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .modal-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.modal-open {
    overflow: hidden !important;
}


.page-identity-section {
    background-color: #d4c99b;
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow-x: hidden;
    color: #2c3e50;
    z-index: 10;
}

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

.about-hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 50px 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(177, 38, 38, 0.05));
}

.about-hero-subtitle {
    font-size: 22px;
    opacity: 0.85;
    margin-bottom: 40px;
    font-weight: 400;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.hero-stat-number {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: #04BDAD;
}

.hero-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.1);
}

.about-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bento-card {
    background: rgb(240, 253, 250);
    border-radius: 35px;
    padding: 35px;
}

.bento-card-main {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.bento-card-main .yandex-rating {
    margin-top: auto;
    padding-top: 20px;
    display: block;
    align-self: center;
}

.bento-card-inner-text {
    flex-grow: 0;
}

.bento-card-mission {
    grid-column: span 2;
}

.bento-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a2a3a;
}

.bento-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    color: #444;
}

.atmosphere-section {
    margin-bottom: 80px;
}

.divider-text {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0.5;
}

.horizontal-carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
    flex: 0 0 100%;
    padding: 5px;
}

.snapshot-frame {
    background: white;
    padding: 15px 15px 25px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    cursor: pointer;
}

.big-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 25px;
}

.photo-caption {
    text-align: center;
    padding-top: 20px;
    font-weight: 600;
    font-size: 16px;
    color: #555;
}

.director-section {
    margin-bottom: 80px;
}

.director-bento {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.04);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.director-content {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.director-label {
    color: #04BDAD;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
}

.director-name {
    font-size: 42px;
    margin-bottom: 25px;
    color: #1a2a3a;
    font-weight: 800;
}

.director-text {
    font-size: 19px;
    line-height: 1.7;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 20px;
}

.director-photo-box {
    flex: 0.8;
    min-height: 480px;
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-cta {
    margin-top: 40px;
    background-image: url('/images/site_update/source/cta_badge.png');
    background-size: cover;
    background-position: center left;
    border-radius: 50px;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 60px;
}

.cta-text-side {
    max-width: 500px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-text-side h2 {
    font-size: 38px;
    color: #1a2a3a;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
}

.cta-text-side p {
    color: #2c3e50;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: #04BDAD;
    color: white;
    border: none;
    padding: 20px 45px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(4, 189, 173, 0.3);
}

.cta-button:hover {
    background: #039b8e;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(4, 189, 173, 0.4);
}

@media (max-width: 992px) {
    .about-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-bento {
        flex-direction: column;
    }

    .director-photo-box {
        height: 400px;
    }

    .about-cta {
        background-position: center;
        min-height: auto;
    }

    .cta-content-wrapper {
        justify-content: center;
        padding: 40px 20px;
    }

    .cta-text-side {
        max-width: 100%;
        background: rgba(255, 255, 255, 0.85);
        text-align: center;
    }

    .cta-text-side h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .about-hero-logo {
        max-width: 240px;
    }

    .about-hero-stats {
        flex-direction: column;
        gap: 25px;
    }

    .hero-stat-divider {
        display: none;
    }

    .about-bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-main,
    .bento-card-mission {
        grid-column: span 1;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 50px;
    }

    .hero-content {
        padding: 25px 20px;
    }

    .tour-search-section {
        min-height: auto;
    }

    .contact-map {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 20px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-subtitle {
        font-size: 12px;
    }

    .btn, .btn-consult {
        padding: 8px 20px;
        font-size: 13px;
    }

    .reviews-card iframe {
        height: 350px;
    }

    .bento-main {
        min-height: 450px;
    }

    .main-desc {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 20px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-subtitle {
        font-size: 12px;
    }

    .btn, .btn-consult {
        padding: 8px 20px;
        font-size: 13px;
    }
}