/* playfair-display-500 */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/PlayfairDisplay-Medium.ttf") format("truetype");
}
/* playfair-display-600 */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/PlayfairDisplay-SemiBold.ttf") format("truetype");
}
/* bitter-400 */
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Bitter-Regular.ttf") format("truetype");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  all: unset;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.content {
  padding: 0 calc(50% - 720px);
}

h1, h2 {
  font-family: "Playfair Display";
  font-size: 86px;
  font-weight: 500;
}

h4, dt {
  font-weight: 700;
}

ul {
  list-style-type: none;
}

blockquote {
  font-family: "Bitter";
  font-size: 16px;
  font-weight: 400;
}

/* header - desktop */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 135px;
}
.header h1 {
  font-weight: 600;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  gap: 55px;
}
.nav-list__link {
  transition: all 0.5s ease;
}
.nav-list__link:focus-visible {
  color: #a07c72;
  border-radius: 5px;
  outline: 2px solid #e0b59f;
  outline-offset: 10px;
  text-decoration: none;
}
.nav-list__link:hover {
  text-decoration: underline;
}
.nav-list__link:active {
  color: #e0b59f;
}
.nav-list:last-child {
  overflow: visible;
}
.nav-list__button {
  border: none;
  margin-right: 20px;
  margin-left: -25px;
  background-color: white;
  transition: all 0.5s ease;
}
.nav-list__button:hover {
  color: #a07c72;
}
.nav-list__button:focus-visible {
  color: #a07c72;
  outline: 2px solid #e0b59f;
  outline-offset: 10px;
  border-radius: 5px;
}
.nav-list__button:active {
  color: #e0b59f;
}

/* hero - desktop */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-image: url("../img/mod-studio-header-picture.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 630px;
}
.hero__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 690px;
  height: 360px;
  background-color: white;
  text-align: center;
}
.hero p {
  font-size: 24px;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 150px;
  margin: 150px auto;
  overflow: hidden;
}
.container > * {
  padding: 0 20px;
}

.designers, .strong-points {
  overflow-x: auto;
  max-width: 100vw;
}

.section-name {
  font-size: 24px;
  font-weight: 700;
}
.section-name:target {
  color: blue;
}

.rotated {
  writing-mode: vertical-rl;
  rotate: 180deg;
}

/* biography - desktop */
#biography {
  align-self: flex-start;
}

.biography {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1165px;
}
.biography__image {
  width: 49%;
}
.biography__text {
  width: 39%;
}
.biography__person-name {
  margin-bottom: 38px;
  width: 120px;
}
.biography__title p {
  font-size: 18px;
  font-weight: 500;
}
.biography__person-skills {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
}
.biography__person-skills li {
  display: inline-block;
}
.biography__person-skills li:not(:last-child)::after {
  content: "/";
}
.biography__quote {
  font-size: 26px;
  padding-right: 77px;
}
.biography__quote p br {
  display: none;
}

hr {
  width: 20px;
  border: 3px solid black;
  margin-top: 34px;
  margin-bottom: 22px;
}

/* designers - desktop */
#designers, #strong-points {
  padding-bottom: 30px;
  padding-left: 119px;
}

.designers-list {
  display: flex;
  justify-content: start;
  align-items: end;
  gap: 20px;
}

.designer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: end;
}
.designer__annotation, .designer__image-smaller-size {
  width: 337px;
}
.designer__image-bigger-size {
  width: 572px;
}
.designer__from-and-skills dt, .designer__from-and-skills dd {
  display: inline-block;
}

/* testimonials desktop */
.testimonials {
  display: grid;
  max-width: 1120px;
  grid-template-columns: 7% 40% 6% 47%;
  grid-template-areas: "col-1 col-2 col-3 col-4";
  justify-items: center;
  align-items: stretch;
}
.testimonials__links {
  grid-area: col-1;
  display: flex;
  justify-content: space-around;
  list-style-type: none;
}
.testimonials__image-main {
  grid-area: col-2;
  width: 100%;
}
.testimonials__info {
  grid-area: col-4;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  width: 41%;
  text-align: center;
}
.testimonials__quote {
  font-size: 32px;
}

#testimonials {
  grid-area: col-3;
  text-align: right;
}

/* strengths - desktop */
.strong-points__images-and-list {
  display: flex;
  gap: 21px;
  justify-content: start;
}
.strong-points__images-and-list img {
  width: 335px;
}
.strong-points__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Bitter";
  font-size: 34px;
  font-weight: 400;
  padding-left: 36px;
  padding-right: 36px;
}

@supports (display: grid) {
  .strong-points__images-and-list {
    display: grid;
    grid-template-columns: 335px 335px 448px 335px;
    gap: 21px;
  }
}
/* footer - desktop */
.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  color: white;
  padding: 70px 20px;
}
.footer__phone-and-mail {
  font-style: normal;
}
.footer__product-of strong {
  font-size: 24px;
  font-weight: 900;
}

/* TABLET VERSION */
@media (max-width: 768px) {
  h2 {
    font-size: 70px;
  }
  .biography__quote, .testimonials__quote {
    font-size: 30px;
    font-weight: 300;
  }
  .section-name, .testimonials__links {
    writing-mode: horizontal-tb;
    rotate: none;
  }
  .section-name {
    font-size: 18px;
  }
  /* header - tablet */
  .header {
    min-height: 82px;
  }
  .header h1 {
    display: none;
  }
  nav {
    width: 100%;
    padding: 0 45px;
  }
  .nav-list__link:hover {
    text-decoration: none;
  }
  .nav-list__link-first-letter {
    font-family: "Bitter";
    font-weight: 400;
    font-size: 40px;
  }
  .nav-list__link-first-letter:focus-visible {
    color: #a07c72;
    outline: 2px solid #e0b59f;
    outline-offset: 5px;
    border-radius: 5px;
  }
  .nav-list__link-first-letter:hover {
    color: #a07c72;
  }
  .nav-list__link-first-letter:active {
    color: #e0b59f;
  }
  .nav-list__link-but-first-letter {
    display: none;
  }
  .nav-list__button {
    margin: 0;
  }
  /* hero - tablet */
  .hero {
    background-image: url("../img/hero-background-pic-tablet.jpg");
    background-position: left;
    align-items: start;
    min-height: 685px;
  }
  .hero__info {
    width: 100%;
    height: 303px;
  }
  .hero__info p {
    font-size: 18px;
  }
  .container {
    gap: 80px;
    margin: 80px auto;
  }
  .container > * {
    padding: 0 16px;
  }
  /* biography - tablet */
  .biography {
    flex-wrap: wrap;
    padding: 0;
  }
  .biography__title, .biography__text {
    display: contents;
  }
  .biography__person-annotation {
    padding-left: 16px;
    order: 1;
    width: 50%;
  }
  .biography__person-skills li {
    display: block;
  }
  .biography__person-skills li:before {
    content: "- ";
  }
  .biography__person-skills li:not(:last-child)::after {
    content: none;
  }
  .biography__quote {
    order: 3;
    padding: 57px 16px 120px 16px;
    width: 100%;
  }
  .biography__quote p br {
    display: inline;
  }
  .biography hr {
    display: none;
  }
  .biography__person-name {
    order: 4;
    padding-left: 16px;
    width: 100%;
    font-size: 64px;
    font-weight: 400;
  }
  .biography__person-name:before {
    content: "-";
  }
  .biography__image {
    order: 5;
    width: 100%;
    height: 400px;
    -o-object-fit: cover;
       object-fit: cover;
    padding: 0;
  }
  #biography {
    order: 2;
    width: 50%;
    text-align: right;
    vertical-align: top;
    padding-right: 16px;
  }
  /* designers - tablet */
  .designers, .strong-points {
    max-width: 100%;
  }
  #designers, #strong-points {
    padding: 0 0 32px 0;
  }
  .designer__image-bigger-size, .designer__image-smaller-size {
    width: 310px;
    height: 440px;
  }
  .designer__image-bigger-size {
    -o-object-fit: cover;
       object-fit: cover;
  }
  .designer__image-smaller-size {
    -o-object-fit: fill;
       object-fit: fill;
  }
  .designer__annotation {
    width: 310px;
  }
  .testimonials {
    display: flex;
    flex-wrap: wrap;
  }
  .testimonials__image-main {
    display: none;
  }
  .testimonials__info {
    width: 100%;
    order: 2;
    flex-direction: row;
    justify-content: space-between;
    padding: 28px 0;
  }
  .testimonials__info img {
    width: 46%;
    aspect-ratio: 1;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .testimonials__quote {
    width: 48%;
    padding-top: 29px;
  }
  .testimonials__links {
    order: 3;
    width: 90%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  #testimonials {
    width: 100%;
    order: 1;
  }
  /* strengths - tablet */
  .strong-points__list {
    order: 1;
    padding: 0;
    margin-top: -8px;
  }
  .strong-points__list h2 {
    font-size: 46px;
    padding-bottom: 24px;
  }
  .strong-points__list ul {
    font-size: 24px;
    line-height: 1.5;
  }
  .strong-points__images-and-list img {
    width: 310px;
    height: 450px;
  }
  .strong-points__images-and-list img:nth-child(1) {
    order: 2;
  }
  .strong-points__images-and-list img:nth-child(2) {
    order: 3;
  }
  .strong-points__images-and-list img:nth-child(4) {
    order: 4;
  }
  @supports (display: grid) {
    .strong-points__images-and-list {
      display: grid;
      grid-template-columns: 201px 310px 310px 310px;
      grid-template-areas: "list img-1 img-2 img-3";
      gap: 20px;
    }
    .strong-points__list {
      grid-area: list;
    }
  }
  /* footer - tablet */
  .footer {
    flex-direction: column;
    align-items: start;
    gap: 8px;
    padding: 45px 14px;
  }
  .footer__phone-and-mail {
    order: 2;
    line-height: 2;
  }
  .footer__product-of {
    order: 1;
    align-self: end;
  }
  .footer__copyright {
    order: 3;
    font-size: 16px;
  }
}
/* MOBILE VERSION */
@media (max-width: 450px) {
  /* header - mobile */
  .nav-list {
    gap: initial;
  }
  /* biography - mobile */
  .biography__quote {
    padding-right: 16px;
  }
  /* testimonials - mobile */
  .testimonials__info {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .testimonials__info img {
    width: 100%;
  }
  .testimonials__quote {
    padding: 0;
    width: 85%;
  }
}
body:has(dialog[open]) {
  overflow: hidden;
}

.feedback {
  margin: auto;
  position: relative;
  overflow: visible;
  width: 478px;
  height: 577px;
  border: none;
  border-radius: 8px;
}
.feedback::backdrop {
  background-color: #817E7E;
  opacity: 0.6;
}
.feedback:before {
  content: "";
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  outline: 2px solid white;
  rotate: 3deg;
  z-index: -1;
}
.feedback form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  position: relative;
  height: inherit;
  padding: 0 20px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.feedback form h2 {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
}
.feedback form p {
  max-width: 85%;
}
.feedback form label {
  position: relative;
  font-weight: bold;
  font-size: 18px;
  display: grid;
  gap: 12px;
  width: 100%;
}
.feedback form label::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 8px;
}
.feedback form label input {
  height: 42px;
}
.feedback form label input, .feedback form label textarea {
  padding: 4px 8px;
  border-radius: 10px;
  border: none;
  outline: 2px solid #b3b3b3;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.5s ease;
}
.feedback form label input::-moz-placeholder, .feedback form label textarea::-moz-placeholder {
  color: #868686;
}
.feedback form label input::placeholder, .feedback form label textarea::placeholder {
  color: #868686;
}
.feedback form label input:focus-visible, .feedback form label textarea:focus-visible {
  outline-color: #e0b59f;
}
.feedback form label input:hover, .feedback form label textarea:hover {
  background-color: #ededed;
}
.feedback form .input-name:has(input:-moz-placeholder) ~ div > button[type=reset] {
  pointer-events: none;
  outline: 2px solid #cccccc;
}
.feedback form .input-name:has(input:placeholder-shown) ~ div > button[type=reset] {
  pointer-events: none;
  outline: 2px solid #cccccc;
}
.feedback form .input-name:has(input:-moz-placeholder) ~ div > button[type=reset] span {
  color: #cccccc;
}
.feedback form .input-name:has(input:placeholder-shown) ~ div > button[type=reset] span {
  color: #cccccc;
}
.feedback form .input-name::before {
  content: url("../img/icons/inside-placeholders/icon-edit-name.svg");
}
.feedback form .input-email::before {
  content: url("../img/icons/inside-placeholders/icon-mail.svg");
}
.feedback form .input-email::after {
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  content: "Please correct your e-mail input ";
  transition: color 3s ease;
}
.feedback form .input-email:has(input:user-invalid):after {
  color: red;
}
.feedback form .input-email:has(input:user-invalid) input {
  outline: 3px solid red;
}
.feedback form .input-comments::before {
  content: url("../img/icons/inside-placeholders/icon-comment.svg");
}
.feedback__buttons {
  width: 100%;
  padding: 2px 0;
  height: 52px;
  display: flex;
  gap: 8px;
}
.feedback__buttons * {
  flex: 1 1 0;
  border-radius: 8px;
  font-size: 18px;
  border: none;
  transition: background-color 1s ease;
  overflow: hidden;
  cursor: pointer;
}
.feedback__buttons * span {
  position: relative;
  z-index: 1;
}
.feedback__buttons *:before, .feedback__buttons *:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.feedback__buttons *:before {
  transform: translateX(-100%);
  transition: all 1s ease;
}
.feedback__buttons *:after {
  transform: translateX(100%);
  transition: all 0.5s ease;
}
.feedback__buttons *:hover::before, .feedback__buttons *:active::after {
  transform: translateX(0);
}
.feedback__buttons *[type=reset] {
  background-color: #fff;
  outline: 2px solid #b3b3b3;
  position: relative;
}
.feedback__buttons *[type=reset] span {
  color: #000;
}
.feedback__buttons *[type=reset]:focus-visible {
  box-shadow: 0 0 0 3px white, 0 0 0 5px #e0b59f;
}
.feedback__buttons *[type=reset]:before {
  background-color: #d7c8c1;
}
.feedback__buttons *[type=reset]:after {
  background-color: #e0b59f;
}
.feedback__buttons *[type=reset]:hover {
  outline: 2px solid #e0b59f;
}
.feedback__buttons *[type=reset]:active {
  outline: 2px solid #d7c8c1;
}
.feedback__buttons *[type=submit] {
  background-color: black;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.feedback__buttons *[type=submit] span {
  color: #fff;
}
.feedback__buttons *[type=submit]:before {
  background-color: #a07c72;
}
.feedback__buttons *[type=submit]:after {
  background-color: #e0b59f;
}
.feedback__buttons *[type=submit]:focus-visible {
  outline: 2px solid #e0b59f;
  outline-offset: 2px;
}
.feedback form:invalid button[type=submit] {
  pointer-events: none;
  background-color: #cccccc;
}
.feedback button[type=button] {
  position: absolute;
  width: 30px;
  height: 30px;
  display: grid;
  align-items: center;
  border: none;
  outline: 2px solid #b3b3b3;
  border-radius: 10px;
  background-color: #fff;
  top: 5px;
  right: 5px;
  transition: background-color 0.5s ease;
}
.feedback button[type=button]:hover {
  background-color: lightgray;
}
.feedback button[type=button]:active {
  background-color: beige;
}

@media (max-width: 540px) {
  .feedback {
    width: 363px;
    height: 589px;
  }
}
@media (max-width: 430px) {
  .feedback::before {
    display: none;
  }
}/*# sourceMappingURL=styles.css.map */