:root {
  --bg: #f6f6f3;
  --text: #1d1d1b;
  --title: #151513;
  --muted: #7f7f76;
  --line: #ddddd5;
  --footer: #9a9a92;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 150px;
}

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.intro {
  margin: 0;
  font-size: calc(13px * 1.3);
  line-height: 1.3;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.intro p {
  font-size: 1em;
  color: #222220;
}

.quotes {
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
  align-items: start;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 0;
  padding-left: max(24px, calc((100vw - 640px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 640px) / 2 + 24px));
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quotes::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 280px;
  width: 280px;
  margin: 0;
}

.quote[lang="fr"] {
  flex: 0 0 310px;
  width: 310px;
}

.quote--ru {
  flex: 0 0 340px;
  width: 340px;
}

.quote p {
  font-size: 13px;
  line-height: 1.6;
  color: #252523;
  margin: 0;
}

.quote *:first-child {
  margin-top: 0;
}

.quote *:last-child {
  margin-bottom: 0;
}

.quote[lang="yi"],
.quote[lang="ar"] {
  unicode-bidi: plaintext;
}

.links {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.links p {
  margin: 0;
}

.links a,
.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.links a:hover,
.footer a:hover {
  text-decoration-thickness: 2px;
}

.links a {
  display: inline;
}

.links a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

.muted {
  color: var(--muted);
}

.muted s {
  text-decoration-thickness: 0.06em;
}

.placeholder {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.meta {
  opacity: 0.5;
}

.ext {
  font-family: "Times New Roman", Times, serif;
  opacity: 0.5;
  text-decoration: none;
  display: inline-block;
  margin-left: 4px;
}

a + .ext {
  text-decoration: none;
}

.clients {
  width: min(710px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin: 0;
}

.clients h2 {
  color: var(--title);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.clients ul {
  list-style: none;
  padding: 0;
}

.clients li {
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  border-top: 0;
  padding-top: 0;
}

.footer p {
  font-size: 13px;
  color: var(--footer);
}

.footer .email {
  color: var(--text);
  font-weight: 700;
}

.copyright {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
  font-size: 13px;
  color: var(--footer);
  letter-spacing: 0.01em;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page {
    max-width: 100%;
    padding: 0 24px;
  }

  .clients {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .links p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .links .link-line {
    display: block;
  }
}
