body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
}



h1 {
  flex: 1;                   /* занимает всё пространство между img и nav */
  text-align: center;        /* выравнивание по центру */
  white-space: normal;       /* перенос строк */
  overflow-wrap: break-word; /* перенос длинных слов */
  margin: 0;                 /* убрать стандартные отступы h1 */
}
header {
    background: #003a77;
    color: #fff;
    padding: 20px 0;
}

header .container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    flex: 1;                 /* позволяет заголовку занимать всё доступное пространство */
    word-wrap: break-word;   /* переносить по словам */
    overflow-wrap: break-word;
    white-space: normal;
}

nav a {
    color: #fff;
    margin-left: 2px;
    text-decoration: none;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

.hero {
    background: #e5eefc;
    padding: 60px 0;
    text-align: center;
}

.info-block {
    padding: 40px 0;
    text-align: center;
}

.btn {
    background: #003a77;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

.docs-list ul {
    list-style: none;
    padding: 0;
}

.docs-list li {
    margin: 10px 0;
}

.docs-list a {
    color: #003a77;
    text-decoration: none;
    font-weight: bold;
}
.site-logo {
    margin-right: 12px; /* нужный отступ */
/*  max-width: 100px;     /* или нужную ширину */
/*  height: auto;
/*  display: flex;        /* или inline-block, если рядом меню/текст */
}