/* path: src/core/static/ui/css/layout/footer.css */

/* =============================================================================
   Footer
   ============================================================================= */

.Footer{
  margin-top:0;
  padding:var(--space-7) 0 calc(120px + env(safe-area-inset-bottom));
  background:var(--surface);
  border-top:1px solid var(--divider);
}

.Footer .Container{
  padding-left:calc(var(--pad) + 2px);
  padding-right:calc(var(--pad) + 2px);
}

.Footer__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-6);
}

.Footer__brandCol,
.Footer__navCol{
  min-width:0;
}

.Footer__brand{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
}

.Footer__logo{
  display:block;
  width:auto;
  height:40px;
  max-width:100%;
}

.Footer__desc{
  max-width:360px;
  margin:var(--space-2) 0 0;
  color:var(--text-2);
  font-size:.95rem;
  line-height:1.45;
}

.Footer__contacts{
  margin-top:var(--space-5);
}

.Footer__contactChips{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-1);
}

.Footer__chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 var(--space-3);
  border:1px solid var(--divider-2);
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.025);
  color:var(--text);
  font-size:.9rem;
  line-height:1;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.Footer__contactList{
  display:grid;
  gap:6px;
  margin-top:var(--space-3);
}

.Footer__contactLink{
  display:inline-block;
  width:auto;
  max-width:100%;
  color:var(--text-2);
  font-size:.95rem;
  line-height:1.35;
  overflow-wrap:anywhere;
  transition:color .15s ease;
}

.Footer__muted{
  color:var(--text-3);
  font-size:.9rem;
  line-height:1.35;
}

.Footer__title{
  margin:0 0 var(--space-2);
  color:var(--text);
  font-family:var(--font-head);
  font-size:.95rem;
  font-weight:600;
  line-height:1.2;
}

.Footer__list{
  display:grid;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}

.Footer__list li{
  min-width:0;
}

.Footer__link{
  display:inline;
  width:auto;
  max-width:100%;
  color:var(--text-2);
  font-size:.95rem;
  line-height:1.4;
  overflow-wrap:anywhere;
  word-break:normal;
  transition:color .15s ease;
}

.Footer__bottom{
  display:grid;
  gap:var(--space-3);
  margin-top:var(--space-6);
  padding-top:var(--space-5);
  border-top:1px solid var(--divider);
}

.Footer__copyright{
  color:var(--text-2);
  font-size:var(--small);
  line-height:1.35;
}

.Footer__legal{
  display:grid;
  gap:4px;
  color:var(--text-3);
  font-size:var(--small);
  line-height:1.35;
}

@media (hover:hover){
  .Footer__brand:hover,
  .Footer__contactLink:hover,
  .Footer__link:hover{
    color:var(--accent-strong);
  }

  .Footer__chip:hover{
    background:var(--accent-soft);
    border-color:rgba(207,133,36,.35);
    color:var(--accent-strong);
  }
}

/* =============================================================================
   Tablet: 2 columns
   ============================================================================= */

@media (min-width:768px){
  .Footer{
    padding:var(--space-7) 0 var(--space-6);
  }

  .Footer__grid{
    grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);
    gap:var(--space-7) var(--space-6);
    align-items:start;
  }

  .Footer__contacts{
    margin-top:var(--space-4);
  }

  .Footer__bottom{
    grid-template-columns:1fr;
    gap:var(--space-3);
    margin-top:var(--space-6);
    padding-top:var(--space-4);
  }

  .Footer__legal{
    max-width:680px;
    text-align:left;
  }
}

/* =============================================================================
   Desktop: 4 columns
   ============================================================================= */

@media (min-width:1024px){
  .Footer__grid{
    grid-template-columns:
      minmax(240px, 1.15fr)
      minmax(190px, .9fr)
      minmax(170px, .75fr)
      minmax(260px, 1fr);
    gap:var(--space-6);
  }

  .Footer__bottom{
    grid-template-columns:minmax(180px, auto) 1fr;
    align-items:start;
    gap:var(--space-4);
  }

  .Footer__legal{
    justify-self:end;
    max-width:680px;
    text-align:right;
  }
}

@media (min-width:1200px){
  .Footer__grid{
    gap:var(--space-7);
  }
}