.footer {
  width: 100%;
  height: -moz-max-content;
  height: max-content;
  border-top: 1px solid #E2E1E1;
  font-size: 14px;
}

/* ===== Content ===== */
.footer__content .row > * {
  margin: 20px 0;
}

.footer__content a,
.footer__content span {
  color: #838383;
}

.footer__content a:hover {
  color: #30314F;
}

.footer__img_block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.footer__img img {
  max-width: 95%;
}

.footer__copyright {
  margin-top: 34px;
}

.footer__legal_docs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.footer__legal_docs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #30314F;
  font-size: 14px;
  line-height: 14.07px;
  text-decoration: none;
  white-space: nowrap;
}

.footer__legal_docs a:hover {
  color: #30314F;
}

.footer__legal_docs svg {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

.footer__content .footer__block_header a {
  font-weight: bold;
  color: #30314F;
}

.footer__content .tprimary {
  color: #30314F;
}

.footer__block_group {
  margin-top: 18px;
}

.footer__buttons {
  width: -moz-max-content;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__content button {
  width: 175px;
  padding: 5px 0;
  color: #30314F;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #30314F;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.1s;
}

.footer__content button:hover {
  color: white;
  background-color: #30314F;
}

.order-6 {
  order: 6;
}

.order-10 {
  order: 10;
}

@media screen and (max-width: 1000px) {
  .footer__content .container-lg {
    max-width: 100%;
    padding: 0 22px;
  }
}

/* ===== Bottom row ===== */

.footer__socmedia {
  background: #FAFAFC;
  height: 40px;
}
.footer__socmedia_mobile{
  display: none;
}
@media screen and (max-width: 762px){
  .footer__socmedia_mobile{
    display: flex;
    justify-content: center;
    gap: 17px;
    background: #282828;
    padding: 15px 0 14px;
  }
  .footer__socmedia {
    display: none;
  }
  .footer__socmedia_mobile a{
    width: 33px;
    height: 33px;
    display: flex!important;
  }
  .footer__socmedia_mobile img{
    width: 100%;
    max-width: 33px;
    max-height: 33px;
    margin: auto;
  }

  .footer__socmedia_mobile img.footer__socmedia_mobile_dzen {
    width: 31.09px;
    height: 31.28px;
  }
}
.footer__socmedia_box {
  width: -moz-max-content;
  width: max-content;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.footer__socmedia_text {
  margin-right: 30px;
  color: #8E8E8E;
}

.footer__socmedia_items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__socmedia_item img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media screen and (max-width: 762px) {
  .footer {
    font-size: 10px;
  }

  .footer__content .container-lg {
    padding: 0 22px;
  }

  .footer__content .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
  }

  .footer__content .row > * {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .footer__content a,
  .footer__content span {
    font-size: 10px;
    line-height: 14px;
  }

  .footer__block_group {
    margin-top: 13px;
  }

  .footer__buttons,
  .footer__content button {
    width: 133px;
  }

  .footer__content button {
    height: 20px;
    padding: 0;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer__buttons iframe {
    width: 115px;
    height: 47px;
  }

  .footer__img img {
    width: 143px;
    max-width: 143px;
  }

  .footer__copyright {
    margin-top: 18px;
  }

  .footer__legal_docs {
    gap: 2px;
    margin-top: 8px;
    width: max-content;
    max-width: calc(100vw - 44px);
  }

  .footer__legal_docs a {
    gap: 4px;
    font-size: 10px;
    line-height: 9.44px;
    white-space: nowrap;
  }

  .footer__legal_docs svg {
    width: 6.5px;
    height: 6.5px;
  }
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 10001;
  width: 100%;
  min-height: 75px;
  padding: 19px 84px 19px 54px;
  background: #fff;
  color: #000;
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 586px) 128.71px;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 586px;
}

.cookie-banner__text p {
  margin: 0;
  color: #000;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
}

.cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner__accept {
  width: 128.71px;
  height: 34px;
  border: 0;
  border-radius: 2.88px;
  background: #7D7DD3;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 12.96px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
}

.cookie-banner__close {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 21px;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-banner__close span {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #D8D8D8;
}

.cookie-banner__close span:first-child {
  transform: rotate(45deg);
}

.cookie-banner__close span:last-child {
  transform: rotate(-45deg);
}

@media screen and (max-width: 1200px) {
  .cookie-banner {
    min-height: 77px;
    padding: 25px 64.5px 19px 46px;
    grid-template-columns: minmax(0, 537px) 122.48px;
    justify-content: space-between;
    gap: 18px;
  }

  .cookie-banner__text {
    gap: 5px;
    max-width: 537px;
  }

  .cookie-banner__text p {
    font-size: 11px;
    line-height: 13px;
  }

  .cookie-banner__accept {
    width: 122.48px;
    height: 32.35px;
    border-radius: 2.74px;
    font-size: 12.34px;
    line-height: 15px;
  }

  .cookie-banner__close {
    top: 6px;
    right: 5px;
    width: 18px;
    height: 14px;
  }

  .cookie-banner__close span {
    top: 7px;
    width: 15px;
  }
}

@media screen and (max-width: 520px) {
  .cookie-banner {
    width: 100%;
    min-height: 156px;
    padding: 20px 22px 20px 28px;
    grid-template-columns: minmax(0, 209px) 97px;
    grid-template-rows: 60px 60px;
    gap: 9px 19px;
    align-items: start;
    justify-content: space-between;
  }

  .cookie-banner__text {
    display: contents;
  }

  .cookie-banner__text p {
    width: 100%;
    font-size: 11px;
    line-height: 13px;
    text-align: left;
  }

  .cookie-banner__text p:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .cookie-banner__text p:last-child {
    grid-column: 1;
    grid-row: 2;
  }

  .cookie-banner__accept {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 97px;
    height: 25.62px;
    border-radius: 2.17px;
    font-size: 12.41px;
    line-height: 15px;
  }

  .cookie-banner__close {
    top: 15px;
    right: 12px;
    width: 18.24px;
    height: 14.33px;
  }

  .cookie-banner__close span {
    top: 7px;
    width: 15.64px;
  }
}


/* ===== Popups ===== */
#feedbackForm_wantCall_popup,
#feedbackForm_wantEmail_popup,
#feedbackForm_error_message,
#feedbackForm_succes_footer {
  border-radius: 10px;
}

#popup-window-content-feedbackForm_wantCall_popup input,
#popup-window-content-feedbackForm_wantEmail_popup input {
  width: 100%;
  margin-right: 20px;
  padding-left: 10px;
  border: 1px solid #A3A6A7;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 2rem;
}
#popup-window-overlay-feedbackForm_error_message,
#popup-window-overlay-feedbackForm_succes_footer,
#popup-window-overlay-feedbackForm_wantCall_popup,
#popup-window-overlay-feedbackForm_wantEmail_popup{
  width: 100vw!important;
  height: 100vh!important;
  position: fixed!important;
  top: 0;
}
/* for popup with women */
.new_popup{
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}
.new_popup img{
  position: absolute;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.new_popup img.mobile_img{
  display: none;
}
@media screen and (max-width: 757px){
  .new_popup img{
    width: 80%;
  }
  .new_popup img.mobile_img{
    display: block;
  }
  .new_popup img.desktop_img{
    display: none;
  }
}
/* Подложка */
.promo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: none;
}

/* Модалка */
.promo-modal {
  position: fixed;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  max-width: 80%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: none;
  z-index: 9999;
}

.promo-content {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
}

.promo-body {
  border-radius: 22px;
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* Левая часть — делаем шире и наезжаем */
.promo-left {
  flex: 0 0 60%;
  margin-right: -5%;
  background: url("/mebel_na_zakaz/src/img/banner_background2.webp") no-repeat right center;
  background-size: cover;
  padding: 48px 100px;
  z-index: 2;
  position: relative;
}

.promo-right {
  flex: 1;
  z-index: 1;
  position: relative;
}

.promo-right img {
  width: 101%;
  height: 100%;
  object-fit: cover;
}

.promo-left h2 {
  font-weight: bold;
  font-size: 60px;
  color: #57577D;
}

.promo-left input {
  height: 55px;
  display: block;
  width: 100%;
  margin: 13px 0;
  padding: 10px 0 19px 17px;
  font-size: 27px;
  color: #7D7DD3;
  border-radius: 11px;
  border: 2px solid #7D7DD3;
}

.promo-left input::placeholder {
  color: #7D7DD3;
  font-size: 27px;
}

.promo-btn {
  background: #7D7DD3;
  color: #fff;
  border: none;
  padding: 7px 0 12px;
  border-radius: 11px;
  font-size: 30px;
  cursor: pointer;
  width: 100%;
}

#promoModal > div > div > div.promo-left > p {
  font-size: 22px;
  color: #57577D;
}

.promo-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 28px;
  z-index: 10;
  cursor: pointer;
}

.promo-check{
  display:flex; align-items:center; gap:12px; margin:6px 0 16px; user-select:none; cursor:pointer;
}
.promo-check input{position:absolute; opacity:0; pointer-events:none}
.promo-check .check{
  width:38px; height:38px; border:2px solid #7D7DD3; border-radius:6px; display:inline-block; position:relative;
}
.promo-check input:checked + .check::after{
  content:""; position:absolute; inset:4px; background:#7D7DD3; border-radius:4px;
}
.promo-check span:last-child{color:#7D7DD3; font-size:26px}

.promo-consent{
  margin:10px 0 0; font-size:17px; color:#7A7A9F; line-height:1.35;
}
.promo-consent a{color:#7D7DD3; text-decoration:underline}
.legal-consents{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:2px 0 8px;
}
.promo-btn + .legal-consents--promo{
  margin-top:12px;
}
.legal-consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#7D7DD3;
  font-size:17px;
  line-height:1.18;
  cursor:pointer;
  position:relative;
  user-select:none;
  --legal-box-size:20px;
}
.legal-consent input{
  position:absolute;
  top:0;
  left:0;
  z-index:1;
  width:var(--legal-box-size);
  height:var(--legal-box-size);
  margin:0;
  opacity:0;
  pointer-events:auto;
  appearance:none;
}
.legal-consent__box{
  flex:0 0 auto;
  width:var(--legal-box-size);
  height:var(--legal-box-size);
  border:2px solid currentColor;
  border-radius:5px;
  position:relative;
}
.legal-consent input:checked + .legal-consent__box::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:3px;
  background:currentColor;
}
.legal-consent a{
  color:inherit;
  text-decoration:underline;
}

@media (max-width: 1300px){
  .promo-left{
    padding: 24px 50px;
  }
  .promo-left h2{
    font-size: 30px;
  }
  #promoModal > div > div > div.promo-left > p{
    font-size: 16px;
  }
  .promo-left input{
    font-size: 16px;
    padding: 10px;
  }
  .promo-left input::placeholder{
    font-size: 16px;
  }
  .promo-btn{
    font-size: 16px;
    padding: 10px;
  }
}
@media (max-width: 900px){
  .promo-modal{
    max-width: 100%;
    width: 100%;
  }
}
/* Мобильная адаптация — убираем наезд */
@media (max-width: 768px) {
  .promo-close{
    top: 0;
    right: 10px;
  }
  .promo-close img{
    width: 15px;
    height: 15px;
  }
  .promo-left {
    flex: 1 1 50%;
    margin-right: 0;
    padding: 12px;
  }
  .promo-right {
    flex: 1 1 50%;
  }
  .promo-left h2 {
    font-size: 26px;
  }
  #promoModal > div > div > div.promo-left > p{
    font-size: 12px;
  }
  .promo-left input{
    border: 1px solid #7D7DD3;
  }
  .promo-check .check{
    border: 1px solid #7D7DD3;
    width: 13px;
    height: 13px;
    border-radius: 4px;
  }
  .promo-left input,
  .promo-left input::placeholder,
  .promo-btn {
    height: 22px;
    font-size: 12px;
    padding: 0 6px;
  }
  .promo-check{
    gap: 4px;
    margin: 7px 0 9px;
  }
  .promo-check span:last-child{
    font-size: 12px;
  }
  .promo-consent{
    font-size: 10px;
  }
  .legal-consents{
    gap:6px;
    margin:0 0 6px;
  }
  .promo-btn + .legal-consents--promo{
    margin-top:7px;
  }
  .legal-consent{
    gap:7px;
    font-size:10px;
    line-height:1.04;
    --legal-box-size:13px;
  }
  .legal-consent span,
  .legal-consent a{
    line-height:1.04;
  }
  .legal-consent__box{
    border-width:1px;
    border-radius:4px;
  }
  .legal-consent input:checked + .legal-consent__box::after{
    inset:3px;
    border-radius:2px;
  }
}
