*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
    /* border: green 1px solid; */
}

.wrapper{
    max-width: 1280px;
    margin: 0 auto;
}

/* INDEX */

.desktop-nav{
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

ul{
    display: flex;
    list-style: none;
    gap: 200px;
}

li{
    transition: transform 0.3s ease-in-out; 
}

a{
    text-decoration: none;
    color: black;
}

.logo{
    color: white;
}

.a-nav{
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.img-login, .locat{
    width: 40px;
}

.tr-span{
    letter-spacing: 2px;
}

.header-slider{
    overflow: hidden;
    width: 100%;
    flex-direction: column;
}

.slides {
    display: flex;
    transition: transform 1s ease-in-out;
}

.head-img {
    width: 100%;
}

.head-img-tour{
    width: 100%; 
}

.slide-item {
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 105px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slide-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 105px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.progress-bars {
    position: relative;
    bottom: 20px;
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
    gap: 10px;
}

.progress-bar {
    width: 50px;
    height: 3px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.pr-sp {
    display: block;
    height: 100%;
    background-color: #00CCFF;
    width: 0%;
    border-radius: 5px;
    transition: width linear;
}

.Search{
    display: flex;
    justify-content: center;
    position: relative;
    bottom: 30px;
}

.search-form{
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 8px -2px;
    width: 500px;
    height: 60px;
    gap: 15px;
    background-color: white;
    border-radius: 230px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.search-input{
    font-size: 1.2rem;
    border: none;
    outline: none;
    width: 100%;
}

.search-img{
    width: 32px;
}

.sear{
    display: flex;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    outline: none;
}

.mobile-main{
    display: none;
}

.main-content-card-1{
    display: flex;
    justify-content: center;
    padding: 75px 0px;
}

.main-card1{
    width: 90%;
    height: 200px;
    transform: skewX(-1.5deg);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2b4d56, #094C6B, #186D9B, #5daccb);
    box-shadow: 8px 8px 0 #006da4;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 10px;
}

.main-card2{
    width: 90%;
    height: 200px;
    transform: skewX(178.5deg);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FC7D23, #FC9A32, #F28B41, #F2C6A2);
    box-shadow: 8px 8px 0 #ef6c00;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 10px;
}

.main-card-img{
    height: 247px;
    box-shadow: 6px 6px 0 #373737;
    transition: transform 0.9s ease;
    z-index: 2;
    pointer-events: none;
    border-radius: 10px;
}

.main-card-img1{
    width: 225px;
    border-radius: 10px;
}

.main-card-text{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.9s ease;
    z-index: 1;
}

.main-card-h3{
    font-size: 1.5rem;
    color: white;
}

.goto-btn{
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    overflow: hidden;
    transform: skewX(-5deg);
    padding: 15px 30px;
    background: #6da5c0;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 3;
    left: 20%;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.9s ease;
    border-radius: 25px;
}

.goto-btn2{
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    overflow: hidden;
    transform: skewX(-5deg);
    padding: 15px 30px;
    background: #e65100;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 3;
    left: 20%;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.5s ease;
    border-radius: 25px;
}

.main-card1:hover .main-card-img, .main-card2:hover .main-card-img{
    transform: translateX(72vw);
}

.main-card1:hover .main-card-text, .main-card2:hover .main-card-text {
    transition-delay: 0.1s;
    display: none;
}

.main-card1:hover .goto-btn, .main-card2:hover .goto-btn2 {
    left:40%;
    opacity: 1;
    transition: left 0.9s ease 0.1s, opacity 0.3s ease 0.1s;
}

.footer {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 20px 0px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 0px 25px;
}

.footer-logo {
    color: #00d4ff;
}

.footer-description {
    color: #ccc;
    font-size: 1.2rem;
}

.footer-subscription,.footer-about,.footer-social{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link{
    text-align: center;
}

.social-links{
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-media, .a-login{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: box-shadow 0.3s ease ,transform 0.3s ease-in-out;
}

.facebook,.instagram,.twitter,.youtube{
    width: 35px;
    filter: invert(100%);
}

.a-login:hover{
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.social-media:hover, .lang:hover, .li-main:hover{
    transform: scale(1.2);
}

.sub{
    text-align: center;
}

.p-sub{
    font-size: 1.2rem;
}

.subscription-form {
    display: flex;
    gap: 10px;
}

.subscription-form input {
    padding-left: 12px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1.2rem;
    color: #333;
}

.subscription-form button {
    padding: 12px 20px;
    background: linear-gradient(145deg, #00d4ff, #007acc);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease-in-out;
}

.subscription-form button:hover {
    background: linear-gradient(145deg, #007acc, #00d4ff);
}

.footer-copyright {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
}

.language-p {
    font-size: 1.2rem;
    color: #ccc;
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 15px;
}

#language-select {
    padding: 8px 12px;
    border: none;
    border-radius: 25px;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#language-select:hover {
    background-color: #00d4ff;
}

.footer-cont {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px 0px;
}

.lang {
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.gmail, .phone {
    font-size: 1.2rem;
    color: #fff;
}

                /* LOGIN-REGISTRATION */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://i.imgur.com/npTZ17C.jpeg') center/cover no-repeat;
}

.headerlog{
    position: absolute;
    top: 45px;
    left: 45px;

    z-index: 2;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(45, 95, 116, 0.2);
    width: 465px;
}

.form-header {
    text-align: center;
    padding-bottom: 20px;
}

.cabinet,.form-header h2 {
    font-size: 2rem;
    color: darkcyan;
    padding-bottom: 15px;
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    font-size: 1.2rem;
    flex: 1;
    padding: 12px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.toggle-btn.active {
    background: #4d785e;
    color: white;
}

.form-group {
    padding-bottom: 15px;
}

.form-group label {
    display: block;
    padding: 10px 0px;
    color: #666;
    font-size: 1.2rem;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4d785e, #a5c882); /* Трав'яний */
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.del:hover, .exit:hover, .submit-btn:hover {
    transform: translateY(-2px);
}

#register-form {
    display: none;
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

.eye-icon{
    width: 30px;
    opacity: 0.7;
    outline: none;
}

#register-role{
    width: 100%;
}

.back-button img {
    width: 35px;
    filter: invert(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.back-button img:hover {
    filter: invert(60%);
    transform: scale(1.1);
}

.input-container {
    display: flex;
    align-items: center;
    padding: 0 5px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.input-container:focus-within {
    border-color: #4d785e;
}

.input-container input {
    font-size: 1.2rem;
    width: 100%;
    border: none;
    padding: 12px 0px;
}

.input-container input:focus {
    outline: none;
}

.input-icon {
    width: 30px;
    opacity: 0.7;
}

.profile{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.name {
    text-align: center;
    font-size: 1.5rem;
}

.buttons{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    gap: 15px;
}

.exit{
    font-size: 1.2rem;
    padding: 15px 30px;
    background: linear-gradient(45deg, #d9534f, #c9302c); /* Червоний */
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
}

.del{
    font-size: 1.2rem;
    padding: 15px 30px;
    background: linear-gradient(45deg, #424242, #9e9e9e); /* Темно-сірий градієнт */
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
}

.p-form{
    font-size: 1.2rem;
    color: #666;
    padding: 10px 0px;
}

.massage{
    padding-bottom: 10px;
    padding-top: 10px;
}

.info-block{
    display: none;
    text-align: center;
    border: 3px solid #ddd;
    border-radius: 30px;
    background-color: white;
    padding: 10px;
}

#success{
    border-color: green;
    color: green;
}

#fail{
    border-color: red;
    color: red;
}

#error{
    border-color: orange;
    color: orange;
}

.display{
    display: block !important;
}

                /* ABOUT */

.about-section {
    display: grid;
}
        
.about-text {
    font-size: 1.2rem;
}

.p-about {
    text-align: justify;
    padding-bottom: 20px;
    font-size: 1.5rem;
}

.features-section-h2 {
    text-align: center;
    padding: 25px 0px;
    color: #0056b3;
    font-size: 1.8rem;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-h {
    padding-bottom: 15px;
    font-size: 1.5rem;
}

.feature-p {
    font-size: 1.3rem;
    color: #555;
    text-align: justify;
}

.main-about{
    padding: 20px;
    cursor: context-menu;
}

.desktop-nav-france {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

                        /* FRANCE ITALY SPAIN BRITAN */

.back-button {
    display: flex; 
    justify-content: center; 
    align-items: center;     
    width: 50px;
    height: 50px;
    border-radius: 50%;       
    transition: background-color 0.3s ease, transform 0.3s ease; 
    background-color: transparent;          
}

.back-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.5);
}
                        
.france-h{
    text-align: center;
    font-size: 2rem;
    color: #4CAF50;
    padding-bottom: 15px;
}

.p-france{
    padding: 0px 15px;
    font-size: 1.2rem;
}

.image-container {
    position: relative;
}

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 5rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px ;
    border-radius: 15px;
    text-align: center;
}

.fr{
    letter-spacing: 2rem;
}

.cards-container, .cards-container-mobile {
    display: flex;
    justify-content: space-evenly;
    padding: 50px 0px;
}

.cards-container-mobile{
    display: none;
}

.card {
    width: 400px;
    height: 500px;
    perspective: 1500px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.card-front {
    background-color: #fff;
}

.card-back {
    background-color: #f8f8f8;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #333;
}

.p-back{
    font-size: 1.4rem;
}

.card img {
    width: 100%;
    height: 40%;
}

.card-content {
    text-align: center;
}

.route-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.difficulty {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
}

img.tr {
    width: 25px;
}

.routes {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stops {
    display: flex;
    gap: 5px;
}

.easy {
    background-color: green;
}

.medium {
    background-color: orange;
}

.hard {
    background-color: red;
}

.map, .map-cpec{
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 15px 0px;
}

.map-paris{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loc{
    display: flex;
    align-items: center;
    gap: 15px;
}

.paris-ul{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paris-li{
    display: flex;
    align-items: center;
}

iframe{
    width: 750px;
    height: 750px;
    border-radius: 25px;
}

.paris-li{
    font-size: 1.5rem;
}

.open-map-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.open-map-btn:hover {
    background-color: #45a049;
}

.slider-paris {
    width: 100%;
    max-width: 1000px; /* Збільшено розмір слайдера */
    margin: auto;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.slides-paris {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* Додано плавність */
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 5px;
}

.control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 25px;
    font-size: 2rem;
}

.control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-france {
    width: 100%;
}

.stops-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    font-size: 1.5rem;
}

.accordion {
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(135deg, #3970EA, #2E6CBA);
    border-radius: 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.accordion:hover {
    background-color: #e9e9e9;
}

.panel {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out; 
    border: 0px solid #ccc;
    background-color: #f9f9f9;
}

.panel-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 25px;
}

.panel-content p {
    text-align: justify;
}

.panel.open {
    max-height: 600px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #3970EA, #2E6CBA, #689acc);
    color: #fff; 
}

.panel img {
    max-width: 100%;
    border-radius: 15px;
}

.arrow {
    transition: transform 0.3s;
}

.arrow.open {
    transform: rotate(90deg);
}

.news{
    font-size: 2rem;
    color: white;
}

.nav-container{
    display: flex;
    align-items: center;
    gap:150px;
}

.news-header{
    background-image: url('https://i.imgur.com/IJB6LFK.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.news-nav{
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
}

.news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0px;
}

.news-item {
    width: 90%;
    background: #fff;
    border-left: 6px solid #4caf50;
    padding: 20px;
    margin-bottom: 70px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
}

.new-text {
    font-size: 1.2rem;
}

.date {
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.tag.alpha    { background: #9c27b0; }
.tag.beta     { background: #03a9f4; }
.tag.update   { background: #ff9800; }
.tag.release  { background: #4caf50; }

@media screen and (max-width: 1440px) {

    .wrapper{
        max-width: 1440px;
    }
    
}

@media screen and (max-width: 2560px) {

    .fr-mob{
        display: none;
    }

    .wrapper{
        max-width: 2560px;
    }
    
    .main-card1:hover .main-card-img, .main-card2:hover .main-card-img{
        transform: translateX(81vw);
    }

    .main-card1:hover .goto-btn, .main-card2:hover .goto-btn2 {
        left:45%;
    }
}

@media screen and (max-width: 768px) {

    .wrapper{
        max-width: 768px;
    }

    .desctop-main-index, .cards-container, .fr{
        display: none;
    }
    
    .text-logo, .a-nav, .footer-logo, .footer-description, .link, .sub, .subscription-form input, .subscription-form button, .language-p, #language-select, .gmail, .phone, .footer-copyright, .p-about, .feature-p, .new-text, .p-france, .paris-li {
        font-size: 1rem;
    }

    .features-section-h2,.feature-h, .title-news, .stops-list{
        font-size: 1.2rem;
    }

    .fr-mob{
        display: flex;
        font-size: 1.2rem;
        letter-spacing: 1rem;
    }

    .news, .france-h{
        font-size: 1.5rem;
    }

    ul{
        gap: 50px;
    }

    .img-login, .locat{
        width: 35px;
    }

    .progress-bar {
        width: 30px;
    }

    .search-form{
        width: 300px;
        height: 50px;
    }

    .main-card1:hover .main-card-img, .main-card2:hover .main-card-img{
        transform: translateX(81vw);
    }

    .main-card1:hover .goto-btn, .main-card2:hover .goto-btn2 {
        left:45%;
    }

    .main-card-h3{
        font-size: 1.2rem;
        color: black;
        text-align: center;
        padding: 15px 0px;
    }

    .main-content-card-1{
        padding: 55px 0px;
    }

    .cards-container-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card{
        width: 350px;
        height: 400px;
    }

    .card img{
        height: 45%;
    }

    .features-section-h2{
        padding-bottom: 15px;
    }

    iframe{
        width: 450px;
        height: 450px;
    }

    .open-map-btn, .control, .accordion{
        padding: 10px;
    }

    .slider-paris {
        max-width: 85%;
    }

    .panel img{
        max-width: 45%;
    }

    .map-cpec{
        flex-direction: column;
        align-items: center;
    }

    .mobile-main{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-mobile-card1,.main-mobile-card2{
        height: 200px;
        display: flex;
        align-items: center;
        border-radius: 10px;
    }

    
}