* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #101318;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
  background: #f2f3f5;
  color: #141414;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header,
.site-footer {
  padding: 20px 18px;
  text-align: center;
}

.site-header {
  position: relative;
  background: linear-gradient(180deg, #1b6dae 0%, #0d4778 100%);
  border-bottom: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-header .header-kicker {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-mark {
  color: #9fd8ff;
}

.site-header p,
.site-footer p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

.site-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #101318;
  border-top: 0;
  padding-top: 12px;
  padding-bottom: 20px;
  text-align: left;
}

.site-footer p {
  margin-top: 0;
  color: #fff;
  font-size: 14px;
}

.footer-contact {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
}

.footer-contact p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.footer-contact ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.site-gate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f2f3f5;
}

.gate-panel {
  display: grid;
  place-items: center;
  min-height: 560px;
  margin: 0;
  padding: 44px 18px 46px;
  border: 1px solid #d6d6d6;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 19, 24, 0.18);
}

.gate-panel-management {
  border-color: #26394b;
  background:
    linear-gradient(rgba(11, 22, 34, 0.82), rgba(40, 52, 65, 0.86)),
    url("images/refer/ref.jpg") center / cover no-repeat;
}

.gate-panel-management .gate-link {
  color: #f4f7fa;
}

.gate-panel-management .gate-title {
  color: #f4f7fa;
}

.gate-panel-management .gate-summary {
  color: #d6e0ea;
}

.gate-panel-management .gate-action {
  background: #2f6f9f;
}

.gate-panel-management .gate-link:hover .gate-action {
  background: #245a82;
}

.gate-panel-management .gate-link:focus-visible {
  outline-color: #9fd8ff;
}

.gate-panel-travel {
  border-color: #9db58f;
  background:
    linear-gradient(rgba(245, 250, 241, 0.78), rgba(222, 237, 214, 0.9)),
    url("podroze-bg.jpg") center / cover no-repeat;
}

.gate-panel-travel .gate-link {
  color: #17351f;
}

.gate-panel-travel .gate-title {
  color: #17351f;
}

.gate-panel-travel .gate-summary {
  color: #31543a;
}

.gate-panel-travel .gate-action {
  background: #2f7f55;
}

.gate-panel-travel .gate-link:hover .gate-action {
  background: #256642;
}

.gate-panel-travel .gate-link:focus-visible {
  outline-color: #2f7f55;
}

.gate-link {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  width: min(100%, 460px);
  min-height: 100%;
  padding: 10px 10px 14px;
  color: #111;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}

.gate-link:hover .gate-action {
  background: #18578f;
}

.gate-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.gate-summary {
  color: #5a5a5a;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.gate-link:focus-visible {
  outline: 2px solid #1f6fb8;
  outline-offset: 6px;
}

.gate-link img {
  display: block;
  width: min(100%, 414px);
  height: auto;
  border-radius: 6px;
}

.gate-action {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #1f6fb8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media screen and (max-width: 1000px) {
  .site-header,
  .site-footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    width: 100%;
  }

  .site-header h1 {
    font-size: 30px;
  }

  .site-gate {
    grid-template-columns: 1fr;
    padding: 28px 8px 30px;
    gap: 18px;
  }

  .gate-panel {
    min-height: auto;
    padding: 18px 10px;
    border-radius: 8px;
  }

  .gate-title {
    font-size: 24px;
  }
}
