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

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Raleway", sans-serif;
    }

    :root {
      --page-bg: antiquewhite;
      --container-bg: #ffffff;

      --page-bg-enabled: 1;
      --container-bg-enabled: 1;

      --page-bg-image: none;
      --container-bg-image: none;

      --container-text-color: #111;
    }

    /* body {
      background: antiquewhite;
    } */

    body {
      background:
        var(--page-bg-image),
        var(--page-bg);

      background-size: cover;
      background-position: center;

      /* выключение */
      background-color: transparent;
    }

    body[data-theme="default"] {
      --page-bg: antiquewhite;
      --container-bg: #ffffff;
    }

    body[data-theme="no-page-bg"] {
      --page-bg: transparent;
    }

    body[data-theme="no-page-bg"] {
      --page-bg: transparent;
    }

    body[data-theme="no-container-bg"] {
      --container-bg: transparent;
    }

    body[data-theme="page-image"] {
      --page-bg-image: url('/images/bg.jpg');
      --page-bg: transparent;
    }

    body[data-theme="container-image"] {
      --container-bg-image: url('/images/bg2.jpg');
      --container-bg: transparent;
    }

    .container {
      width: 95%;
      margin: 2vw auto;
      /* background: #fff; */
      background:
        var(--container-bg-image),
        var(--container-bg);
      color: var(--container-text-color);
      /* padding: 1vh 2vw 5vh 2vw; */
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      /* gap: 24px; */
    }

    .logo__header {
      font-weight: bold;
      font-size: 40px;
      margin: 20px;
      text-decoration: none;
    }

  .underline__decor--one {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;

    transition-timing-function: ease-in;
    transition-duration: 0.5s;

    background-image: linear-gradient(#000);
    background-size: 0% 2px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
  transition: background .4s linear;
}

.underline__decor--one:hover {
  background-size: 100% 2px;
}

.logo__header {
  font-weight: bold;
  font-size: 50px;
  left:0;
  margin: 3vh 2vw;
  align-self: center;
  text-decoration: none;
}

.categoriesStyle {
  font-size: 16px;
  background: none;
  padding-right: 1vw;
}

/* .logo__header:hover {
  background-size: 100% 2px;
} */

.header__btns {
  display: inline-flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  /* gap: 1rem; */
}

.contact__us--modal {
  margin: 3vh 2vw;
  padding-bottom: .5vh;
  align-self: center;
}
.contact__us--modal:hover {
    /* background-size: 100% 2px; */
  color: #a30000;
}

.about__header--modal {
  margin: 3vh 2vw;
  padding-bottom: .5vh;
  align-self: center;
}
.about__header--modal:hover {
    background-size: 100% 2px;
    color: #a30000;

}

.categories-dropdown {
  position: relative;
  margin: 3vh 0;
  font-size: 16px;
}

.categories-dropdown .contact__us--modal {
  margin: 0;
  border: none;
}

.categories-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #000;
  border: none;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

.categories-dropdown__menu li {
  margin: 0;
  border: none;
}


.categories-dropdown__item {
  display: block;
  padding: 0.35rem 0.75rem;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.categories-dropdown__item:hover,
.categories-dropdown__item.active {
  background: #000;
  color: #fff;
}

    .cards-content {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8vw;
      padding: 5vh 5vw;
      justify-items: center;
      justify-content: center;
      margin: 0 auto;
      width: 100%;
    }

    .card {
      position: relative;
      display: inline-block;
      width: auto;
      max-width: 360px;
      cursor: pointer;
      justify-self: center;
    }

    .card.card--hidden {
      display: none !important;
    }

    .card img {
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      border: 2px solid #000;
      position: relative;
      z-index: 2;
    }

    .card__hover-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      transform: translate(var(--card-hover-offset-x, 1vw), var(--card-hover-offset-y, 1vw));
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 1.2rem;
      text-transform: uppercase;
      font-weight: 1000;
      color: #fff;
      transition: transform .3s, opacity .3s;
      padding: 2vh 2vw;
      border: 1px solid black;

      background:
        var(--card-bg-image),
        var(--card-bg-color);

      background-size: cover;
      background-position: center;
    }

    .card:hover .card__hover-bg {
      transform: translate(0,0);
      opacity: 0.95;
      z-index: 3;
    }

    .card__categories {
      position: absolute;
      top: 10px;
      left: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      z-index: 4;
      pointer-events: none;
    }

    .card__categories li {
      background: rgba(0,0,0,0.75);
      color: #fff;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.65rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    /* ====== MODAL ====== */
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }

    .modal__content {
      display: flex;
      width: 90%;
      height: 80%;
      background: var(--container-bg);
      color: var(--container-text-color);
      border-radius: 10px;
      overflow: hidden;
      position: relative;
    }

    .modal__left {
      width: 68%;
      background: #000;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .modal__left img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .modal__arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 50px;
      color: white;
      cursor: pointer;
      user-select: none;
      z-index: 1200;
      transition: opacity .3s;
    }

    .modal__arrow:hover {
      opacity: 0.7;
    }

    .modal__arrow--left {
      left: 20px;
    }

    .modal__arrow--right {
      right: 20px;
    }

    .modal__right {
      width: 32%;
      padding: 20px;
      overflow-y: auto;
      color: var(--container-text-color);

    }

    .modal__right h2 {
      margin-bottom: 10px;
    }

    .modal__right p {
      margin: 5px 0;
    }

    .close {
      position: absolute;
      top: 15px;
      right: 25px;
      font-size: 30px;
      color: var(--container-text-color);
      cursor: pointer;
      z-index: 1100;

    }

    .modal__arrow:hover,
.close:hover {
    opacity: 0.7;
}

    @media (min-width: 768px) {
      .cards-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    
      }
    }

    @media (min-width: 1024px) {
      .cards-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (min-width: 1440px) {
      .cards-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 768px) {
      .modal__content { flex-direction: column; }
      .modal__left, .modal__right { width: 100%; height: 50%; }
      .card { max-width: 90vw; }
      .modal__arrow { font-size: 35px; }
    }



                                            /* MODAL ABOUT ME */
                                      /* MODAL ABOUT ME */
                              /* MODAL ABOUT ME */
                                      /* MODAL ABOUT ME */
                                            /* MODAL ABOUT ME */

        *, *::before, *::after {
         box-sizing: border-box;   
        }
        :root {
            font-size: 16px;
            --card-hover-offset-x: 1vw;
            --card-hover-offset-y: 1vw;
        }

        .modal__container {
            display: flex;
            flex-direction: row;
            width: 95vw;
            height: 93vh;
            position: relative;
            margin: 3vh auto;
            background-color: #fff;
            border: 1px solid black;
        }
        .modal__about--img {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50%;
            overflow: hidden;
        }

        .modal__about--img > img {
            max-width: 55%;
            transform: rotate(-5deg);
            
            /* чтобы картинка не сжималась, */
            object-fit: contain; 
        }

        .modal__about--text {
            width: 50%;
            padding: 2vh 5vw;
            overflow: auto;
            text-align: justify;
        }
        .modal__about--title {
            text-align: center;
            font-size: 2.5rem;
            padding: 2vh 0;
        }
        .modal__about--descr {
            font-size: 18px;
            line-height: 1.5;
        }


        .close__about {
            cursor: pointer;
            position: absolute;
            right: 32px;
            top: 32px;
            width: 32px;
            height: 32px;
            background: none;
            opacity: 0.3;
            border: none;
        }
        .close__about:hover {
            opacity: 1;
        }
        .close__about:active {
            opacity: .6;
        }
        .close__about::before, .close__about::after {
            position: absolute;
            content: ' ';
            top: 0px;
            height: 32px;
            width: 2px;
            background-color: #333;
        }
        .close__about::before {
            transform: rotate(45deg);
        }
        .close__about::after {
            transform: rotate(-45deg);
        }

        @media (max-width: 768px) {
            .modal__container {
                flex-direction: column;
                height: auto;
            }
            .modal__about--img, .modal__about--text {
                width: 100%;
            }
            .modal__about--img > img {
                padding: 5vh 0;
                max-width: 70%;
            }
            .close__about {
                position: fixed;
                top: 6vh;
                right: 4vw;
            }
        }
        .hidden {
          display: none;
        }

/* ====== DISCOUNT MODAL ====== */

.discount-modal {
    display: none;
}

.discount-modal.is-open {
    display: block;
}

.discount-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.discount-modal__content {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    background: var(--container-bg);
    color: var(--container-text-color);
    transform: translate(-50%, -50%);
    border-radius: 0;
}

.discount-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.45;
    font-size: 28px;
    cursor: pointer;
}

.discount-modal__close:hover {
    opacity: 1;
}

.discount-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.discount-modal__form input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.discount-modal__form button {
    height: 32px;
    border: 1px solid #000;
    border-radius: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.discount-modal__form button:hover {
  background: transparent;
  color: var(--container-text-color);
}
.open-discount-modal {
    height: 32px;
    padding: 0 14px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.open-discount-modal {
    margin-right: 2vw;
    border: 1px solid #fff;

}

.open-discount-modal:hover {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

.form-success {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #e6f7e6;
    color: #1f7a1f;
}

.discount-modal__success {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #e6f7e6;
    color: #1f7a1f;
    font-size: 14px;
}

.discount-modal__success input {
    display: none;
}

.discount-modal__errors {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #ffe6e6;
    color: #a30000;
    font-size: 14px;
}



/* ===== ALERTS ===== */

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #000;
    font-size: 14px;
}

.alert-success {
    background: #e6f7e6;
    color: #1f7a1f;
}

.alert-error {
    background: #ffe6e6;
    color: #a30000;
}

.burger-menu-btn {
  display: none;
  margin: 3vh 2vw;
  padding: 8px 12px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 500;
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

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

  .header__btns {
    display: none;
    position: absolute;
    top: 100%;
    right: 2vw;
    z-index: 400;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
  }

  .header__btns.is-open {
    display: flex;
  }

    .header__btns .categories-dropdown {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .header__btns .categories-dropdown .contact__us--modal {
    width: 100%;
    margin: 0;
    padding: 12px 0;
    text-align: center;
  }

  .header__btns .about__header--modal,
  .header__btns .open-discount-modal {
    width: 100%;
    margin: 0;
    padding: 12px 0;
    text-align: center;
    border: none;
  }
}

/* ===== PUBLIC TOASTS ===== */

.public-toast {
    position: fixed;
    top: 64px;
    right: 54px;
    z-index: 3000;
    max-width: 360px;
    padding: 14px 18px;
    border: 1px solid currentColor;
    background: var(--container-bg);
    color: var(--container-text-color);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.25);
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.public-toast-success {
    border-color: #1f7a1f;
}

.public-toast.is-hidden {
    opacity: 0;
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .public-toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}