:root {
  --accent-secondary: #f9d236;
  --accent-primary: #e73f22;
  --color-black: #000000;
  --color-white: #f9f9f9;
  --color-green: #9dd32e;
  --color-dark: #1d1d1d;
  --color-muted: rgba(255, 255, 255, 0.7);
  --border-default: #515151;
  --card-bg: #2c2c2c;
  --bubble-bg: #2c2c2c;
  --arrow-bg: #2c2c2c;
  --arrow-border: #1d1d1d;
  --slider-bg: #1d1d1d;
  --features-bg: #d9d9d9;
  --category-bg: #2c2c2c;
  --form-bg: #0c0a0a;
  --form-placeholder: #706e6e;
  --footer-bg: #111111;
  --card-max-width: 304px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

ul {
  list-style-type: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-black);
}

button {
  cursor: pointer;
  border: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.alert {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

header {
  position: sticky;
  top: 0;
  z-index: 2000;
}

.nav {
  background-color: var(--accent-primary);
  padding-block: 13px 13px;
}

.nav__container {
  display: flex;
  justify-content: space-between;
}

.nav__btn {
  position: relative;

  z-index: 102;

  padding: 15px 18px 15px 18px;

  font-size: 15px;
  font-weight: 900;
  color: var(--color-black);

  background-color: var(--accent-secondary);

  border: none;
  border-radius: 8px;

  text-decoration: none;

  transition:
    transform 0.2s ease-in-out,
    background-color 0.4s ease-in-out,
    color 0.4s ease-in-out;
}

.nav__btn:hover {
  transform: scale(1.05);
  background-color: #d4a800;
}

.nav__btn::after {
  position: absolute;
  top: -8px;
  right: -13px;
  content: attr(data-count);
  background-color: var(--features-bg);
  border-radius: 999px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15px;
  height: 15px;
}

.nav__btn::before {
  content: '🛒';
}

.nav__btn.empty::after {
  content: none;
}

.nav__btn.disabled {
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
}

.container {
  max-width: 1320px;
  margin: auto;
  padding-inline: 20px;
}

#topBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  background-color: var(--accent-secondary);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-in-out;
}

#topBtn svg {
  width: 20px;
  height: 20px;
  transform: rotate(270deg);
  fill: var(--color-black);
}

#topBtn:hover {
  background-color: #d4a800;
  transform: scale(1.1);
}

.footer {
  background-color: var(--footer-bg);
}

.footer__top-container {
  padding-top: 40px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--color-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-muted);
}

.footer__top-logo {
  filter: drop-shadow(-80px 0px 40px rgba(34, 60, 80, 0.4))
    drop-shadow(0px 0px 40px rgba(249, 210, 54, 0.2))
    drop-shadow(80px 0px 40px rgba(157, 211, 46, 0.4));
}

.footer__bottom {
  padding-block: 65px 40px;
}

.nav__logo {
  transition: transform 0.2s ease-in-out;
}

.footer__bottom-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-white);
}

.footer__bottom-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer__bottom-address {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  padding: 12px 0;
  text-align: center;
}

.footer__bottom-address:last-child {
  grid-column: 1 / -1;
}

.cursor {
  width: 40px;
  height: 40px;
  background-image: url(https://cdn-icons-png.flaticon.com/512/1923/1923423.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(320deg); /* ← сюда */
  z-index: 9999;
}

@media (max-width: 1024px) {
  * {
    cursor: default;
  }

  .cursor {
    display: none;
  }

  body {
    overflow-x: hidden;
  }

  .nav__logo {
    max-width: 240px;
  }
  .footer__top-logo {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .nav__controls {
    padding-top: 10px;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .footer__top-container {
    flex-direction: column;
    gap: 2em;
  }
}

@media (max-width: 450px) {
  .footer__bottom-addresses {
    grid-template-columns: 1fr;
  }

  .footer__bottom-title {
    text-align: center;
  }

  .nav__logo {
    max-width: 160px;
  }

  .footer__top-logo {
    max-width: 160px;
  }
  .nav__btn {
    font-size: 0;
    padding: 7px 9px;
  }

  .nav__btn::before {
    font-size: 18px;
  }

  .nav__btn::after {
    font-size: 15px;
  }
}

.nav__logo:hover {
  transform: scale(1.05);
}
