@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  --middle-blue-green: hsl(167, 45%, 72%);
  --smokey-black: hsl(0, 0%, 7%);
  --spanish-gray: hsl(0, 0%, 60%);
  --granite-gray: hsl(0, 0%, 40%);
  --tan-crayola: hsl(17, 96%, 48%);
  --light-gray: hsl(0, 0%, 80%);
  --black_10: hsla(0, 0%, 0%, 0.1);
  --black_25: hsla(0, 0%, 0%, 0.25);
  --black_50: hsla(0, 0%, 0%, 0.4);
  --black_70: hsla(0, 0%, 0%, 0.7);
  --cultured: hsl(220, 16%, 96%);
  --manatee: hsl(218, 11%, 65%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);

  --fs-1: 6rem;
  --fs-2: 3rem;
  --fs-3: 2rem;
  --fs-4: 1.8rem;
  --fs-5: 1.4rem;
  --fs-6: 1.2rem;

  --fw-700: 700;
  --fw-500: 500;

  --section-padding: 50px;

  --shadow: 0 0 2px hsla(0, 0%, 0%, 0.2);

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

  /* Шрифты для секции "about" */
  --font-about-heading-note: "Playfair Display";
  --font-about-body: "Inter", sans-serif;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

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

div {
  border: 0;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
  color: black;
}

ion-icon {
  pointer-events: none;
}

address {
  font-style: normal;
}

html {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1.7;
}

body.active {
  overflow: hidden;
}

:focus-visible {
  outline-offset: 4px;
}

::placeholder {
  color: var(--manatee);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 15px;
}

.social-wrapper {
  display: flex;
  align-items: center;
}

.social-list {
  display: flex;
  gap: 30px;
}

.social-link {
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus) {
  color: var(--tan-crayola);
}

.section {
  padding-block: var(--section-padding);
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2,
.h3 {
  color: var(--smokey-black);
  font-weight: var(--fw-500);
  line-height: 1.4;
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
}

.grid-list {
  display: grid;
  gap: 35px;
}

.has-before {
  position: relative;
  z-index: 1;
}

.has-before::before {
  content: "";
  position: absolute;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 15px;
  z-index: 10;
}

.header.active {
  position: fixed;
  transform: translateY(-100%);
  box-shadow: var(--shadow);
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 9rem;
}

.text-logo {
  font-size: 2rem;
  /* font-weight: var(--fw-700); */
}

.header-action {
  display: flex;
  gap: 15px;
}

.header-action-btn {
  position: relative;
  font-size: 24px;
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) {
  color: var(--tan-crayola);
}

.header-action-btn .btn-badge {
  background-color: var(--tan-crayola);
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  position: absolute;
  bottom: -10px;
  right: -10px;
  padding-inline: 6px;
  border-radius: 50%;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  max-width: 420px;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  padding: 40px;
  padding-block-end: 100px;
  overflow-y: auto;
  z-index: 100;
  visibility: hidden;
  transition: 0.25s var(--cubic-in);
}

.sidebar.active {
  transform: translateX(-420px);
  visibility: visible;
  transition: 0.5s var(--cubic-out);
}

.nav-close-btn {
  font-size: 30px;
}

.sidebar .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 40px 75px;
}

.sidebar-list-title,
.contact-list-title {
  color: var(--smokey-black);
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

a.contact-list-title {
  text-decoration: none;
  cursor: pointer;
}

a.contact-list-title:hover {
  color: var(--tan-crayola);
}

.sidebar-list-title {
  margin-block-end: 15px;
}

.sidebar-link {
  color: var(--spanish-gray);
  margin-block-start: 6px;
  transition: var(--transition-1);
}

.sidebar-link:is(:hover, :focus) {
  color: var(--tan-crayola);
}

.navbar {
  margin-top: 40px;
  margin-block-end: 60px;
}

.navbar-item:not(:last-child) {
  margin-block-end: 15px;
}

.navbar-link {
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus),
.sidebar :is(.address, .contact-item) {
  color: var(--granite-gray);
  cursor: pointer;
}

.sidebar .address {
  margin-block-start: 20px;
}

.sidebar .social-wrapper {
  justify-content: space-between;
  margin-block-start: 50px;
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black_70);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/*-----------------------------------*\
    #FEATURE
\*-----------------------------------*/
.feature-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.feature {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: calc(33.333% - 20px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 10px;
  word-wrap: break-word;
}
.feature-title {
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  color: var(--smokey-black);
  margin-bottom: 10px;
}

.feature-text {
  font-size: var(--fs-5);
  color: var(--granite-gray);
  word-wrap: break-word;
}

.feature-icon {
  font-size: 3rem;
  color: var(--tan-crayola);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .feature {
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .feature {
    width: calc(100% - 20px);
    padding: 15px;
  }

  .feature-title {
    font-size: 1.6rem;
  }

  .feature-text {
    font-size: 1.4rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/
.footer {
  background-color: #f0f0f0;
}

.footer-top {
  display: grid;
  gap: 30px;
  padding-block-end: 40px;
}

.footer-brand .logo {
  font-size: 2.5rem;
  font-weight: var(--fw-700);
}

.footer-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link {
  padding-block: 4px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus) {
  color: var(--tan-crayola);
}

.footer-brand .social-list {
  margin-block-start: 30px;
}

.footer-list-title {
  color: var(--smokey-black);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-block-end: 15px;
}

.footer-list .wrapper {
  display: flex;
  gap: 20px;
  margin-block-start: 20px;
}

.copyright {
  text-align: center;
  padding-block: 20px;
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--tan-crayola);
  color: var(--white);
  font-size: 24px;
  padding: 18px;
  border-radius: 50%;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
  cursor: pointer;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

@media (min-width: 575px) {
  .container {
    max-width: 575px;
    width: 100%;
    margin-inline: auto;
  }
  .grid-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
  }
  .grid-list > li:last-child {
    grid-column: span 2;
    max-width: calc(50% - 12.5px);
    width: 100%;
    margin-inline: auto;
  }
  .header .container {
    gap: 35px;
  }
  .header-action {
    gap: 25px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  .header-action {
    gap: 35px;
  }
  .hero-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .hero-list .colspan-2 {
    grid-column: span 2;
  }
  .hero-list .colspan-4 {
    grid-column: span 4;
  }
  .about .section-text {
    margin-block-end: 75px;
  }
  .product .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 80px;
  }
  .filter-btn-list {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 992px;
  }
  .grid-list > li:last-child {
    all: unset;
  }
  .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-card .card-title {
    --fs-3: 2.2rem;
  }
  .about .section-text {
    max-width: 85ch;
    margin-inline: auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr 0.4fr;
    padding-block-end: 60px;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-2: 3.6rem;
  }
  .container {
    max-width: 1200px;
  }
  .product-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

#copied-message {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ee5b21;
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    top 0.3s cubic-bezier(0.51, 0.03, 0.64, 0.28);
}

#copied-message.show {
  top: 20px;
  opacity: 1;
}

@keyframes slideInFromTop {
  0% {
    top: -100px;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  100% {
    top: 20px;
    opacity: 1;
  }
}
