@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 {
  --paper: #f8f9fd;
  --tint: #eef0fa;
  --ink: #171d3b;
  --muted: #49536d;
  --accent: #503fbd;
  --line: #dfe3f0;
  --header-height: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-space: clamp(64px, 8vw, 112px);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

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

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

body {
  background: var(--paper);
}

h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

main,
section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

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

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(var(--header-height) - 1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.08;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
}

.menu {
  display: flex;
  gap: clamp(8px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.menu a:hover {
  background: var(--tint);
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.hero {
  padding-top: clamp(16px, 2.8vw, 38px);
}

.hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(470px, 44vw, 590px);
  overflow: hidden;
  border-radius: clamp(20px, 2.5vw, 34px);
  background: linear-gradient(125deg, #151f57, #23368d 76%);
  color: white;
}

.hero-panel {
  z-index: 1;
  width: min(54%, 650px);
  padding: clamp(32px, 5vw, 68px);
}

.hero-label {
  margin-bottom: 18px;
  color: #dce4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(46px, 5.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.047em;
  line-height: 1.02;
}

.hero-description {
  max-width: 43ch;
  margin-top: 22px;
  color: #e4e9fc;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.65;
}

.hero-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 30px;
  padding: 0 17px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  outline-color: white;
}

.hero-next:hover {
  background: rgb(255 255 255 / 12%);
}

.hero-next span {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, #000 34%);
}

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

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

.section-title {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-areas: "images copy";
  align-items: center;
  gap: clamp(32px, 6.5vw, 100px);
}

.about-images {
  grid-area: images;
}

.about-copy {
  grid-area: copy;
}

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

.about-photo {
  width: 88%;
  aspect-ratio: 3 / 2;
}

.about-illustration {
  position: relative;
  width: 45%;
  aspect-ratio: 4 / 3;
  margin-top: -23%;
  margin-left: auto;
  border: 5px solid var(--paper);
}

.about-copy p {
  max-width: 43ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.directions {
  background: white;
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(24px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}

.direction:last-child {
  padding-bottom: 0;
}

.direction h3 {
  font-size: clamp(20px, 2.05vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.direction ul {
  display: grid;
  gap: 10px;
  max-width: 77ch;
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.direction li {
  padding-left: 0.18em;
}

.direction li::marker {
  color: var(--accent);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.case {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2.2vw, 26px);
  background: white;
}

.case img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.case h3 {
  margin: clamp(19px, 2.5vw, 32px) clamp(19px, 2.5vw, 32px) 0;
  font-size: clamp(21px, 2.45vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.case p {
  margin: 10px clamp(19px, 2.5vw, 32px) clamp(24px, 3vw, 36px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.support .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 38px;
  padding: clamp(26px, 4.5vw, 60px);
  border-radius: clamp(20px, 2.5vw, 34px);
  background: linear-gradient(115deg, #202b68, #46369c);
  color: white;
}

.support .section-title {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  text-wrap: initial;
}

.support p {
  grid-column: 1;
  max-width: 57ch;
  color: #e4e9fc;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
}

.support-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  background: white;
  color: #332680;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  outline-color: white;
}

.support-button:hover {
  background: #e8e9ff;
}

.contacts {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 34px);
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.contact-grid > * {
  padding-top: 16px;
  border-top: 1px solid #cbd2e9;
}

.contact-grid address {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.contact-grid a {
  display: inline-block;
  padding-block: 4px;
}

.email {
  color: var(--accent);
}

.organization {
  margin-bottom: 0.6em;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

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

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .header-layout {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 9px;
  }

  .header-layout nav {
    flex-basis: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

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

  .menu-toggle:not([hidden]) {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    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: -6px;
  }

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

  .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;
  }

  .site-header:has(.menu-toggle[hidden]) {
    position: relative;
  }

  .hero-inner {
    min-height: 0;
    max-width: 580px;
  }

  .hero-panel {
    width: 100%;
    padding: clamp(20px, 6vw, 38px) clamp(20px, 6vw, 38px) 0;
  }

  .hero h1 {
    font-size: clamp(38px, 10.5vw, 58px);
  }

  .hero-description {
    margin-top: 16px;
  }

  .hero-next {
    margin-top: 20px;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: -12px;
    mask-image: linear-gradient(to bottom, transparent, #000 21%);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "images";
  }

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

  .support .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

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

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

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

.case-project-link {
  display: block;
  height: 100%;
  padding-bottom: clamp(24px, 3vw, 36px);
  text-decoration: none;
}

.case-project-link p {
  margin-bottom: 0;
}

.case-project-link .project-action {
  margin-inline: clamp(19px, 2.5vw, 32px);
}

.case:has(.case-project-link:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.case-project-link:focus-visible {
  outline: none;
}

.project-action {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  margin-top: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.project-action::after {
  content: "→" / "";
}

a:hover .project-action,
a.project-action:hover {
  text-decoration: underline;
}
