@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --primary: #003b95;
  --primary-dark: #00225c;
  --primary-light: #0052cc;
  --accent: #0c4fb4;
  --accent-hover: #1a63db;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --container-max: 1560px;
  --container-gutter: 80px;
  --footer-green: #0d4b36;
  --footer-green-dark: #073d2c;
  --footer-gold: #bd7d1e;
  --footer-ink: #1c2227;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin: 0 auto;
}

@media (max-width: 1280px) {
  :root {
    --container-gutter: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-gutter: 24px;
  }
}



h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

p {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  color: var(--footer-ink);
  background: #fff;
}

.site-footer__main {
  position: relative;
  overflow: hidden;
  padding: 112px 0 58px;
  background: url("../images/footer.png") center top / cover no-repeat;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(760px, 2.8fr);
  gap: 66px;
  align-items: start;
}

.footer-brand__logo {
  display: inline-block;
  color: var(--footer-green);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand__logo span {
  color: var(--footer-gold);
}

.footer-brand__tagline {
  margin: 12px 0 0;
  color: #4d555b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-brand__line {
  display: block;
  width: 46px;
  height: 2px;
  margin: 34px 0 36px;
  background: var(--footer-gold);
}

.footer-brand__copy {
  max-width: 260px;
  margin: 0;
  color: #343b42;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(13, 75, 54, 0.55);
  border-radius: 50%;
  color: var(--footer-green);
  font-size: 15px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.footer-social a:hover {
  border-color: var(--footer-green);
  background: var(--footer-green);
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.35fr;
  gap: 12px;
}

.footer-col {
  min-width: 0;
  padding: 0 28px;
  border-left: 1px solid rgba(29, 35, 40, 0.08);
}

.footer-col:first-child {
  border-left: 0;
  padding-left: 0;
}

.footer-col h3 {
  margin: 0;
  color: var(--footer-green);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 22px 0 34px;
  background: var(--footer-gold);
}

.footer-col ul {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-contact li {
  color: #333a41;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.footer-col a {
  transition: color 0.22s ease;
}

.footer-col a:hover {
  color: var(--footer-green);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-contact i {
  width: 18px;
  margin-top: 3px;
  color: #23272c;
  font-size: 16px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(29, 35, 40, 0.12);
}

.footer-bottom-row p {
  margin: 0;
  color: #2b333a;
  font-size: 14.5px;
  font-weight: 600;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-legal a {
  position: relative;
  color: #2b333a;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.22s ease;
}

.footer-legal a:hover {
  color: var(--footer-green);
}

.footer-legal a + a::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(29, 35, 40, 0.25);
  transform: translateY(-50%);
}

@media (max-width: 1280px) {
  .site-footer__main {
    padding: 88px 0 50px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .footer-brand {
    max-width: 720px;
  }

  .footer-brand__copy {
    max-width: 520px;
  }

  .footer-links {
    grid-template-columns: 1.2fr 1fr 1.35fr;
  }

  .footer-col {
    padding: 0 20px;
  }
}

@media (max-width: 980px) {
  .site-footer__main {
    padding: 70px 0 42px;
    background-position: 64% top;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 38px;
  }

  .footer-col {
    border-left: 0;
    padding: 0;
  }

  .footer-bottom-row {
    margin-top: 48px;
    padding-top: 30px;
  }
}

@media (max-width: 640px) {
  .site-footer__main {
    padding: 50px 0 34px;
    background-position: 70% top;
  }

  .footer-brand__logo {
    font-size: 28px;
  }

  .footer-brand__tagline {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .footer-brand__line {
    margin: 24px 0 24px;
  }

  .footer-social {
    gap: 14px;
    margin-top: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col h3::after {
    margin: 15px 0 18px;
  }

  .footer-col ul {
    gap: 14px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
  }
}
