@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --white-color: #FFFFFF;
    --black-color: #111111;
    --dark-white-color: #F5F4F7;
    --dark-grey-color: #444;
    --green-color: #4CAF50;

    --font-family-header: "Merriweather", monospace;
    --font-family-body: "Inter Tight", sans-serif;
    --font-family-monospace: "Merriweather", monospace;

    --font-size-small: 1rem;
    --font-size-medium: 2rem;
    --font-size-large: 3rem;

    --margin-small: 20px;
    --margin-medium: 40px;
    --margin-large: 60px;
    --margin-xlarge: 80px;

    --section-margin-bottom: 80px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body{
    font-size: var(--font-size-large);
    color: var(--dark-white-color);
    font-family: var(--font-family-body);
    letter-spacing: -0.2px;
    user-select: none;
    background-color: var(--black-color);
}
h1, h2, h3{
    font-weight: bold;
    font-size: var(--font-size-large);
    text-align: center;
    letter-spacing: normal;

    font-family: var(--font-family-monospace);
    margin: var(--margin-large) 0;
}

form {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
input {
    margin-bottom: 16px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}
button {
    background-color: #4CAF50;
    padding: 15px 30px;
    border: none;
    color: var(--dark-white-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.error {
    background-color: red;
    color: var(--dark-white-color);
    margin-top: 10px;
}

ul{
    list-style-type: none;
    padding: 0;
}

a{
    text-decoration: none;
    color: var(--white-color);
}
section {
    margin-bottom: var(--section-margin-bottom);
    width: 100%;
    padding: 0% 10%;
}

#app {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

#Header{
    width: 100%;
    height: 200px;
    color: var(--dark-grey-color);
    padding: 20px 5%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#Header .logo-side {
    display: flex;
    align-items: center;    
}
#Header .logo-side img {
    height: 160px;
}
#Header .links-side {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}
#Header .links-side a {
    font-size: 1.2rem;
    font-weight: bold;
}
#Header .links-side a:hover {
    text-decoration: underline;
}

/* ---------------Main Section--------------- */
#MainSection {
    background-image: url('../images/tibet21-HIGHER-COMP.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    border-radius: 0 0 20px 20px;
    background-color: var(--black-color);
}

/* ---------------Second Section--------------- */
#SecondSection {
    background-color: var(--black-color);
    height: auto;
    text-align: center;
}

#SecondSection .cards{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: var(--margin-large) 0;
}
#SecondSection .cards .card{
    width: 200px;
    height: 300px;
    border: 2px solid var(--dark-white-color);
    border-radius: 8px;
    overflow: hidden;
}
#SecondSection .cards .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#SecondSection p{
    font-size: var(--font-size-medium);
    text-align: center;
    font-family: var(--font-family-body);
    margin: var(--margin-large) 0;
    padding: 0 10%;
}

/* ---------------Third Section--------------- */

#ThirdSection{
    background-color: var(--white-color);
    border-radius: 20px;
    color: var(--dark-grey-color);
}

#ThirdSection .tour-cards{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ThirdSection .tour-cards .tour-card{
    width: 30%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#ThirdSection .tour-cards .tour-card:hover img{
    border: 3px solid var(--dark-grey-color);
}
#ThirdSection .tour-cards .tour-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--white-color);
}

/* ---------------Fourth Section--------------- */

#FourthSection {
    background-color: var(--black-color);
    border-radius: 20px;
    color: var(--dark-white-color);
}

#FourthSection .sanatoriums {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#FourthSection .sanatoriums .sanatorium-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#FourthSection .sanatoriums .sanatorium-card {
    width: 460px;
    margin: 20px;
    border: 2px solid var(--dark-white-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#FourthSection .sanatoriums .sanatorium-card video {
    width: 100%;
    height: 300px; /* фиксированная высота для всех видео */
    object-fit: cover;
    border-radius: 8px;
}

#FourthSection .sanatoriums .sanatorium-title {
    margin: 10px 0;
    font-size: var(--font-size-medium);
    text-align: center;
    font-family: var(--font-family-header);
}
#FourthSection .sanatoriums .sanatorium-button {
    background-color: var(--green-color);
    padding: 10px 20px;
    border: none;
    color: var(--dark-white-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Footer */
#Footer {
    background-color: var(--dark-grey-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    font-size: var(--font-size-small);
}

#BuySection{
    padding-top: 100px;
}
hr{
    margin-bottom: var(--margin-small);
}
#RequestSection, #BuySection, #notFound{
    min-height: 100vh;
    background-image: url('../images/tibet22.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--dark-white-color);
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#notFound .container{
    background: rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
}
#notFound .container button{
    margin-top: var(--margin-large);
}
/* --- Красивая форма заявки --- */
#RequestSection form {
    background: rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#RequestSection form label {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--white-color);
    font-family: var(--font-family-header);
    text-align: left;
}

#RequestSection form input,
#RequestSection form textarea {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--dark-white-color);
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: var(--white-color);
    transition: border 0.2s;
}

#RequestSection form input:focus,
#RequestSection form textarea:focus {
    border: 1.5px solid var(--green-color);
    outline: none;
    background: rgba(255,255,255,0.25);
}

#RequestSection form button {
    background: linear-gradient(90deg, #4CAF50 0%, #388E3C 100%);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-family: var(--font-family-header);
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

#RequestSection form button:hover {
    background: linear-gradient(90deg, #388E3C 0%, #4CAF50 100%);
}

/* Buy Section */
/* --- Красивая форма оплаты --- */
#BuySection form {
    background: rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 40px 30px;
    width: 100%;
    max-width: 700px;      /* увеличена ширина */
    min-height: 600px; 
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#BuySection h1{
    margin: var(--margin-medium) 0 10px 0;
}
#BuySection .description{
    font-size: var(--font-size-medium);
    margin-bottom: var(--margin-small);
}

#BuySection form label {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--white-color);
    font-family: var(--font-family-header);
    text-align: left;
}

#BuySection form input {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--dark-white-color);
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: var(--white-color);
    transition: border 0.2s;
}

#BuySection form input:focus {
    border: 1.5px solid var(--green-color);
    outline: none;
    background: rgba(255,255,255,0.25);
}

#BuySection form button {
    background: linear-gradient(90deg, #4CAF50 0%, #388E3C 100%);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-family: var(--font-family-header);
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

#BuySection form button:hover {
    background: linear-gradient(90deg, #388E3C 0%, #4CAF50 100%);
}

#BuySection .company-details {
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: var(--white-color);
    font-size: 1rem;
    font-family: var(--font-family-body);
}
#BuySection .company-details h2, 
#BuySection .company-details h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--white-color);
    font-family: var(--font-family-header);
}

/* ----------------ContactsSection---------------- */

#ContactsSection {
    margin: var(--margin-large) 0;
    padding: 20px;
    background: var(--black-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgb(81 81 81 / 37%);
    backdrop-filter: blur(4px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#ContactsSection .case {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    text-align: center;
    font-size: var(--font-size-medium);
}
#ContactsSection .case img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    filter: invert(100%);
}

#BackBtn{
    position: absolute;
    top: 0;
    margin: 20px 0;
    font-size: var(--font-size-medium);
    width: 100%;
    padding: 0% 5%;
}
#BackBtn button {
    background-color: var(--dark-white-color);
    color: var(--black-color);
}
#BackBtn a {
    color: var(--black-color);
    text-decoration: none;
}