/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}


@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 400;
  font-display: swap;
  src: url(c8ba52b05a9ef10f4758.woff2?v=3.19) format("woff2"),
       url(8c206db99195777c6769.woff?v=3.19) format("woff");
}
@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 500;
  font-display: swap;
  src: url(293fd13dbca5a3e450ef.woff2?v=3.19) format("woff2"),
       url(9053572c46aeb4b16caa.woff?v=3.19) format("woff");
}

@font-face {
  font-family: 'Inter';
  font-style:  normal;
  font-weight: 900;
  font-display: swap;
  src: url(15ca31c0a2a68f76d2d1.woff2?v=3.19) format("woff2"),
       url(c6938660eec019fefd68.woff?v=3.19) format("woff");
}

.header {
  border-bottom: 1px solid rgba(84,84,84,0.7);
  box-sizing: border-box;
  padding: 0 0 41px 0;
}

@media screen and (max-width:600px) {
  .header {
    padding: 0 0 32px 27px;
  }
}

.header__logo {
  background: url(bbe2a6eafac19c3d031c.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 142px;
  height: 33px;
}


@media screen and (max-width:600px) {
  .header__logo {
    width: 103px;
    height: 24px;
  }
}

.profile {
  display: flex;
  gap: 30px;
  width: 100%;
}

@media screen and (max-width:600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

.profile__avatar {
  width: 100%;
  height: 100%;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
}

.profile__avatar-container{
  position: relative;
  z-index: 0;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.profile__avatar-container:before{
  content: "";
  display: block;  /* По умолчанию элемент будет inline(т.е. текстовый), и на него НЕ будут действовать параметры ширины и высоты */
  width: 100%; /* без задания высоты и шширины блок займет размеры в соответсвии с контентом, а он пустой*/
  height: 100%;
  background-color: #000;
  z-index: 1;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s linear;
}
.profile__avatar-container:hover:before{
  opacity: 0.8;
}

.profile__avatar-edit{
  width: 100%;
  height: 100%;
  background: url(ae1a976ddb506239e9f0.svg) no-repeat center;
  z-index: 2;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  border: 0;
  opacity: 0;
  clip-path: circle(50% at 50% 50%);
}
.profile__avatar-edit:hover{
  opacity: 1;
}

.profile__info {
  flex-grow: 1;
  font-size: 0;
  margin-top: 22px;
  max-width: calc(100% - 330px);
}
@media screen and (max-width:600px) {
  .profile__info {
    text-align: center;
    margin: 26px 0 36px 0;
    max-width: 100%;
  }
}


.profile__title {
  font-weight: 500;
  font-size: 42px;
  line-height: 48px;

  display: inline-block;
  margin: 0;
  padding-right: 18px;
  white-space: nowrap;

  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
}

@media screen and (max-width:600px) {
  .profile__title {
    font-size: 27px;
    line-height: 33px;
    max-width: calc(100% - 18px);
    padding-right: 10px;
    padding-left: 28px;
  }
}

.profile__edit-button {
  border: white solid 1px;
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url(ae1a976ddb506239e9f0.svg) no-repeat center;
  background-size: 10px;
  box-sizing: border-box;
  padding: 0;
  vertical-align: top;
  margin-top: 15px;
  cursor: pointer;
}
.profile__edit-button:hover {
  opacity: 0.6;
}

@media screen and (max-width:600px) {
  .profile__edit-button  {
    width: 18px;
    height: 18px;
    background-size: 7.5px;
    margin-top: 10px;
  }
}

.profile__subtitle {
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  margin: 16px 0 0 0;
}

@media screen and (max-width:600px) {
  .profile__subtitle {
    font-size: 14px;
    line-height: 17px;
    margin: 14px 0 0 0;
  }
}

.profile__add-button {
  flex-shrink: 0;
  box-sizing: border-box;
  border: white solid 1px;
  display: block;
  width: 150px;
  height: 50px;
  background: url(bed8c136e13907f5eefb.svg) no-repeat center;
  background-size: 22px;
  align-self: center;
  padding: 0;
  cursor: pointer;
}
.profile__add-button:hover {
  opacity: 0.6;
}
@media screen and (max-width:600px) {
  .profile__add-button  {
    width: 100%;
    background-size: 16px;
  }
}

.elements {
  display: grid;
  column-gap: 17px;
  row-gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 600px) {
  .elements  {
    grid-template-columns: 1fr;
  }
}

.element {
  background-color: #FFF;
  color: black;
  clip-path: inset(0 round 10px);
  display: grid;
  grid-template-columns: auto 42px;
  position: relative;
}

.element__image {
  width: 100%;
  grid-column: 1/3;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.element__title {
  font-weight: 900;
  font-size: 24px;
  line-height: 29px;
  margin: 25px 0 25px 21px;
  display: inline-block;

  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.element__delete {
  position: absolute;
  display: inline-block;
  background-image: url(ce3b64935accf9b8212e.svg);
  background-size: cover;
  align-self: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 19px;
}
.element__delete:hover {
  opacity: 0.6;
}

.element__like {
  display: inline-block;
  background: no-repeat url(1ad06e85f169668a1f36.svg);
  width: 22px;
  height: 35px;
  background-size: 22px 19px;
  align-self: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  box-sizing: border-box;
  padding-top: 22px;

  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: #000000;
}
.element__like:hover {
  opacity: 0.5;
}

.element__like_active {
  background-image: url(35948469632d0421d697.svg);
}
.element__like_active:hover {
  opacity: 1;
}


.footer {
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media screen and (max-width:700px) {
  .footer {
    flex-direction: column;
  }
}

.footer__copyright {
  color: #545454;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  margin: 0;
}
@media screen and (max-width:600px) {
  .footer__copyright {
    font-size: 14px;
    line-height: 17px;
  }
}

.popup {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s linear, visibility 1s linear;
}
.popup::before {
  position: absolute;
  content: '';
  display: block;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
}

.popup_opened {
  visibility: visible;
  opacity: 1;
}

.popup__container {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.popup__container_content_form {
  background-color: white;
  border-radius: 10px;
  padding: 34px 36px 37px;
  width: 430px;
  box-sizing: border-box;
}
@media screen and (max-width:600px) {
  .popup__container_content_form {
    margin: auto 19px;
    padding: 25px 22px;
    width: 100%;
  }
}

.popup__container_content_image {

}

.popup__form {

}


.popup__save-button {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;

  background-color: black;
  color: white;
  height: 50px;
  width: 100%;
  margin: 18px 0 0;
  border-radius: 2px;
  border: none;
  padding: 0;
  cursor: pointer;
}

.popup__save-button:hover {
  opacity: 0.8;
}
@media screen and (max-width:600px) {
  .popup__save-button {
    height: 46px;
    margin: 45px 0 0;
  }
}

.popup__save-button_disabled{
  opacity: 0.2;
  background-color: #FFF;
  border: #000000 1px solid;
  color: #000000;
}
.popup__save-button_disabled:hover {
  opacity: 0.2;
}

.popup__text-input {
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;

  border: 0;
  padding: 0 0 13px 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0,0,0,0.2);

  width: 100%;
}

.popup__text-input:first-of-type {
  margin-top: 54px;
}

@media screen and (max-width:600px) {
  .popup__text-input:first-of-type {
    margin-top: 75px;
  }
}
.popup__text-input::placeholder{
  color: #C4C4C4;
}

.popup__text-input_type_error{
  border-bottom: 1px solid #FF0000;
}

.popup__title {
  font-weight: 900;
  font-size: 24px;
  line-height: 29px;
  color: black;
  margin: 0;
}

@media screen and (max-width:600px) {
  .popup__title {
    font-size: 18px;
    line-height: 22px;
    margin: 0;
  }
}

.popup__error{
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #FF0000;
  min-height: 35px;
  display: block;
  padding-top: 5px;
  box-sizing: border-box;
  visibility:hidden;
}

.popup__error_active{
  visibility: visible;
}

.popup__close-button {
  background-color: transparent;
  border: none;
  background-image: url(039f1f5203f653b4bacd.svg);
  display: block;
  height: 32px;
  width: 32px;
  position: absolute;
  right: -40px;
  top: -40px;
  cursor: pointer;
}
.popup__close-button:hover {
  opacity: 0.6;
}

@media screen and (max-width:600px) {
  .popup__close-button {
    height: 20px;
    width: 20px;
    right: 0;
    background-size: contain;
  }
}

.popup__image {
  object-fit: cover;
  max-width: 75vw;
  max-height: 75vh;
  display: block;
  margin: auto;
}

.popup__image {
  object-fit: cover;
  max-width: 75vw;
  max-height: 75vh;
  display: block;
  margin: auto;
}

.popup__image-title {
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #FFFFFF;

  margin: 0;
  padding: 10px 0 0 0;
  max-width: 75vw;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.popup_blackout_strong::before {
  opacity: 0.9;
}

.page {
  font-family: 'Inter', Arial, sans-serif;
  font-style: normal;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;

  color: #FFFFFF;
  width: 100%;
  max-width: calc(1280px - 400px + 19px*2);
  background-color: #000;

  box-sizing: border-box;
  margin: auto;
  padding: 0 19px;
}

.page__header {
  margin: 45px 0 40px 0;
}

@media screen and (max-width:600px) {
  .page__header {
    margin: 28px 0 42px -19px;
    width: calc(100% + 19px*2);
  }
}

.page__profile {
  margin-top: 40px;
  margin-bottom: 51px;
}
@media screen and (max-width:600px) {
  .page__profile {
    margin-top: 42px;
    margin-bottom: 36px;
  }
}

.page__footer {
  margin: 67px 0 60px;
}
@media screen and (max-width:600px) {
  .page__footer {
    margin: 48px 0 36px;
  }
}

.page__hidden{
  display: none;
}



