:root {
  --body-text: #777777;
  --main-color: #777777;
  --bg: rgba(0, 0, 0, 0.6);
  --text-input: #adadad;
  --light-bg: #d5d5d5;
  --footer: #f7f7f7;
  --button: #393246;
  --white: #ffffff;
}

input {
  outline: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-family: 'Roboto Condensed', sans-serif;
  background-color: var(--white);
  /* прижатие подвала к низу при путой странице */
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  color: var(--main-color);
  /* конец прижатия */
}

h1 {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 500;
  font-size: 140px;
  line-height: 164px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  /* Title Н2-40 */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  font-size: 40px;
  line-height: 47px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  /* title Н3-30 */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  font-size: 30px;
  line-height: 45px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h4 {
  /* title Н4-20 */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h5 {
  /* Menu 14 */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h6 {
  /* subtitle 18 */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-size: 18px;
  line-height: 27px;
}

p {
  /* body text - 16 */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

p .small-text {
  /* small text - 13 */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 15px;
}

p .number {
  /* number */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
}

.content {
  /* width: 100vw; */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-right: 45px;
  padding-left: 45px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

/* предзагрузка страницы  */

.page-loader {
  background: #fff;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9998;
}

.loaded_hiding .page-loader {
  transition: 0.3s opacity;
  opacity: 0;
}

.loaded .page-loader {
  display: none;
}

.loader {
  background: #ddd;
  position: absolute;
  display: inline-block;
  height: 40px;
  width: 40px;
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  text-indent: -9999em;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: ball-scale 1s 0s ease-in-out infinite;
  animation: ball-scale 1s 0s ease-in-out infinite;
}

@-webkit-keyframes ball-scale {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes ball-scale {
  0% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}

/* кнопка для возврата на начало страницы */

.top-icon {
  border-top: 1px solid var(--button);
  border-left: 1px solid var(--button);
  transform: rotate(45deg) translateX(3px) translateY(3px);
  width: 12px;
  height: 12px;
}

.back-button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: -60px;
  right: 40px;
  width: 30px;
  height: 30px;
  background-color: var(--white);
  border: 1px solid #d5d5d5;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  transition: all 0.5s ease;
}

.back-button-hide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.308);
  border: none;
  border: 1px solid #d5d5d5;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  transition: all 0.5s ease;
}

/* кнопка для возврата на начало страницы конец*/

/* наша команда  */
details summary {
  list-style: none;
}

.about-us {
  margin-bottom: 110px;
  margin-top: 150px;
  color: var(--body-text);
}

.about-us__tittle {
  margin-bottom: 50px;
}

.about-us__tittle::before {
  display: block;
  content: '';
  height: 150px;
  margin: -150px 0 0 0;
}

.about-us__content {
  display: flex;
}

.about-us__list {
  margin-right: 100px;
  width: 42%;
}

.about-us__list summary svg {
  min-width: 30px;
  transform: rotate(45deg);
  stroke: var(--body-text);
  transition: all 0.3s ease-out;
}

.about-us__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  border-top: 1px solid var(--light-bg);
  /* margin-bottom: -1px; */
  cursor: pointer;
}

.about-us__list summary:last-child {
  border-bottom: 1px solid var(--light-bg);
}

.about-us__list summary:hover {
  color: var(--button);
}

.about-us__list summary:hover>svg {
  stroke: var(--button);
}

.about-us__list details[open]>summary {
  border-bottom: none;
}

.about-us__list details[open]>summary svg {
  transform: rotate(-45deg);
  transition: all 0.3s ease-out;
}

.about-us__list details {
  padding-bottom: 0;
  height: 80px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.about-us__list details[open] {
  /* padding-bottom: 25px; */
  height: 190px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.about-us__list details[open]:last-child {
  border-bottom: 1px solid var(--light-bg);
}

.about-us__list h6 {
  margin-bottom: 50px;
}

.about-us__photo {
  background: url('../img/01.avif') no-repeat center;
  width: 50%;
  height: 500px;
  background-size: cover;
}

/* портфолио */

.portfolio {
  color: var(--body-text);
  width: 100%;
}

sup {
  vertical-align: super;
  font-size: smaller;
}

.portfolio__tittle {
  margin: 0 0 50px 0;
  display: flex;
  justify-content: center;
}

.portfolio__div {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--body-text);
}

.portfolio__nav {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

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

.portfolio__nav span {
  margin-right: 50px;
}

.portfolio__nav a {
  display: inline-block;

  text-decoration: none;
  color: var(--body-text);
}

.portfolio__nav a:hover {
  margin-bottom: -1px;
  color: var(--button);
  border-bottom: 1px solid var(--button);
}

.portfolio__nav span:last-child {
  margin-right: 0;
}

/* портфолио гелерея */
.portfolio__gallery {
  margin: 40px 0;
  display: grid;
  gap: 30px;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(4, 1fr);
}

.gallery-div {
  background-color: var(--footer);
  position: relative;
  text-decoration: none;
  color: var(--white);
  justify-content: center;
  text-align: center;
}

.gallery-div::before {
  display: block;
  content: '';
  width: 100%;
}

.gallery-div>div {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-attachment: fixed;
  background-color: var(--bg);
  transition: all 0.5s ease;
}

.gallery-div:hover>div {
  opacity: 1;
  transition: all 0.5s ease;
}

.gallery-div h4 {
  margin-bottom: 10px;
}

.div01 {
  background: url('../img/portfolio/links/01.avif') no-repeat center;
  background-size: cover;
  grid-row-start: 1;
  grid-row-end: 3;
}

.div02 {
  background: url('../img/portfolio/links/02.avif') no-repeat center;
  background-size: cover;
  padding-top: 100%;
}

.div03 {
  background: url('../img/portfolio/links/03.avif') no-repeat center;
  background-size: cover;
}

.div04 {
  background: url('../img/portfolio/links/04.avif') no-repeat center;
  background-size: cover;
}

.div05 {
  background: url('../img/portfolio/links/05.avif') no-repeat center;
  background-size: cover;
}

.div06 {
  background: url('../img/portfolio/links/06.avif') no-repeat center;
  background-size: cover;
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 2;
  grid-row-end: 4;
}

.div07 {
  background: url('../img/portfolio/links/07.avif') no-repeat center;
  background-size: cover;
  grid-column-start: 1;
  grid-column-end: 3;
}

.div08 {
  background: url('../img/portfolio/links/08.avif') no-repeat center;
  background-size: cover;
}

.div09 {
  background: url('../img/portfolio/links/09.avif') no-repeat center;
  background-size: cover;
}

.div10 {
  background: url('../img/portfolio/links/10.avif') no-repeat center;
  background-size: cover;
  grid-column-start: 3;
  grid-column-end: 5;
}

.div11 {
  background: url('../img/portfolio/links/11.avif') no-repeat center;
  background-size: cover;
  grid-row-start: 5;
  grid-row-end: 7;
}

.div12 {
  background: url('../img/portfolio/links/12.avif') no-repeat center;
  background-size: cover;
}

.div13 {
  background: url('../img/portfolio/links/13.avif') no-repeat center;
  background-size: cover;
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 6;
  grid-row-end: 8;
}

.div14 {
  background: url('../img/portfolio/links/14.avif') no-repeat center;
  background-size: cover;
}

.div15 {
  background: url('../img/portfolio/links/15.avif') no-repeat center;
  background-size: cover;
}

.div16 {
  background: url('../img/portfolio/links/16.avif') no-repeat center;
  background-size: cover;
}

.div17 {
  background: url('../img/portfolio/links/17.avif') no-repeat center;
  background-size: cover;
  grid-column-start: 1;
  grid-column-end: 3;
}

.gallery-morebtn {
  display: flex;
  justify-content: center;
}

.morebtn-link {
  background-color: rgba(255, 255, 255, 0);
  padding: 22px 54px;
  border: 1px solid var(--button);
  text-decoration: none;
  color: var(--button);
  transition: all 0.5s ease;
  white-space: nowrap;
}

.morebtn-link:hover {
  background-color: var(--button);
  color: var(--white);
  transition: all 0.5s ease;
}

.request-btn {
  display: flex;
  justify-content: center;
  margin: 130px 0;
}

.request-link {
  display: flex;
  color: var(--body-text);
  border-bottom: 1px solid var(--text-input);
  text-decoration: none;
  transition: all 0.5s ease;
}

.request-link:hover {
  color: var(--button);
  border-bottom: 1px solid var(--button);
  transition: all 0.5s ease;
}

.arrow {
  top: 8px;
  position: relative;
  border: solid var(--body-text);
  border-width: 1px 1px 0 0;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  transition: all 0.5s ease;
}

.request-link:hover>.arrow {
  top: 8px;
  position: relative;
  border: solid var(--button);
  border-width: 1px 1px 0 0;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  transition: all 0.5s ease;
}

.arrow::after {
  content: '';
  position: absolute;
  background-color: var(--body-text);
  top: 50%;
  right: 0;
  width: 20px;
  height: 2px;
  margin-right: -3px;
  transform: rotate(-45deg);
  transition: all 0.5s ease;
}

.request-link:hover>.arrow::after {
  content: '';
  position: absolute;
  background-color: var(--button);
  top: 50%;
  right: 0;
  width: 20px;
  height: 2px;
  margin-right: -3px;
  transform: rotate(-45deg);
  transition: all 0.5s ease;
}

/* модальное окно  */

.modal {
  position: fixed;
  /* фиксированное положение */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  /* цвет фона */
  z-index: 1050;
  opacity: 0;
  /* по умолчанию модальное окно прозрачно */
  -webkit-transition: opacity 300ms ease-in;
  -moz-transition: opacity 300ms ease-in;
  transition: opacity 300ms ease-in;
  /* анимация перехода */
  pointer-events: none;
  /* элемент невидим для событий мыши */
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.modal__dialog {
  position: relative;
  width: auto;
  margin: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
}

.modal__content {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  outline: 0;
  padding: 50px;
}

.modal__close {
  color: rgb(255, 255, 255);
  position: absolute;
  /* margin-left: 3px; */
  padding-top: 10px;
  top: -30px;
  right: 10px;
  width: 20px;
  height: 20px;
}

.modal__close::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.modal__close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.modal__tittle {
  margin-bottom: 40px;
}

.modal__form {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.modal__form label {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--body-text);
}

.modal__form-name {
  width: 50%;
  margin-right: 30px;
}

.modal__form input {
  width: 100%;
  border: none;
  height: 30px;
  border-bottom: 1px solid var(--body-text);
  outline: none;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--button);
}

.modal__form input:focus~.floating-label,
.modal__form input:not(:focus):valid~.floating-label {
  top: -50px;
  bottom: 10px;
  /* left: 50px; */
  font-size: 14px;
  opacity: 1;
}

.floating-label {
  position: relative;
  pointer-events: none;
  /* left: 50px; */
  top: -25px;
  transition: 0.2s ease all;
}

.floating-label-tel {
  position: relative;
  pointer-events: none;
  /* left: 50px; */
  top: -25px;
  transition: 0.2s ease all;
}

.modal__form-tel {
  width: 50%;
}

.modal__links {
  display: flex;
}

.modal__btn-link {
  margin-right: 34px;
  padding: 20px 50px;
  background: var(--button);
  border: 1px solid var(--button);
  text-decoration: none;
  color: var(--white);
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  transition: 0.3s ease all;
}

.modal__btn-link:disabled {
  opacity: 0.5;
  cursor: auto;
  transition: 0.3s ease all;
}

.arrow__modal {
  color: var(--white);
  /* position: absolute; */
  margin-left: 14px;
  /* margin-top: 7px; */
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transform: rotate(-45deg);
}

.arrow__modal::before {
  content: '';
  position: absolute;
  right: 1px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.modal__agree a {
  color: var(--text-input);
}

.modal__agree {
  color: var(--text-input);
}

/* модальное окно "отправлено" */

.modal-send {
  position: fixed;
  /* фиксированное положение */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  /* цвет фона */
  z-index: 1051;
  opacity: 0;
  /* по умолчанию модальное окно прозрачно */
  -webkit-transition: opacity 300ms ease-in;
  -moz-transition: opacity 300ms ease-in;
  transition: opacity 300ms ease-in;
  /* анимация перехода */
  pointer-events: none;
  /* элемент невидим для событий мыши */
}

.modal-send:target {
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.modal-send__dialog {
  position: relative;
  width: auto;
  margin: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 200px;
}

.modal-send__content {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  outline: 0;
  padding: 50px;
  color: var(--body-text);
}

.modal-send__content div:first-child {
  margin-bottom: 0;
}

.modal-send__content div {
  text-align: center;
  margin-bottom: 20px;
}

.modal-send__social {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0;
  margin-top: 20px;
}

.modal-send__social a {
  text-decoration: none;
  color: var(--body-text);

  border-bottom: none;
}

.modal-send__social a:hover {
  color: var(--button);
  margin-bottom: -1px;
  border-bottom: 1px solid var(--button);
}

.modal-send__close {
  color: rgb(255, 255, 255);
  position: absolute;
  /* margin-left: 3px; */
  padding-top: 10px;
  top: -30px;
  right: 10px;
  width: 20px;
  height: 20px;
}

.modal-send__close::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.modal-send__close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}