@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  --main-text-color: #000;
  --revert-text-color: #fff;
  --secondary-text-color: #777;
  --logo-text-color: #0f2182;
  --buttons-bg-color: transparent;
  --links-bg-color: #dfdcdc;
  --main-bg-color: #f1f1f1;
  --secondary-bg-color: #edecec;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}

a {
  text-decoration: none;
  color: var(--main-text-color);
}

img {
  object-fit: cover;
}

body {
  background-color: var(--main-bg-color);
}

nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
}

.navbar__logo {
  font-size: 33px;
  font-weight: 600;
  color: var(--logo-text-color);
}

.navbar__links a:not(:last-child) {
  margin-right: 20px;
}

.navbar__singup {
  color: var(--revert-text-color);
  background-color: #000;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  margin-right: 14px;
}

.navbar__login {
  border: none;
  background-color: var(--buttons-bg-color);
  padding: 8px 14px;
  cursor: pointer;
}

header {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
}

.header__info {
  width: 700px;
}

.header__title {
  font-size: 80px;
}

.header__title span {
  color: var(--logo-text-color);
}

.header__text {
  color: var(--secondary-text-color);
  margin: 40px 0;
}

.header__button {
  width: 200px;
  display: flex;
  align-items: center;
  background-color: var(--main-text-color);
  border-radius: 60px;
  padding: 8px;
}

.header__button i {
  font-size: 24px;
  background-color: var(--revert-text-color);
  border-radius: 50%;
  padding: 8px;
}

.header__button span {
  color: var(--revert-text-color);
  margin-left: 10px;
}

.header__img {
  width: 600px;
}

.sell {
  padding: 0 80px;
  margin-top: 40px;
}

.sell__title {
  font-size: 40px;
}

.sell__items {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 50px 0 80px;
}

.sell__items .item {
  background-color: var(--revert-text-color);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
}

.sell__items .item:hover {
  box-shadow: none;
}

.sell__items .item__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sell__items .item__header i {
  font-size: 40px;
}

.sell__items .item__header h5 {
  font-size: 17px;
}

.sell__items .item__text {
  padding: 0 4px;
  margin-top: 10px;
}

.category {
  padding: 0 80px;
  margin-top: 30px;
}

.category__title {
  font-size: 40px;
}

.category__links {
  display: flex;
  gap: 14px;
  margin: 30px 0 20px;
}

.category__links a {
  font-size: 15px;
  border-radius: 14px;
  background-color: var(--links-bg-color);
  padding: 8px 14px;
  transition: all 0.3s ease;
}

.category__links a:hover {
  color: var(--revert-text-color);
  background-color: var(--logo-text-color);
}

.category__list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0;
}

.category__list .item {
  background-color: var(--revert-text-color);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
}

.category__list .item:hover {
  box-shadow: none;
}

.category__list .item__img {
  width: 280px;
  height: 280px;
  border-radius: 18px;
}

.category__list .item__info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--secondary-bg-color);
  padding: 12px 0;
}

.category__list .item__title {
  font-size: 18px;
}

.category__list .item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.category__list .item__meta i {
  font-size: 22px;
  color: var(--logo-text-color);
}

.category__list .item__price {
  font-size: 12px;
  color: var(--logo-text-color);
}

.category__list .item__count {
  font-size: 12px;
  color: var(--secondary-text-color);
}

.category__list .item__bid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.category__list .item__timer,
.category__list .item__link {
  font-size: 13px;
  background-color: var(--secondary-bg-color);
  border-radius: 10px;
  padding: 6px 10px;
}

.category__list .item__link {
  font-weight: bold;
  color: var(--logo-text-color);
  background-color: transparent;
  transition: all 0.3s ease;
}

.category__list .item__link:hover {
  color: var(--revert-text-color);
  background-color: var(--main-text-color);
}

.category__more {
  display: flex;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background-color: var(--links-bg-color);
  padding: 10px 20px;
  margin: 10px auto 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category__more:hover {
  color: var(--revert-text-color);
  background-color: var(--logo-text-color);
}

.sellers {
  display: flex;
  flex-direction: column;
  padding: 0 80px;
  margin: 40px 0 80px;
}

.sellers__title {
  font-size: 40px;
}

.sellers__list {
  display: flex;
  gap: 30px;
}

.seller {
  width: 25%;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background-color: var(--revert-text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 14px;
  margin: 40px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.seller:hover {
  box-shadow: none;
}

.seller__img {
  width: 64px;
}

.seller__name {
  font-size: 14px;
  margin-top: 8px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--revert-text-color);
  background-color: var(--main-text-color);
  padding: 100px 80px;
}

.footer__title {
  font-size: 48px;
}

.footer__aside {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 26px;
}

footer .links {
  display: flex;
  gap: 30px;
}

footer .links__item {
  color: var(--secondary-text-color);
  transition: all 0.3s ease;
}

footer .links__item:hover {
  color: var(--revert-text-color);
  transition: all 0.3s ease;
}

footer .social {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .social i {
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer .social i:hover {
  color: var(--logo-text-color);
}

footer .copyright {
  font-size: 13px;
  color: var(--secondary-text-color);
}

@media screen and (max-width: 1400px) {
  nav,
  header,
  .sell,
  .category,
  .sellers {
    padding: 0 40px;
  }

  .header__title {
    font-size: 60px;
  }

  .header__img {
    width: 540px;
  }

  .category .item__img {
    width: 220px;
    height: 220px;
  }

  footer {
    padding: 100px 40px;
  }

  .footer__title {
    font-size: 38px;
  }
}

@media screen and (max-width: 1200px) {
  .header__title {
    font-size: 48px;
  }

  .header__img {
    width: 480px;
  }

  .sell__title,
  .category__title,
  .sellers__title {
    font-size: 34px;
  }

  .sell__items .item__header h5 {
    font-size: 15px;
  }

  .sell__items .item__text {
    font-size: 13px;
  }

  .category__list {
    flex-wrap: wrap;
    row-gap: 30px;
  }

  .category__list .item {
    width: 48%;
  }

  .category__list .item__img {
    width: 100%;
    height: auto;
  }

  .sellers__list {
    flex-wrap: wrap;
  }

  .sellers__list .seller {
    width: 48%;
  }

  footer .links__item {
    font-size: 15px;
  }
}

@media screen and (max-width: 992px) {
  .navbar__logo {
    font-size: 28px;
  }

  .navbar__links a {
    font-size: 14px;
  }

  header {
    height: auto;
    flex-direction: column-reverse;
    margin-bottom: 60px;
    text-align: center;
  }

  .header__info,
  .header__img {
    width: 100%;
  }

  .header__button {
    display: flex;
    margin: 0 auto;
  }

  .sell__items {
    flex-wrap: wrap;
    gap: 20px;
  }

  .sell__items .item {
    width: 48%;
  }

  .sellers__list {
    gap: 20px;
  }

  footer {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
  }

  .footer__title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .footer__aside {
    width: 100%;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  nav,
  header,
  .sell,
  .category,
  .sellers {
    padding: 0 20px;
  }

  .navbar__logo {
    display: none;
  }

  .navbar__links a {
    font-size: 12px;
  }

  .navbar__singup,
  .navbar__login {
    font-size: 12px;
    padding: 6px 10px;
  }

  .header__title {
    font-size: 36px;
  }

  .header__text {
    font-size: 14px;
  }

  .header__button {
    width: 160px;
    font-size: 14px;
    padding: 6px;
  }

  .header__button i {
    padding: 6px;
  }

  .sell__title,
  .category__title,
  .sellers__title {
    font-size: 30px;
  }

  footer {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 768px) {
  .header__title {
    font-size: 30px;
  }

  .sell__items .item {
    width: 100%;
  }

  .category__list .item,
  .sellers__list .seller {
    width: 47%;
  }
  
  .category__links a {
    font-size: 13px;
  }
}
