/* General Styles */
html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:root {
  --black: #1c2225;
  --yellow: #ecd979;
  --white: #fcf9f9;
  --font-family: "Manrope", sans-serif;
  --second-family: "DM Sans", sans-serif;
}

body {
  width: 100%;
  font-family: var(--font-family), sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -4%;
  line-height: 19px;
  color: rgba(252, 249, 249, 0.4);
  background-color: var(--black);
  overflow-x: hidden;
}

body:has(.menu.is-open) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}

a {
  display: block;
  text-decoration: none;
  font-style: normal;
  color: inherit;
}

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

svg {
  display: block;
}

.second-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: -3%;
  color: var(--white);
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .second-title {
    font-size: 44px;
    line-height: 64px;
  }
}

.container {
  min-width: 320px;
  max-width: 375px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 32px;
  }
}

@media screen and (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 50px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

input,
textarea,
button {
  font-family: inherit;
  line-height: inherit;
}

textarea {
  resize: none;
}

button {
  border: none;
  background-color: transparent;
}

.section {
  max-width: 375px;
  padding-top: 40px;
  padding-bottom: 40px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .section {
    max-width: 768px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media screen and (min-width: 1280px) {
  .section {
    max-width: 1280px;
    padding-top: 75px;
    padding-bottom: 75px;
  }
}

/* Header Styles */

.page-header {
  margin-top: 20px;
}

.page-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-top: 6.5px;
  padding-bottom: 6.5px;
}

.nav-btn {
  margin-left: auto;
  background-color: transparent;
  border: none;
}

@media screen and (min-width: 768px) {
  .nav-btn {
    margin-left: 20px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  font-size: 14px;
  line-height: 1.28571;
  text-transform: uppercase;
}

.page-header .nav-links {
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-left: 60px;
}

.nav-link {
  padding-top: 17px;
  padding-bottom: 17px;
  transition: color 250ms ease-in-out;
}

.nav-link,
.address-link {
  color: var(--white);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--yellow);
}

.contacts-wrapper {
  display: flex;
  margin-left: auto;
  gap: 20px;
}

.address-links {
  margin-left: auto;
  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 15px;

  transition: border-color 250ms ease-in-out;
}

.address-link {
  font-size: 14px;
  line-height: 1.42857;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 28px;
}

.address-links:hover,
.address-links:focus {
  border-color: var(--yellow);
}

.header-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.icon-box {
  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 15px;
  padding: 8px;
  background-color: rgba(252, 249, 249, 0.1);

  transition-property: border-color, background-color;
  transition: 250ms ease-in-out;
}

.icon-box:hover,
.icon-box:focus {
  border-color: var(--yellow);
  background-color: transparent;
}

.header-social .header-icon {
  fill: var(--white);
}

/* Main Section 1 (Page Hero) */

.page-hero {
  padding-top: 84px;
  padding-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .page-hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }
}

.page-hero .container {
  display: flex;
  flex-wrap: wrap;
}

@media screen and (min-width: 768px) {
  .title-place {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (min-width: 1280px) {
  .title-place {
    margin-left: 40px;
    margin-top: 94px;
  }
}

.hero-pic {
  border-radius: 4px;
  object-fit: cover;
  @media screen and (min-width: 1280px) {
    order: -1;
  }
}

.hero-title {
  font-weight: 400;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -3%;
  color: var(--white);
  width: 100%;
}

@media screen and (min-width: 768px) {
  .hero-title {
    font-size: 54px;
    line-height: 64px;
    width: 549px;
  }
}

.color-accent {
  color: var(--yellow);
}

.hero-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: -4%;
  line-height: 19px;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;

  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 15px;
  padding: 14px 36px;
  margin-left: 70px;
  margin-top: 20px;
  margin-bottom: 40px;
  width: 154px;
  height: 49px;

  transition: border-color 250ms ease-in-out;
}

@media screen and (min-width: 768px) {
  .hero-order {
    font-size: 16px;
    line-height: 22px;

    width: 168px;
    height: 50px;
    padding: 14px 39px;
  }
}

@media screen and (min-width: 1280px) {
  .hero-order {
    margin-top: 40px;
    margin-left: 141px;
  }
}

.hero-order:hover,
.hero-order:focus {
  border-color: var(--yellow);
}

.star-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 115px;
  margin-left: auto;
  margin-top: 16px;
}

@media screen and (min-width: 1280px) {
  .star-wrapper {
    margin-top: 14px;
  }
}

.star-description {
  text-align: center;
}

@media (max-width: 767px) {
  .star-wrapper {
    display: none;
  }
}

/* Main Section 2 (Page About Us) */

.page-about-us .container {
  display: flex;
  flex-wrap: wrap;
}

.container-about-us {
  align-self: center;
  margin-bottom: 50px;
}

.description-about-us:first-of-type {
  padding-bottom: 20px;
}

@media screen and (min-width: 768px) {
  .description-about-us {
    font-size: 16px;
    line-height: 22px;
  }
}

@media screen and (min-width: 1280px) {
  .description-about-us {
    width: 536px;
  }
}

.about-us-img-wrapper {
  margin-left: auto;
  position: relative;
}

.about-us-img-wrapper::after {
  content: "";
  display: block;

  width: 250px;
  height: 408px;

  position: absolute;
  bottom: -62px;
  left: 105px;

  background-image: url(../images/grey.png);
  background-size: 459px 408px;
  background-position: bottom left;
  background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
  .about-us-img-wrapper::after {
    width: calc(545px - 176px);
    height: 484px;

    bottom: -50px;
    left: 367px;

    background-size: 545px 484px;
  }
}

@media screen and (min-width: 1280px) {
  .about-us-img-wrapper::after {
    width: calc(545px - 160px);

    bottom: -80px;
    left: 259px;
  }
}

.about-us-pic {
  border-radius: 4px;
  object-fit: cover;
}

/* Main Section 3 (Page Our Collection) */

.collection-list {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .collection-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media screen and (min-width: 1280px) {
  .collection-list {
    row-gap: 40px;
  }
}

.collection-list::after {
  content: "";
  display: block;
  width: calc(199px - 127px);
  height: 177px;

  position: absolute;
  top: 214px;
  right: 283px;

  background-image: url(../images/yellow.png);
  background-repeat: no-repeat;
  background-size: 199px 177px;
  background-position: right top;
  z-index: -1;
}

@media screen and (min-width: 768px) {
  .collection-list::after {
    width: calc(338px - 224px);
    height: 300px;

    top: 117px;
    right: 622px;

    background-size: 338px 300px;
  }
}

@media screen and (min-width: 1280px) {
  .collection-list::after {
    width: calc(338px - 169px);

    right: 1061px;
  }
}

.collection-item {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .collection-item {
    width: calc((100% - 20px) / 2);
  }
}

@media screen and (min-width: 1280px) {
  .collection-item {
    width: calc((100% - 20px * 2) / 3);
  }
}

.collection-wrapper {
  padding-top: 18px;
}

.vyshyvanka-name {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 5%;
  text-transform: uppercase;
  color: var(--white);
}

@media screen and (min-width: 768px) {
  .vyshyvanka-name {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 8px;
  }
}

.vyshyvanka-price {
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 5%;
}

@media screen and (max-width: 767.98px) {
  .vyshyvanka-price {
    display: none;
  }
}

.page-our-collection .second-title {
  text-align: center;
}

.collection-pic {
  border-radius: 4px;
  height: 430px;
}

@media screen and (min-width: 768px) {
  .collection-pic {
    width: 342px;
  }
}

@media screen and (min-width: 1280px) {
  .collection-pic {
    width: 380px;
  }
}

/* Main Section 4 (Page Full View Photo) */

.page-fullviewphoto {
  width: 100%;
  overflow: hidden;
}

.fullviewphoto {
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

/* Main Section 5 (Customer Order) */

@media screen and (min-width: 768px) and (max-width: 1279.98px) {
  .page-order {
    padding-bottom: 100px;
  }
}

.page-order .container {
  display: flex;
  flex-wrap: wrap;
  @media screen and (min-width: 1280px) {
    justify-content: space-between;
  }
}

.order-pic {
  border-radius: 4px;
  object-fit: cover;
}

.page-order .second-title {
  width: 542px;
  line-height: 58px;
}

.page-order .mobile-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.375;
  letter-spacing: -0.03em;
  color: var(--white);

  width: 335px;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .page-order .mobile-title {
    display: none;
  }
}

@media screen and (max-width: 767.98px) {
  .page-order .second-title {
    display: none;
  }

  .order-img-wrapper {
    display: none;
  }
}

.order-info {
  display: flex;
  flex-direction: column;
}

.order-form {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .order-form {
    margin-bottom: 100px;
  }
}

@media screen and (min-width: 1280px) {
  .order-form {
    margin-bottom: 0;
  }
}

.order-input {
  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 15px;
  background-color: transparent;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--white);

  padding: 14px 16px;
  width: 335px;
  height: 47px;

  transition: border-color 250ms ease-in-out;
}

@media screen and (min-width: 768px) {
  .order-input {
    width: 508px;
    height: 50px;
  }
}

.order-input:focus {
  border-color: rgba(252, 249, 249, 0.6);
}

.order-input::placeholder {
  letter-spacing: -0.02em;
}

.order-form .comment-input {
  height: 196px;
  margin-bottom: 0;
}

@media screen and (max-width: 767.98px) {
  .comment-input {
    display: none;
  }

  .mail-input {
    margin-bottom: 0;
  }
}

.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 145px;
  height: 49px;

  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 15px;
  padding: 14px 36px;
  background-color: var(--black);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--white);
  margin: 0 auto;
  margin-top: 40px;

  transition: border-color 250ms ease-in-out;
}

@media screen and (min-width: 768px) {
  .order-btn {
    width: 168px;
    height: 50px;
    padding: 14px 39px;
    margin-left: 0;
  }
}

.order-btn:hover,
.order-btn:focus {
  border-color: var(--yellow);
}

.order-img-wrapper {
  position: relative;
  @media screen and (min-width: 1280px) {
    order: -1;
  }
}

.order-img-wrapper::after {
  content: "";
  display: block;
  width: 323px;
  height: 484px;

  position: absolute;
  top: 116px;
  right: 413px;

  background-image: url(../images/grey.png);
  background-repeat: no-repeat;
  background-size: 545px 484px;
  background-position: right top;
}

@media screen and (min-width: 1280px) {
  .order-img-wrapper::after {
    width: 289px;
    height: 484px;

    top: 156px;
    right: 349px;
  }
}

/* Main Section 6 (Testimonials) */

.page-testimonials {
  padding-bottom: 80px;
  @media screen and (min-width: 768px) {
    padding-top: 79px;
    padding-bottom: 100px;
  }
  @media screen and (min-width: 1280px) {
    padding-bottom: 150px;
  }
}

.page-testimonials .second-title {
  margin-bottom: 64px;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

@media screen and (min-width: 1280px) {
  .testimonials-list {
    gap: 26px;
  }
}

.testimonials-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(252, 249, 249, 0.1);
  border-radius: 4px;
  box-shadow: 0 2px 32px 4px rgba(18, 20, 23, 0.02);

  width: 100%;
}

@media screen and (min-width: 768px) {
  .testimonials-item {
    width: calc((100% - 32px) / 2);
  }
}

@media screen and (min-width: 1280px) {
  .testimonials-item {
    width: calc((100% - 26px * 2) / 3);
  }
}

.testimonials-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.testimonials-pic {
  border-radius: 50%;
  box-shadow: 0 1px 4px 0 rgba(16, 24, 40, 0.06);
  object-fit: cover;
  margin-top: -24px;
  margin-bottom: 14px;
}

.testimonials-text {
  letter-spacing: 0%;
  text-align: center;
  padding: 0 22px 18px 22px;
  /* padding: 0 18px 18px 18px; */
}

@media screen and (min-width: 768px) {
  .testimonials-text {
    font-size: 16px;
    line-height: 22px;
    padding: 0 18px 18px 18px;
  }
}

@media screen and (min-width: 1280px) {
  .testimonials-text {
    padding-bottom: 39px;
  }
}

/* Footer Styles */

.page-footer {
  border-top: 1px solid rgba(252, 249, 249, 0.1);
}

.page-footer .container {
  background-image: url(../images/yellow.png);
  background-size: 452px 401px;
  background-repeat: no-repeat;
  background-position: center calc(100% + 201px);

  padding-bottom: 280px;
}

@media screen and (min-width: 768px) {
  .page-footer .container {
    background-position: calc(100% + 278px) -14px;

    padding-bottom: 40px;
  }
}

@media screen and (min-width: 1280px) {
  .page-footer .container {
    background-size: 595px 528px;
    background-position: calc(100% + 259px) -61px;
  }
}

.page-footer .nav-links {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 0;
  gap: 25px 40px;
}

.page-footer .nav-item {
  width: calc((100% - 40px) / 2);
}

@media screen and (min-width: 768px) {
  .page-footer .nav-links {
    gap: 25px;
    margin-bottom: 80px;
    padding-bottom: 0;
  }

  .page-footer .nav-item {
    width: auto;
  }
}

.page-footer .nav-link {
  padding: 0;
}

.footer-text {
  font-size: 44px;
  line-height: 54px;
  letter-spacing: -3%;
  color: var(--white);
}

@media screen and (min-width: 768px) {
  .footer-text {
    width: 521px;
    font-size: 54px;
    line-height: 64px;
  }
}

/* Menu Mobile Styles */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;

  background-color: #2e2f4266;
  backdrop-filter: blur(3px);

  overflow-y: auto;

  transition:
    opacity 300ms ease-in-out,
    visibility 300ms ease-in-out;
}

.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;

  padding: 20px;
  padding-bottom: 0;
  width: 274px;
  height: 100%;

  background-image: url(../images/black.png);
  background-repeat: no-repeat;
  background-position: -27px calc(100% + 51px);
  background-size: 340px 302px;
  background-color: var(--yellow);
  overflow: hidden;

  transform: translateX(100%);
  transition: transform 300ms ease-in-out;
}

.menu.is-open {
  transform: translateX(0);
}

@media screen and (min-width: 768px) {
  .menu {
    width: 380px;

    background-size: 545px 484px;
    background-position: -73px calc(100% + 120px);

    padding-left: 32px;
    padding-right: 32px;
  }
}

.address-menu {
  font-size: 12px;
  line-height: 1.16667;
  letter-spacing: 0%;

  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--black);

  border: 1px solid rgba(28, 34, 37, 0.1);
  border-radius: 15px;
  padding: 12px 20px;
}

@media screen and (min-width: 768px) {
  .address-menu {
    font-size: 14px;
    line-height: 20px;

    padding: 14px 28px;
  }
}

.address-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu {
  width: 36px;
  height: 36px;

  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .close-menu {
    width: 44px;
    height: 44px;
  }
}

.close-menu-btn {
  stroke: var(--black);
}

.menu-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 20px;

  margin-top: 186px;
}

.menu-link {
  line-height: 1.28571;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: var(--black);
}

@media screen and (min-width: 768px) {
  .menu-links {
    gap: 25px;
    margin-top: 223px;
  }
}

/* Hidden */

@media screen and (max-width: 767.98px) {
  .mobile-hidden {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1279.98px) {
  .tablet-hidden {
    display: none;
  }
}

@media screen and (min-width: 1280px) {
  .desktop-hidden {
    display: none;
  }
}
