@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url("../fonts/sofia-sans-extra-condensed/cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url("../fonts/sofia-sans-extra-condensed/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 {
  color-scheme: light;
  --bg: #f3f2ed;
  --surface: #fff;
  --surface-soft: #e9e8e2;
  --text: #0e0f0d;
  --muted: #5d6059;
  --line: #b8b9b2;
  --accent: #d9ff37;
  --accent-text: #10120a;
  --shadow: 0 18px 50px rgb(15 17 12 / 8%);
  --radius: 14px;
  --container: 1440px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11130f;
  --surface: #191c17;
  --surface-soft: #232720;
  --text: #f3f4ed;
  --muted: #adb1a6;
  --line: #41463c;
  --accent: #d9ff37;
  --accent-text: #10120a;
  --shadow: 0 20px 60px rgb(0 0 0 / 24%);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  text-shadow: 4px 4px 1px #000;
}

html[data-theme="dark"] .services-cta h2,
html[data-theme="dark"] .contact-section h2 {
  text-shadow: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -3px var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.lang-link,
.menu-button {
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  font-size: 18px;
}

.lang-link {
  min-width: 47px;
  padding-inline: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.icon-button:hover,
.lang-link:hover,
.menu-button:hover {
  border-color: var(--text);
}

.menu-button {
  display: none;
  width: 42px;
  padding: 0;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 17px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button {
  align-content: center;
  gap: 4px;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: calc(100svh - 83px);
  display: flex;
  align-items: stretch;
  padding-block: clamp(48px, 7vw, 104px) 28px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(520px, 3fr) minmax(210px, .95fr);
  align-items: start;
  gap: clamp(24px, 4vw, 72px);
}

.hero-note,
.hero-aside {
  padding-top: 18px;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.4;
}

.hero-note {
  position: relative;
  padding-left: 19px;
  font-weight: 700;
}

.hero-note::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 10px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  max-width: 1000px;
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(78px, 10.6vw, 174px);
  font-weight: 850;
  line-height: .84;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.accent-line {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.accent-line::after {
  content: "";
  position: absolute;
  right: -.04em;
  bottom: .02em;
  left: -.04em;
  z-index: -1;
  height: .19em;
  background: var(--accent);
  transform: rotate(-1deg);
}

.hero-aside p {
  margin: 0 0 24px;
}

.scroll-link {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  text-decoration: none;
  font-size: 29px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.scroll-link:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(4px);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strip-item {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px clamp(16px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
}

.hero-strip-item:first-child {
  padding-left: 0;
}

.hero-strip-item:last-child {
  border-right: 0;
}

.hero-strip-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-strip strong {
  display: block;
  font-size: clamp(18px, 2vw, 29px);
  line-height: 1.1;
}

.section {
  padding-block: clamp(90px, 11vw, 168px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.section-title {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 102px);
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 850;
  line-height: .98;
  letter-spacing: .1px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
}

.about-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 25px);
}

.about-copy strong {
  color: var(--text);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.principle {
  padding: 28px 30px 28px 0;
}

.principle + .principle {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.principle span {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 750;
  letter-spacing: .1px;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.services-head,
.portfolio-head,
.team-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 100px);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.service-item {
  border-bottom: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-summary {
  display: grid;
  grid-template-columns: 70px minmax(230px, .8fr) minmax(300px, 1.2fr) 48px;
  gap: 28px;
  align-items: center;
  padding-block: 30px;
  cursor: pointer;
  list-style: none;
}

.service-summary::-webkit-details-marker {
  display: none;
}

.service-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  transition: background-color 180ms ease, color 180ms ease;
}

.service-summary:hover .service-number,
.service-summary:focus-visible .service-number,
.service-item[open] .service-number {
  background: var(--accent);
  color: var(--accent-text);
}

.service-summary:focus-visible {
  outline-offset: -4px;
}

.service-summary h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 44px);
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1px;
}

.service-summary > p {
  margin: 0;
  color: var(--muted);
}

.service-plus {
  position: relative;
  width: 28px;
  height: 28px;
  justify-self: end;
  color: var(--text);
  font-size: 0;
  transform-origin: center;
  transition: transform 180ms ease;
}

.service-plus::before,
.service-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.service-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-item[open] .service-plus {
  transform: rotate(45deg);
}

.service-details {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
  gap: 28px;
  padding: 0 76px 34px 98px;
}

.service-details p {
  margin: 0;
  font-size: 17px;
}

.service-details ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.service-details li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.service-details li:first-child {
  padding-top: 0;
}

.service-details li:last-child {
  border-bottom: 0;
}

.service-details li::before {
  content: "—";
  margin-right: 10px;
  color: var(--text);
}

.services-section {
  padding-bottom: 0;
}

.services-cta {
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom: 1px solid var(--line);
}

.container.services-cta-inner {
  width: min(80vw, var(--container));
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-block: 30px;
}

.services-cta h2 {
  max-width: 800px;
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.services-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.services-cta-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.services-cta-phone {
  background: var(--accent-text);
  color: #fff;
}

.services-cta-message {
  background: #fff;
  color: #0e0f0d;
}

.services-cta-button:hover,
.services-cta-button:focus-visible {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent-text);
}

.portfolio-section {
  padding-bottom: 0;
}

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

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 0;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 10 / 3;
  background: var(--surface-soft);
}

.project-preview {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.project-preview:focus-visible {
  outline-offset: -4px;
}

.project-media img {
  width: 100%;
  height: auto;
}

.portfolio-modal {
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(20px, 4vw, 64px);
  border: 0;
  background: rgb(0 0 0 / 92%);
  color: #fff;
  overflow: auto;
}

.portfolio-modal[open] {
  display: grid;
  place-items: center;
}

.portfolio-modal::backdrop {
  background: transparent;
}

.portfolio-modal > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - clamp(40px, 8vw, 128px));
  object-fit: contain;
  box-shadow: 0 22px 70px rgb(0 0 0 / 48%);
}

.portfolio-modal-close {
  position: fixed;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.portfolio-modal-close:hover,
.portfolio-modal-close:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(16px, 1.7vw, 26px) 0 20px clamp(28px, 4vw, 64px);
}

.project-content h3 {
  max-width: 560px;
  margin: 0 0 18px;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 760;
  line-height: .92;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.project-content p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.role-card:first-child {
  padding-left: 0;
}

.role-card:last-child {
  border-right: 0;
}

.role-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.role-symbol {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: auto 0 34px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.role-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-weight: 780;
  letter-spacing: .1px;
}

.role-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding: 0;
  border: 0;
}

.contact-section > .container {
  width: 100%;
  max-width: none;
}

.contact-panel {
  overflow: hidden;
  padding: clamp(34px, 6vw, 88px);
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 0;
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 60px;
}

.contact-title {
  max-width: 900px;
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(52px, 7.8vw, 120px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.contact-top p {
  margin: 0;
  font-weight: 650;
}

.contact-body {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-details {
  margin: 0;
  border-top: 1px solid rgb(16 18 10 / 35%);
  font-style: normal;
}

.contact-detail {
  display: block;
  padding-block: 18px;
  border-bottom: 1px solid rgb(16 18 10 / 35%);
}

.contact-detail-value {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-detail-value a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  position: relative;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  position: absolute;
  top: 12px;
  left: 17px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgb(16 18 10 / 35%);
  border-radius: 9px;
  background: rgb(255 255 255 / 32%);
  color: var(--accent-text);
  outline: 0;
}

.field input {
  height: 74px;
  padding: 30px 17px 8px;
}

.field textarea {
  min-height: 140px;
  padding: 35px 17px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 2px rgb(16 18 10 / 10%);
}

.form-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.submit-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-text);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.form-privacy {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.form-privacy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-main {
  min-height: calc(100svh - 82px);
}

.legal-hero {
  padding-block: clamp(72px, 9vw, 140px) clamp(52px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.legal-title {
  max-width: 1100px;
  margin: 22px 0 28px;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(72px, 11vw, 170px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: .1px;
  text-transform: uppercase;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 112px;
  padding-block: 46px;
}

.legal-aside p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-aside strong {
  display: block;
  max-width: 310px;
  margin-bottom: 28px;
  line-height: 1.45;
}

.legal-aside a {
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.legal-article {
  max-width: 920px;
}

.legal-section {
  padding-block: clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 22px;
  font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .1px;
}

.legal-section p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 4px 0 20px;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-section a {
  color: var(--text);
  text-underline-offset: 4px;
}

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

.site-footer {
  padding-block: 24px 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

@media (min-width: 901px) {
  #about {
    padding-bottom: 0;
  }
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .hero-grid {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .hero-aside {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  .hero-aside p {
    max-width: 520px;
    margin: 0;
  }

  .service-summary {
    grid-template-columns: 50px minmax(220px, .7fr) minmax(250px, 1.3fr) 36px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 35px 24px;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(24px, 7vw, 42px);
    line-height: 1;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active::after {
    right: auto;
    bottom: 8px;
    width: 72px;
    display: block;
    transform: scaleX(1);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 430px;
    padding-top: 0;
  }

  .hero-note::before {
    top: 11px;
  }

  .hero-title {
    font-size: clamp(70px, 15.7vw, 132px);
  }

  .hero-aside {
    grid-column: auto;
    padding-top: 0;
  }

  .about-grid,
  .services-head,
  .portfolio-head,
  .team-head,
  .contact-top,
  .contact-body {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 25px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle span {
    margin-bottom: 20px;
  }

  .service-summary {
    grid-template-columns: 52px 1fr 34px;
  }

  .service-summary > p {
    grid-column: 2 / -1;
  }

  .service-plus {
    grid-column: 3;
    grid-row: 1;
  }

  .service-details {
    grid-template-columns: 1fr;
    padding: 0 0 30px 80px;
  }

  .services-cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-cta-actions {
    justify-content: flex-start;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-aside {
    position: static;
    padding-block: 34px;
    border-bottom: 1px solid var(--line);
  }

  .legal-aside strong {
    max-width: 620px;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project-media {
    aspect-ratio: 1 / 1;
  }

  .project-media img {
    height: 100%;
    object-fit: contain;
  }

  .project-content {
    min-height: 0;
    padding: 28px 0 42px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .role-card,
  .role-card:first-child,
  .role-card:last-child {
    min-height: 270px;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-card:last-child {
    border-bottom: 0;
  }

  .role-symbol {
    margin-top: 50px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    top: 72px;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 73px);
    padding-top: 36px;
  }

  .hero-title {
    font-size: clamp(58px, 19vw, 95px);
  }

  .hero-aside {
    align-items: flex-end;
  }

  .scroll-link {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .hero-strip-item,
  .hero-strip-item:first-child {
    min-height: 74px;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-strip-item:last-child {
    border-bottom: 0;
  }

  .section-title {
    font-size: clamp(42px, 14vw, 72px);
  }

  .legal-title {
    font-size: clamp(66px, 21vw, 105px);
  }

  .legal-section p {
    font-size: 15px;
  }

  .service-summary {
    grid-template-columns: 44px 1fr 26px;
    gap: 14px;
  }

  .service-number {
    width: 36px;
    height: 36px;
  }

  .service-summary > p {
    font-size: 14px;
  }

  .service-details {
    padding-left: 58px;
  }

  .services-cta-inner {
    padding-block: 28px;
  }

  .services-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-cta-button {
    width: 100%;
  }

  .project-media {
    aspect-ratio: 1 / 1;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field--wide,
  .form-bottom {
    grid-column: 1;
  }

  .form-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
