
html {
    font-family: 'Yandex Sans Display', sans-serif;
    background-color: #FAFAFA;
    scroll-behavior: smooth;
    scroll-padding-top: 40px; 
}




/* -------------------- components -------------------- */

.container {
    max-width: 1220px;
    width: 100%;
    height: auto;
    padding: 20px 10px;
    margin: 0 auto;
}

h2 {
    font-size: 30px;
    font-weight: 600;
}

h2>a {
    font-size: 20px;
    font-weight: 500;
    color: #868686;
    padding-left: 5px;
}

h2>a:hover {
    color: #ff2f2f;
    text-decoration: underline;
}

button, a {
  touch-action: manipulation;
}

/* -------------------- HEADER DESKTOP -------------------- */

.header_desktop {
    height: 50px;
    width: 100%;
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    box-shadow: 0 4px 4px rgba(167, 167, 167, 0.1);
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
    z-index: 100;
    background-color: #fff;
}

.header_desktop>a,.header_desktop>a>img {
    height: 100%;
}

.header_desktop>ul {
    display: flex;
}

.header_desktop>ul>li {
    font-size: 16px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 1px;
}

.header_desktop>ul>li+li {
    margin-left: 20px;
}

.header_desktop>ul>li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #E62222;
    transition: width 0.3s ease;
}

.header_desktop>ul>li:hover::after{
    width: 100%;
}



/* -------------------- HEADER MOBILE -------------------- */

.header_mobile {
    display: none;
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 4px 4px rgba(167, 167, 167, 0.1);
    justify-content: space-between;
    padding: 0 15px;
    align-items: center;
    z-index: 100;
    background-color: #fff;
}

.header_mobile>a,.header_mobile>a>img {
    height: 100%;
}

.header_mobile>button>img {
    height: 30px;
}



/* -------------------- WELCOME DESKTOP -------------------- */

.welcome {
    height: calc(100vh);
    width: 100%;
    background-color: #fff;
    opacity: 0;
    transform: translateY(-20px);
    animation: welcomeAnim 0.5s ease forwards;
    animation-delay: 0.2s;
}

@keyframes welcomeAnim {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.welcome_desktop {
     background-image: url(./images/welcome_pipe.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    height: 100%;
}




.welcome_logo {
    display: flex;
    align-items: center;    
    padding-top: 70px;
    justify-content: center;
    z-index: 90;
}



.welcome_logo>h1 {
    text-align: right;
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
}

.welcome_logo>.line {
    width: 3px;
    height: 175px;
    background-color: #000;
    margin-left: 20px;

}

.welcome_logo>img {
    width: 450px;
    height: auto;
}

.welcome_desktop>img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 100px);
    z-index: 0;
}

.welcome_button {
    position: absolute;
    z-index: 92;
    right: 0;
    bottom: 0;
    height: 400px;
    width: 400px;
    background-image: url(./images/welcome_aim.png);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.welcome_button>a {
    background-color: #E62222;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 60px;
}

/* -------------------- WELCOME MOBILE -------------------- */

.welcome_mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    display: none;
    background-image: url(./images/welcome_pipe.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    height: 100%;
}

.welcome_mobile>img:first-of-type {
    width: 500px;
    height: auto;
    z-index: 20;
}



.welcome_mobile>h1 {
    margin-top: -50px;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    z-index: 20;
    line-height: 1;
}

.welcome_mobile>a {
    box-shadow: 0 0 10px #ffffff50;
    background-color: #E62222;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    padding: 15px 60px;
    margin-top: 50px;
    z-index: 20;
}


/* -------------------- ABOUT -------------------- */

.about {
    background-color: #1A1A1A;
    color: #fff;
}

.about_container>p {
    font-size: 16px;
    text-align: center;
    padding: 50px 100px;
}

.about_container>p>span {
    font-weight: 800;
}


/* -------------------- CATALOG -------------------- */


.catalog {
    background-image: url(./images/background.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FAFAFA;
}

.card_wrapper {
   display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px; /* отступ между карточками */
    margin: 20px 0;
}

.card {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.2s;
}

.card>img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}

.card>h3 {

    font-size: 18px;
    text-align: center;
    font-weight: 600;
    margin: auto;
}



.card:hover {
    color: #484848;
    box-shadow: 0 0 10px rgba(91, 91, 91, 0.1);
}


/* -------------------- dignity -------------------- */

.dignity {
    background-image: url(./images/background.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FAFAFA;
}


.dignity_card {
    display: flex;
    padding: 0 50px;
    align-items: center;
}

.dignity_card_header {
    display: flex;
    font-size: 24px;
    font-weight: 600;
}

.dignity_card_header>img {
    height: 30px;
    margin-left: 5px;
}

.dignity_card p {
    margin-top: 5px;
}

.dignity_card h4 {
    font-size: 100px;
    font-weight: bold;
    color: #E62222;
    padding: 0 100px;
}

/* -------------------- REVIEW -------------------- */

.review_card_wrapper {
    display: flex;
    overflow-x: auto;
    padding: 30px 10px 10px;
}

.review_card_wrapper::-webkit-scrollbar {
    display: none;
}

.review_card_wrapper>.review_card+.review_card {
    margin-left: 20px;
}

.review_card {
    min-width: 380px;
    height: 200px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.review_card_header {
    display: flex;
}
.review_card_header>h5 {
    display: flex;
    align-items: end;
    font-weight: 600;
    color: #636363;
}

.review_card_header>img {
    height: 50px;
    width: auto;
    border-radius: 50%;

}

.stars {
    display: flex;
    justify-content: end;
    margin-left: auto;
}
.stars>img {
    height: 25px;
    width: auto;
}

.review_card>p {
    padding-top: 10px;
}

.review_btn_container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.review_btn_container>button {
    width: 50px;
    height: 40px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.review_btn_container>button:disabled img{
    opacity: 0.5;
}

.review_btn_container>button>img {
    height: 15px;
    width: auto;
    transition: opacity 0.2s;
}

.review_btn_container>button+button {
    margin-left: 10px;
}



/* -------------------- CONTACT -------------------- */

.contact {
    background-image: url(./images/background.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.container>h5 {
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    font-size: 18px;
}

.container>h5>a {
    color: #E62222;
}



.contact_card {
    margin-top: 15px;
}

.contact_card>h3 {
    font-size: 24px;
    color: #E62222;
    font-weight: 600;
}

.contact_card>.address {
    margin-left: 10px;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
}

.contact_card>.address>h3 {
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}


.contact_card>.address>h3:hover {
    color: #484848;
}


.contact_card>.address>a {
    color: #E62222;
}

.contact_card>.address>a:hover {
    color: #ff5151;
}

.address>a+a {
    border-left: 1px solid #E62222;
    padding-left: 5px;
    margin-left: 5px;
}

.contact_card>a {
    margin-left: 10px;
    font-weight: 600;
    color: #636363;

}


.contact_wrapper {
    display: flex;
    justify-content: space-between;
}

.map_container {
    position: sticky;
    top: 80px;
    margin-top: 15px;
    width: 500px;
    height: 500px;
}

.reset_btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
}
#resetViewBtn:hover {
  opacity: 0.85;
}

.orientation {
    z-index: 1000;
    background-color: #FAFAFA;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.orientation>h1 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    max-width: 400px;
    line-height: 1;
}




/* -------------------- FOOTER -------------------- */

.footer {
    background-image: url(./images/footer.png);
    background-size: cover;
    height: 150px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 60px 0 10px;
}

.footer>h5 {
    color: #737A80;
    font-size: 18px;
    
}

.footer>h6 {
    color: #545D63;
    font-size: 16px;
}


/* -------------------- MENU -------------------- */


.mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 80;
    background-color: #fff;
    display: flex;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    opacity: 0;          /* Изначально прозрачное */
    visibility: hidden;  /* Изначально скрыто */
    transform: translateY(-20px);
    transition: 
        opacity 0.3s ease, 
        visibility 0.3s ease, 
        transform 0.3s ease;
}


.mobile_menu>ul>li {
    margin-top: 5px;
    width: calc(100vw - 40px);
     border-radius: 20px;
    box-shadow: 0 0 4px #dddddd;
    height: 50px;
    font-size: 18px;
}

.mobile_menu>ul>li>a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100%);
    padding: 15px 0;
    height: 100%;
    
   
}
.mobile_menu.active {
    opacity: 1;          /* Появляется плавно */
    visibility: visible; /* Становится видимым */
    transform: translateY(0); /* Возвращаем на место */
}

@media (max-width: 1200px) {
    .map_container {
        top: 55px;
        max-width: 620px !important;
        width: 100% !important;
        height: 250px !important;
    }

    .contact_wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }

    .contact_wrapper>.left {
        margin: 0 auto;
    }
}


@media (max-width: 1300px) {
    .welcome_logo>h1 {
        font-size: 50px;
    }

    .welcome_logo>img {
        width: 400px;
    }

    .welcome_logo>.line {
        height: 160px;
    }

}


@media (max-width: 1150px) {
    .welcome_logo>h1 {
        font-size: 40px;
    }

    .welcome_logo>img {
        width: 350px;
    }

    .welcome_logo>.line {
        height: 130px;
    }
}


@media (max-width: 1000px) {
    .welcome_logo>h1 {
        font-size: 35px;
    }

    .welcome_logo>img {
        width: 300px;
    }

    .welcome_logo>.line {
        height: 110px;
    }

   
}

@media (max-width: 850px) {
    .welcome_desktop {
        display: none;
    }

    .welcome_mobile {
        display: flex;
    }

    .header_desktop {
        display: none;
    }

    .header_mobile {
        display: flex;
    }

    .dignity_card>h4 {
        padding: 0 50px;
    }

    .about_container>p {
        padding: 50px 50px;
    }


}

@media (max-width: 650px) {

    .map_container {
        height: 200px !important;
    }
     .dignity_card {
        padding: 20px 0;
    }

    .dignity_card>h4 {
        padding: 0 10px;
    }
    .contact_card {
        width: 100% ;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
    }

    .contact_card>h3 {
        font-size: 30px;
        font-weight: 800;
        margin-left: 10px;
    }

    .address {
        display: flex;
        flex-direction: column;
        margin-left: 20px !important;
    }

    .address>h3 {
        font-size: 22px;
        font-weight: 700;
    }

    .address>a {
        font-size: 20px;
        font-weight: 700;
    }

    .contact_card>a {
        font-size: 18px;
        margin-left: 20px;
    }


    .address>a + a {
        border: none;
        margin: 0;
        padding: 0;
    }


}

@media (max-width: 500px) {
    .welcome_mobile>h1 {
        font-size: 28px;
    }
    .about_container>p {
        padding: 50px 0px;
    }

    .card_wrapper{
        gap: 10px;
    }

    .dignity_card_header {
        font-size: 20px;
    }

    .dignity_card>h4 {
        font-size: 80px;
    }

    .footer>h5, .footer>h6{
        font-size: 14px !important;
    }

}


@media (max-width: 420px) {
    .review_card {
        min-width: calc(100vw - 40px);
    }
}

@media (max-width: 400px) {
    .welcome_mobile>h1 {
        font-size: 26px;
    }
}


@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape){
    .orientation {
        opacity: 1;
        visibility: visible;
    }
}