/* FONTS */

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/public/fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-ExtraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* VARs */

:root{
    --color-green: #0F4700;
    --color-white: #fff;
    --color-brown: #A57C57;
    --color-light-brown: rgba(165, 124, 87, 0.77);
    --color-dark-brown: #72563C;
}

/* Common styles */

*{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
}

html{
    scroll-behavior: smooth;
}

body{
    background-image: url('/public/imgs/pattern.png');
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

section{
    margin-top: 100px;
}

img{
    max-width: 100%;
    max-height: 100%;
}

a{
    color: inherit;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

.no-scroll{
    overflow: hidden;
}

.none{
    display: none !important; 
}

.container{
    width: 1240px;
    margin: 0 auto;
}

.logo {
    width: 150px;
    height: 105px;
}

.header__logo-no-text-link{
    display: none;
}

.logo-no-text{
    width: 50px;
    height: 50px;
}

.btn {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 308px;
    height: 60px;
    background-color: var(--color-brown);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    transition: 0.2s;
    color: var(--color-white);
}

.btn:hover{
    background-color: var(--color-light-brown);
}

.btn:active{
    background-color: var(--color-dark-brown);
}

.catalog-card__btn--light {
    background-color: var(--color-light-brown);
}

.catalog-card__btn--light:hover {
    background-color: rgba(165, 124, 87, 0.5);
}

/* Header */

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10001;
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__list {
    display: flex;
    gap: 10px;
}

.header__item a{
    position: relative;
    padding: 10px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
}

.header__item a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    /* transform: translateX(25%); */
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.header__item a:hover::after {
  width: calc(50% - 10px);
}

.header__item a:active::after {
  width: calc(100% - 20px);
}

.socials {
    display: flex;
    gap: 30px;
}

.socials__links {
}

.social__link {
    padding: 5px;
}

.socials__phone {
    padding: 3px;
}


.socials__phone-link {
    margin-left: 5px;
    font-weight: 500;
    font-size: 15px;
}

.socials svg{
    display: inline-block;
    vertical-align: sub;
}

.socials__links svg{
    vertical-align: bottom;
}

.socials__links svg, .socials__phone{
    color: var(--color-white);
    transition: 0.3s;
}

.socials__links svg:hover, .socials__phone:hover{
    color: #e7e7e7;
}

.burger-menu {
    display: none;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 10004;
}

.burger-menu div {
    width: 30px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.burger-menu div::before {
    content: "";
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    top: -10px;
    left: 0;
    transition: all 0.3s ease;
}

.burger-menu div::after {
    content: "";
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    top: 10px; 
    left: 0;
    transition: all 0.3s ease;
}

.burger-menu.active div, .burger-menu.active {
    background-color: transparent;
}

.burger-menu.active div::before {
    transform: rotate(45deg) translate(0, 0);
    top: 0;
}

.burger-menu.active div::after {
    transform: rotate(-45deg) translate(0, 0);
    top: 0;
}

.header__mobile-wrapper{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    display: none;
}

.header__mobile-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__mobile-wrapper .socials{
    position: relative;
    display: flex;
    justify-content: space-between;
}

.header__mobile-wrapper .socials::before{
    position: absolute;
    content: "";
    top: -15px;
    height: 1px;
    background-color: var(--color-white);
    width: 100%;
}


.header__mobile-list{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header__mobile-list.active {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/public/imgs/pattern.png');
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: rgba(0, 0, 0);
}

.header__mobile-nav{
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header__mobile-list .socials::before{
    display: none;
}

.header__mobile-list .socials{
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* WELCOME */

.welcome {
    margin-top: 0;
    height: 850px;
    padding-top: 280px;
    background-image: url(/public/imgs/welcome-bg.jpg);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.welcome__title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 60px;
    text-transform: uppercase;
    width: 740px;
}

.welcome__text {
    margin-top: 35px;
    font-size: 18px;
    width: 450px;
}

.welcome__text span{
    font-weight: 900;
}

.welcome__btn {
    margin-top: 35px;
}

/* Footer */

.footer {
    background-color: #071F00;
    padding: 45px 0;
    color: var(--color-white);
}


.footer__container {
    display: grid;
    grid-template-columns: 310px 1fr 310px;
    grid-template-areas: 
    "logo nav ."
    "rights . socials";
    gap: 70px 0;
}

.footer__rights {
    grid-area: rights;

    font-family: 'Montserrat';

    font-weight: 400;
    font-size: 13px;
    line-height: 104%;

    color: rgba(255, 255, 255, 0.7);
}

.footer__logo {
    grid-area: logo;
}
.footer__nav {
    grid-area: nav;
}
.footer__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__item > a{
    position: relative;
font-family: 'Montserrat';
font-weight: 400;
font-size: 13px;
color: #FFFFFF;
text-transform: uppercase;
}

.footer__item a::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    /* transform: translateX(25%); */
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer__item a:hover::after {
  width: 50%;
}

.footer__item a:active::after {
  width: 100%;
}
.footer__rights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.socials {
    grid-area: socials;
}

/* Sauna Modal */

.sauna-details {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100vw;
    z-index: 10002;
    padding: 50px 0;

background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(2.6px);
overflow-y: auto;
}

.modal__window {
    position: relative;
    padding: 40px 0;
    width: 720px;
    margin: 0 auto;
    background-image: url('/public/imgs/pattern.png');
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-color: #fff;
    border-radius: 30px;
}

.modal__container {
    width: 520px;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal__close span {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.modal__close span::before,
.modal__close span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 2px;
  background-color: var(--color-green);
  transform-origin: center;
}

.modal__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.modal__title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
font-family: 'Cormorant Garamond';
font-weight: 600;
font-size: 35px;
text-transform: uppercase;
    position: relative;
color: #0F4700;
}

.modal__title::after{
    content: "";
    width: 70px;
    height: 2px;
    background-color: var(--color-green);
    position: absolute;
    bottom: -5px;
    left: 0;
}

.modal__price {
font-family: 'Montserrat';
font-weight: 700;
font-size: 18px;
line-height: 160%;
color: #0F4700;
}

.modal__table {
    margin-top: 30px;
}

.modal__specs-table{
    border-collapse: collapse;
}

.modal__specs-table th, .modal__specs-table td{
    vertical-align: middle;
    border: 0.5px solid black;
    padding: 15px 30px;
}

.modal__specs-table td:first-child{
    text-align: center;
}

.modal__specs-table th{
    background-color: #f5f5f5;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 13px;
    line-height: 104%;
    color: #0F4700;
}

.modal__specs-table td{
font-family: 'Montserrat';
font-weight: 400;
font-size: 13px;
line-height: 104%;
color: #0F4700;
}

.modal__specs-table tr:last-child td:first-child{
    font-weight: 700;
}

.modal__img-wrapper{
    margin-top: 20px;
  width: 100%;       /* задаем размеры обертки */
  height: auto;
  overflow: hidden;   /* обрезаем всё, что выходит за пределы */
  position: relative;
  border-radius: 20px;
}

.modal__img{
  width: 100%;
  height: 100%;
  object-position: center center; 
transform: scale(1.7);
}

.modal__info {
    margin-top: 25px;
}
.modal__info li+li{
    margin-top: 5px;
}

.modal__info li{
    font-family: 'Montserrat';
font-weight: 400;
font-size: 18px;
line-height: 104%;
color: #0F4700;
}

.modal__info li span{
    font-weight: 800;
}

.modal__btn {
    margin: 30px auto 0;
    cursor: pointer;
}

a.modal__btn{
    color: #fff;
}

/* Lightbox */

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-height: 90vh; /* Ограничиваем высоту в 90% от высоты экрана */
    width: auto; /* Подстраиваем ширину пропорционально */
    max-width: 90vw;
    border-radius: 5px;
}

/* Media */
@media (max-width: 1300px) {
    .container{
        width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 1060px) {
    .socials{
        gap: 10px;
    }
}

@media (max-width: 990px) {
    .header{
        height: 190px;
    }

    .header__container{
        display: none;
    }

    .header__mobile-wrapper{
        display: flex;
        padding: 15px 30px;
    }
}

@media (max-width: 800px) {
    section{
        margin-top: 75px;
    }

    .welcome__title{
        font-size: 42px;
        width: 400px;
    }

    .welcome__text{
        font-size: 16px;
    }

    .modal__title{
        font-size: 25px;
    }

    .modal__price{
        font-size: 16px;
    }

    .footer__container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
}

@media (max-width:750px) {
    .modal__window{
        width: 100%;
    }
}

@media (max-width:650px) {
    .header__mobile-wrapper{
        padding: 15px;
    }
    
    section{
        margin-top: 45px;
    }

    .container{
        padding: 0 15px;
    }

    .welcome{
        padding-top: 210px;
        height: 570px;
    }

    .welcome__title{
        font-size: 26px;
        width: auto;
    }

    .welcome__text{
        width: auto;
    }

    .modal__specs-table th, .modal__specs-table td{
        padding: 5px 10px;
    }

    .modal__specs-table td{
        font-size: 12px;
    }

    .modal__info li{
        font-size: 16px;
    }

    .footer__list{
        flex-direction: column;
        text-align: center;
    }
    
    .modal__img{
        transform: scale(2.5);
    }
}

@media (max-width:370px) {
    .welcome__container{
        padding: 0 20px;
    }

    .btn{
        width: 280px;
    }

    .welcome{
        height: 610px;
    }

    .welcome__btn{
        margin-top: 25px;
    }
}

@media (max-width:320px) {
    .socials__phone-link{
        margin-left: 2px;
    }
}