/* Desktop: 78:372 / 2067:193. Mobile: 1950:1839 */

.footer {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--header-bg, #3E4348);
  color: #fff;
  box-sizing: border-box;
}

.footer__inner {
  box-sizing: border-box;
  margin: 0 auto;
}

.footer__columns {
  box-sizing: border-box;
}

/* —— Desktop: 5 columns in one row (Figma 78:372) —— */
@media (min-width: 993px) {
  .footer__inner {
    padding: 80px 0 24px;
  }

  .footer__columns {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 34px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 56px;
    padding: 0 14.8% 0 9.3%;
  }

  .footer__block--subscribe {
    flex: 0 0 auto;
    width: 280px;
    max-width: 320px;
  }

  .footer__nav-grid {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    /* gap: 48px 64px; */
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
  }

  .footer__nav-grid .footer__column {
    flex: 0 1 auto;
    min-width: 0;
  }

  .footer__column--download {
    flex: 0 0 auto;
    width: 260px;
    max-width: 300px;
  }

  .footer__column--download .footer__social {
    margin-top: 8px;
  }

  .footer__block--legal {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0.4;
  }

  .footer__copyright {
    justify-content: center;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .footer__inner {
    padding: 64px 32px 24px;
  }

  .footer__columns {
    flex-wrap: wrap;
    gap: 34px;
  }

  .footer__nav-grid {
    flex: 1 1 100%;
    flex-wrap: wrap;
    /* gap: 40px 48px; */
  }
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__brand-logo {
  display: block;
  width: 123px;
  height: 38px;
}

.footer .footer__heading {
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.27;
  color: #fff;
}

.footer .footer__text {
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.41;
  color: #fafafa;
}

.footer__text--muted {
  opacity: 0.7;
}

.footer__subscribe-field {
  position: relative;
  display: flex;
  align-items: center;
}

.footer__subscribe-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1.5px solid #fafafa;
  border-radius: 4px;
  background: transparent;
  color: #fafafa;
  font-family: Poppins, var(--font-konnect);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.footer__subscribe-input::placeholder {
  color: #fafafa;
  opacity: 0.4;
}

.footer__subscribe-input:focus {
  outline: none;
  border-color: rgba(250, 250, 250, 0.8);
}

.footer__subscribe-btn {
  position: absolute;
  top: 50%;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.footer__subscribe-btn:hover {
  opacity: 0.75;
}

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

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  font-family: var(--font-konnect);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fafafa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__support-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__support-item {
  font-family: var(--font-konnect);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fafafa;
}

.footer__support-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__support-item a:hover {
  color: var(--color-gold);
}

.footer__download {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.footer__qr {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.footer__store-badges {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 100px;
}

.footer__store-link {
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__store-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer__store-link img {
  display: block;
  width: 100%;
  max-width: 110px;
  height: auto;
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fafafa;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover {
  opacity: 0.75;
}

.footer__social-link img {
  display: block;
  flex-shrink: 0;
}

.footer__copyright {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-family: Poppins, var(--font-konnect);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}

.footer__copyright-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__text--mobile,
.footer__subscribe-btn-label,
.footer__copyright-text--mobile,
.footer__social--legal,
.footer__support-address-mobile {
  display: none;
}

/* —— Mobile Figma 1950:1839: logo+subscribe, Support|Categories, Quick Link, legal —— */
@media (max-width: 992px) {
  .footer__inner {
    max-width: none;
    margin: 0 auto;
    padding: 38px 23px 29px;
  }

  .footer__columns {
    display: flex;
    flex-direction: column;
    gap: 31px;
    margin-bottom: 0;
    padding: 0;
  }

  .footer__block {
    gap: 12px;
  }

  .footer__block--subscribe {
    gap: 12px;
  }

  .footer__heading--subscribe,
  .footer__text--desktop,
  .footer__block--subscribe .footer__social {
    display: none;
  }

  .footer .footer__text--mobile {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.4);
  }

  .footer__brand-logo {
    width: 68px;
    height: 21px;
  }

  .footer .footer__heading {
    font-size: 15px;
    font-weight: 700;
    line-height: 23px;
  }

  .footer .footer__text {
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: rgba(255, 255, 255, 0.4);
  }

  .footer__subscribe {
    width: 100%;
  }

  .footer__subscribe-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .footer__subscribe-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 4px 11px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.14px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 0;
  }

  .footer__subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
    opacity: 1;
  }

  .footer__subscribe-btn {
    position: static;
    flex: 0 0 57px;
    width: 57px;
    height: 34px;
    border-radius: 0;
    background: #7EAEB6;
    transform: none;
  }

  .footer__subscribe-btn img {
    display: none;
  }

  .footer__subscribe-btn-label {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: -0.14px;
    color: #121211;
  }

  .footer__nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 23px;
    row-gap: 23px;
    width: 100%;
  }

  .footer__column--subscribe {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .footer__column--download .footer__social {
    margin-top: 12px;
  }

  .footer__column {
    gap: 11px;
  }

  .footer__links,
  .footer__support-list {
    gap: 8px;
  }

  .footer__link,
  .footer__support-item {
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.4);
  }

  .footer__support-address-desktop {
    display: none;
  }

  .footer__support-address-mobile {
    display: inline;
  }

  .footer__download {
    gap: 6px;
  }

  .footer__qr {
    width: 64px;
    height: 64px;
  }

  .footer__store-badges {
    gap: 6px;
    min-width: 0;
  }

  .footer__store-link img {
    max-width: 96px;
  }

  .footer__column--download .footer__social {
    gap: 20px;
  }

  .footer__social--legal .footer__social-link {
    width: 19px;
    height: 19px;
  }

  .footer__block--legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 31px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
    opacity: 1;
  }

  .footer__copyright {
    justify-content: flex-start;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.4);
  }

  .footer__copyright-icon,
  .footer__copyright-text--desktop {
    display: none;
  }

  .footer__copyright-text--mobile {
    display: inline;
  }

  .footer__social--legal {
    display: flex;
    gap: 11px;
  }

  .footer__copyright-icon svg {
    width: 16px;
    height: 16px;
  }
}
