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

:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #22262b;
  --muted: #5b6470;
  --accent: #1f5f8b;
  --accent-soft: #e3eef6;
  --line: #e2ded5;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка и меню */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--accent-soft);
}

.menu a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff;
}

/* Содержимое */

main {
  padding: 40px 0 56px;
}

h1 {
  margin: 0 0 16px;
  font-size: 2.1rem;
  line-height: 1.2;
}

h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

a {
  color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.list {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.list li {
  margin-bottom: 8px;
}

.card {
  margin-top: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.email {
  font-size: 1.3rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #174a6d;
}

/* Подвал */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Телефоны */

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu a {
    padding: 10px 12px;
  }

  main {
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 1.7rem;
  }

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