@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  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 {
  --navy: #0d1b2e;
  --ink: #111c2d;
  --muted: #5b6676;
  --line: #dde2e9;
  --soft: #f3f5f8;
  --white: #fff;
  --on-navy-muted: #a9b4c4;
  --pad: clamp(20px, 4.2vw, 56px);
  --section: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Шапка */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand { color: var(--white); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; font-weight: 500; color: var(--white); }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.lang { display: flex; gap: 8px; padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid rgba(255, 255, 255, 0.3); }
.lang [aria-current] { font-weight: 700; }
.lang a:not([aria-current]) { opacity: 0.6; }
.menu-btn { display: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; padding: 10px; border: 0; background: none; color: var(--white); cursor: pointer; }
.menu-btn svg { display: block; width: 24px; height: 24px; }

/* Первый экран */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: min(82vh, 720px);
  background: var(--navy);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--pad) 72px;
  color: var(--white);
}
.hero__text .eyebrow { color: var(--on-navy-muted); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero__lead { margin-top: 24px; max-width: 26em; font-size: clamp(17px, 1.35vw, 19px); color: var(--on-navy-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  align-self: flex-start;
  margin-top: 36px;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 20px; height: 12px; }
.hero__photo { position: relative; min-height: 320px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 18%; }

/* Секции */
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.section__head p { color: var(--muted); max-width: 34em; }

/* Опыт */
.companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.companies > li { padding: 4px clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.companies > li:first-child { padding-left: 0; border-left: 0; }
.company summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; list-style: none; }
.company summary::-webkit-details-marker { display: none; }
.company__when { grid-column: 1; font-size: 15px; color: var(--muted); }
.company h3 { grid-column: 1; margin-top: 4px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.01em; }
.company__chev { display: none; grid-column: 2; grid-row: 1 / span 2; width: 12px; height: 20px; transition: transform 0.2s; }
.company p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Проекты */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.project h3 { margin-top: 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.project p { margin-top: 4px; color: var(--muted); }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* Подход */
.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); list-style: none; margin: 0; padding: 0; }
.approach li { padding: 28px 0; border-top: 1px solid var(--line); }
.approach h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.approach p { margin-top: 10px; color: var(--muted); max-width: 30em; }

/* О себе */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.about__lead { font-size: clamp(20px, 1.75vw, 25px); line-height: 1.42; letter-spacing: -0.012em; }
.about__more { margin-top: 20px; color: var(--muted); max-width: 40em; }
.focus { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.focus li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }

/* Контакт */
.contact { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); background: var(--navy); color: var(--white); }
.contact__body { display: flex; align-items: center; padding: clamp(56px, 8vw, 112px) var(--pad); }
.contact__inner { max-width: 440px; }
.contact .eyebrow { color: var(--on-navy-muted); }
.contact h2 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.contact p { margin-top: 16px; color: var(--on-navy-muted); }
.contact dl { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; font-size: 16px; }
.contact dt { color: var(--on-navy-muted); }
.contact dd { margin: 0; font-weight: 600; }
.contact dd a { border-bottom: 1px solid currentColor; }
.contact dd.todo { font-weight: 400; color: var(--on-navy-muted); }
.contact__photo { width: 100%; height: 100%; min-height: 440px; max-height: 620px; object-fit: cover; object-position: 50% 15%; }

/* Подвал */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.12); background: var(--navy); color: var(--on-navy-muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.footer a:hover { color: var(--white); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 48px var(--pad) 56px; }
  .hero__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .section__head { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__photo { aspect-ratio: 4 / 3; height: auto; min-height: 0; max-height: none; }
  .contact__inner { max-width: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header { position: relative; padding-top: 18px; padding-bottom: 18px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pad) 22px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav > a:hover { border-bottom-color: rgba(255, 255, 255, 0.12); }
  .lang { gap: 18px; padding: 18px 0 0; border-left: 0; }
  .hero__text { padding: 32px var(--pad) 36px; }
  .hero h1 { margin-top: 14px; font-size: 30px; }
  .hero__lead { margin-top: 14px; }
  .btn { align-self: stretch; justify-content: center; margin-top: 26px; }
  .section__head { margin-bottom: 20px; }
  .section__head h2 { font-size: 32px; }
  .companies { grid-template-columns: 1fr; }
  .companies > li { padding: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .company summary { padding: 18px 0; cursor: pointer; }
  .company__chev { display: block; }
  .company[open] .company__chev { transform: rotate(90deg); }
  .company p { margin: -4px 0 20px; }
  .projects { grid-template-columns: 1fr; gap: 36px; }
  .approach { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .company__chev { transition: none; }
}
