:root {
  --bg: #fcfbf8;
  --white: #ffffff;

  --blue: #0f3770;
  --blue-deep: #18385d;
  --blue-soft: #40536d;

  --muted: #768092;
  --gold: #c6a15a;
  --line: #e8e8e3;

  --container: 1380px;

  --transition-fast: 180ms ease;
  --transition-base: 220ms ease;
}

/* --------------------------------------------------
   Reset
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--blue);
  background: var(--bg);

  font-family: "Manrope", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

p {
  margin-top: 0;
}

/* --------------------------------------------------
   Accessibility
-------------------------------------------------- */

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  border-radius: 2px;
}

/* --------------------------------------------------
   Page layout
-------------------------------------------------- */

.page {
  min-height: 100vh;
  padding: 42px 56px 28px;
}

.container {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: var(--container);
  min-height: calc(100vh - 70px);

  margin: 0 auto;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

header {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 68px;

  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand .divider {
  color: var(--gold);
  font-weight: 400;
}

.brand .sub {
  color: var(--muted);
  font-weight: 400;
}

nav {
  display: flex;
  gap: 42px;

  font-size: 16px;
  color: var(--blue-soft);
}

nav a {
  position: relative;
  padding: 10px 0;

  transition: color var(--transition-fast);
}

nav a:hover {
  color: var(--blue);
}

nav a.active::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 42px;
  height: 1px;

  background: var(--gold);
}

/* --------------------------------------------------
   Homepage hero
-------------------------------------------------- */

.hero {
  position: relative;

  display: flex;
  align-items: center;
  flex: 1;

  min-height: calc(100vh - 194px);
  padding: 112px 0 82px;
}

.content {
  position: relative;
  z-index: 4;

  max-width: 740px;
}

h1 {
  margin: 0;

  font-size: clamp(56px, 6.5vw, 98px);
  line-height: 0.95;
  letter-spacing: -0.078em;
  font-weight: 700;
}

.accent {
  width: 46px;
  height: 2px;

  margin: 44px 0 40px;

  background: var(--gold);
}

.statement {
  margin: 0;

  font-size: clamp(30px, 3.25vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.06em;
  font-weight: 300;
  color: var(--blue-deep);

  white-space: nowrap;
}

.mission-line {
  width: 220px;
  height: 1px;

  margin: 54px 0 32px;

  background: var(--gold);
}

.trust {
  margin: 0 0 14px;

  font-size: clamp(20px, 1.35vw, 23px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.mission {
  max-width: 500px;
  margin: 0;

  font-size: clamp(18px, 1.22vw, 20px);
  line-height: 1.82;
  letter-spacing: -0.025em;
  color: var(--blue-soft);
}

/* --------------------------------------------------
   Globe
-------------------------------------------------- */

.globe {
  position: absolute;
  z-index: 1;

  top: 50%;
  right: -360px;

  width: 760px;
  height: 760px;

  transform: translateY(-50%);

  pointer-events: none;
  opacity: 0.78;
}

.globe img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* --------------------------------------------------
   Contacts page
-------------------------------------------------- */

.contacts-page .hero {
  align-items: flex-start;
  padding: 110px 0 90px;
}

.contacts-content {
  position: relative;
  z-index: 4;

  width: 100%;
  max-width: 720px;
}

.contacts-title {
  margin: 0;

  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 700;
  color: var(--blue);
}

.contacts-subtitle {
  max-width: 560px;
  margin: 34px 0 74px;

  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.7;
  letter-spacing: -0.025em;
  color: var(--blue-soft);
}

.contact-section {
  padding: 34px 0 38px;
  border-top: 1px solid rgba(198, 161, 90, 0.26);
}

.contact-section h2 {
  margin: 0 0 8px;

  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--blue);
}

.section-note {
  margin: 0 0 24px;

  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.018em;
  color: var(--muted);
}

.link-list {
  display: grid;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 62px;
  padding: 18px 0;

  border-top: 1px solid rgba(232, 232, 227, 0.82);

  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: var(--blue-deep);

  transition:
    color var(--transition-base),
    border-color var(--transition-base);
}

.contact-link:first-child {
  border-top: 0;
}

.contact-link span {
  flex: 0 0 auto;

  color: var(--gold);

  transition: transform var(--transition-base);
}

.contact-link:hover {
  color: var(--blue);
}

.contact-link:hover span,
.contact-link:focus-visible span {
  transform: translateX(6px);
}

.security-note {
  max-width: 560px;
  margin: 22px 0 0;
  padding-top: 32px;

  border-top: 1px solid rgba(198, 161, 90, 0.26);

  color: var(--blue-soft);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.contacts-page .globe {
  opacity: 0.18;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

footer {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;

  min-height: 56px;

  border-top: 1px solid rgba(198, 161, 90, 0.18);

  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width: 1050px) {
  .globe {
    right: -600px;
    opacity: 0.18;
  }

  .statement {
    white-space: normal;
  }
}

/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 720px) {
  .page {
    padding: 28px 22px 22px;
  }

  header {
    min-height: 0;
    padding-bottom: 22px;

    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .brand {
    flex-wrap: wrap;
    font-size: 18px;
  }

  nav {
    gap: 30px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding: 84px 0;
  }

  h1 {
    font-size: clamp(54px, 17vw, 80px);
  }

  .statement {
    font-size: clamp(30px, 8.8vw, 44px);
  }

  .mission-line {
    width: 160px;
  }

  .globe {
    display: none;
  }

  .contacts-page .hero {
    padding: 76px 0 88px;
  }

  .contacts-subtitle {
    margin-bottom: 54px;
  }

  .contact-section {
    padding: 30px 0 34px;
  }

  .contact-link {
    font-size: 21px;
  }
}

/* --------------------------------------------------
   Small mobile
-------------------------------------------------- */

@media (max-width: 420px) {
  .page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    gap: 9px;
    font-size: 16px;
  }

  nav {
    gap: 24px;
  }

  .hero {
    padding-top: 68px;
  }

  .statement {
    font-size: clamp(28px, 9vw, 36px);
  }

  .mission {
    font-size: 17px;
    line-height: 1.72;
  }

  .contact-link {
    gap: 16px;
    font-size: 19px;
  }
}

/* --------------------------------------------------
   Reduced motion
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}