/* ============================================================
   DENIZ ESTATE — FOOTER v3 "Clean Authority"

   Принцип: минимум декора, максимум типографики.
   Как Apple, Notion, Stripe — но для premium real estate.

   Палитра из реального CSS сайта:
   Navy:  #1C2445
   Sky:   #8DC8E5
   ============================================================ */

:root {
  --navy: #1C2445;
  --navy-60: rgba(28, 36, 69, 0.6);
  --sky: #8DC8E5;
  --text: #1C2445;
  --text-2: #5B6577;
  --text-3: #94A3B8;
  --bg: #FFFFFF;
  --bg-2: #F6F8FB;
  --line: #E8EDF4;
  --font: 'Halvar Breitschrift', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Footer root */
.sf {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.sf-w {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ============================================================
   CTA — тонкая полоса. Не кричит. Приглашает.
   ============================================================ */
.sf-cta {
  background: var(--navy);
  color: #fff;
}

.sf-cta .sf-w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.sf-cta__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.sf-cta__sub {
  font-weight: 400;
  opacity: 0.55;
  margin-left: 6px;
}

.sf-cta__btn {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 180ms ease, transform 180ms ease;
}

.sf-cta__btn:hover {
  background: var(--sky);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   MAIN GRID — 4 колонки, чистая типографика
   ============================================================ */
.sf-main {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.sf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 1.2fr;
  gap: 48px 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

/* ============================================================
   BRAND
   ============================================================ */
.sf-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sf-brand__logo img {
  display: block;
  width: 148px;
  height: auto;
}

.sf-brand__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 260px;
}

.sf-brand__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.sf-brand__address a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.sf-brand__address a:hover {
  text-decoration: underline;
  color: var(--sky);
}

.sf-brand__office {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  cursor: copy;
  transition: color 150ms ease;
}

.sf-brand__office:hover {
  color: var(--navy);
}

.sf-brand__office.is-copied {
  color: var(--sky);
}

.sf-brand__social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.sf-brand__social a {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: color 150ms ease;
}

.sf-brand__social a:hover {
  color: var(--navy);
}

.sf-brand__social svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   NAV — чистые ссылки без декора
   ============================================================ */
.sf-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-nav__h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.sf-nav a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.3;
  transition: color 150ms ease;
}

.sf-nav a:hover {
  color: var(--navy);
}

/* ============================================================
   CONTACTS — просто, без карточек
   ============================================================ */
.sf-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-contacts__phones {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-contacts__phones a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 150ms ease;
}

.sf-contacts__phones a:hover {
  color: var(--sky);
}

.sf-contacts__phones i {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}

.sf-contacts__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sf-contacts__msg a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms ease;
}

.sf-contacts__msg a:hover {
  color: var(--navy);
}

.sf-dot {
  color: var(--text-3);
  font-size: 14px;
}

.sf-contacts__hours {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   TRUST — одна тихая строка. Не блок. Подпись.
   ============================================================ */
.sf-trust {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.sf-trust__row {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.sf-trust__item {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.sf-trust__item strong {
  font-weight: 800;
  color: var(--navy);
  margin-right: 3px;
}

/* ============================================================
   LEGAL — минимум
   ============================================================ */
.sf-legal {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.sf-legal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 12px;
  color: var(--text-3);
}

.sf-legal nav {
  display: flex;
  gap: 24px;
}

.sf-legal a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 150ms ease;
}

.sf-legal a:hover {
  color: var(--text-2);
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .sf-w { padding-left: 24px; padding-right: 24px; }

  .sf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .sf-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }

  .sf-contacts {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .sf-cta .sf-w {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .sf-cta__sub { display: block; margin-left: 0; margin-top: 4px; }

  .sf-trust__row { gap: 24px; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .sf-w { padding-left: 20px; padding-right: 20px; }

  .sf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  /* Brand — full width */
  .sf-brand {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 16px;
  }

  .sf-brand__desc { max-width: 100%; }

  /* Каталог и Компанія — рядом */
  /* (автоматически по grid) */

  /* Контакти — full width */
  .sf-contacts {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 12px;
  }

  .sf-grid { padding-top: 40px; padding-bottom: 36px; }

  .sf-trust__row {
    gap: 12px 24px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .sf-trust__item { font-size: 12px; }

  .sf-legal__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sf-cta__btn { text-align: center; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
