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

:root {
  --section-gap-with-promotions: clamp(24px, 3.2vw, 44px);
  --section-gap-no-promotions: clamp(34px, 4.8vw, 72px);
  --bg-max-width: 1200px;
  --bg-aspect-ratio: 1.5;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #fff7e8;
  background-color: #1c0b26;
  overflow-x: hidden;
}

.page-bg {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: -2;
  pointer-events: none;
}

.page-bg__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: saturate(0.8) brightness(1.2);
}

.page-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 167, 73, 0.4), transparent 60%),
    linear-gradient(180deg, rgba(21, 9, 53, 0.9), rgba(65, 11, 61, 0.9));
  mix-blend-mode: screen;
}

.page-wrapper {
  min-height: max(100vh, calc(min(100vw, var(--bg-max-width)) * var(--bg-aspect-ratio)));
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.header__logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header__logo-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(255, 205, 96, 0.8));
}

.header__nav {
  display: flex;
  gap: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.header__link {
  color: #ffe9b0;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 193, 94, 0.8);
  padding: 6px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 210, 120, 0.5), rgba(163, 54, 126, 0.9));
  box-shadow: 0 0 12px rgba(255, 193, 94, 0.8);
  border: 1px solid rgba(255, 233, 180, 0.9);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.header__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 220, 150, 1);
  background: radial-gradient(circle at top, rgba(255, 225, 150, 0.9), rgba(191, 70, 146, 0.95));
}

.header__link:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(255, 193, 94, 0.8);
}

.main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap-with-promotions);
  margin-top: 0;
  flex: 1;
}

.page-wrapper.no-promotions .main {
  gap: var(--section-gap-no-promotions);
  justify-content: space-between;
}

.page-wrapper.has-promotions .main {
  justify-content: space-between;
}

.card {
  position: relative;
  background: radial-gradient(circle at top, rgba(255, 210, 120, 0.3), rgba(68, 16, 69, 0.95));
  border-radius: 24px;
  padding: 18px 20px;
  border: 2px solid rgba(255, 222, 173, 0.7);
  box-shadow: 0 0 22px rgba(255, 203, 90, 0.55), 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.card--glow {
  box-shadow: 0 0 30px rgba(255, 210, 120, 0.9), 0 20px 45px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 230, 180, 1);
}

.card--soft {
  background: radial-gradient(circle at top, rgba(255, 210, 120, 0.2), rgba(66, 16, 66, 0.98));
}

.hero {
  text-align: center;
}

.hero__text {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  text-transform: none;
  color: #fff9e6;
  text-shadow: 0 0 10px rgba(255, 193, 94, 0.8), 0 2px 4px rgba(125, 52, 0, 0.9);
}

.section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(255, 193, 94, 0.8);
}

.section-title--small {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  text-align: left;
}

.assortment {
  margin: 0;
}

.assortment__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.assortment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease-out;
}

.assortment-item__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 178, 84, 0.9);
  padding: 6px;
}

.assortment-item__icon img {
  width: 220%;
  height: 220%;
  object-fit: contain;
}

.assortment-item__label {
  font-size: 0.85rem;
  text-align: center;
  font-weight: 700;
  text-transform: lowercase;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.assortment-item:hover {
  transform: translateY(-3px) scale(1.06);
}

.gift-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
}

.gift-promo__image img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 188, 80, 0.95));
}

.gift-promo__text {
  font-size: 2rem;
  line-height: 1.5;
}

.gift-promo__accent {
  font-weight: 800;
  color: #ffe46b;
  margin-top: 6px;
}

.promotions {
  margin: 0;
}

.promotions__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 193, 94, 0.8);
}

.promotions__list {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.promotions__list img {
  max-width: 150px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(255, 215, 120, 0.95);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.promotions__list img:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 26px rgba(255, 235, 160, 1);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 14px;
  align-items: center;
  margin: 0;
}

.contacts__map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.contacts__map .section-title {
  margin-bottom: 0;
}

.contacts__map-ymap {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 14px rgba(255, 200, 120, 0.9);
  overflow: hidden;
  min-height: 260px;
  height: clamp(260px, 34vw, 420px);
  margin-top: 0;
}

.contacts__list ol {
  margin-left: 18px;
  margin-top: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.contacts__list {
  margin-top: clamp(17px, 2.2vw, 29px);
  min-height: calc(clamp(260px, 34vw, 420px) + 12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.contacts__groups {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.contacts__list .contacts__groups {
  margin-left: 0;
}

.contacts__group-title {
  margin-top: 6px;
  padding-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd786;
  text-shadow: 0 0 8px rgba(255, 193, 94, 0.45);
}

.contacts__group-separator {
  list-style: none;
  height: 1px;
  margin: 6px 0 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 166, 0.45), transparent);
}

.contacts__meta {
  background: linear-gradient(180deg, rgba(255, 214, 141, 0.2), rgba(108, 24, 90, 0.35));
  border: 1px solid rgba(255, 233, 180, 0.55);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 0 14px rgba(255, 197, 111, 0.35);
}

.contacts__list .contacts__meta {
  margin-top: 0;
}

.contacts__meta-title {
  font-weight: 800;
  color: #ffe9b0;
  margin-bottom: 2px;
  font-size: 0.86rem;
}

.contacts__hours-line {
  font-size: 0.84rem;
}

.contacts__hours-note {
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(255, 235, 196, 0.88);
}

.contacts__item {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: baseline;
  padding: 2px 0;
  transition: color 0.15s ease-out, text-shadow 0.15s ease-out;
}

.contacts__item:hover {
  color: #ffe46b;
  text-shadow: 0 0 8px rgba(255, 210, 120, 0.9);
}

.contacts__address {
  font-weight: 600;
  font-size: 0.9rem;
}

.contacts__subaddress {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(255, 232, 190, 0.9);
}

.contacts__phone {
  color: #ffd786;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
}

.contacts__phone:hover {
  color: #fff2c8;
}

.contacts__phone--muted {
  color: rgba(255, 231, 189, 0.75);
  font-weight: 600;
}

.contacts__item--market {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 4px 0 2px;
}

.contacts__item--market .contacts__phone {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.contacts__hours-special {
  grid-column: 1 / -1;
  margin-top: 1px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(255, 232, 190, 0.82);
}

.footer {
  margin-top: auto;
  padding-top: var(--section-gap-with-promotions);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.9;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.page-wrapper.no-promotions .footer {
  padding-top: var(--section-gap-no-promotions);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer__social-link,
.footer__vacancies-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffe9b0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 233, 180, 0.65);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 210px;
  background: rgba(45, 13, 57, 0.45);
}

.footer__social-link:hover,
.footer__vacancies-link:hover {
  color: #fff2c8;
  text-shadow: 0 0 8px rgba(255, 210, 120, 0.9);
}

.footer__social-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .page-wrapper {
    min-height: 100vh;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts__list {
    margin-top: 0;
    min-height: 0;
    display: block;
  }

  .contacts__map-ymap {
    margin-top: 0;
  }

  .gift-promo {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contacts__item--market .contacts__phone {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .page-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    max-width: none;
    width: 100vw;
    height: calc(100dvh + 100px);
  }

  .page-bg__image {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: calc(100dvh + 100px);
    object-fit: cover;
    object-position: center center;
  }

  .page-wrapper {
    min-height: calc(100dvh + 100px);
    padding: 16px 12px 24px;
  }

  .assortment__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 10px;
  }

  .assortment-item {
    flex: 0 1 92px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .assortment-item__icon {
    width: 64px;
    height: 64px;
  }

  .gift-promo {
    grid-template-columns: 1fr;
  }

  .gift-promo__image {
    display: flex;
    justify-content: center;
  }

  .gift-promo__image img {
    width: 140px;
  }

  .promotions__list {
    justify-content: center;
  }

  .main {
    gap: 24px;
    justify-content: flex-start;
  }

  .contacts__map {
    gap: 8px;
  }

  .contacts__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contacts__phone {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .header__logo-img {
    width: 82%;
  }

  .contacts__list ol {
    font-size: 0.9rem;
  }
}
