/* сброс стилей */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', serif;
  font-style: normal;
  font-size: 16px;
}

p, h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}
 /* //конец сброса стилей */

 /* переменные цвета для выбора темы */

 /* тёмная тема */

.dark__mode {
  --bg-color:#252526;
  --text-color:#ffff;
}

 /* общие стили */
 :root {
  --black: #171718;
  --design: #ff8800;
  --white: #ffff;

  --bg-color:#ffff;
  --text-color:#171718;
 }

 /* ----------кнопка - наверх ---------*/

 #back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  }

  #back-top a {
  width: 50px;
  display: block;
  transition: .2s;
  }

  /* arrow icon (span tag) */
  #back-top span {
  width: 50px;
  height: 50px;
  display: block;
  margin-bottom: 7px;
  background: rgb(255, 255, 255) url(./../img/icon/row-top-1r.png) no-repeat 50%;
  background-size: 40px;

  border-radius: 15px;

  opacity: .3;
  transition: .2s;
  }

  #back-top a:hover span {
    opacity: 1;
  }

 /* // кнопка - наверх */


.button {
  display: block;
  text-align: center;
  cursor: pointer;
}

.btn,
.btn__front {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 3px;
  letter-spacing: 0.15px;
  cursor: pointer;
  transition: all .15s ease-in;
}

.btn-border {
  color: #fff;
  background: transparent;
  border: 1px solid var(--design);
}

.btn-fon {
  border: 1px solid var(--main-color);
  background-color: var(--design);
}

.btn:active {
  transform: translateY(2px);
  background: rgb(226, 226, 226);
}

 html, body {
  background: var(--bg-color);
  color: var(--text-color);
 }

 /* nav bar */
 .nav {
  background: var(--bg-color);
  color: var(--text-color);
  opacity: 90%;
 }

 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
 }

 .sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-weight: 400;
  font-size: 24px;
  overflow: hidden;
 }

 .nav__img {
  width: 50px;
 }

 .logo {
  font-size: 24px;
  margin-right: 35px;
  padding-left: 35px;
 }

 .logo span {
  font-weight: 700;
 }

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 40px;
  row-gap: 20px;
  margin-right: auto;
}

.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

/*полоска при наведении и активной ссылке*/
.nav__link::before {
  content: '';
  display: block;
  position: absolute;

  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--design);
  transition: transform .15s ease-in;
}


.nav__link--active::before,
.nav__link:hover.nav__link::before {
  transform: scaleX(1);
}

.nav-burger {
  display: none;
}

.nav-burger__close {
  width: 32px;
  display: none;
}

.none {
  display: none;
}

/* выпадающий список меню stl */
.nav__drop {
  position: absolute;
  padding: 5px 15px 15px;
  margin-top: 5px;

  color: #FFFFFF;

  border-radius: 4px;
  background: gray;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);

  z-index: 50;
}

/* switch dark/lite mode */

.mode__btn {
  order: 9;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 44px;
  height: 22px;
  background: #272727b7;
  padding: 3px;
  border: #272727;
  border-radius: 22px;

  cursor: pointer;
}

.mode__btn::before {
  content: '';
  position: absolute;
  display: block;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  z-index: 1;
  background: white;

  transition: transform 0.15s ease-in;
}
.mode__btn--active::before {
  transform: translateX(20px);
}

.mode-switch {
  position: relative;
  z-index: 9;
}

.mode-lite {
  padding-right: .5px;
}
 /* // end nav bar */

 /* *********  Hero section *********/
.hero {
  position: relative;
  /* top: 50px; */
  text-align: center;
  background: var(--black);
  color: var(--white);
  background-image: url(./../img/main-bg.webp);
  background-position: top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  object-fit: cover;

  padding-top: 100px;
  padding-bottom: 70px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.35);
  top: 0;left: 0;right: 0;bottom: 0;
  z-index: -10;
}

.hero-container {
   z-index: 10;
}

.hero_title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 25px;
}

.hero__name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.fio {
  color: #6d6d6d;
  border: none;


}

.main__title {
  max-width: 1000px;
  font-weight: 700;
  font-size: 40px;
  line-height: 2;
  margin:0 auto 80px;
}

.h2-border {
  padding-left: 1em;
  padding-right: 1em;
  margin:0 auto 75px;
  line-height: 2;
  text-transform: lowercase;

  padding-bottom: unset !important;

  border: 1px solid var(--design);
}

.title-h2 {
display: inline-block;

max-width: 750px;

font-weight: 400;
font-size: 30px;
line-height: 1,3;
padding-bottom: 25px;
}

.hero__list {
  display: inline-block;
  font-size: 16px;
  font-weight: 400px;
  line-height: 1.5;

  margin: 0 auto;
  text-align: left;
}

.hero__item {
  position: relative;
  margin-left: 25px;
}

.hero__item::before { /* полоска */
  content: '';
  position: absolute;
  width: .8em;
  height: 2px;
  background: #ffff;
  margin-top: 10px;
  left: -20px;
}

.hero-btn {
  font-size: 20px;
  font-weight: 400;
  margin-top: 40px;
  color: var(--white);
  background: var(--design);
  border: 0px;
}

.btn:hover,
.tel-btn:hover {
  color: var(--design);
  background: var(--white);
  outline: 1px solid var(--design);
}

.button__row {
  display: flex;
  justify-content: center;
}


 /* // end Hero section */


/* ************** секция Навыки ************/

.skills__section {
  background: gray !important;
  color: white;
  padding-top: 50px;
  padding-bottom: 25px;
}

.skills__list {
  display: flex;
}

.section__title {
  display: inline-block;

  line-height: 1.5;
  margin-right: auto;
  margin-bottom: 25px;

  border-top: 1px solid var(--design) ;
  border-bottom: 1px solid var(--design) ;
}

.skills__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 15px;
  max-height: 100%;
}

.skills-item__title {
  line-height: 1.2;
  padding-bottom: 25px;
}

.skills-item__descript {
  line-height: 1.5;
  flex-grow: 3;
  border-bottom: 1px solid var(--design);
}

.btn__next {
  margin-top: 25px;
  margin-right: auto;
}

/*  // end секция Навыки */


/* **** секция-слайдер stl-модели **** */


.owl-stage-outer { /* библиотечный стиль */
  border-top: 1px solid var(--design);
  border-bottom: 1px solid var(--design);

}

.owl-theme {
  padding-bottom: 15px;
}

.block__content {
  padding-top: 75px;
}

.title__slid {
  line-height: 1.3;
  margin-bottom: 15px;
}

.slider {
  padding: 20px 5px;
  max-height: 100%;
}

.slider__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slider__col img {
  max-height: 425px;
  object-fit: contain;
}

.slider__col-2 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.slider__col-2 img {
  display: inline-block;
}

.slider-col__txt {
  max-width: 620px;
  line-height: 1.5;
  padding-right: 25px;
}

/* // end секция-слайдер stl-модели */

/* ********секция SketchUp и ArchiVis ********* */

.skp {
  background: gray;
  color: white;
}

/* // end секция-SketchUp и ArchiVis */

/* **********Секция Отзывы*********** */
.test {
  padding-top: 40px;
  padding-bottom: 25px;
  background: gray;
  color: white;
}

.test__descript {
  margin-top: 25px;
}

.test__carusel {
  padding-top: 10px;
}

.test__head {
  display: flex;
  flex-direction: column;
}

.carusel__wrapper {
  padding: 25px 0;
}

.test__img {
  padding-top: 15px;
  padding-bottom: 15px;
}

.test__img img{
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
}

.test__resum {
  max-width: 500px;
  line-height: 1.5;
}

.profil {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 600;

  padding-top: 15px;
  padding-bottom: 15px;

  color: var(--design);
  text-align: right;
}

img.row__oring {
  width: 50px !important;
}

.link__profil {
  margin-right: 15px;
}

.test__foot {
  display: flex;
  padding-right: 75px;
}
/* // end Секция Отзывы */


/* ***** section partners ****** */

.partners__section {
  padding-bottom: 45px;
  padding-top: 45px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding-bottom: 25px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--design);
}

.title__partners {
  display: block;
  margin-bottom: 15px;
}

.partners__item {
  width: 95px;
}

.partners__item img {
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 15px black;
}

/*  // end section partners */

/* *************section 3 steps ****** */

.step__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step__img {
  padding-top: 15px;
  padding-bottom: 15px;
}

.description {
  height: 171px;
}

.you__link {
  font-weight: 500;
  color: var(--design);
}

/* // section 3 steps */


/* *******  section buy-order models ****** */

.order {
  padding-top: 45px;
  padding-bottom: 45px;
}

.article__buy {
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px solid var(--design) ;
}

.txt__center {
  margin: 10px auto;
  text-align: center;
  color: var(--design);
  font-size: 1.5rem;
  font-weight: 500;
}

ol.buy__order li {
  list-style: unset;
}


/* style for accordion */

.item-faq__title {
  position: relative;
  display: flex;
  align-items: center;
  height: 111px;

  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;

  padding-right: 80px;
  padding-left: 10px;

  border-bottom: 1px solid var(--design);
}

.item-faq__title::after {
  content: url(./../img/+х.svg);
  position: absolute;
  width: 50px;
  height: 50px;
  right: 15px;
  transition: transform .35s ease;
  z-index: 10;
}

.item-faq__title.active__faq::after {
  transform: rotate(-135deg);
}

.item-faq__title:hover {
 cursor: pointer;
 background: gray;
}

.gray__color {
  background: rgb(121, 121, 121);
}

.item-faq__descript {
  max-height: 0;
  overflow: hidden;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;

  transition: max-height .55s ease;
}
 /* добавляемый стиль для открытия блока */
.faq__active {
  max-height: 900px;
  padding-bottom: 45px;
  border-bottom: 1px solid var(--design);
}

.item-faq__descript > p {
  margin-top: 25px;
  margin-bottom: 25px;
}

.link__stl {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--design);
  padding-left: 35px;
  padding-top: 35px;
}

.reset {
  font-size: 22px;
  color: var(--text-color);
  padding: 0 25px;
}

/* блок - способы оплаты */
.banck__logo {
  display: flex;
  max-width: 500px;
  justify-content: space-around;

  margin: 15px auto;
}

.banck__logo img {
  height: 50px;
}

.pay__faq {
  text-align: center;
}
/*  //  end accordion */

/* // end  section buy/order models  */


   /* *****  section footer  ***** */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col a {
  margin-bottom: 15px;
}

.col__title {
  font-size: 20px;
  margin-bottom: 15px;
}

/* стили формы */
.footer__form {
  max-width: 450px;
  flex-grow: 5;
}

.form__title {
  margin-bottom: 25px;
}

.input input {
  width: 100%;
  height: 40px;
  padding-left: 10px;
  margin-bottom: 25px;

  border: none;
  border-radius: 5px;
  color: #CACACA;
  background-color: #414141;
}

.message {
  width: 100%;
  height: 150px;
  padding-left: 10px;
  padding-top: 16px;
  margin-bottom: 25px;

  border: none;
  border-radius: 5px;
  color: #CACACA;

  background-color: #414141;
}

.form__btn {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;

  color: #FFFFFF;

  padding: 15px 35px;
  background: var(--design);
  border: none;
  border-radius: 5px;
}

/* // end form stile */



.social {
  padding-top: 25px;
  margin-bottom: 20px;
  padding-left: 35px;
  flex-grow: 1;
}

.social__item a {
  display: flex;
  align-items: center;
  margin: 10px;
}

.social__item img {
  margin-right: 25px;
  max-width: 32px;
}

.icon__soc {
  width: 38px;
}

p.copy {
  text-align: center;
  margin: 25px auto 0;
}

   /* // end section footer */

/* ***************************************** */

/* ------страница arhiviz - galery ---------------- */

.header__galery {
  position: relative;

  color: var(--white);

  background-size: cover;

  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;


  padding-top: 55px;
  padding-bottom: 25px;
  margin-bottom: 45px;
}

.header__galery::before {
  content: '';
  position: absolute;
  top: 0;left: 0;bottom: 0;right: 0;
  background: rgba(0, 0, 0, 0.3);
}

.galery__archviz {
  margin-top: -50px;
  padding-top: 50px;
  background-image: url('./../img/header/archi-bg.webp');
  background-attachment: fixed;
}

.header__arch {
  background-image: url('./../img/f72w-doroga-Lum73top1.webp');
}

.title__archiviz {
  color: #FFFFFF;
}

.header__front {
  background-image: url('./../img/front-header-big-r.webp');
}

.header__front::before {
  content: '';
  background: rgba(0, 0, 0, 0.5);
}

.behance__link {
  padding-top: 25px;
  padding-bottom: 25px;
}

.galery__descript {
  font-weight: 400;
  text-align: center;
  padding-bottom: 35px;
}


/* *************************************** */

/* страница stl.html  ----- galery */
.header__stl {
  background-image: url('./../img/stl-header.webp');
  background-attachment: fixed;

}

.galery {
  padding-bottom: 45px;
}

.galery__header {
  position: relative;
  text-align: center;
  margin-bottom: 45px;
  z-index: 1;
}

.galery__wrapper {
  margin-top: 25px;
}

.title__galery {
  padding-top: 95px;
  padding-bottom: 45px;
  text-align: center;

  font-size: 36px;
  text-shadow: 0 0 10px rgb(0, 0, 0);

  line-height: 1.3;
  margin: 0 auto;
}

.galery__descript {
  display: block;
  margin: 0 auto;
  max-width: 550px;
}

.gl-skills__list {
  color: var(--white);
  margin-top: -95px;
  z-index: 5;
  position: relative;
}

.scills-item__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  height: 100%;
  background: grey;
}

/* стили stl - коллекции */

.title__collection {
  font-size: 36px;
  text-align: center;
  padding-top: 55px;
  padding-bottom: 35px;
}


/* стили карточки модели */

.galery__card {
  margin: 0;
  padding: 10px;

  overflow: hidden;
  background: gray;
  border: 1px solid var(--design);
}

.galery__card img {
  cursor: pointer;
  transition: transform 0.15s ease-in;
}
.galery__card img:hover {
  transform: scale(1.1);
}

.card__descript {
  display: flex;
  justify-content: space-between;

  padding: 15px 5px;
  color: var(--white);
}

.card__name strong {
  font-size: 18px;
}

.line__card {
  display: flex;
  align-items: end;
  flex-grow: 5;
  height: 1px;
  margin: 1em 0.5em 0;

  background: var(--white);
}

.card__price {
  color: var(--design);
}


/* модальное окно в галереях stl / archiviz */

.modal__arch {
  position: absolute;
  width: 100%;
  top: 0;left: 0;
  z-index: 10;
}

.hide__modal {
  display: none;
}

.galery__card:active.hide__modal {
 display: block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 20;
  padding-top: 90px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 100%;
}

/* анимация при открытии модального окна */
.modal-content {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}



/* ********************************* */

/* стили Front-end страницы */


.main-front__title {
  text-align: center;
  margin-bottom: 15px;
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 25px;
}

.porfolio__link,
.front__link {

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

  height: 100%;
  padding: 10px;

  box-shadow: 0 0 20px rgb(68, 68, 68);
}

.portfolio-link__img {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  transition: transform 0.15s ease-in, opacity .15s ease-in;
}

/* overlay при наведении на картинку сайта */

.porfolio__link::before {
  content: '';
  position: absolute;
  top: 0;left: 0;right: 0;bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: transform 0.15s ease-in, opacity .15s ease-in;
}

.porfolio__link:hover.porfolio__link::before,
.porfolio__link:hover.porfolio__link .btn__front {
  opacity: 1;
  z-index: 5;
}

.porfolio__link:hover .portfolio-link__img {
  transform: scale(1.02);
}

.porfolio__link:hover .portfolio-card__title,
.porfolio__link:hover .portfolio__descript {
  color: #FFFFFF;
}

/* // end overlay */
.descript-content {
    visibility: hidden;
    line-height: 0;
    height: 0px;
    display: block;
}
.descript-content.--active{
  visibility: inherit;
}

.btn__front {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%);
  opacity: 0;
}

.portfolio-card__title {
  position: relative;
  display: block;
  padding-bottom: 15px;
  z-index: 20;
}

.portfolio__descript {
  position: relative;
  display: block;
  z-index: 20;
}

/* ************ страница готовых изделий product.html ************* */

.header__product {
  background-image: url('./../img/product-header-01.webp');
  background-attachment: fixed;
}
