/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}
@font-face{font-family:Inter;font-weight:500;src:url(9053572c46aeb4b16caa.woff) format("woff"),url(293fd13dbca5a3e450ef.woff2) format("woff2")}@font-face{font-family:Inter;font-weight:400;src:url(8c206db99195777c6769.woff) format("woff"),url(c8ba52b05a9ef10f4758.woff2) format("woff2")}@font-face{font-family:Inter;font-weight:900;src:url(c6938660eec019fefd68.woff) format("woff"),url(15ca31c0a2a68f76d2d1.woff2) format("woff2")}
.root{background-color:#000;margin:0;position:relative}
.page{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:#fff;font-family:Inter,Arial,sans-serif;margin:0 auto;max-width:1280px;min-width:320px;padding:45px 0 60px;text-rendering:optimizeLegibility}@media screen and (max-width:438px){.page{padding:28px 0 36px}}
.page__header{margin:0 auto 40px}@media screen and (max-width:438px){.page__header{margin:0 auto 41px;transition:margin 1s ease-out}}
.page__content{margin:0 auto}@media screen and (max-width:918px){.page__content{margin:0 19px}}
.page__footer{margin:66px auto 0}@media screen and (max-width:918px){.page__footer{margin:48px 19px 0}}
.popup{align-items:center;color:#000;display:flex;font-family:Inter,Arial,sans-serif;height:100vh;justify-content:center;left:0;opacity:0;position:fixed;top:0;transition:opacity 1s linear,visibility 1s linear;visibility:hidden;width:100%}
.popup_profile{background-color:rgba(0,0,0,.5)}
.popup_avatar{background-color:rgba(0,0,0,.5)}
.popup_cards{background-color:rgba(0,0,0,.5)}
.popup_image{background-color:rgba(0,0,0,.9)}
.popup_opened{opacity:1;transition:all 1s linear;visibility:visible}
.popup__container{background-color:#fff;border-radius:10px;box-sizing:border-box;padding:34px 36px 37px;position:relative;width:430px}@media screen and (max-width:320px){.popup__container{padding:25px 22px;width:282px}}
.popup__form{display:grid;grid-template-rows:auto auto auto;justify-items:stretch;width:100%}
.popup__header{align-self:start;font-size:24px;font-weight:900;line-height:29px;margin:0 0 48px;width:100%}@media screen and (max-width:320px){.popup__header{font-size:18px;line-height:22px;margin-bottom:75px}}
.popup__item{border:0;border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;font-family:inherit;font-size:14px;font-weight:400;height:27px;line-height:17px;margin-bottom:4px;min-width:100%;outline-style:none;overflow:hidden;padding:0 0 9px;text-overflow:ellipsis;white-space:nowrap}.popup__item:focus{background-color:rgba(0,0,0,.02)}
.popup__button-submit{background-color:#000;border:0;border-radius:2px;color:#fff;cursor:pointer;font-family:inherit;font-size:18px;font-weight:400;height:50px;line-height:22px;margin:15px 0 0;min-width:100%;padding:0;transition:opacity .4s}.popup__button-submit:hover{opacity:.8}@media screen and (max-width:320px){.popup__button-submit{font-size:14px;height:46px;line-height:17px;margin-top:13px}}
.popup__button-submit_inactive{background-color:#e5e5e5;border:1px solid #000;color:#000;opacity:.2}.popup__button-submit_inactive:hover{cursor:auto;opacity:.2}
.popup__button-close{background-color:transparent;background-image:url(ad98de32e342afafa118.svg);background-repeat:no-repeat;background-size:cover;border-style:none;cursor:pointer;min-height:32px;min-width:32px;position:absolute;right:-40px;top:-40px;transition:opacity .4s}.popup__button-close:hover{opacity:.6}@media screen and (max-width:595px){.popup__button-close{min-height:20px;min-width:20px;right:0;top:-36px}}
.popup__container-image{display:flex;flex-direction:column;position:relative}
.popup__photo{box-sizing:border-box;display:inline-block;max-height:75vh;max-width:75vw;-o-object-fit:cover;object-fit:cover}
.popup__subtitle{color:#fff;font-size:12px;line-height:15px;margin:0;max-width:75vw;overflow-wrap:break-word;padding:10px 0 0}
.popup__input-error{align-self:left;color:red;font-family:Inter;font-size:12px;font-style:normal;font-weight:400;line-height:13px;margin-bottom:0;min-height:27px;opacity:0;transition:.5s;visibility:hidden}
.popup__input-error_active{opacity:1;transition:.5s;visibility:visible}
.popup__item_type_error{border-bottom:1px solid red}
.header{border-bottom:1px solid rgba(84,84,84,.7);box-sizing:border-box;max-width:880px;transition:padding 1s ease}@media screen and (max-width:918px){.header{padding:0 27px}}
.header__logo{padding-bottom:37px}@media screen and (max-width:438px){.header__logo{padding-bottom:28px;transition:padding-bottom 1s ease;width:39%}}
.profile{align-items:center;display:flex;gap:30px;max-width:880px;transition:gap 1s ease}@media screen and (max-width:603px){.profile{flex-direction:column;gap:26px}}
.profile__avatar-area{align-items:center;border-radius:50%;display:flex;height:120px;justify-content:center;overflow:hidden;position:relative;width:120px}
.profile__avatar-area-overlay{align-items:center;background-color:rgba(0,0,0,.8);display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:.5s;visibility:hidden;width:100%}
.profile__avatar-area-overlay_activ{opacity:1;visibility:visible}
.profile__avatar-button{background-color:transparent;background-image:url(ae1a976ddb506239e9f0.svg);background-position:50%;background-repeat:no-repeat;background-size:26px 26px;border:none;cursor:pointer;height:100%;transition:opacity .4s;width:100%}.profile__avatar-button:hover{opacity:.5}
.profile__avatar{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}
.profile__info{align-items:end;-moz-column-gap:18px;column-gap:18px;display:grid;grid-template-areas:"name button" "bio bio";grid-template-columns:minmax(190px,294px) 24px;max-width:336px;row-gap:7px;transition:max-width,gap 2s ease}@media screen and (max-width:603px){.profile__info{grid-template-areas:"name button" "bio .";max-width:60%;padding-left:42px}}@media screen and (max-width:550px){.profile__info{max-width:70%}}@media screen and (max-width:400px){.profile__info{-moz-column-gap:10px;column-gap:10px;grid-template-columns:max-content 18px;max-width:282px;padding-left:28px}}
.profile__edit-button{background-color:#000;background-image:url(8667ac4a523e8fc42e59.svg);background-position:50%;background-repeat:no-repeat;border:1px solid #fff;cursor:pointer;grid-area:button;height:24px;margin-bottom:9px;padding:0;transition:width,height 1s ease;width:24px}.profile__edit-button:hover{opacity:.6;transition:opacity .4s}@media screen and (max-width:400px){.profile__edit-button{background-size:7.5px 7.5px;height:18px;margin-bottom:6px;width:18px}}
.profile__name{font-size:42px;font-weight:500;grid-area:name;line-height:48px;margin:0;max-width:294px;overflow:hidden;padding:0;text-overflow:ellipsis;transition:max-width 2s ease;white-space:nowrap}@media screen and (max-width:603px){.profile__name{font-size:6.7vw;line-height:1.22;text-align:center}}@media screen and (max-width:400px){.profile__name{font-size:27px;line-height:33px;max-width:190px}}
.profile__bio{font-size:18px;font-weight:400;grid-area:bio;line-height:22px;margin:0;max-width:336px;overflow:hidden;padding:0;text-overflow:ellipsis;transition:max-width 2s ease;white-space:nowrap}@media screen and (max-width:603px){.profile__bio{font-size:3.5vw;line-height:1.2;text-align:center}}@media screen and (max-width:400px){.profile__bio{font-size:14px;line-height:17px;max-width:190px}}
.profile__add-button{background-color:#000;background-image:url(d86bb2edc2f6eadb96b7.svg);background-position:50%;background-repeat:no-repeat;border:2px solid #fff;border-radius:2px;cursor:pointer;height:50px;margin-left:auto;padding:0;transition:opacity .4s;width:150px}.profile__add-button:hover{opacity:.6}@media screen and (max-width:603px){.profile__add-button{background-size:16px 16px;margin-left:0;margin-top:8px;transition:all 1s ease;width:100%}}
.cards-grid__list{box-sizing:border-box;-moz-column-gap:17px;column-gap:17px;display:grid;grid-template-columns:repeat(auto-fit,282px);grid-template-rows:repeat(auto-fit,minmax(361px,1fr));list-style:none;margin:0;padding:0;row-gap:20px}@media screen and (max-width:918px){.cards-grid__list{grid-template-columns:repeat(auto-fit,minmax(282px,calc(50% - 9px)))}}@media screen and (max-width:619px){.cards-grid__list{grid-template-columns:repeat(auto-fit,minmax(282px,1fr))}}
.cards-grid__item{background:#fff;border-radius:10px;box-sizing:border-box;display:flex;flex-direction:column;position:relative}
.cards-grid__photo{aspect-ratio:1/1;border-radius:10px 10px 0 0;box-sizing:border-box;cursor:pointer;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}
.cards-grid__info{align-items:center;display:grid;gap:22px;grid-template-columns:1fr 22px;padding:23px 20px 19px}
.cards-grid__title{color:#000;font-size:24px;font-weight:900;line-height:25px;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}
.cards-grid__heart-area{display:flex;flex-direction:column;gap:3px}
.cards-grid__heart-button{background-color:transparent;background-image:url(87ed371465c7a6a1cd01.svg);background-position:50%;background-repeat:no-repeat;border:none;cursor:pointer;height:19px;transition:opacity .4s;width:22px}.cards-grid__heart-button:hover{opacity:.5}
.cards-grid__heart-counter{color:#000;font-family:Inter;font-size:13px;font-style:normal;font-weight:400;line-height:16px;text-align:center}
.cards-grid__heart-button_active{background-image:url(fe17a515669479b1e649.svg)}
.cards-grid__trash-button{background-color:transparent;background-image:url(823b0cf1b0b7e9cb7cad.svg);background-position:50%;background-repeat:repeat;border:none;cursor:pointer;min-height:19px;min-width:18px;position:absolute;right:20px;top:20px;visibility:hidden}.cards-grid__trash-button:hover{opacity:.5;transition:opacity .4s}
.cards-grid__trash-button_active{visibility:visible}
.sections{max-width:880px}
.sections__section-profile{margin-bottom:50px}@media screen and (max-width:330px){.sections__section-profile{margin-bottom:34px}}
.footer{max-width:880px}
.footer__copyright{color:#545454;font-size:18px;font-weight:400;line-height:22px;margin:0;padding:0}@media screen and (max-width:438px){.footer__copyright{font-size:14px;line-height:17px}}

