/*! 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) format('woff2');
    src: url(8c206db99195777c6769.woff) format('woff');
}


@font-face {
    font-family: 'Inter';
    font-style:  normal;
    font-weight: 500;
    font-display: swap;
    src: url(293fd13dbca5a3e450ef.woff2)  format('woff2');
    src: url(9053572c46aeb4b16caa.woff)  format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style:  normal;
    font-weight: 900;
    font-display: swap;
    src: url(15ca31c0a2a68f76d2d1.woff2)  format('woff2');
    src: url(c6938660eec019fefd68.woff)  format('woff');
}
.header {
    padding-top: 45px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #545454;
    padding-bottom: 41px;
}


@media screen and (max-width: 900px) {

    .header {
        padding-top: 28px;
        padding-bottom: 31px;
    }
}
.page__section {
    max-width: 880px;
    margin: auto;
}

@media screen and (max-width: 900px) {

    .page__section {
        margin: 0;
        padding-right: 19px;
        padding-left: 19px;
    }
}

@media screen and (max-width: 900px) {
    .header__logo {
        width: 104px;
        height: 25px;
        object-fit: contain;
    }
}
.page {
    background-color: #000000;
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
}
.profile {
    padding-top: 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {

    .profile {
        flex-direction: column;
    }
}
.profile__avatar {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.profile__avatar-wrapper {
    position: relative;
}
.profile__avatar-wrapper:hover::after {
    position: absolute;
    content:'';
    width: 120px;
    top: 0;
    left: 0;
    height: 120px;
    background-image: url(a086f758840ae814ecde.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,.8);
    pointer-events: none;
}
.profile__info {
    margin-left: 30px;
    margin-top: 25px;
    max-width: 560px;
}

@media screen and (max-width: 900px) {
    .profile__info {
        max-width: 100%;
        margin-left: 0;
    }
}
.profile__row {
    display: flex;
    align-items: flex-end;
}
.profile__info-name {
    font-weight: 500;
    font-size: 42px;
    line-height: 48px;
    color: #FFFFFF;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

@media screen and (max-width: 900px) {

    .profile__info-name {
        font-weight: 500;
        font-size: 27px;
        line-height: 33px;
        text-align: center;
    }
}
.profile__edit-button {
    background-image: url(8667ac4a523e8fc42e59.svg);
    background-repeat: no-repeat;
    background-position: center center;
    width: 24px;
    height: 24px;
    background-color: #000000;
    margin-bottom: 6px;
    margin-left: 18px;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
}

.profile__edit-button:hover {
    opacity: .6;
}

@media screen and (max-width: 900px) {

    .profile__edit-button {
    width: 18px;
    height: 18px;
    background-size: 7px;
    }
}
.profile__info-description {
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    padding-top: 16px;
    margin: 0;
    color: #FFFFFF;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


@media screen and (max-width: 900px) {

    .profile__info-description {
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        text-align: center;
    }
}
.profile__add-button {
    width: 150px;
    height: 50px;
    margin-left: auto;
    background-color: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 2px;
    cursor: pointer;
}

.profile__add-button:hover {
    opacity: .6;
}


@media screen and (max-width: 900px) {

    .profile__add-button {
        width: 100%;
        margin-top: 36px;
    }
}
.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 51px auto 0;
}

@media screen and (max-width: 900px) {

    .card-list {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
        margin-top: 36px;
    }
}
.card-list__item {
    position: relative;
    width: 282px;
    height: 361px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}
.card-list__photo {
    width: 282px;
    height: 282px;
    object-fit: cover;
    cursor: pointer;
    color: white;
}
.card-list__header-button {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    background-image: url(cbc09a894bdd4c956365.svg);
    width: 18px;
    height: 19px;
    cursor: pointer;
    flex-shrink: 0;
}

.card-list__header-button:hover {
    opacity: .6;
}
.card-list__footer {
    flex-grow: 1;
    background: #FFFFFF;
    padding-right: 15px;
    padding-left: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-list__footer-name {
    font-weight: 900;
    font-size: 24px;
    line-height: 29px;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.card-list__likes-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.card-list__footer-button {
    border: 0;
    outline: none;
    background: transparent;
    padding: 0;
    background-image: url(87ed371465c7a6a1cd01.svg);
    width: 22px;
    height: 19px;
    cursor: pointer;
    flex-shrink: 0;
}

.card-list__footer-button:hover {
    opacity: .5;
}
.card-list__footer-button_active {
    background-image: url(fe17a515669479b1e649.svg);
}
.popup {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s linear;
}
.popup__container {
    position: relative;
    margin-left: 19px;
    margin-right: 19px;
}
.popup_opened {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.5s linear;
}
.popup__description {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
}
.popup__image-zoom {
    max-width: 75vw;
    max-height: 75vh;
    opacity: 1;
}
.popup_type_card-zoom {
   background-color:  rgba(0, 0, 0, 0.9);
}
.form {
    box-sizing: border-box;
    width: 430px;
    background: #FFFFFF;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    

}


@media screen and (max-width: 900px) {

    .form {
        width: calc(100vw - 38px);
    }
}
.form__button-submit {
    margin-top: 18px;
    padding-top: 14px;
    padding-bottom: 18px;
    background-color: #000000;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    border: 0px;

}

@media screen and (max-width: 900px) {

    .form__button-submit {
        font-size: 14px;
        line-height: 17px;
    }
}

.form__button-submit:not(:disabled):hover {
    opacity: .8;
}

.form__button-submit_disabled {
    color: #000000;
    border: 1px solid #000000;
    border-radius: 2px;
    background: transparent;
    opacity: 0.2;
    cursor: default;
}

.form__input {
    height: 14px;
    padding-bottom: 13px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-weight: 400;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

.form__title {
    margin: 0;
    font-weight: 900;
    font-size: 24px;
    line-height: 29px;
    margin-bottom: 54px;
}


@media screen and (max-width: 900px) {

    .form__title {
        font-size: 18px;
        line-height: 22px;
    }
}
.form__input_type_error {
    border-bottom-color: #FF0000;
}
.form__input-error {
    display: block;
    min-height: 30px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FF0000;
    margin-top: 0;
}
.form__input-error_visible {
    display: block;
}
.popup__button-close {
    background-image: url(2ceb783afbab75916ddc.svg);
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    padding: 0;
    position: absolute;
    top: -40px;
    right: -40px;
    cursor: pointer;
}


.popup__button-close:hover {
    opacity: .6;
}


@media screen and (max-width: 900px) {

    .popup__button-close {
        width: 20px;
        height: 20px;
        right: 0px;
        top: -36px;
        background-size: cover;
    }
}
.footer {
    padding-top: 67px;
    padding-bottom: 60px;
}

@media screen and (max-width: 900px) {

    .footer {
        padding-top: 48px;
        padding-bottom: 36px;
    }
}
.footer__text {
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #545454;
    margin: 0;
}


@media screen and (max-width: 900px) {

    .footer__text {
        font-size: 14px;
        line-height: 17px;
    }
}

