.about-me {
  font-size: 1.5rem;
  line-height: 1.3;
  max-width: 700px;
  white-space: pre-line;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .about-me {
    font-size: 1rem;
    line-height: 1.3;
    max-width: 700px;
    white-space: pre-line;
    margin: 0 auto;
  }
}
.album-page {
    margin-top: 2rem;
}

.album-page__description {
    margin: 1.5rem auto 2rem auto;
    text-align: left;
    white-space: pre-line;
}

.album-page__header {
    text-align: center;
}

.album-page__contacts {
    margin-top: 1em;
}

.album-page__photos {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.album-page__image {
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;

    color: transparent;
    background-color: #EEE;
}

.album-page__image:not([src]) {
    visibility: hidden;
}

.album-page__photo {
    flex-grow: 1;
    padding: 0.5rem;
    box-sizing: border-box;
}

.album-page__photo_size_album {
    flex-basis: 50%;
}

.album-page__photo_size_portrait {
    flex-basis: 25%;
    max-width: 33.3333%;
}

@media (max-width: 960px) {
    .album-page__image {
        border-radius: 1rem;
    }

    .album-page__photo {
        padding: 0;
        margin-bottom: 1rem;
    }

    .album-page__photo_size_album,
    .album-page__photo_size_portrait {
        flex-basis: 100%;
        max-width: 100%;
    }
}
.album-preview {
  display: flex;
  box-sizing: border-box;
  padding: 0 0.5rem;
  margin: 1rem 0;
  align-items: flex-end;
}

.album-preview_size_album {
  flex-basis: 50%;
}

.album-preview_size_portrait {
  flex-basis: 25%;
}

.album-preview__description {
  overflow: hidden;
  display: -webkit-box;
  opacity: 0.8;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; 
  line-height: 1.5;
  max-height: 4.5rem;
  margin: 0;
  max-width: 80ch;
  margin-bottom: 1rem;
}

.album-preview__image {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transition: transform ease-in-out 150ms;
  width: 100%;

  color: transparent;
  background-color: #EEE;
  font-family: inherit;
  will-change: transform;
}

.album-preview__image:not([src]) {
  visibility: hidden;
}

.album-preview__image-container {
  position: relative;
  height: 37.5vw;
  overflow: hidden;
}

.album-preview__link {
  width: 100%;
}

.album-preview:hover .album-preview__image {
  transform: scale(1.03);
}

.album-preview:hover .album-preview__title {
  color: red;
}

.album-preview:hover .album-preview__image-container:before {
  content: '';
  position: absolute;
  background-color: red;
  mix-blend-mode: multiply;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.album-preview__arrow {
  margin-left: 10px;
}

.album-preview__title {
  margin-bottom: 15px;
}

@media (max-width: 960px) {
  .album-preview {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 1rem;
  }

  .album-preview_size_album,
  .album-preview_size_portrait {
    flex-basis: 100%;
  }

  .album-preview__image-container {
    height: calc(100vw - 2rem);
  }

  .album-preview:hover .album-preview__image-container:before {
    display: none;
  }
}
body {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.collection {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 960px) {
  .collection {
    padding: 0;
  }
}
.container {
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 960px;
}
.footer {
  color: #777;
  margin: 2.5rem 0 2rem 0;
  text-align: center;
}

.group-page {
    margin-top: 2rem;
}

.group-page__title {
    margin-bottom: 1rem;
}

.group-page__contacts {
    margin-top: 1em;
}

.group-page__description {
    margin: 1.5rem auto 2rem auto;
    text-align: left;
    white-space: pre-line;
}

.group-page__header {
    text-align: center;
}

.group-page__about-me {
    margin: 3rem 0;
}

.header {
  display: flex;
  align-items: center;
  color: white;
  background-color: black;
  height: 90px;
  position: relative;
  z-index: 1;
}

.header_index-page {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.header__wrapper {
  display: flex;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.header__sidebar-toggler {
  display: none;
}

.header__links {
  display: none;
}

.header__logo {
  height: 60px;
  width: 60px;
  margin-right: 40px;
}

.header__groups {
  align-items: center;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
}

.header__group {
  display: inline-block;
  margin-right: 32px;
}

.header__group_home {
  display: none;
}

.header__group_current {
  opacity: 0.6;
}

.header__sidebar-state {
  display: none;
}

.header__locale {
  margin-left: auto;
  opacity: 0.3;
}

.header__locale:hover {
  opacity: 1;
}

.header__locale-label {
  position: relative;
  top: -5px;
  padding-left: 3px;
}

@media (max-width: 960px) {
  .header {
    height: 56px;
    position: static;
  }

  .header__wrapper {
    margin: 0;
    max-width: auto;
  }
  
  .header__container {
    align-items: center;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    position: fixed;
    background-color: black;
    z-index: 2;
    flex-grow: 1;
    padding: 0 20px;
    z-index: 100;
  }

  .header__sidebar-toggler {
    display: block;
  }

  .header__logo {
    display: none;
  }

  .header__groups {
    background-color: black;
    display: block;
    left: 0;
    top: 55px;
    position: fixed;
    width: 100%;
    padding: 10px 0;
    transform: translateY(-100%);
    transition: transform .2s ease-out;
    will-change: transform;
    z-index: 99;
  }

  .header__sidebar-state:checked ~ .header__groups {
    transform: translateY(0px);
  }

  .header__group {
    display: block;
    font-size: 18px;
    margin-right: 0;
  }

  .header__group_home {
    display: block;
  }
  
  .header__group-link {
    display: block;
    padding: 10px 20px;
  }

  .header__links {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
  }

  .header__phone {
    font-size: 12px;
    font-weight: 600;
    padding-top: 5px;
    margin-right: 10px;
  }

  .header__vk-link {
    margin-right: 10px;
  }
}
.index-page {
    margin-bottom: 2rem;
}

.index-page__title {
    text-align: center;
    margin-bottom: 28px;
}

.index-page__group {
    margin-bottom: 40px;
}

@media (max-width: 960px) {
    .index-page__title {
        margin-top: 20px;
    }
}
.link {
  color: inherit;
  text-decoration: none;
}

.link_disabled {
  cursor: default;
}

.link_active:hover {
  color: red;
}

.link_underline {
  border-bottom: 1px solid rgba(0, 0, 0, 25%);
}

.link_underline:hover {
  border-bottom: 1px solid rgba(255, 0, 0, 25%);
}
.showcase {
  background-color: rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
  color: black;
  padding: 200px 20px 40px;
  position: relative;
  top: -90px;
  height: 100vh;
}

.showcase__background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
}

.showcase__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.showcase__logo-container {
  display: none;
}

.showcase__name {
  color: white;
  font-size: 24px;
  letter-spacing: 3px;
}

.showcase__profession {
  font-family: Baskerville, serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.09;
  margin-bottom: 50px;
  color: black;
}

.showcase__description {
  line-height: 1.5;
  max-width: 450px;
  opacity: 0.8;
}

.showcase__see-portfolio {
  font-size: 18px;
  margin-bottom: 12px;
}

.showcase__arrow {
  margin-left: 10px;
}

.showcase__contacts {
  color: white;
  display: flex;
}

.showcase__spacer {
  flex: 1
}

.showcase__phone {
  color: white;
  font-weight: 600;
}

.showcase__vk-link {
  margin-right: 10px;
}

@media (max-width: 960px) {
  .showcase {
    color: white;
    padding: 30px 20px 50px;
    position: static;
    height: auto;
  }

  .showcase__background {
    display: none;
  }

  .showcase__logo-container {
    display: block;
    text-align: center;
  }

  .showcase__logo {
    margin-bottom: 30px;
    height: 60px;
    width: 60px;
  }

  .showcase__name {
    color: inherit;
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
  }

  .showcase__profession {
    font-size: 32px;
    line-height: 1.13;
    text-align: center;
    color: white;
  }

  .showcase__description {
    margin-bottom: 40px;
  }

  .showcase__contacts {
    display: none;
  }
}
.spoiler {
  position: relative;
}

.spoiler__checkbox {
  display: none;
}

.spoiler__content {
  display: none;
}

.spoiler__icon {
  position: relative;
  top: 4px;
  color: #BBB;
  padding-left: 8px;
}

.spoiler__label {
  cursor: pointer;
}

.spoiler__label-text {
  border-bottom: 1px dashed;
}

.spoiler__label:hover {
  color: red;
}

.spoiler__checkbox:checked + .spoiler__label {
  display: none;
}

.spoiler__checkbox:checked ~ .spoiler__content {
  display: block;
}

@media (max-width: 960px) {
  .spoiler__icon {
    display: none;
  }
}
.typography {

}

.typography_h1 {
  font-family: Baskerville, serif;
  font-weight: 600;
  font-size: 4rem;
  margin: 0;
}

.typography_h2 {
  font-family: Baskerville, serif;
  font-weight: 600;
  font-size: 3rem;
  margin: 0;
}

.typography_body {
  font-size: 1.25rem;
  line-height: 1.25;
}

.typography_caption {
  font-size: 18px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 960px) {
  .typography_h1 {
    font-size: 2rem;
  }

  .typography_h2 {
    font-size: 32px;
    margin: 0;
  }

  .typography_body {
    font-size: 1rem;
    line-height: 1.4;
  }
}
