/*!
 * Header/footer «shell» — ширина как у контента, скругление, серый фон по бокам.
 */

:root {
  --pressa-shell-gutter: 16px;
  --pressa-shell-radius: var(--radius, 16px);
  --pressa-brand-gradient: linear-gradient(
    180deg,
    #ff2d4d 0%,
    #d90429 50%,
    #7a0010 100%
  );
  --pressa-brand-top-bg: rgba(80, 0, 10, 0.92);
  --pressa-shell-shadow: 0 8px 28px rgba(122, 0, 16, 0.22);
}

/* ---------- Header: outer transparent, red block = content width ---------- */

.site-header,
#site-header.site-header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pressa-shell-gutter) 0;
  overflow: visible;
}

/* header-premium.min.css задаёт full-bleed градиент на .site-header--premium — перебиваем */
html:not([data-theme]) #site-header.site-header.site-header--premium,
[data-theme="light"] #site-header.site-header.site-header--premium,
[data-theme="dark"] #site-header.site-header.site-header--premium,
.site-header.site-header--premium#site-header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not([data-theme]) #site-header.site-header.site-header--premium.is-sticky,
[data-theme="light"] #site-header.site-header.site-header--premium.is-sticky,
[data-theme="dark"] #site-header.site-header.site-header--premium.is-sticky {
  box-shadow: none !important;
}

.site-header.is-sticky {
  box-shadow: none !important;
}

.site-header--premium .site-header__accent {
  left: var(--pressa-shell-gutter);
  right: var(--pressa-shell-gutter);
  width: auto;
  max-width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  margin-inline: auto;
  border-radius: var(--pressa-shell-radius) var(--pressa-shell-radius) 0 0;
}

.site-header--premium .header-top,
.site-header--premium .header-main {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  box-sizing: border-box;
  box-shadow: var(--pressa-shell-shadow);
}

.site-header--premium .header-top {
  border-radius: var(--pressa-shell-radius) var(--pressa-shell-radius) 0 0;
  overflow: hidden;
  background: var(--pressa-brand-top-bg, var(--hdr-top-bg, rgba(80, 0, 10, 0.92))) !important;
}

.site-header--premium .header-main {
  border-radius: 0 0 var(--pressa-shell-radius) var(--pressa-shell-radius);
  overflow: visible;
  background: var(--pressa-brand-gradient) !important;
}

.site-header--premium:not(:has(.header-top:not([style*="display: none"]))) .header-main,
.site-header--premium:not(:has(.header-top)) .header-main {
  border-radius: var(--pressa-shell-radius);
}

@media (max-width: 767px) {
  .site-header--premium .header-top {
    display: none !important;
  }

  .site-header--premium .header-main {
    border-radius: var(--pressa-shell-radius);
  }

  .site-header--premium .site-header__accent {
    display: none;
  }
}

/* Без premium-обёртки: один блок .container.header-inner */
.site-header:not(.site-header--premium) > .header-top {
  width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  max-width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  margin-inline: auto;
  border-radius: var(--pressa-shell-radius) var(--pressa-shell-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--pressa-shell-shadow);
  background: var(--pressa-brand-top-bg) !important;
}

.site-header:not(.site-header--premium) > .container.header-inner {
  width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  max-width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  margin-inline: auto;
  border-radius: var(--pressa-shell-radius);
  box-shadow: var(--pressa-shell-shadow);
  background: var(--pressa-brand-gradient) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header:not(.site-header--premium):has(> .header-top:not([style*="display: none"])) > .container.header-inner {
  border-radius: 0 0 var(--pressa-shell-radius) var(--pressa-shell-radius);
}

@media (max-width: 767px) {
  .site-header:not(.site-header--premium) > .header-top {
    display: none !important;
  }

  .site-header:not(.site-header--premium) > .container.header-inner {
    border-radius: var(--pressa-shell-radius);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 0 var(--pressa-shell-gutter) clamp(20px, 3vw, 28px);
  color: #ffffff;
}

.site-footer .footer-main {
  width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  max-width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  margin-inline: auto;
  background: var(--pressa-brand-gradient);
  border-radius: var(--pressa-shell-radius) var(--pressa-shell-radius) 0 0;
  box-shadow: var(--pressa-shell-shadow);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.site-footer .footer-bar {
  width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  max-width: min(var(--container), calc(100% - 2 * var(--pressa-shell-gutter)));
  margin-inline: auto;
  border-radius: 0 0 var(--pressa-shell-radius) var(--pressa-shell-radius);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: var(--pressa-shell-shadow);
}

.site-footer .footer-bar .container.footer-bar-inner {
  max-width: none;
  width: 100%;
}

.site-footer .footer-tagline {
  color: rgba(255, 240, 243, 0.82);
}

.site-footer .footer-menu a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-menu a:hover {
  color: #ffffff;
}

.site-footer .footer-social-link {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer .footer-social-link:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #7a0010;
}

.site-footer .footer-requisites__entity {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .footer-requisites__line,
.site-footer .footer-requisites__label {
  color: rgba(255, 240, 243, 0.72);
}

.site-footer .footer-copyright,
.site-footer .footer-developer-credit {
  color: rgba(255, 240, 243, 0.75);
}

@media (max-width: 1023px) {
  :root {
    --pressa-shell-gutter: 12px;
    --pressa-shell-radius: 14px;
  }

  .site-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
}
