@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap");

:root {
  --color-gin: #e1ede6;
  --color-shark: #2c2d35;
  --color-leaves: #598d66;
  --color-mantle: #86928b;
  --color-surf: #d4e8d9;
  --color-killarney: #376b44;
  --color-sand: #eedb6d;
  --color-corn: #faeb97;
  --color-white: #ffffff;
  --gap: 30px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  color: var(--color-shark);
  background-color: var(--color-white);
}

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

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

button {
  border: 0;
  padding: 0;
  font: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

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

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header {
  background-color: var(--color-gin);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: var(--gap);
}

.header__left img,
.link {
  width: 143px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.header__nav a {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  transition: color 0.25s ease;
}

.header__nav a:hover,
.header__nav a:focus-visible,
.card__koshik:hover,
.card__koshik:focus-visible {
  color: var(--color-killarney);
}

.card__koshik {
  flex: 0 0 auto;
  color: var(--color-shark);
  cursor: pointer;
  transition: color 0.25s ease;
}

.cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  right: -10px;
  top: -12px;
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--color-white);
  background-color: var(--color-leaves);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-count.is-visible {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.hero {
  padding: 0 0 35px;
}

.hero__image {
  grid-column: span 6;
  align-self: end;
}

.hero__image img {
  width: 100%;
}

.hero_content {
  grid-column: span 6;
  align-self: center;
  padding: 30px 0;
}

.heto__title {
  max-width: 540px;
  margin-bottom: 20px;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
}

.heto__title span {
  color: var(--color-leaves);
}

.hero__text {
  max-width: 540px;
  margin-bottom: 60px;
  color: var(--color-mantle);
  font-size: 18px;
  line-height: 1.5;
}

.hero__btn,
.newbies__link,
.btn-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  border: 1px solid currentColor;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.hero__btn {
  min-width: 225px;
  padding: 18px 36px;
  color: var(--color-leaves);
}

.hero__btn:hover,
.hero__btn:focus-visible,
.btn-card button:hover,
.btn-card button:focus-visible {
  border-color: var(--color-leaves);
  color: var(--color-white);
  background-color: var(--color-leaves);
}

section.catalog {
  padding: 35px 0 0;
}

.title__cotalog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cotalog_title,
.title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
}

.cotalog__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.cotalog_links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 20px;
  border-radius: 22px;
  color: var(--color-shark);
  background-color: var(--color-surf);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.cotalog_links:hover,
.cotalog_links:focus-visible,
.cotalog_links.is-active {
  color: var(--color-white);
  background-color: var(--color-leaves);
}

.card-catalog {
  padding: 30px 0 70px;
}

.grid__card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.card-art {
  display: flex;
  flex-direction: column;
  min-height: 730px;
  padding: 20px;
  background-color: var(--color-gin);
}

.element {
  width: 100%;
  aspect-ratio: 31 / 42;
  object-fit: cover;
  margin-bottom: 20px;
}

.text-card {
  margin-bottom: 10px;
  color: var(--color-mantle);
  font-size: 18px;
  line-height: 1.2;
}

.title-card {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.description-card {
  margin-bottom: 30px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.price-card {
  margin-top: auto;
  margin-bottom: 20px;
  color: var(--color-leaves);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-card button {
  width: 100%;
  padding: 18px 24px;
  color: var(--color-leaves);
  background-color: transparent;
}

.btn-card button.is-added {
  color: var(--color-white);
  background-color: var(--color-leaves);
}

.card-art.is-hidden {
  display: none;
}

.newbies {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(15, 30, 22, 0.88), rgba(15, 30, 22, 0.5)),
    url("https://live.verstaem.online/house/img/newbies-bg.jpg") center / cover no-repeat;
}

.newbies__title {
  position: relative;
  z-index: 1;
  max-width: 550px;
  min-height: 80px;
  margin-bottom: 20px;
  padding-left: 100px;
  display: flex;
  align-items: center;
  background: url("https://live.verstaem.online/house/img/star.svg") left center / 80px 80px no-repeat;
}

.newbies__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 1.5;
}

.newbies__desrc:not(:last-child) {
  margin-bottom: 20px;
}

.newbies__link {
  position: relative;
  z-index: 1;
  min-width: 257px;
  padding: 18px 36px;
  border-color: var(--color-sand);
  color: var(--color-shark);
  background-color: var(--color-sand);
}

.newbies__link:hover,
.newbies__link:focus-visible {
  border-color: var(--color-corn);
  background-color: var(--color-corn);
}

.about {
  padding: 70px 0;
}

.about__img {
  grid-column: span 5;
  align-self: end;
}

.about__img img {
  width: 100%;
}

.about-content {
  grid-column: span 7;
  align-self: end;
  padding-bottom: 44px;
}

.about_title {
  margin-bottom: 20px;
}

.about__desrc {
  max-width: 635px;
  color: var(--color-shark);
  font-size: 18px;
  line-height: 1.5;
}

.about__team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  margin-top: 20px;
}

.about__item {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.about__item:hover {
  transform: scale(1.08);
}

.footer {
  padding: 23px 0;
  background-color: var(--color-gin);
}

.content__footer {
  display: flex;
  gap: 70px;
}

.left-footer {
  flex: 0 0 170px;
}

.link {
  margin-bottom: 35px;
}

.number {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.number:hover,
.number:focus-visible {
  color: var(--color-leaves);
}

.masterskaya {
  color: var(--color-mantle);
  font-size: 18px;
  line-height: 1.2;
}

.right-footer {
  flex: 1 1 auto;
  min-width: 0;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 30px 50px;
}

.footer-menu__title {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}

.footer-menu__item {
  color: var(--color-mantle);
  font-size: 18px;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.25s ease;
}

.footer-menu__item:hover,
.footer-menu__item:focus-visible {
  color: var(--color-leaves);
}

.footer-props {
  justify-self: end;
}

.social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.social_item img {
  width: 24px;
  height: 24px;
}

.footer-copyright {
  margin-top: 10px;
  color: var(--color-mantle);
  font-size: 12px;
  line-height: 1.2;
}

.footer-copyright span {
  display: block;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .container {
    max-width: 720px;
    padding: 0 24px;
  }

  .header__container {
    min-height: 100px;
  }

  .heto__title {
    font-size: 40px;
  }

  .hero__text {
    margin-bottom: 40px;
  }

  .grid__card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-art {
    min-height: 730px;
  }

  .about {
    padding: 70px 0;
  }

  .about__img,
  .about-content {
    grid-column: 1 / -1;
  }

  .about__img {
    max-width: 510px;
  }

  .about-content {
    padding-bottom: 0;
  }

  .content__footer {
    display: block;
  }

  .left-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  .link {
    margin-bottom: 0;
  }

  .footer-menu {
    grid-template-columns: repeat(4, minmax(0, auto));
  }
}

@media (max-width: 767px) {
  :root {
    --gap: 20px;
  }

  .container {
    max-width: 560px;
    padding: 0 33px;
  }

  .header__container {
    flex-direction: column;
    justify-content: center;
    min-height: 123px;
    gap: 16px;
  }

  .header__left {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #c3d1c6;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .header__nav a {
    font-size: 18px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero__image {
    grid-column: span 5;
  }

  .hero_content {
    grid-column: span 7;
    padding: 0;
  }

  .heto__title {
    font-size: 36px;
  }

  .hero__text {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .hero__btn,
  .newbies__link,
  .btn-card button {
    min-height: 50px;
    font-size: 18px;
  }

  .hero__btn {
    min-width: 178px;
    padding: 14px 28px;
  }

  .title__cotalog {
    display: block;
  }

  .cotalog_title,
  .title {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .cotalog__links {
    gap: 15px;
  }

  .cotalog_links {
    min-height: 41px;
    font-size: 18px;
  }

  .card-catalog {
    padding-bottom: 50px;
  }

  .card-art {
    min-height: 514px;
  }

  .element {
    aspect-ratio: 24 / 25;
  }

  .title-card {
    font-size: 24px;
  }

  .text-card,
  .description-card {
    font-size: 16px;
  }

  .price-card {
    font-size: 20px;
  }

  .newbies {
    padding: 50px 0;
  }

  .newbies__title {
    min-height: 60px;
    padding-left: 80px;
    background-size: 60px 60px;
  }

  .newbies__content {
    margin-bottom: 30px;
    font-size: 16px;
  }

  .about {
    padding: 50px 0;
  }

  .about__desrc {
    font-size: 16px;
  }

  .footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-props {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 16px;
    border-top: 1px solid #c3d1c6;
  }

  .social {
    justify-content: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }

  .header__container {
    min-height: 130px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header__nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding: 60px 0;
  }

  .hero__image {
    display: none;
  }

  .hero_content {
    grid-column: 1 / -1;
  }

  .heto__title {
    font-size: 30px;
  }

  .hero__text {
    margin-bottom: 40px;
    font-size: 14px;
  }

  section.catalog {
    padding-top: 0;
  }

  .cotalog__links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .cotalog_links {
    flex: 0 0 auto;
    font-size: 18px;
  }

  .grid__card {
    grid-template-columns: 1fr;
  }

  .card-art {
    min-height: auto;
  }

  .element {
    aspect-ratio: 29 / 25;
  }

  .newbies {
    padding: 50px 0;
  }

  .newbies__title {
    min-height: 50px;
    padding-left: 60px;
    font-size: 24px;
    background-size: 50px 50px;
  }

  .newbies__link {
    width: 100%;
  }

  .about__team {
    gap: 20px;
  }

  .content__footer {
    text-align: center;
  }

  .left-footer {
    display: block;
  }

  .link {
    margin: 0 auto 20px;
  }

  .footer-menu {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
