:root {
  /* COLOR VARIABLES */
  --text-dark-color: rgb(65, 63, 61);
  --text-light-color: rgb(225, 212, 201);
  --text-accent-color: rgb(176, 144, 122);

  --bg-body-color: rgb(225, 212, 201);
  --bg-container-color: rgb(102, 95, 85);
  --bg-backdrop-color: rgb(103, 101, 100);

  --border-light-color: rgb(193, 182, 173);
  --border-dark-color: rgb(102, 95, 85);
}

/* DINAMIC CLASSES */

.capitalize {
  text-transform: capitalize;
}

.show {
  display: block;
}

.hide {
  display: none;
}

/* FORMAT CLASSES */

.margin-100 {
  margin: 100px 0;
}

.margin-15 {
  margin: 15px 0;
}

.margin-20 {
  margin: 20px 0;
}

.margin-30 {
  margin: 30px 0;
}

.margin-40 {
  margin: 40px 0;
}

.gap-8 {
  gap: 8px;
}

.gap-10 {
  gap: 10px;
}

.gap-12 {
  gap: 12px;
}

.gap-20 {
  gap: 20px;
}

.gap-40 {
  gap: 40px;
}

.gap-100 {
  gap: 100px;
}

.center {
  text-align: center;
  justify-content: center;
}

.left {
  text-align: left;
}

.accent-txt {
  font-style: italic;
  color: var(--text-accent-color);
}

.medium-txt {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.caption-txt {
  font-size: 10px;
  font-weight: 600;
  /* line-height: 140%; */
  line-height: 14px;
}

.light-color {
  color: var(--text-light-color);
}

.dark-color {
  color: var(--text-dark-color);
}

.bg-fill-light {
  background: var(--bg-body-color);
}

.bg-fill-dark {
  background: var(--bg-container-color);
}

.button-primary {
  padding: 1.25rem 5rem;
  border-radius: 100px;
}

.button-secondary {
  cursor: pointer;
  color: var(--border-dark-color);
  border: 1px solid var(--border-dark-color);
  border-radius: 100px;
}

.flex {
  display: flex;
}

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

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

/* GENERAL STYLES */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100vh;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-body-color);
  color: var(--text-dark-color);
  margin: 0 auto;
  max-width: 90rem;
}

h1.invisible {
  position: absolute;
  width: 0;
  height: 0;
  visibility: hidden;
}

h2 {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 105%;
}

h3 {
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 125%;
}

h3.center {
  max-width: 800px;
  margin: 0 auto;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 125%;
}

li {
  display: inline-block;
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  border: none;
  background: transparent;
}

a,
button {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
  color: inherit;
  cursor: pointer;
}

.container {
  padding: 1.25rem 2.5rem;
}

.logo {
  object-fit: cover;
  object-position: 0 5px;
}

.nav-bar {
  position: relative;
  background: var(--bg-body-color);
  height: 55px;
  margin-bottom: 25px;
}

.nav-bar-menu,
.menu-items {
  flex-basis: 74.25rem;
}

.menu-item {
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
}

.burger-menu-link {
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
}

.burger-menu-button {
  cursor: pointer;
  display: none;
}

.footer {
  padding: 6.25rem;
  padding-bottom: 3.75rem;
  border-radius: 40px;
}

.contacts-heading {
  width: 530px;
}

.social-button {
  border: 1px solid var(--border-light-color);
  border-radius: 100px;
  height: 3.75rem;
  width: 3.75rem;
}

.social-button img {
  object-fit: contain;
  width: 1.5rem;
  height: 1.5rem;
}

.contacts-desc li {
  align-items: baseline;
}

/* HOME */

.head-banner {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  max-height: 745px;
}

.head-banner .banner-img {
  position: absolute;
  z-index: -1;
  min-width: 100%;
}

.head-banner .banner-desc {
  max-width: 530px;
  margin: 100px;
}

.banner-desc p {
  overflow: hidden;
}

.banner-button {
  position: relative;
}

.icon {
  width: 20px;
  height: 20px;
}

.banner-button .icon {
  position: absolute;
  opacity: 0;
}

.slider {
  justify-content: space-between;
  min-height: 684px;
}

.slider-content {
  display: flex;
  flex-direction: row;

  max-width: 480px;
  overflow: hidden;
}

.slide {
  transform: translateX(0);
  transition: transform 1s ease-out;
}

.slide.slide-next {
  transform: translateX(100%);
  transition: transform 1s ease-out;
}

.slide.slide-back {
  transform: translateX(-100%);
  transition: transform 1s ease-out;
}

.slider-control {
  position: relative;
  overflow: hidden;
  width: 2.5rem;
  height: 3px;
  background: var(--border-light-color);
  border-radius: 100px;
}

.slider-control.active span {
  position: absolute;
  left: 0;
  width: 1px;
  height: 100%;
  transform-origin: left;
  transform: scaleX(50);
  background: var(--border-dark-color);
  transition: transform 2s ease;
}

.slider-img {
  height: 483px;
}

.slider-button {
  height: 3.75rem;
  width: 3.75rem;
  flex-shrink: 0;
}

.arrow-left {
  transform: rotate(180deg);
}

.grid-container {
  flex-flow: row wrap;
  justify-content: center;
}
.grid-container .grid-item {
  border-radius: 20px;
  max-width: 41.25rem;
}
.grid-container .grid-item:nth-child(3n + 1) {
  max-height: 590px;
}
.grid-container .grid-item:not(:nth-child(3n + 1)) {
  max-height: 430px;
}

.grid-item {
  overflow: hidden;
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.mobile-presentation {
  justify-content: center;
}

.mobile-img {
  width: 630px;
}

.mobile-img img {
  max-width: 100%;
  max-height: 100%;
}

.store-button-container {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.store-button {
  padding: 12px 20px;
  height: 64px;
  width: 200px;
}

.button-desc span {
  display: block;
}

/* MENU */

.tab-item {
  padding: 7px;
  padding-right: 18px;
  font-weight: 600;
  border: 1px solid var(--border-light-color);
  border-radius: 100px;
  cursor: pointer;
}

.tab-item.active {
  color: var(--border-light-color);
  background: var(--border-dark-color);
  transition: background 0.5s ease-in-out;
}

.tab-item .tab-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: scale-down;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: var(--border-light-color);
}

.grid-menu-item {
  position: relative;
  height: 506px;
  width: 310px;
  border-radius: 40px;
  border: 1px solid var(--border-light-color);
  cursor: pointer;
}

.grid-menu-container {
  flex-wrap: wrap;
}

.grid-menu-container .grid-item {
  border-radius: 40px;
  height: 310px;
}

.grid-menu-item img {
  height: 100%;
}

.grid-item-desc {
  flex-direction: column;
  padding: 0 20px;
}

.grid-item-desc h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-menu-item .cut {
  height: 72px;
  overflow: hidden;
}

.bttn-refresh {
  margin: 40px auto;
}

/* Modal */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-body-color);
  width: 800px;
  padding: 16px;
  border-radius: 40px;
  z-index: 1000;
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-backdrop-color);
  opacity: 0.8;
  z-index: 999;
  display: none;
}

.modal-img {
  max-width: 310px;
  max-height: 310px;
  border-radius: 40px;
  color: var(--text-dark-color);
}
.tab-item.active span.tab-img {
  color: var(--text-dark-color);
}

.modal .close-button {
  padding: 10px;
  width: 100%;
}

.modal .total {
  justify-content: space-between;
}

.modal .info {
  padding: 16px 0;
  border-top: 1px solid var(--border-light-color);
}

/* MEDIA QUERIES */

@media (hover: hover) {
  .button-secondary:hover {
    color: var(--border-light-color);
    background: var(--border-dark-color);
    transition: background 0.5s ease-in-out;
  }

  .banner-button:hover .icon {
    position: absolute;
    right: 50px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }

  .contacts-desc li > a:hover {
    box-shadow: 0px 2px 0px 0px var(--text-light-color);
  }

  .social-button:hover {
    background: var(--bg-body-color);
    transition: background 0.5s ease-in-out;
  }

  .social-button:hover img {
    filter: invert(26%) sepia(7%) saturate(10%) hue-rotate(359deg)
      brightness(90%) contrast(92%);
  }

  .nav-bar-menu a:hover,
  .burger-menu-link a:hover {
    box-shadow: 0px 2px 0px 0px var(--text-dark-color);
    transition: box-shadow 0.5s ease-in-out;
  }

  .grid-item img:hover {
    object-fit: cover;
    transform: none;
    transition: ease-in-out 0.5s;
  }

  .store-button:hover {
    color: var(--border-light-color);
    background: var(--border-dark-color);
  }

  .store-button:hover img {
    filter: invert(94%) sepia(9%) saturate(435%) hue-rotate(332deg)
      brightness(90%) contrast(96%);
  }
}

@media (hover: none) {
  .button-secondary.click {
    color: var(--border-light-color);
    background: var(--border-dark-color);
    transition: background 0.5s ease-in-out;
  }

  .button-secondary.click img {
    filter: invert(94%) sepia(9%) saturate(435%) hue-rotate(332deg)
      brightness(90%) contrast(96%);
  }

  .social-button.click {
    background: var(--bg-body-color);
    transition: background 0.5s ease;
  }

  .social-button.click img {
    filter: invert(26%) sepia(7%) saturate(10%) hue-rotate(359deg)
      brightness(90%) contrast(92%);
  }
}

@media screen and (min-width: 1440px) {
  h4 {
    font-size: 1.5rem;
  }

  .container {
    max-width: 1440px;
  }

  .slider {
    min-height: 640px;
  }

  .slider-content {
    flex-basis: 480px;
  }

  .grid-container {
    flex-flow: column wrap;
    height: 1060px;
  }
  .mobile-presentation {
    justify-content: space-between;
  }

  .mobile-desc {
    max-width: 630px;
    padding-top: 5px;
  }

  .menu.burger-menu-link {
    box-shadow: 0px 2px 0px 0px var(--text-dark-color);
  }
}

@media screen and (max-width: 1439px) {
  .container {
    max-width: 1439px;
    padding: 20px 40px;
  }

  .head-banner .banner-desc {
    max-width: 530px;
    margin: 100px 60px;
  }
  .menu.burger-menu-link {
    box-shadow: 0px 2px 0px 0px var(--text-dark-color);
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 768px;
    padding: 20px 40px;
    overflow-x: hidden;
  }

  .burger-menu-button {
    display: block;
  }

  .nav-bar {
    justify-content: space-between;
  }

  .nav-bar-menu {
    background: var(--bg-body-color);
    position: absolute;
    top: 80px;
    padding: 60px 0;
    justify-content: flex-start;
    flex-direction: column;
    min-width: 100%;
    z-index: 3;
    gap: 100px;
  }

  .menu-container {
    max-width: 100%;
    transform: translateX(100%);
    transition: transform 0.7s ease-out;
  }

  .menu-container.show {
    display: flex;
    transform: translateX(0);
  }

  .nav-bar-menu .menu-items {
    gap: 60px;
    flex-basis: content;
    flex-direction: column;
  }

  .menu-items .menu-item a,
  .burger-menu-link a {
    font-size: 2rem;
    line-height: 40px;
  }

  .burger-menu-link .icon {
    width: 40px;
    height: 40px;
  }

  .burger-menu-link {
    flex-basis: 20vh;
  }

  .head-banner .banner-img {
    object-position: -285px;
  }

  .banner-button {
    max-width: 200px;
  }

  .banner-button .icon {
    display: block;
  }

  .slider-content {
    max-width: 480px;
    overflow: hidden;
  }

  .grid-container {
    max-height: 1220px;
    overflow: hidden;
  }

  .grid-container .grid-item {
    border-radius: 20px;
    min-height: 590px;
    min-width: 100%;
  }

  .grid-menu-container {
    padding: 0 10px;
    overflow: hidden;
  }

  .bttn-refresh {
    display: flex;
    margin: 40px auto;
  }

  .bttn-refresh.hide {
    display: none;
  }

  .mobile-img {
    margin: 0 auto;
  }

  .mobile-img img {
    max-width: 100%;
    max-height: 100%;
  }

  .mobile-presentation {
    justify-content: left;
  }

  .mobile-desc {
    margin: 0 auto;
    width: 100%;
  }

  .mobile-desc h3 {
    margin: 0;
  }

  .footer {
    padding: 100px 60px;
    gap: 25px;
  }

  .contacts-desc ul,
  .contacts-desc ul li:last-child {
    margin-bottom: 0;
  }

  .modal {
    max-width: 688px;
  }
}

@media screen and (min-width: 381px) and (max-width: 767px) {
  h2 {
    font-size: calc(42px + (42 - 24) * ((100vw - 381px) / (767 - 381)));
  }

  h3 {
    font-size: calc(32px + (32 - 24) * ((100vw - 381px) / (767 - 381)));
  }

  .container {
    padding: 20px calc(16px + (40 - 16) * ((100vw - 381px) / (767 - 381)));
  }

  .head-banner .banner-desc {
    margin: 60px calc(20px + (40 - 16) * ((100vw - 381px) / (767 - 381)));
  }

  .slider {
    justify-content: center;
  }
  .slider .slider-button {
    display: none;
  }

  .banner-button.button-primary {
    padding: 1em 4em;
  }
  .banner-button:hover .icon {
    position: absolute;
    right: 2.5rem;
    display: block;
  }
}

@media screen and (max-width: 380px) {
  h2 {
    font-size: 2.625rem;
    font-weight: 600;
    line-height: 3rem;
  }

  h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.5rem;
  }

  h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.875rem;
  }
  .container {
    max-width: 380px;
    width: 380px;
    padding: 20px 16px;
  }

  .head-banner .banner-desc {
    margin: 60px 16px;
  }

  .banner-button.button-primary {
    padding: 1.25rem 5rem;
  }

  .tab-item {
    padding: 8px;
    padding-right: 16px;
  }

  .tab-container {
    gap: 8px;
  }

  .slider {
    justify-content: center;
  }
  .slider-img {
    height: 348px;
  }
  .slider .slider-button {
    display: none;
  }

  .grid-menu-container {
    padding: 0 10px;
    overflow: hidden;
  }

  .grid-container .grid-item {
    flex-direction: column;
    min-height: 590px;
  }

  .mobile-desc {
    margin: 0 auto;
    width: 348px;
  }

  .mobile-img {
    width: 348px;
  }

  .mobile-img img {
    max-width: 100%;
    max-height: 100%;
  }

  .mobile-presentation {
    gap: 40px;
    margin: 0;
  }

  .mobile-desc {
    padding-top: 0;
    margin: 0;
  }

  .mobile-desc h3 {
    margin: 0;
  }

  .footer {
    padding: 60px 16px;
    gap: 0;
  }

  .contacts-desc h4 {
    margin: 0;
  }

  .contacts-desc ul {
    margin-top: 35px;
  }

  .contacts-desc ul,
  .contacts-desc ul li:last-child {
    margin-bottom: 0;
  }

  .modal {
    max-width: 342px;
  }
  .modal-img {
    display: none;
  }
}
