/* Общие стили сайта АйТи Гео: шрифт, базовый сброс, шапка, подвал.
   Подключается первым; страничные стили (home.css / projects.css) — после него. */

@font-face {
  font-family: "Golos Text";
  src: url("../GolosText-VariableFont_wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }

.topbar-inner {
  width: min(var(--max), calc(100% - 64px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand img:first-child {
  width: auto;
  height: 36px;
  display: block;
}

.brand img:last-child {
  width: auto;
  height: 34px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--green-pale);
  outline: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 26px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid rgba(35, 34, 63, 0.10);
  color: var(--graphite);
  background: #E6E8E2;
  font-size: 14px;
  font-weight: 650;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  align-items: center;
  text-align: right;
}

.footer a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(46, 125, 50, 0.42);
  text-underline-offset: 4px;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--green-dark);
  outline: none;
}

.footer img {
  height: 42px;
  width: auto;
  filter: none;
  opacity: 1;
}

@media (max-width: 720px) {
  .footer {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 18px 28px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-links {
    justify-content: center;
    text-align: center;
  }
}
