@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FCFBF9;
    background-image: url('sprites/Gora.png'), url('sprites/GoraChaynik.png'); 
    background-position: left bottom, right bottom;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    background-size: 500px auto, 500px auto; 

    padding: 30px; 
    max-width: 1440px;
    margin: 0 auto; 
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/*шапкa*/
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0; 
    width: 100%;
    flex-wrap: wrap; 
    gap: 20px;
}


.logo-link {
    display: inline-block;
    max-width: 160px; 
    text-decoration: none;
}


.Header {
    background-color: #8ba08c; 
    padding: 15px 40px;
    border-radius: 25px; 
    text-decoration: none;

}

.Header ul {
    display: flex;
    list-style: none;
    gap: 30px; 
    align-items: center;
    text-decoration: none;

}

.Header button {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700; 
    color: #2f1101; 
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.Header a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2f1101;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
}

.Header a:hover {
    opacity: 0.8;
}

.Header button:hover {
    opacity: 0.7;
}
/*шапкa*/

/*lang*/
.change-lang {
    display: flex;
    flex-direction: column; 
    align-items: flex-end;
    gap: 5px;
    background-color: #8ba08c;
    padding: 10px 20px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400; 
    color: #2f1101;
    cursor: pointer;
    text-transform: uppercase;
    transition: font-weight 0.2s;
}

.lang-btn.active {
    font-weight: 700;
}
/*lang*/

/*margin*/
.site-section {
    padding: 60px 40px;      
    margin-bottom: 80px;     
    background-color:#eff7ee83;
    border-radius: 20px;     
    text-align: center;
    font-size: 25px;
    color: #2f1101;
}


.site-section h2 {
    font-size: 32px;
    color: #2f1101;
    text-align: center;
    display: block;
    width: fit-content; 
    margin: 0 auto 25px auto; 
    border-bottom: 2px solid rgba(139, 160, 140, 0.3);
    padding-bottom: 8px;
}

.site-section:last-of-type {
    margin-bottom: 0;
}

.social-links{
    text-decoration: none;
    color: #8BA08C;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-links:hover {
    color: #2f1101;

}
/*card*/
.cards-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start; 
    flex-wrap: wrap;
    width: 100%;
    margin-top: 20px;
}

.program-card {
    flex: 1 1 calc((100% - 60px) / 5); 
    min-width: 80px; 
    max-width: 400px; 
    background-color: #fcfbfa; 
    border: 1px solid rgba(139, 160, 140, 0.3);
    border-radius: 16px; 
    padding: 25px;
    text-decoration: none; 
    color: #555555; 
    text-align: left;
    display: flex;
    flex-direction: column; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-card h3 {
    font-size: 20px;
    color: #2f1101;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-meta {
    display: flex;
    flex-direction: column; 
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #8ba08c; 
    margin-bottom: 0; 
    transition: margin-bottom 0.3s ease;
}

.card-description {
    max-height: 0; 
    opacity: 0;    
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.card-description p {
    font-size: 17px;
    color: #2f1101;
    line-height: 1.6;
    margin-top: 14px;
    margin-bottom: 0;
}

.highlight-text {
    font-weight: 700;
    color: #8ba08c; 
    margin-top: 14px;
    display: block;
}


.program-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(43, 27, 16, 0.1); 
    border-color: #8ba08c; 
}

.program-card:hover .card-meta {
    margin-bottom: 5px;
}

.program-card:hover .card-description {
    max-height: 800px; 
    opacity: 1;        
}

.moreteabtn {
    text-decoration: none;
    color: #8ba08c;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
}

.moreteabtn:hover {
    color: #2f1101;

}
/*card*/


@media (max-width: 1200px) {
    body {
        padding: 0 40px; 
    }
}

/*телефон*/
@media (max-width: 767px) {
    body {
        padding: 0 15px; 
        background-image: url('sprites/GoraChaynik.png');
        background-position: right bottom;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: 380px auto;
    }


    .site-section {
        padding: 30px 15px; 
        margin-bottom: 40px;
    }

    .site-section h2 {
        font-size: 26px; 
        margin-bottom: 20px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center; 
        gap: 20px;
        width: 100%;
    }

    .program-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;  
        min-width: 0;    
        padding: 20px;   
    }

    .card-description p {
        font-size: 15px;  
        line-height: 1.5;
    }

    .moreteabtn {
        display: inline-block;
        margin-top: 15px;
    }

    .main-header {
        flex-direction: column; 
        text-align: center;
        gap: 25px;
    }

    .logo-link {
        max-width: 120px; 
    }

    .Header {
        width: 100%; 
        padding: 20px 15px;
        border-radius: 15px; 
    }

    .Header ul {
        flex-direction: column; 
        gap: 20px; 
    }
    
    .Header button {
        font-size: 15px; 
        width: 100%; 
    }

    .change-lang {
        flex-direction: row; 
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-top: 5px;
    }
}
/*телефон*/


.logo-link {
    display: inline-block;
    max-width: 160px; 
    text-decoration: none;
    position: relative; 
    padding-bottom: 30px; 
}


.logo-socials-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 12px; 
    z-index: 10;
}

.sub-icon {
    display: block;
    width: 20px; 
    height: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sub-icon:hover {
    transform: scale(1.15); 
    opacity: 0.8;
}

.sub-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.booking-section {
            max-width: 550px;
            margin: 60px auto;
            background: #FCFBF9;
            border: 1px solid #eae7e2;
            border-radius: 8px;
            padding: 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        }
        .booking-section h2 {
            text-align: center;
            color: #2E1101;
            margin-bottom: 30px;
            font-weight: 500;
            font-size: 1.6rem;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            color: #5a5854;
            font-weight: 600;
        }
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #dcd9d4;
            border-radius: 6px;
            font-size: 1rem;
            color: #2c2c2c;
            background-color: #faf9f7;
            transition: border-color 0.3s, background-color 0.3s;
        }
        .form-control:focus {
            outline: none;
            border-color: #3e564b;
            background-color: #ffffff;
        }
        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            filter: invert(30%) sepia(10%) saturate(1200%) hue-rotate(100deg) brightness(95%);
        }
        .btn-submit {
            width: 100%;
            padding: 15px;
            background-color: #8ba08c;
            color: #FCFBF9;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }
        .btn-submit:hover {
            background-color: #2f1101;
        }

/* From Uiverse.io by vinodjangid07 */ 
.buttonbotom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #8ba08c;
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px #8ba08c;
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.buttonbotom:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: #2b1b10;
  align-items: center;
}

.buttonbotom:hover .svgIcon {
  /* width: 20px; */
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.buttonbotom::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
}

.buttonbotom:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}


.arrow-down-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 7px 0;
    width: 100%;
}


.obtuse-arrow {
    position: relative;
    width: 40px;        
    height: 12px;       
    cursor: pointer;
    transition: transform 0.3s ease;
}


.program-card:hover .obtuse-arrow {
    transform: translateY(5px);
}

.arrow-line-left,
.arrow-line-right {
    position: absolute;
    top: 50%;
    height: 3px;                
    width: 22px;                
    background-color: #8ba08c;   
    border-radius: 2px;
    transition: background-color 0.3s ease;
}


.arrow-line-left {
    left: 0;
    transform: rotate(20deg);    
    transform-origin: right center;
}


.arrow-line-right {
    right: 0;
    transform: rotate(-20deg);   
    transform-origin: left center;
}


.program-card:hover .arrow-line-left,
.program-card:hover .arrow-line-right {
    background-color: #FCFBF9;
}
