:root {
  --text: #111111;
  --muted: #7a7a7a;
}

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

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  width: 100%;
  overflow-x: hidden;
}

html {
  width: 100%;
  scrollbar-gutter: stable;
}

@media (max-width: 350px) {
  html,
  body {
    min-width: 350px;
  }
}

.container {
  max-width: 1710px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 0;
}

.menu {
  display: flex;
  justify-content: flex-start;
  gap: 36px;
  font-size: 18px;
  font-weight: 600;
}

.menu__link {
  color: inherit;
  text-decoration: none;
}

.account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-btn {
  border: 1px solid #ef2b2b;
  color: #ef2b2b;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chips {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 2px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #e6e6e6;
  color: #222222;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip--red {
  background: #ef2b2b;
  border-color: #ef2b2b;
  color: #ffffff;
}

.chip--sale {
  color: #ef2b2b;
  border-color: #ef2b2b;
  position: relative;
  padding-left: 28px;
}

.chip--sale::before {
  content: "%";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 12px;
  color: #ef2b2b;
}

.chip--green {
  background: #1c7a3a;
  border-color: #1c7a3a;
  color: #ffffff;
}

.chip--retail.is-active {
  background: #ef2b2b;
  border-color: #ef2b2b;
  color: #ffffff;
}

.account__icon {
  width: 28px;
  height: 28px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.account__icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.account__text {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.account__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.header-main {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0 16px;
}

.mobile-header {
  display: none;
}

.brand__logo {
  display: block;
  width: clamp(140px, 12vw, 200px);
  height: auto;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ef2b2b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  height: 42px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-btn__icon {
  width: 12px;
  height: 18px;
  display: block;
}

.header-main .search {
  display: flex;
  align-items: center;
  border: 2px solid #ef2b2b;
  border-radius: 14px;
  height: 42px;
  padding: 0 10px;
}

.header-main .search__input {
  border: none;
  outline: none;
  width: 100%;
  padding: 0 10px;
  font-size: 14px;
}

.header-main .search__btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.header-main .search__btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.phones {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.phones a {
  color: var(--text);
  text-decoration: none;
}

.phones span {
  color: #ef2b2b;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #efefef;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-dropdown {
  position: relative;
}

.icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

@media (max-width: 1250px) {
  .container {
    padding: 0 0px;
  }

  .topbar {
    display: none;
  }

  .header-main {
    margin: 0;
    padding: 0;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: stretch;
    border-bottom: 2px solid #ef2b2b;
  }

  .brand {
    padding-left: 0;
    display: flex;
    align-items: center;
  }

  .brand__logo {
    width: clamp(140px, 28vw, 190px);
  }

  .header-main .search,
  .phones,
  .header-actions {
    display: none;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .mobile-header__phone-btn {
    display: none;
    width: clamp(36px, 7vw, 44px);
    height: clamp(36px, 7vw, 44px);
    border-radius: 50%;
    border: 1px solid #ef2b2b;
    background: #ffffff;
    color: #ef2b2b;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .mobile-header__phone-btn svg {
    width: clamp(18px, 3.6vw, 22px);
    height: clamp(18px, 3.6vw, 22px);
    display: block;
  }

  .mobile-header__phones {
    display: grid;
    gap: 4px;
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 700;
    line-height: 1.05;
    text-align: right;
  }

  .mobile-header__phones a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-header__phones span {
    color: #ef2b2b;
  }

  .mobile-header__search {
    height: clamp(56px, 10vw, 74px);
    padding: 0 clamp(10px, 2.4vw, 18px);
    border: none;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
  }

  .mobile-header__search img {
    width: clamp(20px, 3.2vw, 28px);
    height: clamp(20px, 3.2vw, 28px);
    display: block;
  }

  .catalog-btn {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    align-self: stretch;
    border-radius: 0;
    width: clamp(72px, 18vw, 98px);
    min-height: 0;
    padding: 0;
    font-size: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: #ef2b2b;
    color: #ffffff;
  }

  .catalog-btn__icon {
    display: none;
  }

  .chips {
    display: none;
  }

  .promo {
    display: none;
  }
}

@media (max-width: 500px) {
  .mobile-header__phones {
    display: none;
  }

  .mobile-header__phone-btn {
    display: grid;
  }

  .mobile-header__phones.is-open {
    display: grid;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.icon-dropdown.is-open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown__item:last-of-type {
  border-bottom: none;
}

.dropdown__item img {
  width: 48px;
  height: auto;
  display: block;
}

.dropdown__title {
  font-size: 12px;
  font-weight: 600;
}

.dropdown__price {
  font-size: 12px;
  color: #8c8c8c;
}

.dropdown__btn {
  width: 100%;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
}

/* Catalog dropdown */
.catalog-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  padding: 165px 24px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.catalog-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-dropdown__inner {
  max-width: 1710px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  background: #ffffff;
  border: 2px solid #ef2b2b;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.catalog-dropdown__all {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 20px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.catalog-dropdown__all:hover {
  background: #d92424;
}

.catalog-dropdown__content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

.catalog-dropdown__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-dropdown__col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-dropdown__col li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.catalog-dropdown__col a {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
}

.catalog-dropdown__col a:hover {
  color: #ef2b2b;
}

.catalog-dropdown__arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #ef2b2b;
}

.catalog-dropdown__banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
}

.catalog-dropdown__banner {
  min-height: 100px;
  background: #e8e8e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #888;
}

.catalog-dropdown__banner--wide {
  grid-column: span 2;
  min-height: 80px;
}

.main {
  padding: 14px 0 40px;
  margin: 0 15px;
}

.promo {
  position: relative;
  padding: 12px 0;
}

.promo__grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.promo__grid--opt:not(.is-active) {
  display: none;
}

.promo__grid--retail {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
  --retail-shift: 22px;
  height: 400px;
}

.promo__grid--opt {
  height: 400px;
  align-items: stretch;
}

.promo__grid--retail.is-active {
  display: grid;
}

.promo__retail-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}

.promo__retail-item img {
  width: 100%;
  height: 100%;

  display: block;
}

.promo__retail-item--1 {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.promo__retail-item--2 {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.promo__retail-item--3 {
  grid-column: 3;
  grid-row: 1;
  height: calc(100% - var(--retail-shift));
}

.promo__retail-item--5 {
  grid-column: 4;
  grid-row: 1;
  height: calc(100% - var(--retail-shift));
}

.promo__retail-item--6 {
  grid-column: 5;
  grid-row: 1;
  height: calc(100% - var(--retail-shift));
}

.promo__retail-item--4 {
  grid-column: 3 / span 2;
  grid-row: 2;
  margin-top: calc(-1 * var(--retail-shift));
  height: calc(100% + var(--retail-shift));
}

.promo__retail-item--7 {
  grid-column: 5;
  grid-row: 2;
  margin-top: calc(-1 * var(--retail-shift));
  height: calc(100% + var(--retail-shift));
}

.promo__left {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}

.promo__item {
  border-radius: 18px;
  overflow: hidden;
  background: #f4f4f4;
}

.promo__item img {
  width: 100%;
  height: 100%;
  object-fit: inherit;
  display: block;
}

.promo__item--left-top {
  height: 210px;
}

.promo__item--left-bottom {
  height: 174px;
}

.promo__item--center,
.promo__item--right {
  height: 400px;
}

.promo__arrow {
  position: absolute;
  transform: translateY(0);
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}

.promo__arrow--left {
  top: 15px;
  left: -46px;
}

.promo__arrow--right {
  bottom: 15px;
  right: -46px;
}

@media (max-width: 1200px) {
  .promo__grid {
    grid-template-columns: 1fr;
  }

  .promo__item--center,
  .promo__item--right,
  .promo__item--left-top,
  .promo__item--left-bottom {
    height: auto;
  }

  .promo__arrow {
    display: none;
  }
}

.themes {
  padding: 26px 0 12px;
}

.themes__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.themes__icon {
  width: 46px;
  height: auto;
}

.themes__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.themes__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 18px;
}

.themes__item {
  border-radius: 16px;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.themes__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile catalog (new layout) */
.mob-catalog {
  display: none;
  padding: 6px 0 20px;
}

.mob-catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mob-catalog__heading {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.mob-catalog__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mob-catalog__card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  min-height: 102px;
  border-radius: 14px;
  border: 1px solid #ededed;
  background: #ffffff;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.mob-catalog__text {
  display: grid;
  gap: 6px;
}

.mob-catalog__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.mob-catalog__meta {
  font-size: 13px;
  color: #666;
}

.mob-catalog__media {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.mob-catalog__toggle {
  border: none;
  background: transparent;
  padding: 8px 6px;
  cursor: pointer;
  color: #ef2b2b;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mob-catalog__toggle::after {
  content: "▾";
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mob-catalog__card.is-open .mob-catalog__toggle::after {
  transform: rotate(180deg);
}

.mob-catalog__submenu {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
  display: grid;
  gap: 10px;
  padding: 0 0 0 86px;
}

.mob-catalog__submenu a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.mob-catalog__submenu a:last-child {
  color: #ef2b2b;
  font-weight: 700;
}

.mob-catalog__card.is-open .mob-catalog__submenu {
  max-height: 240px;
  padding-bottom: 8px;
}

.mob-catalog__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.new-items {
  padding: 12px 0 20px;
}

.new-items__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.new-items__title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
}

.new-items__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.new-items__card {
  border-radius: 12px;
  overflow: hidden;
}

.new-items__card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1250px) {
  .themes__title {
    font-size: 22px;
    font-weight: 800;
  }

  .themes__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    will-change: transform;
  }

  .themes__item {
    flex: 0 0 109px;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-select: none;
  }

  .themes__grid::-webkit-scrollbar {
    display: none;
  }

  .mob-catalog {
    display: block;
  }

  .new-items {
    padding: 8px 0 16px;
  }

  .new-items__title {
    font-size: 54px;
  }

  .new-items__grid {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .themes__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .themes__item {
    flex-basis: 85px;
  }

  .new-items__title {
    font-size: 46px;
  }
}

@media (max-width: 700px) {
  .new-items__title {
    font-size: 32px;
  }
}

.sale {
  padding:0px;
}

.sale__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.sale__icon {
  width: 46px;
  height: auto;
}

.sale__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.sale__slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.sale__arrow {
  width: 54px;
  height: 54px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sale__arrow img {
  display: block;
}

.sale__viewport {
  overflow: hidden;
}

.sale__track {
  display: flex;
  gap: 18px;
  transform: translateX(0);
}

.sale__slide {
  flex: 0 0 calc((100% - 54px) / 4);
  box-sizing: border-box;
  border-radius: 14px;
  min-height: 420px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1250px) {
  .sale__slider {
    grid-template-columns: 1fr;
  }

  .sale__arrow {
    display: none;
  }

  .sale__track {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sale__slide {
    flex: 0 1 calc((100% - 18px) / 2);
    max-width: 520px;
  }
}

@media (max-width: 1200px) {
  .sale__slider {
    grid-template-columns: 1fr;
  }

  .sale__arrow {
    display: none;
  }

  .sale__track {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .sale__slide {
    flex: 0 0 100%;
  }
}

@media (max-width: 300px) {
  .sale__slide {
    flex: 0 0 100%;
    max-width: none;
  }
}

.popular {
  padding: 28px 0 27px;
}

.popular__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.popular__icon {
  width: 46px;
  height: auto;
}

.popular__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.popular__card {
  position: relative;
  border: 1px solid #ef2b2b;
  border-radius: 14px;
  padding: 16px;
  min-height: 160px;
  background-color: #ffffff;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 200px auto;
}

.popular__card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.popular__line {
  display: inline-block;
  width: 26px;
  height: 3px;
  background: #ef2b2b;
  margin: 6px 0 8px;
}

.popular__text {
  margin: 0;
  font-size: 12px;
  color: #6e6e6e;
  max-width: 220px;
  line-height: 1.4;
}

.popular__btn {
  margin-top: 12px;
  background: #ef2b2b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.popular__year {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
}

.popular__img {
  position: absolute;
  right: 0px;
  bottom: 0px;
  height: auto;
}

.popular__img--calendar {
  width: 150px;
}

.popular__card--calendar {
  grid-column: span 2;
  min-height: 200px;
  background-image: url("./img/back-pop/kalendars.png");
  background-size: 260px auto;
}

.popular__card--calendar .popular__card-title {
  font-size: 28px;
}

.popular__card--calendar .popular__text {
  max-width: 280px;
}

.popular__card--calendar .popular__img {
  right: 22px;
  bottom: 14px;
  width: 250px;
}

.popular__card--mugs {
  background-image: url("./img/back-pop/kruzhki.png");
}

.popular__card--mugs .popular__img {
  right: 16px;
  bottom: 18px;
  width: 90px;
}

.popular__card--postcards {
  background-image: url("./img/back-pop/otkrytki.png");
  background-position: 0% 10%;
}

.popular__card--postcards .popular__img {
  right: 18px;
  bottom: 14px;
  width: 90px;
}

.popular__card--sets {
  background-image: url("./img/back-pop/nabory-oformitelskie.png");
}

.popular__card--sets .popular__img {
  right: 12px;
  bottom: 18px;
  width: 120px;
}

.popular__card--gifts {
  background-image: url("./img/back-pop/podarochnye-nabory.png");
  background-position: 0% 100%;
}

.popular__card--gifts .popular__card-title {
  text-align: center;
}

.popular__card--gifts .popular__line {

}

.popular__card--gifts .popular__img {
  left: 50%;
  right: auto;
  bottom: 12px;
  transform: translateX(-50%);
  width: 140px;
}

.popular__card--stickers {
  background-image: url("./img/back-pop/nakleyki.png");
  background-position: 100% 0%;
}

.popular__card--stickers {
  padding-bottom: 44px;
}

.popular__card--stickers .popular__card-title {
  position: absolute;
  left: 16px;
  bottom: 18px;
}

.popular__card--stickers .popular__line {
  position: absolute;
  left: 16px;
  bottom: 10px;
  margin: 0;
}

.popular__card--stickers .popular__text {
  max-width: 170px;
}

.popular__card--stickers .popular__img {
  right: 14px;
  top: 14px;
  bottom: auto;
  width: 80px;
}

.popular__card--invite {
  grid-column: span 2;
  min-height: 250px;
  background-image: url("./img/back-pop/priglasheniya.png");
  background-position: 0% 0%;
  background-size: 360px auto;
}

.popular__card--invite .popular__card-title {
  position: absolute;
  right: 18px;
  top: 16px;
  text-align: right;
}

.popular__card--invite .popular__line {
  position: absolute;
  right: 18px;
  top: 50px;
  margin: 0;
}

.popular__card--invite .popular__text {
  position: absolute;
  right: 18px;
  top: 68px;
  text-align: right;
  margin: 0;
  max-width: 260px;
}

.popular__card--invite .popular__img {
  left: 18px;
  right: auto;
  bottom: 12px;
  width: 140px;
}

.popular__card--covers {
  background-image: url("./img/back-pop/oblozhki.png");
  background-position: 0% 55%;
}

.popular__card--covers .popular__img {
  right: 0px;
  bottom: 0px;
  width: 160px;
  height: 262px;
}

@media (max-width: 1200px) {
  .popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular__card--calendar,
  .popular__card--invite {
    grid-column: span 2;
  }
}

@media (max-width: 1250px) {
  .popular__card--covers {
    order: 7;
  }

  .popular__card--invite {
    order: 8;
  }
}

@media (max-width: 700px) {
  .popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "calendar calendar"
      "mugs mugs"
      "postcards postcards"
      "sets sets"
      "gifts gifts"
      "stickers covers"
      "invite invite";
  }

  .popular__card--calendar { grid-area: calendar; }
  .popular__card--mugs { grid-area: mugs; }
  .popular__card--postcards { grid-area: postcards; }
  .popular__card--sets { grid-area: sets; }
  .popular__card--gifts { grid-area: gifts; }
  .popular__card--stickers { grid-area: stickers; }
  .popular__card--covers { grid-area: covers; }
  .popular__card--invite { grid-area: invite; }

  .popular__card--covers .popular__img {
    width: 120px;
    height: auto;
  }
}

.promo-banner {
  padding: 20px 0 60px;
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.news {
  padding: 16px 0 70px;
}

.news__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.news__icon {
  width: 46px;
  height: auto;
}

.news__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.news-card__img {
  border-radius: 8px;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

.news-card__date {
  margin-top: 10px;
  font-size: 10px;
  color: #9a9a9a;
}

.news-card__text {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

@media (max-width: 1200px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .news__grid {
    grid-template-columns: 1fr;
  }
}

.about {
  padding: 30px 0 80px;
  position: relative;
  isolation: isolate;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: url("./img/background-about.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

.about__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.about__icon {
  width: 46px;
  height: auto;
}

.about__ornament {
  width: 86px;
  height: 16px;
  margin: 0 auto 10px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg width='86' height='16' viewBox='0 0 86 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 10c8-6 14 6 22 0s14 6 22 0 14 6 22 0 14 6 16 6' fill='none' stroke='%23ef2b2b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M35 8c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4Z' fill='%23ef2b2b'/%3E%3C/svg%3E");
}

.about__ornament--bottom {
  margin: 28px auto 0;
  transform: rotate(180deg);
}

.about__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.about__card {
  position: relative;
  margin: 0 auto;
  padding: 32px 38px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(260px, 0.95fr);
  gap: 36px;
}

.about__intro,
.about__brands {
  position: relative;
  z-index: 1;
}

.about__intro {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 720px;
}

.about__logo {
  width: 140px;
  height: auto;
  display: block;
}

.about__handwritten {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #2c2c2c;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 10px 20px rgba(239, 43, 43, 0.2);
}

.about__brands {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.about__brands-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.about__brands-slider {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.about__brands-arrow {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.about__brands-arrow img {
  display: block;
}

.about__brands-viewport {
  overflow: hidden;
}

.about__brands-track {
  display: flex;
  gap: 18px;
  transform: translateX(0);
}

.brand-card {
  flex: 0 0 calc((100% - 54px) / 4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

@media (max-width: 1200px) {
  .about__card {
    grid-template-columns: 1fr;
    padding: 28px 26px;
  }
}

@media (max-width: 700px) {
  .about {
    padding: 26px 0 60px;
  }

  .about__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
  }

  .about__card {
    gap: 22px;
  }

  .about__brands-slider {
    grid-template-columns: 1fr;
  }

  .about__brands-arrow {
    display: none;
  }

  .about__brands-track {
    flex-wrap: wrap;
  }
}

/* Blog */
.blog {
  padding: 40px 0 60px;
}

.blog__head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.blog__icon {
  display: block;
  width: 46px;
  height: auto;
}

.blog__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.blog-card {
  position: relative;
  background: #faf8f6;
  border: 1px solid #ef2b2b;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.blog-card:nth-child(1),
.blog-card:nth-child(3) {
  margin-top: -24px;
}

.blog-card:nth-child(2),
.blog-card:nth-child(4) {
  margin-top: 24px;
}

.blog-card:nth-child(even) {
  display: flex;
  flex-direction: column;
}

.blog-card:nth-child(even) .blog-card__title {
  order: 1;
}

.blog-card:nth-child(even) .blog-card__date {
  order: 2;
}

.blog-card:nth-child(even) .blog-card__media {
  order: 3;
}

.blog-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f0eb;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__title {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.blog-card:nth-child(odd) .blog-card__title {
  padding-top: 18px;
  padding-bottom: 8px;
}

.blog-card:nth-child(even) .blog-card__title {
  padding-top: 8px;
  padding-bottom: 2px;
}

.blog-card__date {
  padding: 0 14px 12px;
  font-size: 13px;
  color: #7a7a7a;
  text-align: right;
}

.blog-card:nth-child(odd) .blog-card__date {
  padding-bottom: 18px;
}

.blog-card:nth-child(even) .blog-card__date {
  padding-bottom: 8px;
}

.blog__actions {
  display: flex;
  justify-content: center;
}

.blog__more {
  display: inline-block;
  padding: 12px 24px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.blog__more:hover {
  background: #d92424;
}

/* Auth modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
  position: relative;
  width: 500px;
  max-width: 560px;
  margin: 0 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 28px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth__head {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.auth__icon {
  width: 46px;
  height: auto;
}

.auth__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth__tab {
  border: 1px solid #ef2b2b;
  background: #ffffff;
  color: #ef2b2b;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.auth__tab.is-active {
  background: #ef2b2b;
  color: #ffffff;
}

.auth__panel {
  display: none;
  gap: 10px;
}

.auth__panel.is-active {
  display: grid;
}

.auth__social {
  border: none;
  background: #ffd54f;
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.auth__or {
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
}

.auth__field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.auth__field input {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.auth__field input:focus {
  border-color: #ef2b2b;
}

.auth__primary {
  border: none;
  background: #ef2b2b;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.auth__link {
  background: transparent;
  border: none;
  color: #ef2b2b;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.auth__note {
  font-size: 11px;
  color: #8a8a8a;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .blog-card:nth-child(1),
  .blog-card:nth-child(2),
  .blog-card:nth-child(3),
  .blog-card:nth-child(4) {
    margin-top: 0;
  }
}

/* Mobile bottom bar */
.mob-bottom-bar {
  display: none;
}

.mob-bottom-bar__item {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  font: inherit;
}

.mob-bottom-bar__icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.mob-bottom-bar__icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.mob-bottom-bar__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef2b2b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.mob-bottom-bar__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.mob-bottom-bar__burger {
  width: 22px;
  height: 2px;
  background: #111111;
  border-radius: 2px;
  position: relative;
  display: block;
}

.mob-bottom-bar__burger::before,
.mob-bottom-bar__burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111111;
  border-radius: 2px;
}

.mob-bottom-bar__burger::before {
  top: -6px;
}

.mob-bottom-bar__burger::after {
  top: 6px;
}

@media (max-width: 1250px) {
  .mob-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    height: 78px;
    background: #ffffff;
    border-top: 2px solid #ef2b2b;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.14);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    padding:0px!important;
  }
}

/* Mobile cart sheet */
.mob-cart {
  display: none;
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 1250px) {
  .mob-cart {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 140;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .mob-cart.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 1.8rem;
  }

  .mob-cart__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mob-cart.is-open .mob-cart__backdrop {
    opacity: 1;
  }

  .mob-cart__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40vh;
    background: #ffffff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transform: translateY(18px) scaleY(1);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 0.26s ease, opacity 0.22s ease, height 0.26s ease;
    will-change: transform, opacity;
  }

  .mob-cart.is-open .mob-cart__sheet {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  .mob-cart.is-expanded .mob-cart__sheet {
    height: 100%;
  }

  .mob-cart.is-dragging .mob-cart__sheet {
    transition: none;
    animation: none;
  }

  .mob-cart__grabber {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.18);
    margin: 10px auto 0;
    touch-action: none;
  }

  .mob-cart__pull {
    display: grid;
    justify-items: center;
    padding: 6px 0 2px;
    pointer-events: auto;
    touch-action: none;
  }

  .mob-cart__pull-arrows {
    width: 22px;
    height: 18px;
    position: relative;
    opacity: 0.55;
  }

  .mob-cart__pull-arrows::before,
  .mob-cart__pull-arrows::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(17, 17, 17, 0.42);
    border-bottom: 2px solid rgba(17, 17, 17, 0.42);
    transform: translateX(-50%) rotate(-135deg);
    border-radius: 1px;
  }

  .mob-cart__pull-arrows::before {
    top: 2px;
  }

  .mob-cart__pull-arrows::after {
    top: 10px;
    opacity: 0.65;
  }

  /* В развёрнутом состоянии корзины убираем захват и "стрелки", чтобы не было лишнего пустого места сверху */
  .mob-cart.is-expanded .mob-cart__grabber,
  .mob-cart.is-expanded .mob-cart__pull {
    display: none;
  }

  .mob-cart.is-expanded .mob-cart__sheet::before {
    display: none;
  }

  .mob-cart.is-expanded .mob-cart__head {
    padding-top: 8px;
  }

  /* First-open hint: subtle "bounce" + elastic top edge */
  .mob-cart.is-hint .mob-cart__sheet {
    animation: mobCartSheetStretch 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) 0s 2;
  }

  .mob-cart__sheet::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 32px;
    background: #ffffff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transform: translateY(0) scaleX(1);
    opacity: 0;
    pointer-events: none;
  }

  .mob-cart.is-open .mob-cart__sheet::before {
    opacity: 1;
  }

  .mob-cart.is-hint .mob-cart__sheet::before {
    animation: mobCartElasticLip 1.1s ease-out 0s 2;
  }

  .mob-cart.is-dragging .mob-cart__sheet::before {
    animation: none;
  }

  @keyframes mobCartSheetStretch {
    0% { transform: translateY(0) scaleY(1); }
    35% { transform: translateY(0) scaleY(1.06); }
    65% { transform: translateY(0) scaleY(1); }
    82% { transform: translateY(0) scaleY(1.035); }
    100% { transform: translateY(0) scaleY(1); }
  }

  @keyframes mobCartElasticLip {
    0% { transform: translateY(0) scaleX(1); }
    35% { transform: translateY(-10px) scaleX(1.02); }
    65% { transform: translateY(0) scaleX(1); }
    82% { transform: translateY(-6px) scaleX(1.015); }
    100% { transform: translateY(0) scaleX(1); }
  }

  .mob-cart__head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    touch-action: none;
  }

  .mob-cart__head * {
    touch-action: none;
  }

  .mob-cart__title {
    font-size: 20px;
    font-weight: 800;
  }

  .mob-cart__checkout {
    border: none;
    background: #ef2b2b;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
  }

  .mob-cart__summary {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
    line-height: 1;
  }

  .mob-cart__summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #8a8a8a;
  }

  .mob-cart__summary-value {
    font-size: 14px;
    font-weight: 900;
    color: #111;
  }

  .mob-cart__body {
    padding: 10px 12px 14px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mob-cart__row {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 18px 0;
    min-height: 120px;
    border-bottom: 1px solid #f2f2f2;
  }

  .mob-cart__row:last-child {
    border-bottom: none;
  }

  .mob-cart__thumb {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #fafafa;
  }

  .mob-cart__info {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .mob-cart__name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .mob-cart__meta {
    font-size: 12px;
    color: #8a8a8a;
  }

  .mob-cart__qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #111;
  }

  .mob-cart__qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e9e9e9;
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #111;
    display: grid;
    place-items: center;
  }

  .mob-cart__qty-num {
    min-width: 14px;
    text-align: center;
    font-size: 14px;
  }

  .mob-cart__remove {
    position: absolute;
    right: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: #ef2b2b;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(239, 43, 43, 0.22);
  }

  .mob-cart__empty {
    padding: 18px 6px 24px;
    text-align: center;
    color: #8a8a8a;
    font-weight: 700;
  }

  .mob-cart__checkout:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mob-cart,
  .mob-cart__backdrop,
  .mob-cart__sheet {
    transition: none !important;
  }
}

/* Mobile account sheet (same behavior as cart) */
.mob-account {
  display: none;
}

@media (max-width: 1250px) {
  .mob-account {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 142;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .mob-account.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mob-account__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mob-account.is-open .mob-account__backdrop {
    opacity: 1;
  }

  .mob-account__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40vh;
    background: #ffffff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.26s ease, opacity 0.22s ease;
    will-change: transform, opacity;
    min-height: 0;
  }

  .mob-account.is-open .mob-account__sheet {
    transform: translateY(0);
    opacity: 1;
  }

  .mob-account__sheet--cabinet {
    height: 58vh;
    max-height: 420px;
  }

  .mob-account__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f0f0f0;
  }

  .mob-account__title {
    font-size: 18px;
    font-weight: 900;
  }

  .mob-account__close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #f3f3f3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .mob-account__body {
    padding: 14px 14px 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
  }

  /* Авторизованный пользователь: имя + меню кабинета */
  .mob-account__user {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .mob-account__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
  }

  .mob-account__subtitle {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
  }

  .mob-account__menu {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mob-account__menu-item {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .mob-account__menu-item:last-child {
    border-bottom: none;
  }

  .mob-account__menu-item:hover,
  .mob-account__menu-item:focus {
    color: #c00;
  }

  .mob-account__menu-item.exit {
    color: #888;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }

  .mob-account__menu-item.exit:hover,
  .mob-account__menu-item.exit:focus {
    color: #c00;
  }

  .mob-account__sheet--cabinet .mob-account__body {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mob-account,
  .mob-account__backdrop,
  .mob-account__sheet {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile side menu (drawer) */
.mob-menu {
  display: none;
}

@media (max-width: 1250px) {
  .mob-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 145;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .mob-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mob-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mob-menu.is-open .mob-menu__backdrop {
    opacity: 1;
  }

  .mob-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 78vw);
    background: #ffffff;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    transform: translateX(18px);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.22s ease;
    will-change: transform, opacity;
  }

  .mob-menu.is-open .mob-menu__panel {
    transform: translateX(0);
    opacity: 1;
  }

  .mob-menu__head {
    display: none;
  }

  .mob-menu__title {
    font-size: 18px;
    font-weight: 900;
  }

  .mob-menu__close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #f3f3f3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .mob-menu__views {
    width: 200%;
    height: 100%;
    display: flex;
    min-height: 0;
    transform: translateX(0);
    transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1);
  }

  .mob-menu.is-catalog .mob-menu__views {
    transform: translateX(-50%);
  }

  .mob-menu__view {
    flex: 0 0 50%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
    padding: 0;
    margin-top: 2rem!important;
  }

  .mob-menu__item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    padding: 22px 22px;
    border: none;
    border-bottom: 1px solid #e6e6e6;
    border-radius: 0;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    text-align: right;
  }

  .mob-menu__item--nav {
    background: #ffffff;
    position: relative;
    font-weight: 700;
  }

  .mob-menu__item--nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: #ef2b2b;
  }

  .mob-menu__item--icon {
    flex-direction: row;
    justify-content: flex-end;
    gap: 12px;
    font-weight: 700;
  }

  .mob-menu__icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
  }

  .mob-menu__icon img {
    width: 22px;
    height: 22px;
    display: block;
  }

  .mob-menu__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef2b2b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .mob-menu__divider {
    height: 0;
    margin: 0;
    border-bottom: 1px solid #e6e6e6;
    opacity: 1;
  }

  /* Submenu indicator (only for expandable catalog items) */
  .mob-menu__item .mob-menu__chev {
    display: none;
  }

  .mob-menu__cat-btn .mob-menu__chev {
    display: inline-block;
    order: 1;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(17, 17, 17, 0.35);
    border-bottom: 2px solid rgba(17, 17, 17, 0.35);
    transform: rotate(45deg);
    border-radius: 1px;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 12px;
    transition: transform 0.2s ease;
  }

  .mob-menu__cat.is-open .mob-menu__cat-btn .mob-menu__chev {
    transform: rotate(-135deg);
  }

  .mob-menu__subhead {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e6e6e6;
  }

  .mob-menu__back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    color: #111;
    font-weight: 900;
    cursor: pointer;
  }

  .mob-menu__subtitle {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
  }

  .mob-menu__catalog {
    display: grid;
    gap: 0;
  }

  .mob-menu__cat {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
  }

  .mob-menu__cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border: none;
    background: #ffffff;
    padding: 22px 22px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: #111;
    text-align: right;
  }

  .mob-menu__cat-title {
    order: 2;
  }

  .mob-menu__cat-sub {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease;
    border-top: 1px solid #efefef;
    background: #ffffff;
  }

  .mob-menu__cat.is-open .mob-menu__cat-sub {
    max-height: 520px;
    opacity: 1;
  }

  .mob-menu__cat-link {
    display: block;
    padding: 18px 22px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: right;
  }

  .mob-menu__cat-link:last-child {
    border-bottom: none;
    color: #ef2b2b;
    font-weight: 700;
  }

  .mob-menu__item--catalog {
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 22px 22px;
    border-top: 1px solid #e6e6e6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mob-menu,
  .mob-menu__backdrop,
  .mob-menu__panel,
  .mob-menu__views,
  .mob-menu__cat-sub {
    transition: none !important;
  }
}

.item-tematika__images svg,
.item-tematika__images img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.4rem;
}

@media (max-width: 1250px) {
  .tematika__title,
  .themes__title {
    display: none!important;
  }

  .item-tematika {
    /* Разрешаем горизонтальные свайпы для нативного скролла слайдера тематик */
    touch-action: pan-x pan-y;
    will-change: transform;
  }

  .item-tematika__block {
    user-select: none;
    -webkit-user-select: none;
  }

  .item-tematika__images svg,
  .item-tematika__images img {
    width: 70px;
    height: 70px;
    margin-bottom: 0.4rem;
  }

}

@media (max-width: 600px) {
  .inline-search-block.fixed.big {
    padding: 10px 12px 12px;
  }

  .inline-search-block.fixed.big .maxwidth-theme,
  .inline-search-block.fixed.big .col-md-12 {
    padding: 0;
  }

  .inline-search-block.fixed.big .search-wrapper {
    margin: 0;
  }

  .inline-search-block.fixed.big .search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #ef2b2b;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .inline-search-block.fixed.big .search .search-input-div {
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .inline-search-block.fixed.big .search .search-input {
    height: 44px !important;
    line-height: 44px;
    padding: 0 4px;
    padding-right: 0;
    font-size: 16px;
    border: none;
    background: transparent;
  }

  .inline-search-block.fixed.big .search .search-input::placeholder {
    color: #7a808a;
  }

  .inline-search-block.fixed.big .search .search-button-div {
    position: static;
    top: auto !important;
    right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .inline-search-block.fixed.big .search .btn-search,
  .inline-search-block.with-close.big .search .btn-search {
    position: static;
    right: auto;
    min-width: 84px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .inline-search-block.fixed.big .search .close-block,
  .inline-search-block.with-close.fixed.big .search .close-block {
    position: static;
    top: auto !important;
    left: auto !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .inline-search-block.fixed.big .close-block .close-icons {
    margin: 0;
    min-width: 14px;
    min-height: 14px;
    left: auto;
    top: auto;
  }
}

@media (max-width: 420px) {
  .inline-search-block.fixed.big {
    padding: 8px 10px 10px;
  }

  .inline-search-block.fixed.big .search {
    gap: 8px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .inline-search-block.fixed.big .search .search-input {
    font-size: 15px;
  }

  .inline-search-block.fixed.big .search .btn-search,
  .inline-search-block.with-close.big .search .btn-search {
    min-width: 76px;
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 38px;
  }
}
