@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tint: #f4f5fb;
  --ink: #111;
  --muted: #444;
  --violet: #6951ce;
  --header-height: 60px;
  --gutter: 20px;
  --section-space: 135px;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

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

body, h1, h2, h3, p {
  margin: 0;
}

h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid #4021a0;
  outline-offset: 4px;
}

main:focus,
section:focus {
  outline: none;
}

.container {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.top-anchor {
  position: absolute;
  inset-block-start: 0;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 8px auto auto var(--gutter);
  padding: 10px 16px;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 30px;
  border-radius: 0 0 8px 8px;
  background: var(--tint);
  box-shadow: 0 12px 30px rgb(29 32 67 / 14%);
}

.brand {
  display: block;
  width: 174px;
  max-width: 100%;
}

.brand img {
  width: 100%;
}

.menu {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.menu a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: max(460px, 80vh);
  min-height: max(460px, 80svh);
  display: grid;
  padding-top: var(--header-height);
  color: white;
  background: #2b3792 url("assets/images/hero.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(1280px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
}

.hero-panel {
  width: min(588px, 49%);
  padding: 49px clamp(24px, 4.22vw, 54px) 60px;
  border-radius: 40px;
  background: rgb(120 85 237 / 90%);
}

.hero-label {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-description {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

.hero-next {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  transform: translateX(-50%);
  outline-color: white;
}

.hero-next span {
  width: 28px;
  height: 28px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-6px) scaleY(0.8) rotate(45deg);
}

.section {
  padding-block: var(--section-space);
}

.section-tinted {
  background-color: var(--tint);
}

.section-title {
  margin-bottom: 90px;
  text-align: center;
}

.about {
  padding-block: var(--section-space) 160px;
}

.about-layout {
  display: grid;
  grid-template-columns: 57fr 40fr;
  gap: 40px;
}

.about-images img {
  object-fit: cover;
  border-radius: 15px;
}

.about-photo {
  width: 80%;
  aspect-ratio: 1;
}

.about-illustration {
  position: relative;
  width: 65%;
  aspect-ratio: 429 / 264;
  margin-top: -24%;
  margin-left: auto;
}

.about-copy p {
  margin-top: 34px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
}

.directions {
  padding-bottom: calc(var(--section-space) + 30px);
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 260fr) minmax(0, 860fr);
  align-items: start;
  gap: 40px;
}

.direction + .direction {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #dedee5;
}

.direction h3 {
  color: #222;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.direction ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.66;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 100px clamp(40px, 8vw, 100px);
  max-width: 1020px;
  margin-inline: auto;
}

.case:nth-child(even) {
  margin-top: 75px;
}

.case img {
  width: 100%;
  border-radius: 40px;
}

.case h3 {
  margin-top: 20px;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.case p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.support {
  text-align: center;
}

.support .section-title {
  margin-bottom: 40px;
}

.support p {
  max-width: 680px;
  margin-inline: auto;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}

.support-button {
  display: inline-grid;
  min-height: 60px;
  width: min(260px, 100%);
  place-items: center;
  margin-top: 52px;
  padding: 12px 24px;
  border-radius: 20px;
  background: var(--violet);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.support-button:hover {
  background: #5841b3;
}

.contacts {
  padding-block: calc(var(--section-space) + 15px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-grid address {
  font-style: normal;
}

.email {
  color: #954d38;
}

.organization {
  margin-bottom: 1.55em;
}

.site-footer {
  background: #d1d4db;
}

.footer-layout {
  min-height: 155px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-block: 30px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.footer-layout .brand {
  width: 150px;
}

.footer-layout p {
  padding-top: 16px;
  text-align: center;
}

@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: 90px;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    padding-inline: var(--gutter);
    border-radius: 0;
  }

  .site-header .brand {
    width: 200px;
  }

  .site-header nav {
    flex-basis: 100%;
  }

  .menu {
    display: grid;
    gap: 0;
    padding-block: 6px 14px;
  }

  .menu a {
    width: 100%;
  }

  .menu-toggle:not([hidden]) {
    display: grid;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    display: block;
    width: 28px;
    height: 3px;
    background: currentColor;
  }

  .menu-toggle span {
    position: relative;
  }

  .menu-toggle span::before,
  .menu-toggle span::after {
    position: absolute;
    inset-inline: 0;
    content: "";
  }

  .menu-toggle span::before {
    top: -8px;
  }

  .menu-toggle span::after {
    top: 8px;
  }

  .menu-toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .menu-toggle:not([hidden])[aria-expanded="false"] + nav {
    display: none;
  }

  /* Keep the links available if JavaScript is disabled. */
  .site-header:has(.menu-toggle[hidden]) {
    position: relative;
  }

  .site-header:has(.menu-toggle[hidden]) + main .hero {
    padding-top: 0;
  }

  .hero-panel {
    width: 100%;
    padding: 26px var(--gutter) 30px;
  }

  .hero-label {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-next {
    bottom: 5px;
  }

  .hero-next span {
    width: 20px;
    height: 20px;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(1px) scaleY(0.8) rotate(45deg);
  }

  .about {
    padding-block: 145px var(--section-space);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-images img {
    width: 100%;
  }

  .about-illustration {
    aspect-ratio: 420 / 282;
    margin: 20px 0 0;
  }

  .about-copy p {
    margin-top: 16px;
    font-size: 18px;
  }

  .section-title {
    margin-bottom: 50px;
  }

  .direction {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .direction h3 {
    font-size: 21px;
  }

  .direction + .direction {
    margin-top: 32px;
    padding-top: 32px;
  }

  .case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .case:nth-child(even) {
    margin-top: 0;
  }

  .case img {
    border-radius: 30px;
  }

  .support .section-title {
    margin-bottom: 24px;
  }

  .support p, .contact-grid {
    font-size: 18px;
  }

  .support-button {
    margin-top: 34px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 12px;
  }

  .footer-layout p {
    padding-top: 0;
  }
}

@media (max-width: 530px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .organization {
    margin-bottom: 0.75em;
  }
}
