/* Demo index.html:1383–1418, :2424–2430, :2609–2625. Override the stock footer shell. */
.k-footer {
  position: static;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.4cqw, 20px) 24px;
  border: 0;
  background: transparent;
  color: var(--typo-primary);
}

.k-footer__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: clamp(28px, 2.8cqw, 40px);
  background: var(--bg-tertiary);
  padding: clamp(24px, 3.3cqw, 48px) var(--k-footer-card-side);
}

.k-footer__row {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 40px;
}

.k-footer__subscribe {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.k-footer__logo {
  flex: none;
  width: 85px;
  height: 80px;
}

.k-footer__title {
  font: 400 24px/1.25 "Yeseva One", serif;
  letter-spacing: normal;
}

.k-footer__field {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 24px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--bg-border);
}

.k-footer__field--invalid {
  box-shadow: inset 0 0 0 1.5px var(--raspberry-600);
}

.k-footer__field input {
  flex: 1;
  min-width: 0;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--typo-primary);
}

.k-footer__field button {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--k-gradient-accent);
  color: var(--white);
  cursor: pointer;
}

.k-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 32px 48px;
  min-width: 0;
  max-width: 100%;
}

.k-footer__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 240px;
  font-size: 14px;
  line-height: 20px;
}

.k-footer__column h2 {
  font: inherit;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--typo-brand);
}

.k-footer a,
.k-footer a:hover {
  color: inherit;
}

.k-footer__column > a,
.k-footer__column > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.k-footer [data-footer-item="phone"],
.k-footer [data-footer-item="phone2"] {
  white-space: nowrap;
}

.k-footer [data-footer-item="address"],
.k-footer [data-footer-item="email"],
.k-footer__legal > * {
  overflow-wrap: anywhere;
}

.k-footer a[data-footer-item="address"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.k-footer__legal {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--k-footer-legal-side) 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--typo-secondary);
}

@media (width >= 768px) {
  /* Drop the space reserved by OpenCart for its absolute footer.
     Mobile keeps the existing shell and bottom bar from header.css. */
  #container.k-page:has(> .k-footer) {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  #container.k-page:has(> .k-footer) > main :is(#content, #column-left, #column-right) {
    padding-bottom: 0;
  }

  .k-footer {
    margin-top: auto;
  }
}

@media (768px <= width < 1200px) {
  .k-footer__row {
    flex-wrap: nowrap;
    gap: clamp(24px, 3.9cqw, 40px);
  }

  .k-footer__subscribe {
    flex: 1 4 300px;
    min-width: 200px;
  }

  .k-footer__columns {
    grid-template-columns: repeat(3, auto);
    column-gap: clamp(24px, 4.6875cqw, 48px);
  }
}

@media (width < 768px) {
  .k-footer {
    padding-inline: 16px;
  }

  .k-footer__row,
  .k-footer__legal {
    flex-direction: column;
  }

  .k-footer__subscribe {
    flex: 0 0 auto;
  }

  .k-footer__logo {
    display: none;
  }

  .k-footer__title {
    font-size: 32px;
  }

  .k-footer__columns {
    grid-template-columns: repeat(2, minmax(0, auto));
    column-gap: 24px;
  }

  .k-footer__column[data-footer-column="contacts"] {
    grid-column: 1 / -1;
    max-width: none;
  }
}
