/* Dungeon — Редакція shortcode. Isolated styles to avoid theme conflicts. */
/* Full-width host used by page.php when the shortcode is present. */
.page-shortcode-fullwidth {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #020a0c;
}
.page-shortcode-fullwidth > p { margin: 0; }
.page-shortcode-fullwidth + .dungeon-footer-v2,
.dred-page + .dungeon-footer-v2 { margin-top: 0 !important; }

.dred-page,
.dred-page * {
  box-sizing: border-box;
}

.dred-page {
  --dred-bg: #020a0c;
  --dred-card: #081317;
  --dred-red: #ff102f;
  --dred-text: #ffffff;
  --dred-muted: #d6d8d9;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--dred-bg);
  color: var(--dred-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.35;
}

.dred-page a { color: inherit; text-decoration: none; }
.dred-page img { max-width: 100%; display: block; }

.dred-shell {
  width: min(100% - 160px, 1532px);
  margin: 0 auto;
}

.dred-top {
  position: relative;
  min-height: 485px;
}

.dred-hero-shell { position: relative; z-index: 3; }

.dred-hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 54%;
  height: 500px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.dred-hero-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: linear-gradient(90deg, var(--dred-bg) 0%, rgba(2,10,12,.82) 28%, rgba(2,10,12,0) 100%);
}

.dred-hero-copy {
  position: relative;
  z-index: 3;
  width: 47%;
  padding-top: 31px;
}

.dred-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 36px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
}

.dred-breadcrumbs a {
  color: #8a8f96 !important;
  text-decoration: none;
}
.dred-breadcrumbs a:hover { color: #e32028 !important; }
.dred-breadcrumbs span {
  color: #8a8f96;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.dred-breadcrumbs strong {
  color: #fff;
  font-weight: 700;
}

.dred-hero-copy h1 {
  margin: 0 0 47px;
  font-size: clamp(62px, 4.8vw, 82px);
  line-height: .94;
  letter-spacing: -2.4px;
  font-weight: 850;
  color: #fff;
}

.dred-hero-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(25px, 2vw, 33px);
  line-height: 1.15;
  letter-spacing: -.6px;
  font-weight: 800;
}

.dred-intro {
  margin: 0;
  color: #d5d7d8;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.37;
  font-weight: 400;
}

.dred-main-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(410px, 1fr);
  gap: 42px;
  margin-top: -10px;
  padding-bottom: 22px;
}

.dred-authors > h2 {
  margin: 0 0 22px;
  color: var(--dred-red);
  font-size: clamp(32px, 2.4vw, 40px);
  line-height: 1;
  letter-spacing: -.7px;
  font-weight: 850;
}

.dred-author-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.dred-author-card {
  min-width: 0;
  min-height: 202px;
  padding: 15px 7px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0a1619 0%, #071114 100%);
  text-align: center;
}

.dred-author-card img {
  width: 98px;
  height: 98px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}

.dred-author-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(17px, 1.28vw, 21px);
  line-height: 1.15;
  font-weight: 760;
  white-space: nowrap;
}

.dred-author-card p {
  margin: 0;
  color: #f0f0f0;
  font-size: clamp(12px, .94vw, 15px);
  line-height: 1.2;
  white-space: nowrap;
}

.dred-contact-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 20px;
}

.dred-team-link {
  align-self: flex-start;
  margin: 0 0 8px -132px;
  color: var(--dred-red) !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.dred-contact-card {
  position: relative;
  border-radius: 8px;
  background: #fff;
  color: #111;
  padding: 18px 22px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,.14);
}

.dred-contact-card h2 {
  margin: 0 0 2px;
  color: #0d0d0d;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.3px;
}

.dred-contact-card > p {
  margin: 0 0 16px;
  color: #101010;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.dred-contact-form { margin: 0; }

.dred-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dred-contact-form label { display: block; margin: 0; }

.dred-contact-form input,
.dred-contact-form textarea {
  width: 100%;
  margin: 0 0 10px !important;
  border: 1px solid #dfe4e8 !important;
  border-radius: 6px !important;
  outline: 0;
  background: #fff !important;
  color: #15171a !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 14px !important;
}

.dred-contact-form input {
  height: 43px;
  padding: 0 12px !important;
}

.dred-contact-form textarea {
  min-height: 59px;
  resize: vertical;
  padding: 8px 12px !important;
  line-height: 1.25 !important;
}

.dred-contact-form input::placeholder,
.dred-contact-form textarea::placeholder { color: #727b89; opacity: 1; }

.dred-contact-form input:focus,
.dred-contact-form textarea:focus { border-color: #b7c1cb !important; }

.dred-contact-form button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--dred-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  cursor: pointer;
}

.dred-contact-form button:hover { filter: brightness(.95); }

.dred-form-status {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
}
.dred-success { background: #e9f7ed; color: #176b32; }
.dred-error { background: #fff0f0; color: #9f1f1f; }

.dred-values-wrap {
  border-top: 1px solid rgba(255,255,255,.16);
}

.dred-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 139px;
  align-items: center;
}

.dred-value-item {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px 0 24px;
}

.dred-value-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255,255,255,.22);
}

.dred-value-item img {
  width: 56px;
  max-height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.dred-value-item p {
  margin: 0;
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 1320px) {
  .dred-shell { width: min(100% - 80px, 1532px); }
  .dred-main-grid { grid-template-columns: minmax(0, 1.9fr) minmax(360px, 1fr); gap: 28px; }
  .dred-author-grid { gap: 9px; }
  .dred-author-card { padding-left: 4px; padding-right: 4px; }
  .dred-author-card img { width: 86px; height: 86px; }
  .dred-value-item { gap: 18px; padding-left: 14px; padding-right: 18px; }
  .dred-value-item p { font-size: 16px; }
}

@media (max-width: 1080px) {
  .dred-shell { width: min(100% - 48px, 980px); }
  .dred-top { min-height: auto; padding-bottom: 28px; }
  .dred-hero-art { position: relative; width: 100%; height: 52vw; min-height: 360px; max-height: 500px; margin-top: 28px; background-size: cover; }
  .dred-hero-art::before { display: none; }
  .dred-hero-copy { width: 100%; }
  .dred-hero-copy h1 { margin-bottom: 34px; }
  .dred-main-grid { grid-template-columns: 1fr; margin-top: 0; }
  .dred-author-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .dred-contact-column { padding-top: 0; }
  .dred-team-link { margin: 0 0 10px; align-self: flex-end; }
  .dred-contact-card { max-width: 620px; width: 100%; align-self: center; }
  .dred-values { grid-template-columns: repeat(2, 1fr); padding: 18px 0; row-gap: 18px; }
  .dred-value-item:nth-child(2)::after { display: none; }
}

@media (max-width: 680px) {
  .dred-shell { width: min(100% - 30px, 620px); }
  .dred-hero-copy { padding-top: 20px; }
  .dred-breadcrumbs { margin-bottom: 24px; }
  .dred-hero-copy h1 { font-size: 54px; letter-spacing: -1.6px; margin-bottom: 30px; }
  .dred-hero-copy h2 { font-size: 25px; }
  .dred-intro { font-size: 15px; }
  .dred-desktop-br { display: none; }
  .dred-hero-art { min-height: 270px; height: 58vw; background-position: 55% top; }
  .dred-authors > h2 { font-size: 34px; }
  .dred-author-grid { grid-template-columns: repeat(2, 1fr); }
  .dred-author-card { min-height: 190px; }
  .dred-form-row { grid-template-columns: 1fr; gap: 0; }
  .dred-contact-card { padding: 17px; }
  .dred-contact-card h2 { font-size: 23px; }
  .dred-values { grid-template-columns: 1fr; padding: 12px 0; }
  .dred-value-item { min-height: 72px; padding: 8px 10px; }
  .dred-value-item::after { display: none !important; }
  .dred-value-item img { width: 52px; }
  .dred-value-item p { font-size: 17px; }
}
