/*
  Theme Name: Gazali Theme
  Text Domain: gazali-theme
  Version: 1.0
  */
:root {
  --gazali-bg: #efefee;
  --gazali-paper: #fbfbfa;
  --gazali-ink: #1f1f1f;
  --gazali-muted: #4a4f55;
  --gazali-blue: #5a6f8a;
  --gazali-blue-soft: #dfe7ef;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--gazali-bg);
  background-image: repeating-linear-gradient(
    90deg,
    #f2f2f1 0,
    #f2f2f1 30px,
    #fbfbfa 30px,
    #fbfbfa 60px
  );
  color: var(--gazali-ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.site-header__hero {
  width: 100%;
  aspect-ratio: 2048 / 430;
  background-image: url("assets/img/header.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 24px 32px 0;
}

.site-header__title {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gazali-ink);
}

.site-nav {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: -42px auto 0;
  padding: 14px 0;
  border-top: 3px solid var(--gazali-blue);
  box-shadow: inset 0 1px 0 #fbfbfa;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.site-nav__link {
  border: 1px solid var(--gazali-muted);
  background: var(--gazali-paper);
  text-align: center;
  padding: 17px 16px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 1px 0 #cfd2d6;
  border-radius: 5px;
  color: #2f3640;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.site-nav__link:hover {
  border-color: #4f6480;
  background: #f1f4f7;
  box-shadow:
    0 10px 22px rgba(47, 54, 64, 0.14),
    0 0 0 1px rgba(90, 111, 138, 0.2);
  color: #1f2a35;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--gazali-muted);
  background-color: #f2f2f1;
  background-image: url("assets/img/footer.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 28px 32px;
}

.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.site-footer__title {
  margin: 0 0 10px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #1f2a35;
}

.site-footer p {
  margin: 0 0 6px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.6px;
  color: #1f2a35;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  .site-header__hero {
    padding: 16px 16px 0;
  }

  .site-header__title {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .site-nav {
    grid-template-columns: 1fr;
    margin: -28px 16px 0;
    padding: 12px 0;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* front-page.php*/
.home-section {
  padding: 56px 24px 72px;
}

.home-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 26px;
}

.home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 89, 104, 0.7),
    transparent
  );
}

.home-card__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.home-card__mark,
.artwork-group__mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(90, 111, 138, 0.48);
  background: #fbfbfa url("assets/img/Logo.png") center / 26px 26px no-repeat;
  box-shadow: 7px 7px 0 rgba(90, 111, 138, 0.12);
  border-radius: 50%;
}

.home-card__eyebrow {
  text-align: left;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;
  margin: 0;
  color: #26394e;
  text-shadow: 0 1px 0 #fff;
}

.home-bio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(90, 111, 138, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbfa 0%, #f1f2ef 100%);
  background-size:
    26px 26px,
    auto;
  border: 1px solid rgba(74, 79, 85, 0.68);
  padding: 30px;
  box-shadow:
    14px 14px 0 rgba(90, 111, 138, 0.1),
    0 22px 46px rgba(47, 54, 64, 0.12);
}

.home-bio::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(143, 92, 72, 0.2);
  pointer-events: none;
}

.home-bio__image {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 310px;
  border: 9px solid #fbfbfa;
  background-image: url("assets/img/author.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.76) contrast(1.04);
  box-shadow:
    0 0 0 1px rgba(74, 79, 85, 0.44),
    0 14px 24px rgba(47, 54, 64, 0.16);
}

.home-manifest__image-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(27, 37, 48, 0.82);
  color: #fff;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.home-bio__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #222831;
}

.home-manifest__title {
  margin: 0;
  color: #26394e;
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.home-manifest__title::first-letter {
  color: #8f5c48;
}

.home-manifest__quote {
  margin: 6px 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27313b;
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.35;
}

.home-manifest__description {
  margin: 32px 0 0;
  color: #4a535d;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.home-card__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 25px;
}

.gazali-button.home-manifest__button {
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-width: 230px;
  padding: 13px 19px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.home-manifest__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(47, 54, 64, 0.3);
}

.gazali-button {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--gazali-blue);
  color: #f7f7f7;
  background: linear-gradient(135deg, #5a6f8a 0%, #8094aa 45%, #465a72 100%);
  padding: 8px 16px; /*12 24*/
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow:
    0 16px 30px rgba(47, 54, 64, 0.22),
    0 0 0 1px rgba(95, 111, 134, 0.35);
}

.gazali-button:hover {
  background: linear-gradient(135deg, #6a7f99 0%, #8ea0b4 45%, #4f657e 100%);
}

@media (max-width: 760px) {
  .home-section {
    padding: 32px 16px 56px;
  }

  .home-card {
    padding-top: 22px;
  }

  .home-card__heading {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }

  .home-card__mark {
    width: 32px;
    height: 32px;
    background-size: 20px 20px;
    box-shadow: 5px 5px 0 rgba(90, 111, 138, 0.12);
  }

  .home-card__eyebrow {
    font-size: 15px;
    letter-spacing: 1.2px;
  }

  .home-bio {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 18px;
    box-shadow:
      8px 8px 0 rgba(90, 111, 138, 0.1),
      0 14px 28px rgba(47, 54, 64, 0.11);
  }

  .home-bio::before {
    inset: 8px;
  }

  .home-bio__image {
    min-height: 240px;
    border-width: 6px;
  }

  .home-manifest__title {
    font-size: clamp(34px, 12vw, 46px);
  }

  .gazali-button.home-manifest__button {
    width: 100%;
  }
}

.home-order-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  min-height: 48px;
  border: 1px solid var(--gazali-blue);
  border-radius: 999px;
  padding: 0 22px;
  color: #f7f7f7;
  background: linear-gradient(135deg, #5a6f8a 0%, #8094aa 45%, #465a72 100%);
  box-shadow:
    0 18px 34px rgba(47, 54, 64, 0.28),
    0 0 0 1px rgba(95, 111, 134, 0.35);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.home-order-sticky:hover {
  background: linear-gradient(135deg, #6a7f99 0%, #8ea0b4 45%, #4f657e 100%);
}

.home-order-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.home-order-modal.is-open {
  display: flex;
}

.home-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 39, 48, 0.64);
}

.home-order-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px 30px 26px;
  background: var(--gazali-paper);
  border: 1px solid var(--gazali-muted);
  border-radius: 16px;
  box-shadow:
    0 24px 54px rgba(47, 54, 64, 0.22),
    0 8px 18px rgba(47, 54, 64, 0.1);
}

.home-order-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(90, 111, 138, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--gazali-blue);
  cursor: pointer;
}

.home-order-modal__title {
  margin: 0 42px 22px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gazali-blue);
}

.home-order-form {
  display: grid;
  gap: 13px;
}

.home-order-form__field {
  display: grid;
  gap: 6px;
}

.home-order-form__field span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4a535d;
}

.home-order-form__input,
.home-order-form__select,
.home-order-form__submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(74, 79, 85, 0.7);
  border-radius: 10px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1.1px;
}

.home-order-form__input,
.home-order-form__select {
  padding: 11px 14px;
  background: #fcfcfb;
  color: #2f3640;
  box-shadow: inset 0 1px 5px rgba(47, 54, 64, 0.08);
}

.home-order-form__select:disabled {
  color: #777f87;
  background: #f0f1f1;
}

.home-order-form__input:focus,
.home-order-form__select:focus {
  outline: none;
  border-color: var(--gazali-blue);
  box-shadow:
    0 0 0 3px rgba(90, 111, 138, 0.12),
    inset 0 1px 5px rgba(47, 54, 64, 0.08);
}

.home-order-form__submit {
  margin-top: 4px;
  border-color: var(--gazali-blue);
  color: #f7f7f7;
  background: linear-gradient(135deg, #5a6f8a 0%, #8094aa 45%, #465a72 100%);
  box-shadow:
    0 12px 24px rgba(47, 54, 64, 0.18),
    0 0 0 1px rgba(95, 111, 134, 0.22);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 760px) {
  .home-order-sticky {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .home-order-modal {
    padding: 16px;
  }

  .home-order-modal__dialog {
    max-height: calc(100vh - 32px);
    padding: 26px 18px 22px;
  }

  .home-order-modal__title {
    margin-right: 40px;
    margin-left: 40px;
    font-size: 15px;
  }
}

/* index.php */
.page-section {
  padding: 48px 24px 80px;
}

.page-card {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--gazali-muted);
  background: var(--gazali-paper);
  border-radius: 16px;
  box-shadow:
    0 20px 45px rgba(47, 54, 64, 0.12),
    0 8px 18px rgba(47, 54, 64, 0.06);
  padding: 36px 48px;
}

@media (max-width: 760px) {
  .page-section {
    padding: 32px 16px 56px;
  }

  .page-card {
    padding: 28px 22px;
  }
}

/* блоки по группам и категорям картин*/
.artwork-catalog {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.artwork-group {
  position: relative;
  margin-top: 88px;
  padding-top: 26px;
}

.artwork-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 89, 104, 0.7),
    transparent
  );
}

.artwork-group__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.artwork-group__title {
  margin: 0;
  color: #26394e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.artwork-group__title::first-letter {
  color: #8f5c48;
}

.artwork-category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.artwork-category-tab {
  position: relative;
  min-height: 64px;
  border: 1px solid rgba(74, 79, 85, 0.62);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78),
      rgba(241, 243, 241, 0.92)
    ),
    var(--gazali-paper);
  text-align: left;
  padding: 15px 16px 15px 22px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  line-height: 1.15;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 8px 18px rgba(47, 54, 64, 0.08);
  border-radius: 2px;
  color: #2f3640;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.artwork-category-tab::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 9px;
  width: 3px;
  background: rgba(143, 92, 72, 0.44);
}

.artwork-category-tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 1px;
  background: rgba(90, 111, 138, 0.34);
}

.artwork-category-tab:hover,
.artwork-category-tab.is-active {
  border-color: #8f5c48;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88),
      rgba(229, 233, 231, 0.96)
    ),
    var(--gazali-blue-soft);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    0 14px 26px rgba(47, 54, 64, 0.16);
  color: #26394e;
  transform: translateY(-1px);
}

.artwork-category-tab.is-active::before {
  background: #8f5c48;
}

.artwork-preview-panel {
  position: relative;
  margin-top: 26px;
  background:
    linear-gradient(90deg, rgba(90, 111, 138, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbfa 0%, #f1f2ef 100%);
  background-size:
    26px 26px,
    auto;
  border: 1px solid rgba(74, 79, 85, 0.68);
  padding: 30px;
  box-shadow:
    14px 14px 0 rgba(90, 111, 138, 0.1),
    0 22px 46px rgba(47, 54, 64, 0.12);
}

.artwork-preview-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(143, 92, 72, 0.2);
  pointer-events: none;
}

.artwork-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.artwork-preview-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8f8f6;
  border: 7px solid #fbfbfa;
  display: block;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(74, 79, 85, 0.44),
    0 11px 20px rgba(47, 54, 64, 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.artwork-preview-card:hover {
  transform: translateY(-4px) rotate(-0.35deg);
  box-shadow:
    0 0 0 1px rgba(143, 92, 72, 0.52),
    0 18px 28px rgba(47, 54, 64, 0.2);
}

.artwork-preview-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artwork-preview-card__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd1d8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.artwork-preview-empty {
  border: 1px dashed var(--gazali-muted);
  background: #f7f7f5;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gazali-blue);
}

.artwork-group__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  margin-bottom: 88px;
}

.gazali-button--outline {
  border: 1px solid var(--gazali-blue);
  color: #2f3640;
  background: var(--gazali-paper);
  box-shadow:
    0 16px 30px rgba(47, 54, 64, 0.14),
    0 0 0 1px rgba(95, 111, 134, 0.22);
}

.gazali-button--outline:hover {
  background: #f1f4f7;
  color: #1f2a35;
}

.catalog-dots {
  display: inline-block;
  min-width: 24px;
  text-align: left;
  margin-left: 6px;
}

.catalog-dots span {
  display: inline-block;
  opacity: 0;
  animation: catalogDots 1.2s infinite;
}

.catalog-dots span:nth-child(1) {
  animation-delay: 0s;
}

.catalog-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.catalog-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes catalogDots {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .artwork-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .artwork-catalog {
    padding: 0 16px 64px;
  }

  .artwork-group {
    margin-top: 56px;
    padding-top: 22px;
  }

  .artwork-group__heading {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }

  .artwork-group__mark {
    width: 32px;
    height: 32px;
    background-size: 20px 20px;
    box-shadow: 5px 5px 0 rgba(90, 111, 138, 0.12);
  }

  .artwork-group__title {
    font-size: 28px;
    line-height: 1.05;
  }

  .artwork-category-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .artwork-category-tab {
    min-height: 54px;
    padding: 13px 14px 13px 20px;
    font-size: 13px;
  }

  .artwork-preview-panel {
    padding: 18px;
    box-shadow:
      8px 8px 0 rgba(90, 111, 138, 0.1),
      0 14px 28px rgba(47, 54, 64, 0.11);
  }

  .artwork-preview-panel::before {
    inset: 8px;
  }

  .artwork-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .artwork-preview-card {
    border-width: 5px;
  }

  .artwork-group__actions {
    margin-bottom: 56px;
  }
}

/* стили для single artwork*/
.artwork-single {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  overflow: hidden;
}

.artwork-single::before {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -120px;
  width: 280px;
  height: 220px;
  background: linear-gradient(
    135deg,
    rgba(127, 173, 140, 0.5),
    rgba(190, 224, 206, 0.65)
  );
  border-top-right-radius: 180px;
  z-index: 0;
}

.artwork-single::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -130px;
  width: 300px;
  height: 230px;
  background: linear-gradient(
    220deg,
    rgba(120, 165, 120, 0.65),
    rgba(92, 140, 96, 0.9)
  );
  border-top-left-radius: 180px;
  z-index: 0;
}

.artwork-breadcrumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 700;
  color: #6f8aa1;
}

.artwork-single__panel {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  border: 1px solid var(--gazali-muted);
  background: var(--gazali-paper);
  border-radius: 6px;
  box-shadow:
    0 18px 38px rgba(47, 54, 64, 0.16),
    0 6px 14px rgba(47, 54, 64, 0.08);
  padding: 24px;
}

.artwork-single__image-frame {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--gazali-muted);
  background: #2b2f34;
  overflow: hidden;
  position: relative;
}

.artwork-single__image {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-single__watermark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: clamp(38px, 6vw, 58px);
  height: auto;
  opacity: 0.42;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.artwork-single__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd1d8;
  font-size: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.artwork-single__meta {
  display: block;
  margin-top: 28px;
  padding: 0 8px;
  text-align: center;
}

.artwork-single__title-line {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #2f3640;
  font-size: 28px;
  line-height: 1.3;
  text-transform: uppercase;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.artwork-single__title-line span,
.artwork-single__details-line span {
  display: inline;
}

.artwork-single__details-line {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.6;
  color: #2f3640;
  font-family: "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.8px;
  text-transform: none;
}

.artwork-single__meta
  > div
  > p:not(.artwork-single__details-line):not(.artwork-single__description) {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--gazali-muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  letter-spacing: 1.2px;
}

.artwork-single__description {
  position: relative;
  margin: 34px 0 0;
  max-width: 780px;
  padding: 26px 30px 26px 34px;
  border-left: 3px solid var(--gazali-blue);
  background: linear-gradient(135deg, rgba(90, 111, 138, 0.08), rgba(251, 251, 250, 0.72));
  box-shadow: 0 14px 34px rgba(47, 54, 64, 0.08);
  color: #30363d;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.artwork-single__description::before {
  content: "О произведении";
  display: block;
  margin-bottom: 16px;
  color: var(--gazali-blue);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.artwork-single__description p {
  margin: 0;
}

.artwork-single__description p + p {
  margin-top: 1em;
}

@media (max-width: 760px) {
  .artwork-single__description {
    margin-top: 26px;
    padding: 20px 20px 20px 24px;
    line-height: 1.7;
  }
}

.artwork-single__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 28px;
  padding: 0 8px;
}

/* Стили для модального окна в single-artwork*/
body.has-artwork-order-modal {
  overflow: hidden;
}

.artwork-order-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.artwork-order-modal.is-open {
  display: flex;
}

.artwork-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 39, 48, 0.64);
}

.artwork-order-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 28px 28px 24px;
  background: var(--gazali-paper);
  border: 1px solid var(--gazali-muted);
  border-radius: 16px;
  box-shadow:
    0 20px 45px rgba(47, 54, 64, 0.18),
    0 8px 18px rgba(47, 54, 64, 0.08);
}

.artwork-order-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(90, 111, 138, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--gazali-blue);
  cursor: pointer;
}

.artwork-order-modal__title {
  margin: 0 0 20px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gazali-blue);
}

.artwork-order-form {
  display: grid;
  gap: 10px;
}

.artwork-order-modal__feedback {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.artwork-order-modal__feedback.is-success {
  background: rgba(127, 173, 140, 0.18);
  border: 1px solid rgba(92, 140, 96, 0.35);
  color: #31543a;
}

.artwork-order-modal__feedback.is-error {
  background: rgba(190, 120, 120, 0.14);
  border: 1px solid rgba(160, 88, 88, 0.28);
  color: #7a3131;
}

.artwork-order-form__input,
.artwork-order-form__submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(74, 79, 85, 0.7);
  border-radius: 10px;
  box-shadow: inset 0 1px 5px rgba(47, 54, 64, 0.08);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.artwork-order-form__input {
  padding: 11px 16px;
  background: #fcfcfb;
  color: #2f3640;
}

.artwork-order-form__input::placeholder {
  color: #6a7179;
  opacity: 1;
}

.artwork-order-form__input:focus {
  outline: none;
  border-color: var(--gazali-blue);
  box-shadow:
    0 0 0 3px rgba(90, 111, 138, 0.12),
    inset 0 1px 5px rgba(47, 54, 64, 0.08);
}

.artwork-order-form__submit {
  margin-top: 4px;
  border-color: var(--gazali-blue);
  color: #f7f7f7;
  background: linear-gradient(135deg, #5a6f8a 0%, #8094aa 45%, #465a72 100%);
  box-shadow:
    0 12px 24px rgba(47, 54, 64, 0.18),
    0 0 0 1px rgba(95, 111, 134, 0.22);
  cursor: pointer;
}

.artwork-order-modal__note {
  margin: 16px 0 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--gazali-muted);
}

@media (max-width: 760px) {
  .artwork-single {
    padding: 40px 16px 72px;
  }

  .artwork-single__panel {
    padding: 16px;
  }

  .artwork-single__title-line {
    font-size: 22px;
    letter-spacing: 1.2px;
  }

  .artwork-single__details-line {
    font-size: 19px;
    letter-spacing: 0.6px;
  }

  .artwork-order-modal__dialog {
    width: min(100%, 320px);
    padding: 24px 18px 20px;
  }

  .artwork-order-modal__title {
    font-size: 14px;
  }

  .artwork-order-form__input,
  .artwork-order-form__submit {
    font-size: 14px;
    letter-spacing: 1.3px;
  }
}

/*  archive-artwork.php*/
.artwork-archive {
  padding: 56px 24px 96px;
}

.artwork-archive__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.artwork-archive__heading {
  text-align: center;
  margin-bottom: 32px;
}

.artwork-archive__heading h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f3640;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.artwork-archive__heading p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6f8aa1;
}

.artwork-archive__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.artwork-archive-card {
  display: block;
  border: 1px solid var(--gazali-muted);
  background: var(--gazali-paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(47, 54, 64, 0.1);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.artwork-archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(47, 54, 64, 0.16);
}

.artwork-archive-card__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.artwork-archive-card__placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7e9;
  color: #6d747c;
  font-size: 12px;
  text-transform: uppercase;
}

.artwork-archive-card__body {
  padding: 14px;
}

.artwork-archive-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2f3640;
  line-height: 1.25;
}

.artwork-archive-card__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #6d747c;
}

.artwork-archive__empty {
  border: 1px dashed var(--gazali-muted);
  background: #f7f7f5;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gazali-blue);
}

.artwork-category-landing__intro {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.artwork-category-landing__intro p {
  margin: 0 0 14px;
  color: #6f8aa1;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.artwork-category-landing__intro p:last-child {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .artwork-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .artwork-archive {
    padding: 40px 16px 72px;
  }

  .artwork-archive__grid {
    grid-template-columns: 1fr;
  }
}

/* public-contacts.php */
.public-contacts {
  padding: 48px 24px 88px;
}

.public-contacts__inner {
  max-width: 980px;
  margin: 0 auto;
}

.public-contacts__eyebrow {
  margin: 0 0 24px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a6f8a;
}

.public-contacts__card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--gazali-muted);
  border-radius: 16px;
  background: var(--gazali-paper);
  padding: 28px 36px;
  text-align: center;
  box-shadow:
    0 20px 45px rgba(47, 54, 64, 0.12),
    0 8px 18px rgba(47, 54, 64, 0.06);
}

.public-contacts__section + .public-contacts__section {
  margin-top: 26px;
}

.public-contacts__label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a6f8a;
}

.public-contacts__stack {
  display: grid;
  gap: 8px;
}

.public-contacts__value,
.public-contacts__social-link {
  font-size: 15px;
  font-weight: 600;
  color: #1f242b;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.public-contacts__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.public-contacts__social-link:hover,
.public-contacts__value:hover {
  color: #5a6f8a;
}

@media (max-width: 760px) {
  .public-contacts {
    padding: 36px 16px 64px;
  }

  .public-contacts__card {
    padding: 24px 22px;
  }
}

/* author-biography.php */
.biography-page {
  padding: 48px 24px 80px;
}

.biography-page__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.biography-page__card {
  background: var(--gazali-paper);
  border-radius: 16px;
  box-shadow:
    0 20px 45px rgba(47, 54, 64, 0.12),
    0 8px 18px rgba(47, 54, 64, 0.06);
  padding: 32px 40px;
}

.biography-page__title {
  margin: 0 0 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1.6px;
  font-weight: 900;
  color: var(--gazali-blue);
  font-family: Georgia, "Times New Roman", serif;
}

.biography-page__content {
  display: grid;
  gap: 24px;
}

.biography-page__subtitle {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1.6px;
  font-weight: 900;
  color: var(--gazali-blue);
  font-family: Georgia, "Times New Roman", serif;
}

.biography-page__text {
  font-size: 16px;
  line-height: 1.75;
  color: #2f3640;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: justify;
}

.biography-page__image {
  width: min(58%, 520px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(47, 54, 64, 0.12);
}

.biography-page__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.biography-page__back,
.biography-page__manifest {
  display: inline-flex;
  border: 1px solid var(--gazali-muted);
  color: #2f3640;
  background: var(--gazali-paper);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 1px 0 #cfd2d6;
  border-radius: 8px;
}

.biography-page__manifest {
  border-color: var(--gazali-blue);
  color: var(--gazali-blue);
}

.biography-page__back:hover,
.biography-page__manifest:hover {
  border-color: #4f6480;
  background: #f1f4f7;
  box-shadow:
    0 10px 22px rgba(47, 54, 64, 0.14),
    0 0 0 1px rgba(90, 111, 138, 0.2);
  color: #1f2a35;
}

/* manifest-korkizma.php */
.manifest-page {
  padding: 42px 24px 80px;
}

.manifest-page__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.manifest-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  background: #fff;
  box-shadow:
    0 18px 44px rgba(47, 54, 64, 0.13),
    0 3px 9px rgba(47, 54, 64, 0.08);
}

.manifest-spread__page {
  min-height: 720px;
  padding: 82px 84px 76px;
}

.manifest-spread__page--left {
  padding-left: 92px;
}

.manifest-spread__page--right {
  padding-right: 92px;
}

.manifest-page__eyebrow {
  margin: 0 0 54px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #777;
}

.manifest-page__title {
  margin: 0 0 8px;
  text-align: center;
  text-transform: uppercase;
  font-family:
    "Arial Narrow", "Roboto Condensed", "HelveticaNeue-CondensedBold", Impact,
    Arial, sans-serif;
  font-size: clamp(36px, 3.1vw, 56px);
  font-stretch: condensed;
  letter-spacing: -0.045em;
  font-weight: 900;
  line-height: 0.86;
  color: #4c4d51;
  white-space: nowrap;
}

.manifest-page__title .manifest-page__title-red {
  color: #d21f2c;
}

.manifest-page__title .manifest-page__title-initial {
  color: #d21f2c;
}

.manifest-page__title .manifest-page__title-dark {
  color: #4c4d51;
}

.manifest-page__lead {
  margin: 0 auto 32px;
  text-align: center;
  color: #4c4d51;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.manifest-page__text {
  margin: 0;
}

.manifest-page__text + .manifest-page__text {
  margin-top: 10px;
}

.manifest-page__section {
  position: relative;
  margin-top: 18px;
  padding-left: 22px;
}

.manifest-page__section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  background: #d21f2c;
}

.manifest-page__subtitle {
  margin: 0 0 9px;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 900;
  color: #d21f2c;
  line-height: 1.2;
}

.manifest-page__section--inline .manifest-page__subtitle {
  display: inline;
  margin-right: 4px;
  color: #4c4d51;
  font-size: 14px;
}

.manifest-page__section--inline .manifest-page__text {
  display: inline;
}

.manifest-page__text,
.manifest-page__list {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.38;
  color: #606268;
  font-weight: 600;
  letter-spacing: 0;
}

.manifest-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 40px;
  align-items: start;
  margin: 0 0 34px;
}

.manifest-page__list {
  margin: 0;
  padding-left: 18px;
}

.manifest-page__list li + li {
  margin-top: 16px;
}

.manifest-page__photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  background: #ddd;
  overflow: hidden;
}

.manifest-page__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.manifest-page__list--style li + li {
  margin-top: 15px;
}

.manifest-page__signature {
  margin: 38px 0 0;
  text-align: right;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  color: #5d5f65;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.manifest-page__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  padding: 0 84px 46px;
  margin-top: -22px;
}

.manifest-page__back {
  display: inline-flex;
  border: 1px solid var(--gazali-muted);
  color: #2f3640;
  background: var(--gazali-paper);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 1px 0 #cfd2d6;
  border-radius: 8px;
}

.manifest-page__back:hover {
  border-color: #4f6480;
  background: #f1f4f7;
  box-shadow:
    0 10px 22px rgba(47, 54, 64, 0.14),
    0 0 0 1px rgba(90, 111, 138, 0.2);
  color: #1f2a35;
}

@media (max-width: 760px) {
  .biography-page {
    padding: 32px 16px 56px;
  }

  .biography-page__card {
    padding: 24px 20px;
  }

  .biography-page__title,
  .biography-page__subtitle {
    font-size: 15px;
  }

  .biography-page__text {
    font-size: 14px;
  }

  .biography-page__image {
    width: 100%;
  }

  .manifest-page {
    padding: 32px 16px 56px;
  }

  .manifest-spread {
    grid-template-columns: 1fr;
  }

  .manifest-spread__page,
  .manifest-spread__page--left,
  .manifest-spread__page--right {
    min-height: 0;
    padding: 38px 22px;
  }

  .manifest-page__eyebrow {
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 1.4;
  }

  .manifest-page__title {
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: -0.04em;
    white-space: normal;
  }

  .manifest-page__lead {
    font-size: 13px;
  }

  .manifest-page__text,
  .manifest-page__list {
    font-size: 13px;
    text-align: left;
  }

  .manifest-page__intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .manifest-page__photo {
    width: min(220px, 100%);
  }

  .manifest-page__signature {
    text-align: left;
  }

  .manifest-page__actions {
    padding: 0 22px 34px;
    margin-top: 0;
  }
}

/* archive-publication.php + single-publication.php */
.publication-archive,
.publication-single {
  padding: 48px 24px 80px;
}

.publication-archive__inner,
.publication-single__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.publication-archive__eyebrow,
.publication-single__eyebrow {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gazali-blue);
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 24px;
}

.publication-archive__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.publication-archive__sidebar,
.publication-card,
.publication-single__card {
  border: 1px solid var(--gazali-muted);
  border-radius: 16px;
  background: var(--gazali-paper);
  box-shadow:
    0 20px 45px rgba(47, 54, 64, 0.12),
    0 8px 18px rgba(47, 54, 64, 0.06);
}

.publication-archive__sidebar {
  padding: 20px 16px;
}

.publication-archive__sidebar-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gazali-blue);
  font-family: Georgia, "Times New Roman", serif;
}

.publication-archive__tabs {
  display: grid;
  gap: 10px;
}

.publication-archive__tab {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid var(--gazali-blue);
  border-radius: 8px;
  padding: 11px 14px;
  color: #2f3640;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: transparent;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.publication-archive__tab:hover,
.publication-archive__tab.is-active {
  color: #f7f7f7;
  background: linear-gradient(135deg, #5a6f8a 0%, #8094aa 45%, #465a72 100%);
  border-color: #5a6f8a;
  box-shadow:
    0 16px 30px rgba(47, 54, 64, 0.22),
    0 0 0 1px rgba(95, 111, 134, 0.35);
}

.publication-archive__content {
  display: grid;
  gap: 32px;
}

.publication-card,
.publication-single__card {
  padding: 20px 32px;
}

.publication-card__header,
.publication-single__header {
  border-bottom: 2px solid var(--gazali-muted);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.publication-card__title {
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #2f3640;
  letter-spacing: 1px;
}

.publication-single__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 34px;
  color: #2f3640;
  letter-spacing: 1px;
}

.publication-card__body,
.publication-single__content {
  display: grid;
  gap: 8px;
}

.publication-card__section,
.publication-single__section {
  display: grid;
  gap: 6px;
}

.publication-card__section-title,
.publication-single__section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 22px;
  color: #2f1b12;
  line-height: 1.15;
}

.publication-card__meta-block,
.publication-single__meta-block {
  display: grid;
  gap: 2px;
}

.publication-card__meta-label,
.publication-single__meta-label {
  color: rgba(79, 54, 38, 0.85);
  font-size: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.publication-card__text,
.publication-single__text {
  color: #2f1b12;
  font-size: 16px;
  line-height: 1.25;
  white-space: pre-line;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
/* .wp-caption — это контейнер картинки с подписью */
.publication-single__text .wp-caption {
  margin: 28px auto 18px;
  max-width: 100%;
  text-align: center;
}

/* .wp-caption img — сама картинка внутри контейнера */
.publication-single__text .wp-caption img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
/* .wp-caption-text — текст подписи */
.publication-single__text .wp-caption-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #5f5a54;
  text-align: center;
}
/* img.aligncenter — класс выравнивания, который WordPress может назначать картинке */
.publication-single__text img.aligncenter {
  display: block;
  margin: 28px auto 18px;
  max-width: 100%;
  height: auto;
}

.publication-card__actions,
.publication-single__actions {
  margin-top: 4px;
}

.publication-card__more,
.publication-single__back {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(90, 111, 138, 0.7);
  border-radius: 8px;
  padding: 10px 16px;
  color: #2f3640;
  background: transparent;
}

.publication-card__more:hover,
.publication-single__back:hover {
  border-color: rgba(90, 111, 138, 0.95);
  background: rgba(90, 111, 138, 0.08);
}

.publication-single__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.publication-archive__empty {
  border: 1px dashed var(--gazali-muted);
  background: #f7f7f5;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gazali-blue);
}

@media (max-width: 980px) {
  .publication-archive__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .publication-archive,
  .publication-single {
    padding: 32px 16px 56px;
  }

  .publication-card,
  .publication-single__card {
    padding: 22px 20px;
  }

  .publication-card__title,
  .publication-single__title {
    font-size: 26px;
  }

  .publication-card__section-title,
  .publication-single__section-title {
    font-size: 20px;
  }

  .publication-card__text,
  .publication-single__text {
    font-size: 15px;
  }
}
