* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: #000;
  background-image: url("sumtextb.jpg");
  background-repeat: repeat;
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 18px 0 28px;
}

.site-header {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 44px;
}

.logo-link {
  line-height: 0;
}

.logo {
  width: min(351px, 82vw);
  height: auto;
  display: block;
}

.site-nav {
  font-family: Arial, Calibri, sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 7px;
  white-space: nowrap;
}

.site-nav a {
  color: #0000ee;
  text-decoration: underline;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #800000;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  gap: 36px;
  align-items: start;
}

.about-text {
  font-size: 1.16rem;
  line-height: 1.28;
  text-align: justify;
}

.about-text p {
  margin: 0 0 2.2rem;
}

.portrait-panel {
  text-align: right;
}

.portrait {
  width: 100%;
  max-width: 333px;
  height: auto;
  border: 1px solid #000;
  display: block;
}

.organization-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 10px;
  max-width: 720px;
}

.organization-logos img {
  width: 96px;
  height: auto;
  border: 1px solid #000;
}

.organization-logos img:first-child {
  width: 85px;
}

.site-footer {
  margin-top: 90px;
  text-align: center;
  font-family: Arial, Calibri, sans-serif;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .page {
    width: min(760px, 94vw);
    padding-top: 24px;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    text-align: center;
  }

  .site-nav {
    font-size: 1.45rem;
    white-space: normal;
  }

  .about-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .portrait-panel {
    width: 100%;
    text-align: center;
  }

  .portrait {
    width: min(330px, 82vw);
    margin: 0 auto;
  }

  .about-text {
    font-size: 1.35rem;
    line-height: 1.35;
    text-align: left;
  }

  .about-text p {
    margin-bottom: 1.75rem;
  }

  .organization-logos {
    justify-content: center;
    gap: 70px;
    margin-top: 18px;
  }

  .site-footer {
    margin-top: 52px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .site-nav {
    font-size: 1.25rem;
  }

  .about-text {
    font-size: 1.18rem;
  }

  .organization-logos {
    gap: 38px;
  }
}
