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

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #22262b;
  --muted: #5a626c;
  --accent: #1f5f8b;
  --accent-dark: #174a6d;
  --border: #e2ddd3;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

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

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

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

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

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  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: #e8f0f6;
}

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

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

main {
  flex: 1;
  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);
}

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

ul.list {
  margin: 0 0 16px;
  padding-left: 22px;
}

ul.list li {
  margin-bottom: 6px;
}

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

.facts li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.facts strong {
  display: block;
  font-size: 1.15rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

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

.email {
  font-size: 1.3rem;
  font-weight: 600;
  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: var(--accent-dark);
  color: #ffffff;
}

/* Подвал */

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

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

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

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

  .menu {
    width: 100%;
  }

  .menu li {
    flex: 1;
  }

  .menu a {
    padding: 10px 6px;
    text-align: center;
  }

  main {
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 1.7rem;
  }

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