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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent
}

body {
  margin: 0;
  line-height: inherit
}

html, body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  color: rgba(0, 0, 0, 0.87);
  background-color: #fff;
  font-size: 1.15rem;
  background: url(images/bg2.jpg) no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', serif;
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 300;
}

main {
  padding: 0 16px;
  margin-left: auto;
  margin-right: auto;
}

main > header {
  display: flex;
  align-items: flex-end;
  padding-top: 224px;
}

main > header h1 {
  font-size: 2.5rem;
}

main > header h2 {
  font-size: 1.350rem;
  position: relative;
  margin: 0;
  padding-bottom: .5rem;
}

main > header h2:after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: '';
  width: 64px;
  height: 0;
  border-bottom: 1px solid #1e2122;
}

main > section {
  margin-bottom: 32px;
}

body > header {
  position: fixed;
  z-index: 1030;
  min-height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.5);
}

body > header h1 {
  margin-bottom: 0;
  flex-grow: 1;
}

nav {
  padding: 0 16px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex: 1;
}

.menu {
  display: none;
  list-style-type: none;
}

.menu a {
  padding: 8px 24px;
  position: relative;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
}

.menu a:after {
  left: 24px;
  right: 24px;
  position: absolute;
  content: '';
  bottom: 0;
  border-top: 1px solid;
  opacity: 0;
  transition: opacity 350ms;
}

.menu a:active:after,
.menu a:focus:after,
.menu a:hover:after {
  opacity: 1;
}

.services {
  margin: 0;
  padding: 24px 0;
  list-style: none;
  font-size: 1rem;
  text-align: center;
}

.section__wrapper {
  display: flex;
  flex-direction: column;
}

.avatar {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.avatar__photo {
  border-radius: 50%;
}

.avatar__titles dd {
  margin: 0;
}

.avatar__titles dt {
  font-weight: 500;
}

@media (min-width: 600px) {
  main,
  nav {
    padding: 0 24px;
  }
  body > header {
    min-height: 64px;
  }
}

@media (min-width: 768px) {
  main > header h1 {
    font-size: 3.5rem;
  }
  
  main > header h2 {
    font-size: 1.750rem;
  }

  nav {
    display: flex;
    padding-bottom: 0;
    align-items: center;
  }

  nav .menu {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-end;
    /* display: none; */
    margin: 0;
  }

  nav .menu-toggle {
    display: none;
  }

  .section__wrapper {
    flex-direction: row-reverse;
  }

  .section__wrapper article {
    width: 80%;
  }

  .section__wrapper aside {
    margin-left: 32px;
    width: 20%;
  }

  .about-me aside {
    margin-top: 52px;
  }
}

@media (min-width: 960px) {
  main,
  nav {
    max-width: 960px;
  }
  .services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

#contacts-map {
  max-width: 100%;
  max-height: 312px;
}

#contacts-map iframe {
  border: 0;
  width: 100%;
  height: 312px;
}

details.collapsible summary {
  text-align: center;
  padding: 8px;
  border: 1px solid #cfd8dc;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
}

.collapsible-content {
  padding: 1rem 1.5rem;
}

dl.timeline dt {
  float: left;
  clear: left;
  margin-left: 16px;
}

dl.timeline dd {
  margin-left: 132px;
  padding-bottom: .5em;
}

.list {
  margin: 0;
  padding: 0;
  position: relative;
  list-style: none;
}

.list__item {
  width: 100%;
  display: flex;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  justify-content: flex-start;
  text-decoration: none;
}

.list__item__avatar {
  min-width: 48px;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.list__item__text {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}

.facebook {
  margin-left: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.facebook svg {
  fill: #115293;
  width: 22px;
  height: 22px;
}