html {
  height: 100%;
}

.sticky-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.enter-or-reg {
  height: auto;
  min-height: 180px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.flex-column-elements-margin > * + * {
  margin-top: 20px;
}

.main-page {
  padding-bottom: 0 !important;
}

.main-page__posts-cards {
  padding-bottom: 90px;
}

.section-header {
  background: #eaeff2;
}

.main-page .section-header {
  background: #fff;
}

.authorization-page__header a {
  transition: opacity 0.3s ease-in;
}

.authorization-page__header a:hover {
  text-decoration: none;
  opacity: 0.7;
}

.authorization-page__header-title,
.authorization-page__header-subtitle {
  opacity: inherit;
}

.control-panel__list-img-badge {
  border-radius: 10px;
}

.section-posts {
  text-align: center;
}

    .section-posts__link {
        margin-top: 10px;
        margin-bottom: 20px;
        font-size: 16px;
    }

.active {
  border: 1px solid #000;
}

.section-posts__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.card-post {
  transition: all 0.6s ease-in;
}

.card-project {
  transition: all 0.4s ease-in;
}

.card-post_rotateY:hover {
  transform: translateY(-10px);
}

.card-post__title-a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  max-height: calc(1.5em * 3);
}

.card-post__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: calc(1.5em * 3);
}

.card-post__title-same {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: calc(1.5em * 3);
}

.card-post-same:hover {
  transform: translateY(-10px);
}

.primary-button--red {
  background: #c93535;
}

.icon-delete {
  display: inline-block;
}

.section-posts__info {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-posts__info > * + * {
  margin-left: 15px;
}

.span-single-category {
  font-weight: 700;
}

.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 16px;
  color: #665;
}

.admin-section-title {
  font-weight: 600;
  font-size: 22px;
  padding: 15px;
  margin: 30px -10px 20px;
  background-color: #dcdcdc;
  text-align: center;
}

.block-contacts__info {
  font-weight: 400;
}

.post-about-skills ul {
  margin: 0;
  padding: 0;
  padding-left: 15px;
  list-style: none;
  font-family: "Playfair Display", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
}

.post-about-skills li {
  position: relative;
  margin-bottom: 5px;
}

.post-about-skills li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000;
}

.two-words {
  word-break: break-word;
  max-width: 10ch; /* примерно 2 коротких слова */
}

/* Dashboard */

.dashboard {
  display: flex;
  flex-wrap: wrap;
}

.dashboard-item {
  padding: 15px;
  border: 1px solid rgb(199, 209, 216);
  flex-grow: 2;
}

.dashboard-item {
  margin-left: 15px;
  margin-bottom: 15px;
}
.dashboard-item__title {
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 25px;
}
.dashboard-item__value {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 25px;
}
.dashboard-item__action {
}

a.control-panel__title {
  color: #fff;
  text-decoration: none;
  display: block;
}

.control-panel__list-link--active {
  color: #ffd700;
  text-decoration: underline;
}

.control-panel__list-img-badge {
  min-width: 18px;
  line-height: 1;
}

.table tbody tr.message-new {
  background-color: #edffd0;
}

a.logo-link {
  text-decoration: none;
  display: block;
}

a.logo-link:hover {
  opacity: 0.6;
}

.admin-panel__message::after {
  display: none;
}

.admin-panel__message-icon {
  content: attr(data-number);
  position: absolute;
  display: block;
  top: 6px;
  left: 50%;
  -webkit-transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  padding: 4px;
  font-size: 12px;
  text-align: center;
  background: #c90000;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  min-width: 18px;
}

.body-with-panel {
  padding-top: 54px;
}

.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 99;
}

.admin-panel__link {
  padding-top: 5px;
  margin-right: 45px;
}

.section-site-single__img {
  width: 900px;
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden; /* чтобы картинка не вылезала за скруглённые углы */
}

.section-site-single__img:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 45px -20px rgba(0, 0, 0, 0.5);
}

.section-site-single__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit; /* наследует радиус от родителя */
  object-fit: cover;
}

/* ===== БУРГЕР-МЕНЮ (всегда активно) ===== */

/* Кнопка-бургер */
.burger-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  width: 60px;
  height: 56px;
  background: #212121;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Оверлей (затемнение) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
}

.sidebar-overlay.active {
  display: block;
}

/* Панель — скрыта по умолчанию */
.admin-page__left-panel {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 998;
}

.admin-page__left-panel.active {
  transform: translateX(0);
}

/* Контент — на всю ширину */
.admin-page__content {
  left: 10px !important;
  right: 10px !important;
  top: 60px !important;
}

/* Кнопка-бургер отодвигается, когда панель открыта */
.admin-page__left-panel.active ~ .burger-btn {
  left: 300px;
}

.control-panel__list-item a {
  font-size: 20px;
}

.control-panel__subtitle {
  font-size: 17px;
}

.secondary-button {
  line-height: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
}

.table thead {
  font-size: 16px;
}

.table thead th {
  padding: 10px;
}

.section-posts__img {
  min-height: auto;
}

.row-profile5 {
  width: 100%;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.admin-form-order {
  margin: 0 auto;
  width: 80%;
  text-align: center;
}

/* Payment methods */

.payment-methods {
  max-width: 400px;
  margin: 0 auto;
}

.payment-yookassa,
a.payment-yookassa {
  display: flex;
  align-items: center;
  column-gap: 20px;

  padding: 20px;

  box-shadow: 0px 0px 15px #b7d8e6;
  border-radius: 8px;

  color: #000;
  text-decoration: none;

  transition: all 0.2s ease-in;
}

.payment-yookassa:hover,
a.payment-yookassa:hover {
  box-shadow: 0px 0px 35px #9ac4d7;
}

.section__shop-title {
  font-size: 20px;
  font-weight: 600;
}