/* Shared typography, project navigation and footer — all standalone pages. */
:root {
  --font-family: 'Golos Text', sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
}

.wordmark {
  font-weight: 700;
}

.site-footer {
  display: block;
  padding: 0;
  border: 0;
  font-size: 14px;
  color: var(--fg);
}

.site-footer-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding: 75px 0 105px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -.02em;
}

.site-footer-main > * {
  min-width: 0;
}

.site-footer-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.site-footer-email a {
  overflow-wrap: anywhere;
}

.site-footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 26px;
}

.site-footer-description {
  max-width: 392px;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.site-footer-social,
.site-footer-social > a,
.site-footer-telegram {
  display: flex;
  align-items: center;
}

.site-footer-social {
  flex-wrap: wrap;
  gap: 12px 34px;
}

.site-footer-social > a,
.site-footer-telegram {
  gap: 8px;
  white-space: nowrap;
}

.site-footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.site-footer-feedback {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer-feedback:empty {
  display: none;
}

.site-footer img {
  display: block;
  flex: none;
}

.dark .site-footer img {
  filter: invert(1);
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.site-footer-bottom > :last-child {
  justify-self: end;
}

/* Contact details now live in the same footer on every page. */
.tariffs-case .tariff-next,
.story-projects {
  padding: 0;
}

.project-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 20px;
  margin-bottom: 0;
  border-top: 1px solid var(--rule);
}

.project-nav-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 28px 32px;
  border: 0;
  border-radius: 8px;
  background: #f6f6f3;
  color: var(--fg);
  font-family: var(--font-family);
  transition: background .2s ease;
}

.project-nav-next {
  grid-template-columns: minmax(0, 1fr) 120px;
  text-align: right;
}

.project-nav-preview {
  margin: 0;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--card);
}

.project-nav-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-nav-next .project-nav-preview {
  grid-column: 2;
  grid-row: 1;
}

.project-nav-next .project-nav-copy {
  grid-column: 1;
  grid-row: 1;
}

.project-nav-copy {
  min-width: 0;
}

.project-nav-direction {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-navigation .project-nav-copy h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.project-nav-copy p {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.02em;
  color: var(--muted);
}

.project-nav-card:hover {
  background: #eeeee9;
}

.dark .project-nav-card {
  background: #242422;
}

.dark .project-nav-card:hover {
  background: #30302c;
}

.tariffs-case .project-navigation {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .site-footer-social {
    gap: 12px 24px;
  }
}

@media (max-width: 850px) {
  .project-navigation {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .site-footer-main {
    grid-template-columns: minmax(0, 1fr);
    padding: 55px 0 65px;
    gap: 32px;
  }

  .site-footer-navigation {
    padding-top: 0;
  }

  .site-footer-description {
    max-width: 430px;
    font-size: 22px;
  }

  .site-footer-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 12px;
  }

  .site-footer-bottom > span {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .project-nav-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px;
  }

  .project-nav-next {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .project-nav-preview {
    width: 88px;
    height: 66px;
  }

  .project-navigation .project-nav-copy h2 {
    font-size: 21px;
  }

  .project-nav-copy p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-nav-card {
    transition: none;
  }
}
