/*! 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: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url(/se_project_spots/35d26b781dc5fda684cc.ttf) format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  src: url(/se_project_spots/673ed42382ab264e0bf5.ttf) format("truetype");
}

.page {
  background-color: #fcf5e5;
  min-height: 100vh;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-weight: 500;
}

.page__section {
  margin: 0 auto;
  max-width: 1280px;
}

.header {
  background-color: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  width: 94px;
  height: 26px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  background-color: #fcf5e5;
}
.footer__text {
  font-size: 16px;
  color: rgba(33, 33, 33, 0.7);
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

.profile {
  display: flex;
  padding: 34px 0 20px;
  border-bottom: 1px rgba(33, 33, 33, 0.4) solid;
}

.profile__avatar {
  width: 190px;
  height: 190px;
  border-radius: 8px;
  margin-right: 20px;
}
.profile__info {
  display: flex;
  flex-direction: column;
}

.profile__name {
  margin: 0 0 12px;
  font-weight: 500;
  line-height: 1;
  font-size: 32px;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #212121;
  max-width: 400px;
}

.profile__bio {
  margin: 0;
  color: rgba(33, 33, 33, 0.7);
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  max-width: 400px;
}

.profile__edit-btn {
  margin-top: auto;
  background-color: transparent;
  border: none;
  text-align: start;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #212121;
  opacity: 0.7;
}
.profile__edit-btn:hover {
  cursor: pointer;
  opacity: 1;
}

.profile__add-btn {
  width: 149px;
  height: 52px;
  color: #fff;
  background-color: rgba(33, 33, 33, 1);
  border-radius: 8px;
  text-align: center;
  margin-top: auto;
  margin-left: auto;
  border: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.profile__add-btn:hover {
  cursor: pointer;
  opacity: 0.8;
}

@media screen and (max-width: 785px) {
  .profile {
    flex-direction: column;
    align-items: center;
    max-width: 288px;
    text-align: center;
    padding: 20px 0 20px;
  }
  .profile__avatar {
    width: 80px;
    height: 80px;
    margin-right: 0;
  }
  .profile__name {
    width: auto;
    height: auto;
    margin: 0 0 6px;
    font-size: 20px;
  }
  .profile__bio {
    margin: 0 0 32px;
  }
  .profile__info {
    margin: 12px 0 20px;
  }

  .profile__add-btn {
    margin: 0;
    width: 288px;
    height: 52px;
    padding: 18px 0;
  }
  .profile__edit-btn {
    margin: 0;
    text-align: center;
  }
}

.content {
  padding: 0 20px;
}
@media (max-width: 320px) {
  .content {
    padding: 0 16px;
  }
}

.cards {
  padding-top: 20px;
  padding-bottom: 36px;
  border-bottom: 1px rgba(33, 33, 33, 0.4) solid;
}

.cards__list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, 413px);
  justify-content: center;
  gap: 40px 20px;
  padding: 0;
}

.cards__empty {
  display: none;
  margin: 0;
  padding: 16px;
}

.cards__empty_visible {
  display: block;
}

@media screen and (max-width: 627px) {
  .cards__list {
    grid-template-columns: repeat(auto-fit, 288px);
    gap: 20px 20px;
  }
  .cards {
    max-width: 288px;
    padding-bottom: 20px;
  }
}

.card {
  max-width: 413px;
  position: relative;
}

.card__delete-btn {
  background-image: url(/se_project_spots/d19faa0112f44e2b6e01.svg);
  width: 32px;
  height: 32px;
  position: absolute;
  border: none;
  background-color: transparent;
  top: 10px;
  right: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.card__delete-btn:hover {
  background-image: url(/se_project_spots/86ae92bd1a937388d496.svg);
  opacity: 1;
}

.card__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.card__image {
  border-radius: 8px;
  width: 413px;
  height: 413px;
  object-fit: cover;
  display: block;
}

.card__title {
  font-weight: 500;
  line-height: 1.2;
  font-size: 20px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 250px;
  color: #212121;
}

.card__like-btn {
  background-image: url(/se_project_spots/29a25a3c4fb6b6e4a7d6.svg);
  width: 23px;
  height: 20px;
  border: none;
  background-color: transparent;
  opacity: 40%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.card__like-btn:hover {
  cursor: pointer;
  opacity: 100%;
}

.card__like-btn_active {
  background-image: url(/se_project_spots/5ba14d29c8f0f8b51069.svg);
  opacity: 1;
}

.card__like-btn_active:hover {
  opacity: 0.5;
}

@media screen and (max-width: 627px) {
  .card__image {
    width: 288px;
    height: 288px;
  }
  .card__title {
    font-size: 16px;
    margin: 0;
    line-height: 1;
    max-width: 250px;
  }
  .card__content {
    padding-top: 12px;
  }
}

.modal {
  opacity: 0;
  visibility: hidden;
  background-color: #00000080;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease, pointer-events 0.3s ease;
}

.modal_is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__container {
  max-width: 730px;
  width: 100%;
  border-radius: 8px;
  background-color: #fff;
  padding: 32px 50px;
  position: relative;
  box-sizing: border-box;
}

.modal__image-preview {
  max-width: 80vw;
  max-height: 80vh;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  width: 100%;
}

.modal__image-container {
  position: relative;
}

.modal__caption {
  font-size: 20px;
  color: #fff;
  background-color: #212121;
  margin-top: 8px;
  display: flex;
  width: fit-content;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 0;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.modal__close-btn {
  opacity: 0.4;
  position: absolute;
  width: 40px;
  height: 40px;
  top: 32px;
  right: 50px;
  background-color: transparent;
  padding: 0;
  border: none;
}

.modal__close-btn:hover {
  opacity: 0.1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal__close-btn-preview {
  top: 0;
  right: -52.5px;
  position: absolute;
  background-color: transparent;
  padding: 0;
  border: none;
  opacity: 0.4;
}

.modal__close-btn-preview:hover {
  opacity: 0.1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal_type_preview {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 500;
}

.modal__form {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.modal__label {
  margin: 0 0 32px;
  color: #212121b2;
  font-size: 16px;
  display: block;
  margin-bottom: 32px;
}

.modal__input {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  border: 1px solid #21212166;
  margin: 8px 0 0;
  padding-left: 12px;
  font-size: 20px;
  box-sizing: border-box;
}

.modal__error {
  display: block;
  margin-top: 8px;
  color: rgba(255, 0, 0, 0.7);
}
.modal__input:hover {
  border: 1px solid rgba(33, 33, 33, 1);
}

.modal__input_type_error {
  border: 1px solid rgba(255, 0, 0, 0.6);
}

.modal__submit-btn:disabled {
  background-color: gray;
  cursor: not-allowed;
  color: #ffffff;
}

.modal__submit-btn {
  max-width: 156px;
  height: 52px;
  padding: 18px 32px;
  background-color: #212121;
  color: #fcf5e5;
  border-radius: 8px;
  font-size: 16px;
}

.modal__submit-btn:hover {
  background-color: #333333;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.modal__input::placeholder {
  color: #2121214d;
}

@media (max-width: 785px) {
  .modal__container {
    padding: 22px 12px 12px;
  }

  .modal__caption {
    font-size: 16px;
  }

  .modal__title {
    font-size: 20px;
    margin: 0 0 24px;
  }

  .modal__input {
    font-size: 16px;
  }

  .modal__submit-btn {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }

  .modal__close-btn {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 16px;
  }
}

@media screen and (max-width: 627px) {
  /* Placed below the 480px media query to avoid being overritten */
  .modal__close-btn-preview {
    top: -48px;
    right: 0;
  }
}
.modal__image-preview {
  max-width: unset;
}



