/*Обнуление*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --index: calc(1vw + 1vh); /*индекс размера*/
  --color-main: #21424F;
  --color-text: #757575;
  --gallery-gap: calc(var(--index) * 10) /*расстояние между элементами по вертикали*/
}

/*Подключение шрифтов*/
@font-face {
  font-family: Montserrat-R; 
  src: url(../fonts/Montserrat-Regular.woff);
}

@font-face {
  font-family: Oks-R; 
  src: url(../fonts/Oks.woff);
}

@font-face {
  font-family: NextArt-R; 
  src: url(../fonts/NextArt_Regular.otf);
}

a {
  text-decoration: none;
  color: var(--color-main);
  cursor: pointer;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Oks-R;
  color: var(--color-main);
}

p {
  color: var(--color-text);
}

.main__header, .content, .hero, .gallery > * {
  will-change: transform;
}

body {
  font-family: Montserrat-R; 
  overflow-x: hidden;
  font-size: calc(var(--index) * 0.8); /*16px*/
}

@media (max-width: 475px) and (orientation: portrait) {
  body {
    font-size: calc(var(--index) * 1.1); 
  }
}

@media (max-width: 768px) {
  body {
    font-size: calc(var(--index) * 1.1);
  }
}

@media (max-width: 475px) {
  body {
    font-size: calc(var(--index) * 1.3);
  }
}

.wrapper {
  width: 100vw;
  overflow-x: hidden;
}

/* header start*/

header, .hero-section {
  margin-left: calc(var(--index) * 12);
}

@media (min-width: 640px) {
  header, .hero-section {
    margin-left: calc(var(--index) * 8);
  }
} 
@media (max-width: 768px) {
  header, .hero-section {
    margin-left: calc(var(--index) * 4);
  }
} 

.header {
  padding-top: calc(var(--index) * 2);
}

.menu__list {
  display: flex;
  gap: calc(var(--index) * 2);
}

.menu__list li:first-child, 
.menu__list li:last-child {
  font-weight: bold;
}

.menu__item-phone {
  /*margin-left: 18vw;*/
  width: 30%;
  display: flex;
  justify-content: end;
  z-index: 5;
}

@media (max-width: 1024px) {
  .menu__item-phone {
    font-size: calc(var(--index) * .9);
  }
} 

@media (min-width: 1025px){
  .menu__item-phone {
    width: 60%;
  }
}


.main-header {
  height: 100vh;
}

@media (min-width: 1025px) {
  .header .menu__item:nth-child(2) {
    display: none;
  }
}

/* hero-section start*/
.hero-section .container {
  margin-top: calc(var(--index) * 6);
  width: 52%;
}

.hero {
  position: absolute;
  z-index: -1;
}

.hero__back {
  width: calc(var(--index) * 42);
  top: -12vh;
  left: 50vw;
}

@media (max-width: 768px) {
  .hero__back {
    width: calc(var(--index) * 36);
    top: -2vh;
    left: 45vw;
  }
} 

@media (max-width: 768px) and (orientation: portrait) {
  .hero__back {
    top: 6vh;
    left: 32vw;
  }
} 

@media (max-width: 576px) and (orientation: portrait) {
  .hero__back {
    left: 42vw;
  }
}  

.hero__front {
  width: calc(var(--index) * 54);
  top: -4vh;
  left: 41vw;
}

@media (max-width: 768px) {
  .hero__front {
    left: 33vw;
  }
} 

@media (max-width: 768px) and (orientation: portrait) {
  .hero__front {
    top: 8vh;
    left: 23vw;
  }
} 

@media (max-width: 576px) and (orientation: portrait) {
  .hero__front {
    top: 10vh;
    left: 11vw;
  }
}  

.main__title h1 {
  font-size: calc(var(--index) * 3.5);
}

@media (max-width: 768px) and (orientation: portrait) {
  .main__title h1 {
    font-size: calc(var(--index) * 2.8);
  }
} 

.main__description p {
  margin: 1.6rem 0 1.6rem 0;
}

button {
  background: var(--color-main);
  color: #fff;
  font-size: 16px;
  padding: 0px 30px;
  border-radius: 8px;
  border-color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

button img {
  padding-left: 0.8rem;
}

@media (min-width: 768px) {
  button {
    padding: 0 1rem;
    font-size: 0.9rem;
  }
  button img {
    height: 2.6rem;
  }
}

@media (max-width: 768px) {
  button {
    padding: 0 0.8rem;
    font-size: 0.8rem;
  }
  button img {
    height: 2.4rem;
  }
}

@media (max-width: 640px) {
  button {
    padding: 0 0.5rem;
    font-size: 0.7rem;
  }
  button img {
    height: 1.9rem;
  }
} 

.gallery {
  display: flex;
}

@media (max-width: 640px) {
  .gallery {
    display: block;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .gallery {
    display: block;
  }
}  


.gallery > * { /*выбрать всех потомков*/
  flex: 1; /*элемент должен занимать всю доступную область контейнера, и изменять размер пропорционально остальным элементам внутри контейнера.*/
  display: flex;
  align-items: center;
  flex-direction: column;
}

.gallery__item {
  max-width: calc(var(--index) * 26);
  margin-bottom: calc(var(--gallery-gap) * 0.2);
  max-height: 180vh;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .gallery__item {
    max-width: calc(var(--index) * 34);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .gallery__item {
    max-width: calc(var(--index) * 34);
  }
}  

@media (max-width: 475px) and (orientation: portrait) {
  .gallery__item {
    max-width: calc(var(--index) * 29);
  }
}

.gallery__left {
  margin-top: calc(var(--gallery-gap) * 1.95);
  /*max-width: calc(var(--index) * 34);*/
}

@media (max-width: 1025px) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 2.4);
  }
} 

@media (min-width: 768px) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 2);
  }
}

@media (max-width: 768px) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 2.4);
  }
}  

@media (max-width: 768px) and (orientation: portrait) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 2.6);
  }
}  

@media (max-width: 640px) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 1);
  }
} 

@media (max-width: 576px) and (orientation: portrait) {
  .gallery__left {
    margin-top: calc(var(--gallery-gap) * 1.3);
  }
}

@media (max-width: 576px) and (orientation: portrait) {
  .img__hidden {
    display: none;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .img__hidden {
    display: none;
  }
}


.gallery__right {
  margin-top: calc(var(--gallery-gap) * 1.5);
  /*max-width: calc(var(--index) * 26);*/
}

@media (max-width: 1025px) {
  .gallery__right {
    margin-top: calc(var(--gallery-gap) * 1.2);
  }
}
@media (min-width: 768px) {
  .gallery__right {
    margin-top: calc(var(--gallery-gap) * 1.6);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .gallery__right {
    margin-top: calc(var(--gallery-gap) * .1);
  }
}  

@media (max-width: 640px) {
  .gallery__right {
    margin-top: calc(var(--gallery-gap) * 0.1);
  }
}


@media (max-width: 768px) and (orientation: portrait) {
  .portfolio .container {
    margin-left: calc(var(--gallery-gap) * 0.2);
    margin-right: calc(var(--gallery-gap) * 0.2);
  }
}

.text-block {
  position: relative;
}

.text-block__h {
  font-size: 1.4rem;
  color: var(--color-main);
  font-family: NextArt-R;
  margin-bottom: 1.5rem;
}

@media (max-width: 1025px) {
  .text-block__h {
    font-size: 1.2rem;
    
  }
}

.text-block__p {
 line-height: 1.25;
}

.text-block__p span {
  font-weight: bold;
  display: block; /* Начало каждого span с новой строки */
  color: var(--color-main);
}

.direction span {
  display: inline;
}

.text-block-about p:not(:last-child) {
  margin-bottom: 0.5rem;
}

.text-block-about p::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  background: url('../img/icons/svg/PngItem_628387.svg') no-repeat center;
  background-size: cover;
}

@media (min-width: 768px) {
  .text-block-about p::before {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
  }
}
@media (max-width: 768px) {
  .text-block-about p::before {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
  }
}

/* price start*/
.price {
  width: 100vw;
  background-image: url('../img/content/price_back.png');
  background-size: 30% auto;
  background-position: center; 
  background-repeat: no-repeat;
  margin-top: -24vh;
}

@media (max-width: 1025px) {
  .price {
    margin-top: 2vh;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .price {
    /* background-image: url('../img/mobile/price__block.png'); */
    background-size: 90% auto;
    background-position-x: -150px;
  }
} 

/* @media (max-width: 640px) and (orientation: portrait) {
  .price { 
    background-image: none
  }
} */

.price .text-block__h {
  text-align: center;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.card__block {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .card__block {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .card__block {
    margin-left: calc(var(--index) * 2);
    margin-right: calc(var(--index) * 2);
  }
} 

.card {
  width: calc(var(--index) * 15.5);
  height: calc(var(--index) * 16.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E2E2;
  border-radius: 8px;
  padding: 30px;
}

@media (max-width: 640px) {
  .card {
    width: calc(var(--index) * 25.5);
    height: calc(var(--index) * 26.5); 
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .card {
    width: calc(var(--index) * 17.5);
    height: calc(var(--index) * 18.5);
   
  }
}

@media (max-width: 475px) {
  .card {
    width: calc(var(--index) * 18.5);
    height: calc(var(--index) * 19.5);
   
  }
}


.card__left, .card__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card__title p{
  font-size: calc(var(--index) * .9);
  font-weight: bold;
}


@media (max-width: 640px) {
  .card__title p{
    font-size: calc(var(--index) * 1.1);
  }
} 

@media (max-width: 475px) {
  .card__title p{
    font-size: calc(var(--index) * 1.2);
  }
} 

.card__price p {
  font-size: calc(var(--index) * 1.8);
  color: var(--color-main);
  font-family: Oks-R;
}

@media (max-width: 640px) {
  .card__price p {
    font-size: calc(var(--index) * 2.2);
  }
} 

.card__descr p {
  font-size: calc(var(--index) * .7);
  text-align: center;
}

@media (max-width: 768px) {
  .card__descr p {
    font-size: calc(var(--index) * .9);
  }
} 

@media (max-width: 640px) {
  .card__descr p {
    font-size: calc(var(--index) * .9);
  }
} 

.price__img {
  width: calc(var(--index) * 15.5);
  
}
@media (max-width: 640px) {
  .price__img{
    display: none;
  }
}

.price__img img {
  height: 25rem;
  z-index: 1;
}

@media (max-width: 768px) {
  .price__img img {
    height: 17rem;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .price__img img {
    height: 24rem;
  }
} 

/*registration start*/
.registration {
  width: 100%;
  height: calc(var(--index) * 19);
  background-image: url(/img/content/hands_bg.jpg);
  background-size: cover;
  margin-top: calc(var(--gallery-gap) * .2);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding-left: calc(var(--index) * 9);
  z-index: 1;
}

/*Смена картинки на фоне для мобильных утсройств*/
@media (max-width: 768px) and (orientation: portrait) {
  .registration {
    background-image: url(/img/mobile/form_mobile.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: right;
    width: 100%;
    height: calc(var(--index) * 19);
    margin-top: calc(var(--gallery-gap) * .2);
  }
}

@media (max-width: 1025px) {
  .registration {
    height: calc(var(--index) * 21);
  }
}

@media (max-width: 768px) {
  .registration {
    height: calc(var(--index) * 26);
  }
  
}

@media (max-width: 768px) and (orientation: portrait) {
  .registration {
    padding-left: calc(var(--index) * 5);
  }
} 

@media (min-width: 768px) {
  .registration {
    height: calc(var(--index) * 24);
  }
  .registration__form-text input,
  .registration__form-tel input {
    height: 2.5rem;
    width: 18rem;
  }
}

.registration__form-text input,
.registration__form-tel input {
  border-radius: 8px;
  height: 2.5rem;
  width: 21.3rem;
  background: #F5F4F1;
  border: none;
}

@media (max-width: 640px) {
  .registration__form-text input,
  .registration__form-tel input {
    width: 17rem;
  }
} 

@media (max-width: 475px) and (orientation: portrait) {
  .registration {
    height: calc(var(--index) * 29);
  }
} 

input {
  margin-bottom: 1rem;
}

#name::placeholder,
#phone::placeholder {
  color: gray;
  padding-left: 100px !important;
}

.registration__form-text input::placeholder {
  padding-left: 10px; /* Здесь можно задать нужное значение отступа */
}

.registration__form-tel input::placeholder {
  padding-left: 10px; 
}

.registration__form-checkbox {
  margin-bottom: 1rem;
}

.registration__form-checkbox label {
  font-size: 0.6rem;
  color: var(--color-text);
}

/*footer start*/
.footer {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 576px) and (orientation: portrait) {
  .footer {
    margin: 1rem;
  }
}

.footer__img img {
  z-index: -1;
  width: 100vw;
  /* background-size: cover;
  background-repeat: no-repeat; */
}

@media (max-width: 768px) and (orientation: portrait) {
  .footer__img img {
    height: 20vh;
    width: auto;
  }
}

@media (max-width: 640px) {
  .footer__img img {
    height: 25vh;
  }
}

.footer-menu {
  z-index: 10;
}

.footer-menu ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  z-index: 10;
}

.footer-menu ul li:first-child,
.footer__contacts a {
  font-weight: 600;
}

.footer-menu ul li a {
  text-decoration: none;
  font-size: calc(var(--index) * 0.8);
}

@media (max-width: 1024px) {
  .footer-menu ul li a {
    font-size: calc(var(--index) * 1);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .footer-menu ul li a {
    font-size: calc(var(--index) * 1);
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .footer-menu ul li a {
    font-size: calc(var(--index) * 1.2);
  }
}

.footer__content {
  width: 100vw;
  position: absolute;
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-top: 2rem;
  padding-left: calc(var(--index) * 9);
  font-size: 0.9rem;
  line-height: 1.8; 
}

@media (max-width: 768px) {
  .footer__content {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .footer__content {
    line-height: 2;
  }
}


.footer__contacts {
  display: flex;
  flex-direction: column;
  padding-right: calc(var(--index) * 9);
}

@media (max-width: 768px) {
  .footer__contacts {
    padding-right: calc(var(--index) * 5);
  }
  .footer__content {
    font-size: 0.8rem;
    padding-left: calc(var(--index) * 5);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .footer__content {
    padding-left: calc(var(--index) * 5);
  }
}

@media (max-width: 475px) and (orientation: portrait) {
  .footer__contacts {
    padding-right: calc(var(--index) * 3);
  }
  .footer__content {
    padding-left: calc(var(--index) * 5);
    margin-top: 2rem;
  }
} 

.footer__contacts-phone a {
  font-weight: bold;
  color: var(--color-main);
  font-size: calc(var(--index) * 0.8);
}

@media (max-width: 1024px) {
  .footer__contacts-phone a {
    font-size: calc(var(--index) * 1);
  }
}

@media (max-width: 768px) {
  .footer__contacts-phone a {
    font-size: calc(var(--index) * 1.2);
  }
} 

@media (max-width: 1024px) and (orientation: portrait) {
  .footer__contacts-phone a {
    font-size: calc(var(--index) * .9);
  }
}  

@media (max-width: 640px) and (orientation: portrait) {
  .footer__contacts-phone a {
    font-size: calc(var(--index) * 1.4);
  }
}  

.footer__contacts-links {
  width: 100%;
  display: flex;
  justify-content: end;
}

.footer__contacts-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--index) * .8);
  height: calc(var(--index) * .8);
  margin: 1rem 2rem 0rem 0rem;
}

.footer__contacts-links a:last-child {
  margin-right: 0;
}

@media (min-width: 1025px) {
  .footer-menu .menu__about,
  .footer-menu .menu__direction {
    display: none;
  }
}

/* Меню BURGER burger__navbar*/
.nav-container {
  max-width: 1050px;
  width: 90%;
  margin: auto;
}

.navbar {
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .menu-items {
  display: flex;
}

.navbar .nav-container li {
  list-style: none;
}

.navbar .nav-container a {
  text-decoration: none;
  color: #0e2431;
  font-weight: 600;
  font-size: calc(var(--index) * 1.2);
  padding: 0.7rem;
}

.navbar .nav-container a:hover{
    font-weight: bolder;
}

.nav-container {
  display: block;
  position: relative;
  height: 60px;
  /* left: calc(var(--index) * 2); */
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  top: 20px;
  left: 20px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.navbar .menu-items {
  padding-top: 80px;
  height: 100vh;
  width: 50vw;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  margin-left: -40px;
  padding-left: 50px;
  transition: transform 0.5s ease-in-out;
  text-align: center;
  background-size: cover;
  position: absolute;
  z-index: 1;
}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.nav-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}

.mobile__phone {
  width: 100vw;
} 

/* .mobile__phone a{
  display: flex;
  justify-content: end;
  color: var(--color-main);
  cursor: pointer;
  font-weight: bold;
  margin-right: calc(var(--index) * 6);
  margin-top: calc(var(--index) * -3.4);
  font-size: calc(var(--index) * 1.2);
  z-index: 10;
} */

.mobile__phone a{
  position: absolute;
  color: var(--color-main);
  cursor: pointer;
  font-weight: bold;
  left: calc(var(--index) * 40);
  top: calc(var(--index) * 3.6);
  font-size: calc(var(--index) * 1.2);
  z-index: 10;
}
 /*Сокрытие мобильного номера телефона на больших экранах*/
 @media (min-width: 769px){
  .mobile__phone a{
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile__phone a{
    left: calc(var(--index) * 50);
  }
}

@media (max-width: 768px) and (orientation: portrait){
  .mobile__phone a{
    left: calc(var(--index) * 30);
    font-size: calc(var(--index) * 1.1);
    top: calc(var(--index) * 3);
  }
}

@media (max-width: 640px) and (orientation: landscape){
  .mobile__phone a{
    left: calc(var(--index) * 30);
  }
}

@media (max-width: 640px) and (orientation: portrait){
  .mobile__phone a{
    left: calc(var(--index) * 20);
    font-size: calc(var(--index) * 1.2);
  }
}

@media (max-width: 475px) and (orientation: portrait){
  .mobile__phone a{
    top: calc(var(--index) * 3.5);
    left: calc(var(--index) * 21);
  }
}

.hide__burger {
  visibility: hidden;
  opacity: 0;
  transition: all 600ms cubic-bezier(0.000, 0.755, 0.650, 0.910); 
} 

/*плавное появление BURGER меню */
.fade-in {
  animation: fadeIn ease 5s;
  -webkit-animation: fadeIn ease 5s;
  -moz-animation: fadeIn ease 5s;
  -o-animation: fadeIn ease 5s;
  -ms-animation: fadeIn ease 5s;
}

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

/* @-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
} */

/* Скрываем меню при разрешении меньше 768px и открываем навбар */
@media (max-width: 769px){
  .header__menu {
    display: none;
  }
}

@media (min-width: 769px){
  .burger__navbar {
    display: none;
  }
}

