#ajax-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
      radial-gradient(
        circle at 50% 42%,
        rgba(255, 255, 255, 0.82),
        rgba(246, 241, 236, 0.76) 38%,
        rgba(238, 230, 222, 0.68) 100%
      );
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#ajax-loading::before {
  content: "";
  width: 132px;
  height: 132px;
  display: block;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image: url("data:image/svg+xml,%3Csvg width='116' height='116' viewBox='0 0 116 116' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.steam1%7Banimation:steam 1.7s ease-in-out infinite;transform-origin:center;%7D.steam2%7Banimation:steam 1.7s ease-in-out .28s infinite;transform-origin:center;%7D.steam3%7Banimation:steam 1.7s ease-in-out .56s infinite;transform-origin:center;%7D.cup%7Banimation:cup 2.4s ease-in-out infinite;transform-origin:58px 70px;%7D.ring%7Banimation:ring 2.1s ease-in-out infinite;transform-origin:center;%7D.bean%7Banimation:bean 2.3s ease-in-out infinite;transform-origin:center;%7D@keyframes steam%7B0%25%7Bopacity:0;transform:translateY(8px) scale(.94);%7D35%25%7Bopacity:1;%7D100%25%7Bopacity:0;transform:translateY(-12px) scale(1.04);%7D%7D@keyframes cup%7B0%25,100%25%7Btransform:translateY(0) rotate(0deg);%7D45%25%7Btransform:translateY(-2px) rotate(-1.5deg);%7D72%25%7Btransform:translateY(1px) rotate(1deg);%7D%7D@keyframes ring%7B0%25,100%25%7Bopacity:.75;transform:scale(1);%7D50%25%7Bopacity:1;transform:scale(1.035);%7D%7D@keyframes bean%7B0%25,100%25%7Btransform:translateY(0) rotate(0deg);%7D50%25%7Btransform:translateY(-3px) rotate(8deg);%7D%7D%3C/style%3E%3Ccircle class='ring' cx='58' cy='58' r='49' fill='%23FFF9F2' stroke='%23E8D6C4' stroke-width='2'/%3E%3Ccircle cx='58' cy='58' r='39' fill='%23F2E3D4'/%3E%3Cg class='steam' stroke='%238A6548' stroke-width='4' stroke-linecap='round'%3E%3Cpath class='steam1' d='M46 41C40 34 51 30 46 23'/%3E%3Cpath class='steam2' d='M58 39C52 31 64 28 58 19'/%3E%3Cpath class='steam3' d='M70 41C64 34 75 30 70 23'/%3E%3C/g%3E%3Cg class='cup'%3E%3Cpath d='M36 54H70V68C70 78 62 86 52 86C43 86 36 79 36 70V54Z' fill='%23A1744F'/%3E%3Cpath d='M40 58H66V68C66 75 60 81 53 81H51C45 81 40 76 40 70V58Z' fill='%23BE8B61'/%3E%3Cpath d='M70 59H76C82 59 86 63 86 69C86 75 82 79 76 79H68' stroke='%23A1744F' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M31 88H78' stroke='%238A6548' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg class='bean'%3E%3Cellipse cx='82' cy='38' rx='7' ry='10' transform='rotate(28 82 38)' fill='%23603D1C' opacity='.9'/%3E%3Cpath d='M80 31C85 35 85 41 80 45' stroke='%23D7B18B' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

#ajax-loading::after {
  content: "";
  position: absolute;
  top: calc(50% + 74px);
  left: 50%;
  transform: translateX(-50%);

  color: #6f5a4d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  animation: ajaxLoaderText 1.7s ease-in-out infinite;
}

@keyframes ajaxLoaderText {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 1;
  }
}


/* ================================
   Basic styles
   ================================ */

header {
  padding: 25px 20px;
  display: flex;
  align-items: center;
  margin: 0 0 50px 0;
  position: relative;
  z-index: 3;
}

header[data-guest="0"]{
  justify-content: flex-end;
}

header .profile-block {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
}

header .logout {
  margin: 0 0 0 20px;
  background: #d5d5d5;
  /* background: linear-gradient(to top, #603d1c 0%, #7a5127 100%); */
  border: none;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 12px;
  color: #222;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

header .logout:hover {
  background-color: #d0d0d0;
}

header .languages {
  margin: 0 20px 0 0;
  display: flex;
}

header .languages button {
  border: 0;
  background-color: transparent;
  position: relative;
  height: 20px;
  font-size: 12px;
  line-height: 12px;
  color: #222;
}

header .languages button.active {
  color: #999;
}

header .languages::before {
  content: '';
  display: block;
  height: 20px;
  width: 20px;
  background-color: #999;
  -webkit-mask-image: url(../images/globe-solid.svg);
  mask-image: url(../images/globe-solid.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: center;
  mask-position: center;
  margin: 0 10px 0 0;
}

header .profile-link {
  position: relative;
  width: 30px;
  height: 30px;
  font-size: 0px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .profile-link::before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
  height: 16px;
  width: 16px;
  background-color: #999;
  -webkit-mask-image: url(../images/user-solid.svg);
  mask-image: url(../images/user-solid.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto 16px;
  mask-size: auto 16px;
  -webkit-mask-position: center;
  mask-position: center;
}

header .logotype {
  display: block;
  position: absolute;
  top: 0;
  min-width: 100px;
  height: 68px;
  background-image: url(../images/logotype_mini.svg);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: 50px auto;

  text-decoration: none;
  color: #603d1c;
  padding: 0 0 0 60px;
  font-size: 20px;
  font-weight: 300;
  line-height: 68px;
}

#main {
  position: relative;
  z-index: 2;
}

#main .container:not(.breadcrumb) {
  max-width: 1120px;
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 70px 24px 90px 24px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 241, 0.94));
  box-shadow:
    0 24px 70px rgba(72, 48, 31, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
}

#main .container .contacts,
#main .container .legal-info {
  margin-top: auto;
  text-align: center;
  padding: 30px 0 0 0;
}

#main .container .legal-info .payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0 0;
}

#main .container .legal-info .payments img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 18px;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#main .container .legal-info .payments img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Подстройка размеров под конкретные логотипы */
#main .container .legal-info .payments img[alt*="Visa"],
#main .container .legal-info .payments img[title*="Visa"] {
  height: 13px;
}

#main .container .legal-info .payments img[alt*="Mastercard"],
#main .container .legal-info .payments img[title*="Mastercard"] {
  height: 18px;
}

#main .container .legal-info .payments img[alt*="UnionPay"],
#main .container .legal-info .payments img[title*="UnionPay"] {
  height: 18px;
}

#main .container .legal-info .payments img[alt*="3D"],
#main .container .legal-info .payments img[title*="3D"] {
  height: 18px;
}

#main .container .legal-info .payment-logo--secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7f7068;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

#main .container .legal-info .payment-logo--secure i {
  color: #603d1c;
  font-size: 12px;
  opacity: 0.72;
}

#main .container .legal-info a:link,
#main .container .legal-info a:visited {
  color: #999;
  font-size: 12px;
  margin: 0 10px;
}

#main .container[data-site-page-action="points"]:not(.breadcrumb) {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  /* transition: 0.2s ease-in-out; */
}

#main .container.scrolldown[data-site-page-action="points"]:not(.breadcrumb) {
  height: 100px!important;
  min-height: 100px!important;
  overflow: hidden;
  bottom: 0px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

#main > .breadcrumb,
#main > nav.breadcrumb,
#main > ol.breadcrumb,
#main .breadcrumb.container {
  max-width: 1120px;
  margin: -28px auto 18px auto;
  padding: 0 24px;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}

#main .breadcrumb a {
  color: #8a7b72;
  text-decoration: none;
}

#main .breadcrumb a:hover {
  color: #603d1c;
  text-decoration: underline;
}

#main .breadcrumb .breadcrumb-item,
#main .breadcrumb .breadcrumb-item.active {
  color: #9b8f86;
}

#main .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #c0b6af;
}

/* ================================
   Legal pages
   ================================ */

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  color: #2d2520;
}

.legal-page__header {
  margin: 0 0 30px 0;
  text-align: center;
}

.legal-page__header h1 {
  margin: 0;
  color: #2d2520;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.legal-page__content {
  padding: 36px 42px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(96, 61, 28, 0.08);
  box-shadow: 0 18px 45px rgba(72, 48, 31, 0.08);
}

.legal-page__content h2 {
  margin: 36px 0 14px 0;
  color: #603d1c;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-page__content h2:first-child {
  margin-top: 0;
}

.legal-page__content h3 {
  margin: 26px 0 12px 0;
  color: #4f3018;
  font-size: 17px;
  font-weight: 600;
}

.legal-page__content p {
  margin: 0 0 14px 0;
  color: #4d443e;
  font-size: 15px;
  line-height: 1.72;
}

.legal-page__content ol,
.legal-page__content ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
  color: #4d443e;
}

.legal-page__content li {
  margin: 0 0 9px 0;
  font-size: 15px;
  line-height: 1.65;
}

.legal-page__content a {
  color: #603d1c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__content strong,
.legal-page__content b {
  color: #2d2520;
}



/* ================================
   Contacts page
   ================================ */

.contacts-page {
  max-width: 860px;
  margin: 0 auto;
  color: #2d2520;
}

.contacts-page__header {
  margin: 0 0 30px 0;
  text-align: center;
}

.contacts-page__header h1 {
  margin: 0;
  color: #2d2520;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contacts-page__card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(96, 61, 28, 0.08);
  box-shadow: 0 14px 34px rgba(72, 48, 31, 0.07);
}

.contacts-page__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 61, 28, 0.08);
  color: #603d1c;
  font-size: 18px;
}

.contacts-page__body {
  flex: 1 1 auto;
  min-width: 0;
}

.contacts-page__body h2 {
  margin: 0 0 7px 0;
  color: #603d1c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.contacts-page__text {
  color: #4d443e;
  font-size: 15px;
  line-height: 1.65;
}

.contacts-page__text a {
  color: #603d1c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================
   Profile menu desktop
   ================================ */

.nav.profilemenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 26px auto 0 auto;
  padding: 0;
  list-style: none;
}

.nav.profilemenu li {
  min-width: 0;
}

.nav.profilemenu li a,
.nav.profilemenu li a:link,
.nav.profilemenu li a:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 108px;
  padding: 18px 14px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(96, 61, 28, 0.08);
  color: #4d443e;
  text-decoration: none;

  box-shadow: 0 12px 28px rgba(72, 48, 31, 0.06);
  transition: all 0.2s ease;
}

.nav.profilemenu li a:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 61, 28, 0.16);
  box-shadow: 0 16px 34px rgba(72, 48, 31, 0.1);
}

.nav.profilemenu li a i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  margin: 0 0 10px 0;
  border-radius: 15px;

  background: rgba(96, 61, 28, 0.08);
  color: #603d1c;
  font-size: 18px;
}

.nav.profilemenu li a span {
  display: block;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.nav.profilemenu li.active a {
  background: rgba(255, 255, 255, 0.92);
  color: #603d1c;
  border-color: rgba(96, 61, 28, 0.14);
  box-shadow: 0 12px 28px rgba(72, 48, 31, 0.06);
}

.nav.profilemenu li.active a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(72, 48, 31, 0.08);
}

.nav.profilemenu li.active a i {
  background: #603d1c;
  color: #fff;
}

.nav.profilemenu li.active a span {
  color: #603d1c;
}

/* ================================
   Modal windows
   ================================ */

.modal-backdrop.show {
  opacity: 0.48;
  background-color: #2d2520;
}

.modal-content {
  overflow: hidden;
  border: 1px solid rgba(96, 61, 28, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 241, 0.98));
  box-shadow:
    0 26px 70px rgba(72, 48, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(96, 61, 28, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.modal-title {
  margin: 0;
  color: #2d2520;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.modal-header .btn-close,
.modal-header .close {
  width: 36px;
  height: 36px;
  margin: -6px -8px -6px auto;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(96, 61, 28, 0.06);
  opacity: 1;
  transition: all 0.18s ease;
}

.modal-header .btn-close:hover,
.modal-header .close:hover {
  background-color: rgba(96, 61, 28, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  color: #2d2520;
  font-size: 15px;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px 24px 24px;
  border-top: 0;
  background: transparent;
}

/* Modal buttons */
.modal-footer .btn,
.modal-body .btn {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  transition: all 0.2s ease;
}

.modal-footer .btn-primary,
.modal-body .btn-primary {
  border: 1px solid rgba(96, 61, 28, 0.14);
  background: linear-gradient(135deg, #7a4a24 0%, #4f3018 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(96, 61, 28, 0.2);
}

.modal-footer .btn-primary:hover,
.modal-body .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(96, 61, 28, 0.24);
}

.modal-footer .btn-primary:active,
.modal-body .btn-primary:active {
  transform: translateY(1px);
}

.modal-footer .btn-secondary,
.modal-footer .btn-default,
.modal-body .btn-secondary,
.modal-body .btn-default {
  border: 1px solid rgba(96, 61, 28, 0.08);
  background: rgba(96, 61, 28, 0.06);
  color: #5f544d;
  box-shadow: none;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-default:hover,
.modal-body .btn-secondary:hover,
.modal-body .btn-default:hover {
  background: rgba(96, 61, 28, 0.1);
  color: #2d2520;
}

/* Modal radio chips */
.modal-body label:has(input[type="radio"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 7px 9px 0;
  cursor: pointer;
  user-select: none;
}

.modal-body label:has(input[type="radio"]) input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.modal-body label:has(input[type="radio"]) span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.06);
  border: 1px solid rgba(96, 61, 28, 0.08);
  color: #5f544d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  transition: all 0.18s ease;
}

.modal-body label:has(input[type="radio"]):hover span {
  background: rgba(96, 61, 28, 0.1);
  color: #603d1c;
}

.modal-body label:has(input[type="radio"]) input[type="radio"]:checked + span {
  background: #603d1c;
  border-color: #603d1c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(96, 61, 28, 0.16);
}

/* ================================
   Universal pagination
   ================================ */

.app-pager-wrap {
  margin-top: 18px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  justify-content: center !important;
}

.app-pager-wrap ul.pagination,
.app-pager-wrap .pagination,
ul.pagination.app-pagination,
.pagination.app-pagination {
  margin: 0 !important;
  padding: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;

  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(96, 61, 28, 0.08) !important;
  box-shadow: 0 12px 28px rgba(72, 48, 31, 0.07) !important;

  list-style: none !important;
}

.app-pager-wrap .pagination > li,
.pagination.app-pagination > li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.app-pager-wrap .pagination > li > a,
.app-pager-wrap .pagination > li > span,
.pagination.app-pagination > li > a,
.pagination.app-pagination > li > span {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #603d1c !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  transition: all 0.18s ease !important;
}

.app-pager-wrap .pagination > li > a:hover,
.pagination.app-pagination > li > a:hover {
  background: rgba(96, 61, 28, 0.07) !important;
  color: #603d1c !important;
}

.app-pager-wrap .pagination > li.active > a,
.app-pager-wrap .pagination > li.active > span,
.pagination.app-pagination > li.active > a,
.pagination.app-pagination > li.active > span {
  background: #603d1c !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(96, 61, 28, 0.22) !important;
}

.app-pager-wrap .pagination > li.disabled > a,
.app-pager-wrap .pagination > li.disabled > span,
.pagination.app-pagination > li.disabled > a,
.pagination.app-pagination > li.disabled > span {
  opacity: 0.42 !important;
  pointer-events: none !important;
}

#mainModal.chat-modal .modal-header {
  display: flex;
  align-items: center;
}

#mainModal.chat-modal .modal-title {
  margin: 0;
}

#mainModal.chat-modal .ai-chat-operator-header {
  margin-left: auto;
  margin-right: 12px;

  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(96, 61, 28, 0.08);
  color: #603d1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}

#mainModal.chat-modal .ai-chat-operator-header:hover {
  background: #603d1c;
  color: #fff;
  transform: translateY(-1px);
}

#mainModal.chat-modal .btn-close {
  margin: 0;
}

#mainModal.chat-modal .ai-chat-operator-header:disabled {
  opacity: .55;
  pointer-events: none;
}




/* ================================
   Basic responsive Mobile
   ================================ */

@media (max-width: 768px) {
  html,
  body {
    min-width: 320px;
    overflow-x: hidden;
    min-height: 100vh;
  }

  header {
    min-height: 64px;
    padding: 12px 16px;
    margin: 0 0 24px 0;
  }

  header .logotype {
    height: 56px;
    line-height: 56px;
    background-size: 38px auto;
    padding: 0 0 0 46px;
    font-size: 15px;
  }

  header .languages {
    margin: 0 0 0 auto;
    align-items: center;
  }

  header .languages::before {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
  }

  header .languages button {
    height: 24px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 11px;
  }

  #main {
    width: 100%;
  }

  #main .container:not(.breadcrumb) {
    width: calc(100% - 24px);
    min-height: auto;
    margin: 0 auto 24px auto;
    padding: 42px 16px 34px 16px;
    border-radius: 26px;
  }

  #main .breadcrumb.container {
    width: calc(100% - 24px);
    margin: -8px auto 14px auto;
    padding: 0;
    font-size: 12px;
  }

  #main[data-page-id="site/index"] .container:not(.breadcrumb) {
    min-height: calc(100svh - 112px);
  }

  .legal-page {
    width: 100%;
  }

  .legal-page__header {
    margin: 0 0 20px 0;
  }

  .legal-page__header h1 {
    font-size: 22px;
  }

  .legal-page__content {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .legal-page__content h2 {
    margin: 28px 0 12px 0;
    font-size: 18px;
  }

  .legal-page__content h3 {
    font-size: 16px;
  }

  .legal-page__content p,
  .legal-page__content li {
    font-size: 14px;
    line-height: 1.65;
  }

  #main .container .legal-info .payments {
    gap: 10px;
  }

  #main .container .legal-info .payments img {
    height: 16px;
  }

  #main .container .legal-info .payments img[alt*="Visa"],
  #main .container .legal-info .payments img[title*="Visa"] {
    height: 12px;
  }

  #main.menu-exist .legal-info {
    display: none;
  }

  #main.menu-exist {
    padding-bottom: 96px;
  }

  .nav.profilemenu {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;

    width: auto;
    height: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    gap: 8px;

    margin: 0;
    padding: 8px;

    list-style: none;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(96, 61, 28, 0.08);
    box-shadow: 0 14px 34px rgba(72, 48, 31, 0.14);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav.profilemenu li {
    display: block;
    min-width: 0;
    text-align: center;
  }

  .nav.profilemenu li a,
  .nav.profilemenu li a:link,
  .nav.profilemenu li a:visited {
    width: 100%;
    height: auto;
    min-height: 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 6px;
    border-radius: 16px;

    background: transparent;
    border: 0;
    box-shadow: none;

    color: #5f544d;
    text-decoration: none;
    line-height: 1.15;
    opacity: 1;
    overflow: visible;

    transition: all 0.2s ease;
  }

  .nav.profilemenu li a:hover {
    background: rgba(96, 61, 28, 0.05);
    color: #603d1c;
  }

  .nav.profilemenu li a:active {
    transform: scale(0.98);
  }

  .nav.profilemenu li a i {
    width: 34px;
    height: 34px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: rgba(96, 61, 28, 0.08);
    color: #7a4a24;

    font-size: 15px;
    line-height: 1;

    transition: all 0.2s ease;
  }

  .nav.profilemenu li a span {
    display: block;
    color: inherit;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.01em;

    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .nav.profilemenu li.active a {
    background: rgba(96, 61, 28, 0.08);
    color: #603d1c;
    transform: translateY(-1px);
  }

  .nav.profilemenu li.active a i {
    background: #603d1c;
    color: #fff;
  }

  .modal-dialog {
    margin: 14px;
  }

  .modal-content {
    border-radius: 22px;
  }

  .modal-header {
    padding: 18px 18px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px 18px;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    padding: 16px 18px 18px 18px;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  header {
    padding: 10px 12px;
  }

  header .logotype {
    background-size: 34px auto;
    padding-left: 42px;
    font-size: 14px;
  }

  header .languages::before {
    display: none;
  }

  #main .breadcrumb.container {
    width: calc(100% - 16px);
  }

  .legal-page__content {
    padding: 22px 14px;
    border-radius: 20px;
  }

  .contacts-page__card {
    padding: 18px 14px;
  }

  #main.menu-exist {
    padding-bottom: 90px;
  }

  .nav.profilemenu {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 7px;
    gap: 6px;
    border-radius: 18px;
  }

  .nav.profilemenu li a,
  .nav.profilemenu li a:link,
  .nav.profilemenu li a:visited {
    min-height: 60px;
    padding: 7px 4px;
    border-radius: 14px;
  }

  .nav.profilemenu li a i {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 14px;
  }

  .nav.profilemenu li a span {
    font-size: 11px;
  }
}
