/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}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:700}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;src:url(2505c0d4b34ffca98f8f8852e24928eb.woff2) format("woff2"),url(fc49d131f795b4d48f261495d4caef09.woff) format("woff");font-style:normal;font-weight:400}@font-face{font-family:Inter;src:url(5b53c519b3184a74a98ca6125f513c9d.woff2) format("woff2"),url(cc6a88688869161eb83642d9393a0c2d.woff) format("woff");font-style:normal;font-weight:500}@font-face{font-family:Inter;src:url(23eb804eb49e365fa2f1d72040dc4cf8.woff2) format("woff2"),url(16792010d318c2904562ed1c9b5a5144.woff) format("woff");font-style:normal;font-weight:900}
.page__sections{margin:0 auto;width:calc(100% - 398px);max-width:1200px}@media (max-width:1250px){.page__sections{width:calc(100% - 250px)}}@media (max-width:1070px){.page__sections{width:calc(100% - 100px)}}@media (max-width:800px){.page__sections{width:calc(100% - 38px)}}@media (max-width:320px){.page__sections{width:calc(100% - 18px)}}
.page{background-color:#000;font-family:Inter,Arial,sans-serif;color:#fff;box-sizing:border-box;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;text-rendering:optimizeLegibility}
.button{padding:0;box-sizing:border-box;border:1px solid #fff;background-color:transparent;background-repeat:no-repeat;background-position:50%;background-size:auto auto;cursor:pointer;box-shadow:none;outline:none}.button:hover{opacity:.6}
.header__logo{padding-top:45px;padding-bottom:40px;width:142px}@media (max-width:680px){.header__logo{width:100px;padding-top:28px;padding-bottom:30px}}
.header{display:block;border-bottom:1px solid rgba(84,84,84,.7)}
.profile__avatar{width:120px;height:120px;border-radius:50%;cursor:pointer;position:relative}.profile__avatar:hover{background:rgba(0,0,0,.8)}.profile__avatar_edit{position:absolute;width:120px;height:120px;border:none;background-color:transparent;background-repeat:no-repeat;background-position:50%;cursor:pointer;box-shadow:none;outline:none}.profile__avatar_edit:hover{background-image:url(ae1a976ddb506239e9f06655014e44a3.svg);background-color:rgba(0,0,0,.8)}
.profile__info{padding:0 30px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-gap:16px;align-items:center}@media (max-width:800px){.profile__info{justify-items:center;padding:0 0 30px}}
.profile__title{font-weight:500;font-size:42px;line-height:1.3;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}@media (max-width:800px){.profile__title{font-size:27px;line-height:2}}
.profile__text{font-weight:400;font-size:18px;line-height:1.2;margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}@media (max-width:800px){.profile__text{font-size:14px;align-self:start;grid-column-start:1;grid-column-end:3}}
.profile__edit{width:24px;height:24px;background-image:url(6c7bf05444b9793fdf6e73a2dd202e7e.svg)}@media (max-width:800px){.profile__edit{width:18px;height:18px}}
.profile__add{width:150px;height:50px;background-image:url(bed8c136e13907f5eefb86d62a5fe29e.svg);margin-left:auto;border:2px solid #fff}@media (max-width:800px){.profile__add{width:282px;height:50px;margin:0 auto}}
.profile{display:flex;padding-top:35px;padding-bottom:45px;align-items:center}@media (max-width:800px){.profile{flex-direction:column;justify-content:center;padding-bottom:36px}}
.cards__items{display:flex;flex-wrap:wrap;list-style-type:none;padding:0 0 65px;width:100%}@media (max-width:800px){.cards__items{justify-content:center}}

.elements__item{width:32%;margin-right:2%;position:relative}.elements__item:nth-child(3n){margin-right:0}@media (max-width:800px){.elements__item{width:45%}.elements__item:nth-child(2n){margin-right:0}.elements__item:nth-child(odd){margin-right:5%}}@media (max-width:610px){.elements__item{width:70%}.elements__item:nth-child(odd){margin-right:0}}@media (max-width:410px){.elements__item{width:100%}}
.elements__img{display:block;width:100%;height:282px;-o-object-fit:cover;object-fit:cover;cursor:pointer}.elements__img:hover{opacity:.6}
.elements__label{display:flex;border-radius:0 0 10px 10px;background-color:#fff;margin-top:-2px;justify-content:space-between;align-items:center;margin-bottom:20px;width:100%}
.elements__title{font-weight:900;font-size:24px;color:#000;line-height:1.2;margin:25px 0 31px 21px;max-width:70%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.elements__like{width:22px;height:20px;background-image:url(b974bef89b0dd2895af6cf3267ba89f5.svg);border:none}.elements__like_active{opacity:1;background:url(a7ffe37dcb927ba0c46c5bed570b6501.svg);background-repeat:no-repeat;background-position:50%}
.elements__trash{width:18px;height:19px;background-image:url(223f012ebd08f3266d8f952977cb95d1.png);border:none;position:absolute;top:0;right:0;padding:23px;z-index:10;display:none}.elements__trash_active{display:block}
.elements__likes{display:flex;flex-direction:column;margin-right:15px;padding:1px}
.elements__like-count{font-size:13px;line-height:16px;text-align:center;color:#000}

.footer__text{font-size:18px;line-height:1.2;color:#545454;margin:0}@media (max-width:720px){.footer__text{font-size:14px}}
.footer{padding-bottom:60px}
.popup__container{position:absolute;padding:36px;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%,-50%);width:430px;background:#fff;box-shadow:0 0 25px rgba(0,0,0,.15);border-radius:10px}@media (max-width:720px){.popup__container{width:300px;padding:18px}}
.popup__container_layout{display:block;box-shadow:none;border-radius:0;background-color:transparent;width:auto;height:auto;padding:0}

.popup__title{font-family:Inter,Arial,sans-serif;font-weight:900;font-size:24px;line-height:1.2;color:#000;margin:0 0 40px}@media (max-width:720px){.popup__title{font-size:20px;margin-bottom:22px}}
.popup__title_layout{font-weight:400;font-size:12px;color:#fff;margin:0}
.popup__close{width:40px;height:40px;background-image:url(b9c42c3d39897f658ef5d3db16533924.svg);border:none;position:absolute;right:-35px;top:-35px;cursor:pointer;margin-bottom:2px}.popup__close:hover{opacity:.6}@media (max-width:720px){.popup__close{width:30px;height:30px;right:-5px}}




.popup__input{border:none;border-bottom:1px solid rgba(0,0,0,.2);font-family:Inter,Arial,sans-serif;font-weight:400;font-size:14px;line-height:1.2;padding:13px 0 13px 2px;margin-bottom:15px;width:100%;color:#000}.popup__input:focus{outline:1px solid #00f}
.popup__save{width:100%;height:50px;font-family:Inter,Arial,sans-serif;font-weight:400;font-size:18px;line-height:1.2px;text-align:center;margin-top:20px;border-radius:2px;background-color:#000;color:#fff}.popup__save:hover{opacity:.8}
.popup__img{position:relative;z-index:1;max-width:75vw;max-height:70vh;padding-bottom:10px}
.popup__input-error_active{color:red;font-family:Inter,Arial,sans-serif;font-weight:400;font-size:12px;line-height:1.2;margin-bottom:12px}
.popup__input_error{border-bottom:1px solid red;margin-bottom:5px}.popup__input_error:focus{outline:none}
.popup__save_inactive{background-color:#fff;border:1px solid #000;color:#000;opacity:.2}
.popup{width:100%;height:100%;background-color:rgba(0,0,0,.9);position:fixed;top:0;left:0;visibility:hidden;opacity:0;transition:visibility .5s,opacity .5s ease-in;z-index:10}
.popup_opened{visibility:visible;opacity:1}

