/* ==========================================================================
   Footer — dark main layout + minimal guest variant
   ========================================================================== */

footer.container {
  margin-top: 24px;
}

footer.container.pf-footer {
  margin-bottom: 0;
}

footer.container.pf-footer-minimal {
  margin-bottom: var(--space-20);
}

/* Светлая полоса под основным футером (как в макете карточки) */
.pf-footer-gap {
  display: block;
  flex-shrink: 0;
  height: 100px;
  background: var(--color-surface);
  pointer-events: none;
}

/*
.pf-footer {
  padding: 24px 16px 24px;
  border-radius: var(--radius-20);
  background: #171717;
  color: var(--color-text-white);
}

.pf-footer .btn--contact {
  width: 100%;
  height: 44px;
  line-height: 44px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-white);
}

.pf-footer__grid {
  display: flex;
  flex-direction: column;
}

.pf-footer__logo {
  display: inline-flex;
  margin-bottom: 24px;
}

.pf-footer__logo img {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}

.pf-footer__newsletter {
  margin-bottom: 24px;
}

.pf-footer .footer-form__title {
  margin: 0 0 10px;
  font-weight: var(--weight-600);
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-text-white);
}

.pf-footer .input.footer-form__input,
.pf-footer .footer-form__input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-10);
  background: transparent;
  color: var(--color-text-white);
}

.pf-footer .input.footer-form__input::placeholder,
.pf-footer .footer-form__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pf-footer .input.footer-form__input:hover,
.pf-footer .input.footer-form__input:focus,
.pf-footer .footer-form__input:hover,
.pf-footer .footer-form__input:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.pf-footer .footer-form__submit {
  position: absolute;
  top: 0;
  right: 8px;
  width: 36px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--color-text-white);
  cursor: pointer;
}

.pf-footer .footer-form__submit svg.icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.pf-footer .footer-menu__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  padding: 16px 8px 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-text-white);
  cursor: pointer;
}

.pf-footer .footer-menu__title svg {
  fill: none;
  width: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.pf-footer .footer-menu__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}

.pf-footer .footer-menu__links a {
  font-weight: var(--weight-600);
  font-size: 16px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.pf-footer .footer-menu__links a:hover {
  color: var(--color-btn-main--default);
}

.pf-footer .footer-phone {
  margin: 0 0 12px;
}

.pf-footer .footer-phone__big {
  font-weight: var(--weight-600);
  font-size: 26px;
  line-height: 1.2;
  color: var(--color-text-white);
  text-decoration: none;
}

.pf-footer .footer-phone__small {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.55);
}

.pf-footer__email {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: var(--weight-600);
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-text-white);
  text-decoration: none;
}

.pf-footer__email:hover {
  color: var(--color-btn-main--default);
}

.pf-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-600);
  font-size: 16px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.pf-footer__social-link .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.pf-footer__social-link:hover {
  color: var(--color-btn-main--default);
}

.pf-footer .footer-copyright {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.pf-footer .footer-copyright span {
  display: block;
}

.pf-footer__copyright--desktop {
  display: none;
}

.pf-footer__copyright-row {
  margin-top: 8px;
}
*/

/* Minimal footer — cart / my pages (Figma: footer корзина) */
.pf-footer-minimal {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-height: 52px;
  padding: var(--space-16) 0;
  box-sizing: border-box;
}

.pf-footer-minimal__left {
  font-size: var(--text-14);
  font-weight: var(--weight-400);
  line-height: normal;
  color: var(--color-text-gray-2);
}

.pf-footer-minimal__right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-30);
}

.pf-footer-minimal__email {
  font-size: var(--text-16);
  font-weight: var(--weight-600);
  line-height: normal;
  color: var(--color-text);
  text-decoration: none;
}

.pf-footer-minimal__email:hover {
  text-decoration: underline;
}

.pf-footer-minimal__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pf-footer-minimal__phone-number {
  display: block;
  font-size: var(--text-20);
  font-weight: var(--weight-600);
  line-height: normal;
  color: var(--color-text);
  text-decoration: none;
}

.pf-footer-minimal__phone-note {
  display: block;
  margin-top: 0;
  font-size: var(--text-14);
  font-weight: var(--weight-400);
  line-height: normal;
  color: var(--color-text-gray-2);
}

/*
@media (max-width: 767px) {
  .pf-footer .footer-menu.dropdown .footer-menu__links {
    display: none;
    padding-top: 8px;
  }

  .pf-footer .footer-menu.dropdown.is-open .footer-menu__links {
    display: flex;
  }

  .pf-footer .footer-menu.dropdown.is-open .footer-menu__title svg {
    transform: rotate(90deg);
  }

  .pf-footer__column--brand .pf-footer__copyright--desktop {
    display: none;
  }
}
*/

@media (min-width: 768px) {
  /*
  .pf-footer {
    padding: 32px 24px 48px;
  }

  .pf-footer .btn--contact {
    display: none;
  }

  .pf-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .pf-footer__column--brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
  }

  .pf-footer__newsletter {
    max-width: 324px;
    margin-bottom: 32px;
  }

  .pf-footer .input.footer-form__input,
  .pf-footer .footer-form__input {
    height: 53px;
  }

  .pf-footer .footer-form__submit {
    height: 53px;
  }

  .pf-footer .footer-menu__title {
    height: auto;
    padding: 0;
    border-top: 0;
    font-size: 18px;
    line-height: 1.22;
    cursor: default;
    pointer-events: none;
  }

  .pf-footer .footer-menu__title svg.icon {
    display: none;
  }

  .pf-footer .footer-menu__links {
    margin-top: 10px;
    margin-bottom: 0;
    gap: 10px;
  }

  .pf-footer .footer-menu__links a {
    font-size: 16px;
    line-height: 1.25;
  }

  .pf-footer .footer-menu__links a:nth-child(n+9) {
    display: none;
  }

  .pf-footer .footer-phone__big {
    font-size: 20px;
    line-height: 1.2;
  }

  .pf-footer__copyright--desktop {
    display: block;
    margin-top: auto;
    padding-top: 24px;
  }

  .pf-footer__copyright-row {
    display: none;
  }
  */

  .pf-footer-minimal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
  }
}

@media (min-width: 1180px) {
  .pf-footer-gap {
    height: var(--space-32);
  }

  /*
  .pf-footer {
    padding: 40px 32px 48px;
  }

  .pf-footer__grid {
    gap: 36px;
  }

  .pf-footer__column--brand {
    flex: 0 0 401px;
    max-width: 401px;
  }
  */
}

@media (min-width: 1360px) {
  /*
  .pf-footer {
    padding: 40px 40px 48px;
  }
  */
}

/* ==========================================================================
   New footer (app-footer) — ported from pocketflame-html LayoutFooterDefault.vue
   ========================================================================== */
footer ul {
  padding-left: 0;
  margin: 0;
}
footer p {
  margin-top: 0;
}
.app-footer {
  padding-left: var(--layout-edge-gutter);
  padding-right: var(--layout-edge-gutter);
}
.app-footer__inner {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-32) var(--layout-content-inset-x);
  border-radius: var(--radius-20);
  background-color: var(--color-header-2);
}
.app-footer__logo {
  display: block;
  width: 140px;
}
.app-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.app-footer__grid {
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 60px;
}

.app-footer__brand {
  display: flex;
  flex-direction: column;
}

.app-footer__subscribe {
  display: block;
  margin-top: 40px;
}

.app-footer__subscribe-label {
  color: var(--color-text-white);
  font-size: var(--text-16);
  font-weight: var(--weight-600);
}

.app-footer__subscribe-field {
  position: relative;
  margin-top: 10px;
}

.app-footer__subscribe-input {
  box-sizing: border-box;
  width: 100%;
  height: 53px;
  padding-left: 20px;
  padding-right: 55px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-text-white);
  background-color: transparent;
  font-size: var(--text-16);
  line-height: 24px;
  color: var(--color-text-white);
}

.app-footer__subscribe-input::placeholder {
  font-family: var(--font-sans);
  font-size: var(--text-14);
  font-weight: var(--weight-400);
  color: var(--color-text-white);
  opacity: 0.3;
}

.app-footer__subscribe-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
}

.app-footer__payment-methods {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 19px;
  min-height: 20px;
}

.app-footer__payment-method {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-footer__payment-method img {
  display: block;
  max-width: none;
}

.app-footer__payment-method--mir {
  width: 51px;
  height: 14px;
}

.app-footer__payment-method--sbp {
  width: 33px;
  height: 18px;
}

.app-footer__payment-method--visa {
  width: 46px;
  height: 14px;
}

.app-footer__payment-method--mastercard {
  width: 31px;
  height: 20px;
}

.app-footer__payment-method--paykeeper {
  width: 70px;
  height: 10px;
  overflow: hidden;
}

.app-footer__copyright {
  margin-top: 32px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  color: var(--color-text-white);
  font-size: var(--text-14);
  opacity: 0.6;
}

.app-footer__copyright-note {
  display: none;
}

.app-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

.app-footer__column-title {
  margin-bottom: 5px;
  color: var(--color-text-white);
  font-size: var(--text-18);
  font-weight: var(--weight-700);
}

.app-footer__column-toggle {
  display: none;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  padding: 0;
}

.app-footer__column-link {
  display: block;
  padding-top: 5px;
  padding-bottom: 5px;
  color: var(--color-text-white);
  font-size: var(--text-16);
  font-weight: var(--weight-600);
}

.app-footer__contacts-title {
  margin-bottom: 10px;
  color: var(--color-text-white);
  font-size: var(--text-18);
  font-weight: var(--weight-700);
}

.app-footer__contacts-phone-link {
  display: block;
  white-space: nowrap;
  color: var(--color-text-white);
  font-size: 20px;
  font-weight: var(--weight-600);
}

.app-footer__contacts-phone-caption {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-14);
  font-weight: var(--weight-400);
}

.app-footer__contacts-email {
  display: block;
  margin-top: 10px;
  white-space: nowrap;
  color: var(--color-text-white);
  font-size: var(--text-16);
  font-weight: var(--weight-600);
}

.app-footer__contacts-social {
  display: flex;
  flex-direction: column;
  margin-top: 27px;
}

.app-footer__contacts-social-link {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: 5px;
  padding-bottom: 5px;
  color: var(--color-text-white);
  font-size: var(--text-16);
  font-weight: var(--weight-600);
}

@media (hover: hover) {
  .app-footer__column-link:hover {
    color: var(--color-btn-main--default);
  }

  .app-footer__contacts-phone-link:hover {
    color: var(--color-btn-main--default);
  }

  .app-footer__contacts-email:hover {
    color: var(--color-btn-main--default);
  }

  .app-footer__contacts-social-link:hover {
    color: var(--color-btn-main--default);
  }
}

@media (max-width: 1299px) {
  .app-footer__grid {
    grid-template-columns: 281px 1fr;
  }
}

@media (max-width: 1179px) {
  /* .app-footer {
    padding-bottom: 70px;
  } */

  .app-footer__grid {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }

  .app-footer__subscribe {
    margin-top: var(--space-32);
  }

  .app-footer__subscribe-label {
    font-size: var(--text-14);
  }

  .app-footer__subscribe-input {
    height: 41px;
    padding-left: 12px;
    padding-right: 40px;
  }

  .app-footer__subscribe-submit {
    width: 41px;
    height: 41px;
  }

  .app-footer__payment-methods {
    gap: 12px;
    flex-wrap: wrap;
  }

  .app-footer__copyright {
    margin-top: var(--space-24);
  }

  .app-footer__columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-footer__column-title {
    font-size: var(--text-16);
  }

  .app-footer__column-link {
    font-size: var(--text-14);
  }

  .app-footer__contacts {
    grid-column: span 2 / span 2;
  }

  .app-footer__contacts-title {
    font-size: var(--text-16);
  }

  .app-footer__contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }

  .app-footer__contacts-phone {
    order: 2;
  }

  .app-footer__contacts-social {
    margin-top: 0;
    order: 1;
  }
}

@media (max-width: 767px) {
  .pf-footer-gap {
    /* Reserve space for the fixed mobile navigation at the bottom. */
    height: calc(65px + var(--pf-bottom-menu-offset, 20px) + var(--space-16) + env(safe-area-inset-bottom));
  }

  footer.container.pf-footer-minimal {
    /* Reserve space inside the footer for the fixed mobile navigation. */
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
    padding-bottom: calc(65px + var(--pf-bottom-menu-offset, 20px) + var(--space-16) + env(safe-area-inset-bottom));
  }

  .pf-footer-minimal {
    gap: var(--space-24);
  }

  .pf-footer-minimal__right {
    flex-direction: column;
    gap: var(--space-8);
  }

  .pf-footer-minimal__phone {
    order: -1;
  }

  .app-footer {
    padding-left: 0;
    padding-right: 0;
    /* Without this Chrome anchors scroll to content below the accordion and the opened list jumps up. */
    overflow-anchor: none;
  }

  .app-footer__inner {
    /* Footer runs under the fixed mobile navigation instead of a light gap. */
    padding: var(--space-16) var(--layout-content-inset-x) calc(var(--space-16) + 65px + var(--space-8) + var(--space-16) + env(safe-area-inset-bottom));
    border-radius: var(--radius-20) var(--radius-20) 0 0;
  }

  .app-footer + .pf-footer-gap {
    display: none;
  }

  .app-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .app-footer__brand {
    order: 2;
    gap: var(--space-32);
  }

  .app-footer__subscribe {
    display: none;
  }

  .app-footer__payment-methods {
    order: 1;
    max-width: 272px;
    gap: var(--space-20);
    margin-top: 0;
  }

  .app-footer__payment-method--mir {
    width: 72px;
    height: 20px;
  }

  .app-footer__payment-method--sbp {
    width: 46px;
    height: 26px;
  }

  .app-footer__payment-method--visa {
    width: 66px;
    height: 20px;
  }

  .app-footer__payment-method--mastercard {
    width: 44px;
    height: 29px;
  }

  .app-footer__payment-method--paykeeper {
    width: 100px;
    height: 15px;
  }

  .app-footer__payment-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .app-footer__logo {
    order: 2;
  }

  .app-footer__copyright {
    order: 3;
    margin-top: 0;
    padding-bottom: 0;
  }

  .app-footer__copyright-note {
    display: block;
  }

  .app-footer__columns {
    display: flex;
    flex-direction: column;
    gap: 0;
    order: 1;
  }

  .app-footer__column {
    border: 1px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.4);
  }

  .app-footer__column--closing {
    border-bottom-color: rgba(255, 255, 255, 0.4);
  }

  .app-footer__column-title {
    margin-bottom: 0;
    padding: var(--space-16) var(--space-8) var(--space-16) 0;
    font-size: var(--text-18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .app-footer__column-toggle {
    display: flex;
  }

  .app-footer__column-toggle svg {
    transition: transform 0.3s ease;
  }

  .app-footer__column--open .app-footer__column-toggle svg {
    transform: rotate(90deg);
  }

  .app-footer__column-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }

  .app-footer__column--open .app-footer__column-body {
    grid-template-rows: 1fr;
  }

  .app-footer__column-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    min-height: 0;
    overflow: hidden;
  }

  .app-footer__column--open .app-footer__column-list {
    padding-bottom: var(--space-16);
  }

  .app-footer__column-link {
    font-size: var(--text-16);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .app-footer__contacts {
    order: -1;
    margin-top: var(--space-16);
    margin-bottom: var(--space-32);
  }

  .app-footer__contacts-title {
    font-size: var(--text-18);
  }

  .app-footer__contacts-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-30);
  }

  .app-footer__contacts-phone {
    order: 0;
  }

  .app-footer__contacts-phone-link {
    font-size: 26px;
  }

  .app-footer__contacts-email {
    margin-top: var(--space-12);
  }

  .app-footer__contacts-social {
    order: 1;
    gap: var(--space-8);
    margin-top: 0;
  }

  .app-footer__contacts-social-link {
    position: relative;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 10px var(--space-16);
    border-radius: var(--radius-8);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.13));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 8px rgba(255, 255, 255, 0.03);
    font-size: var(--text-14);
    font-weight: var(--weight-700);
  }

  /* Glass rim: bright top edge and corner glints, fading towards the bottom. */
  .app-footer__contacts-social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background:
      radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.6), transparent 20px),
      radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.45), transparent 24px),
      linear-gradient(to right, rgba(255, 255, 255, 0.06), transparent),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .app-footer__contacts-social-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
}
