/* ============================================================
   95 · FOOTER — «Саратовский шафран»
   ============================================================ */

.section--footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  padding-block: clamp(72px, 10vh, 128px) clamp(28px, 4vh, 44px);
  overflow: hidden;
}

/* ---------- Грантовый блок ---------- */

.section--footer .footer-grant {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(227, 164, 41, .06) 0%, transparent 55%),
    linear-gradient(160deg, #1C1812 0%, #141109 70%);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  margin-bottom: clamp(64px, 9vh, 112px);
}

.section--footer .footer-grant__label {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section--footer .footer-grant__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  margin-top: 6px;
}

.section--footer .footer-grant__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.section--footer .footer-grant__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.section--footer .footer-grant__plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(242, 236, 223, .025);
  padding: clamp(18px, 2vw, 26px) clamp(12px, 1.4vw, 18px);
  min-height: 128px;
  /* Приглушение фирменных цветов логотипов — в тон обработке фото (DESIGN §6) */
  filter: saturate(.85);
  transition: border-color .5s cubic-bezier(.16, 1, .3, 1),
              background-color .5s cubic-bezier(.16, 1, .3, 1);
}

.section--footer .footer-grant__plaque:hover {
  border-color: var(--line-gold);
  background-color: rgba(242, 236, 223, .04);
}

.section--footer .footer-grant__plaque--fasie {
  color: var(--ivory); /* текст логотипа ФСИ — через currentColor */
}

.section--footer .footer-grant__plaque svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
}

/* viewBox ПУТП шире (362 против 340 у ФСИ) — max-width в той же пропорции,
   чтобы кап-высота текста в обеих плашках была одинаковой */
.section--footer .footer-grant__plaque--putp svg {
  max-width: 256px;
}

/* Официальные растровые логотипы */
.section--footer .footer-grant__plaque img {
  display: block;
  width: 100%;
  height: auto;
}
.section--footer .footer-grant__plaque--fasie img {
  max-width: 190px;
}
.section--footer .footer-grant__plaque--vavilov img {
  width: auto;
  height: clamp(88px, 7.5vw, 100px);
}

.section--footer .footer-grant__attribution {
  color: var(--ivory-70);
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  line-height: 1.7;
  max-width: 58ch;
}

.section--footer .footer-grant__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory-50);
}

/* Мета всегда в две строки — разделитель «·» заменён структурным переносом,
   чтобы точка никогда не повисала в конце или начале строки */
.section--footer .footer-grant__meta-part {
  white-space: nowrap;
}

.section--footer .footer-grant__meta .app-no {
  text-transform: none;
}

/* ---------- Основная сетка ---------- */

.section--footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 6vh, 64px);
}

.section--footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section--footer .footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ivory);
}

.section--footer .footer-brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.section--footer .footer-brand__link:hover .footer-brand__mark {
  transform: translateY(-3px);
}

.section--footer .footer-brand__name {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.8vw, 1.8rem);
  letter-spacing: -.01em;
  line-height: 1.1;
}

.section--footer .footer-brand__tagline {
  margin-top: 18px;
  color: var(--ivory-50);
  font-size: .92rem;
  letter-spacing: .02em;
}

/* Mono-строка прижата к низу колонки — заполняет высоту против навигации */
.section--footer .footer-brand__meta {
  margin-top: auto;
  padding-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ivory-35);
}

.section--footer .footer-col__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.section--footer .footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: clamp(20px, 2.5vw, 40px);
  row-gap: 4px;
}

.section--footer .footer-nav__list a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ivory-70);
  text-decoration: none;
  font-size: .95rem;
  transition: color .4s cubic-bezier(.16, 1, .3, 1),
              transform .4s cubic-bezier(.16, 1, .3, 1);
}

.section--footer .footer-nav__list a:hover {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.section--footer .footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section--footer .footer-contacts__item {
  display: inline-block;
  padding-block: 6px;
  color: var(--ivory);
  text-decoration: none;
  font-size: .98rem;
  letter-spacing: .01em;
  border-bottom: 1px solid transparent;
  transition: color .4s cubic-bezier(.16, 1, .3, 1),
              border-bottom-color .4s cubic-bezier(.16, 1, .3, 1);
}

.section--footer .footer-contacts__item:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--line-gold);
}

.section--footer .footer-contacts__place {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ivory-50);
  font-size: .92rem;
  letter-spacing: .02em;
  line-height: 1.6;
}

/* ---------- Водяной знак ---------- */

.section--footer .footer-watermark {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 8.6vw, 8rem);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(242, 236, 223, .16) 0%, rgba(242, 236, 223, .05) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: clamp(28px, 4vh, 48px);
}

/* ---------- Нижняя строка ---------- */

.section--footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory-35);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .section--footer .footer-grant__body {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
  }

  .section--footer .footer-grant__logos {
    max-width: 560px;
  }

  .section--footer .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .section--footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section--footer .footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: clamp(40px, 6vh, 64px);
  }

  .section--footer .footer-watermark {
    margin-bottom: clamp(20px, 3vh, 32px);
  }

  /* Тап-таргеты ≥44px */
  .section--footer .footer-nav__list a {
    padding-block: 11px;
  }

  .section--footer .footer-nav__list {
    row-gap: 0;
  }

  .section--footer .footer-contacts__item {
    padding-block: 11px;
  }

  /* На узких экранах строки меты переносятся свободно */
  .section--footer .footer-grant__meta-part {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .section--footer .footer-grant {
    border-radius: 20px;
  }

  .section--footer .footer-grant__logos {
    grid-template-columns: 1fr;
  }

  .section--footer .footer-grant__plaque {
    min-height: 72px;
  }

  .section--footer .footer-grant__plaque svg {
    max-width: 210px;
  }

  .section--footer .footer-grant__plaque--putp svg {
    max-width: 224px;
  }

  .section--footer .footer-grant__plaque--fasie img {
    max-width: 180px;
  }

  .section--footer .footer-grant__plaque--vavilov img {
    height: 92px;
  }

  .section--footer .footer-watermark {
    white-space: normal;
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: 1.04;
    /* менее гаснущий градиент — вторая строка остаётся читаемой */
    background: linear-gradient(180deg, rgba(242, 236, 223, .15) 0%, rgba(242, 236, 223, .07) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .section--footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
