* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
small { font-size: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 5px; }

.wrap {
  width: min(100% - 2 * var(--gutter, 5vw), 1320px);
  margin-inline: auto;
}

.review {
  background: #161a23;
  color: #edf0f8;
  font-size: .75rem;
}

.review .wrap {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 43px;
  flex-wrap: wrap;
  padding-block: 6px;
}

.review a { text-decoration: none; }
.review a:hover, .review a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.review a:focus-visible { outline-color: #edf0f8; }
.review .review-home { margin-right: auto; font-weight: 700; }

.site-header .wrap, .site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 30px;
}

.site-header .wrap { min-height: 76px; }
.site-header nav, .contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header nav { font-size: .875rem; }
.brand { font-size: 1.2rem; font-weight: 900; letter-spacing: -.065em; white-space: nowrap; }
.brand span { color: var(--accent); }
.site-footer .wrap { flex-wrap: wrap; padding-block: 26px; }
.site-footer small { font-size: .8rem; }
.contacts { font-size: .9rem; overflow-wrap: anywhere; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  width: fit-content;
  padding: .75rem 1.2rem;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
}

.button:hover { filter: brightness(.91); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { border-color: currentColor; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.label { color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 0; margin: 0; list-style: none; }
.partners a { font-weight: 700; text-decoration: none; }
.partners a:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 670px) {
  .review .wrap { gap: 5px 15px; }
  .review .review-home { width: 100%; }
  .site-header .wrap { min-height: 65px; }
  .site-header nav { gap: 12px; }
  .site-header nav a[href='#expertise'] { display: none; }
}

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