/*
Theme Name: Sunfyre Child - Social Casino
Template: astra
Version: 4.0.1
*/

:root {
  --body-font: "Noto Sans", sans-serif;
  --heading-font: "Noto Sans", sans-serif;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans", sans-serif !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #051427;
  display: grid;
  place-items: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader .loader-p {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 5px solid rgba(242, 201, 83, 0.25);
  border-top-color: #f0c654;
  animation: loaderSpin 0.8s linear infinite;
}

.preloader.preloader--done {
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.logo-fallback {
  width: 78px;
  height: 78px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: #1b2027;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.sunfyre-placeholder,
.game-item__placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  color: #d9e8ff;
  border: 2px dashed rgba(247, 200, 79, 0.6);
  background: linear-gradient(145deg, rgba(18, 41, 68, 0.9), rgba(12, 28, 45, 0.9));
}

.sunfyre-placeholder span {
  display: inline-block;
}

.banner-content-slider__inner:not(.slick-initialized) .banner-slider-item {
  display: none;
  animation: bannerFade 0.45s ease;
}

.banner-content-slider__inner:not(.slick-initialized) .banner-slider-item.is-active {
  display: block;
}

@keyframes bannerFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-section {
  position: relative;
  margin-top: 18px;
  padding: 106px 0 94px;
  overflow: hidden;
  background-color: #071528;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(107, 179, 224, 0.2), transparent 34%),
    radial-gradient(circle at 82% 25%, rgba(77, 153, 219, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(4, 16, 34, 0.8) 0%, rgba(4, 16, 34, 0.26) 50%, rgba(4, 16, 34, 0.72) 100%);
  z-index: 0;
}

.banner-section .container {
  position: relative;
  z-index: 1;
}

.banner-content-slider {
  max-width: 640px;
}

.banner-content-slider__inner {
  padding: 0 !important;
  position: relative;
}

.banner-content-slider__inner::before,
.banner-content-slider__inner::after {
  content: none !important;
  display: none !important;
}

.banner-slider-item__wrapper {
  min-height: 344px;
  padding: 38px 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-radius: 0;
  clip-path: polygon(
    36px 0,
    100% 0,
    100% calc(100% - 36px),
    calc(100% - 36px) 100%,
    0 100%,
    0 36px
  );
  border: 2px solid rgba(241, 199, 74, 0.82);
  background: linear-gradient(140deg, rgba(16, 32, 55, 0.96) 0%, rgba(11, 26, 46, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(103, 165, 216, 0.45) inset,
    0 0 16px rgba(237, 198, 74, 0.2);
}

.banner-content {
  max-width: 355px;
}

.banner-content__title {
  margin: 0;
  line-height: 0.97;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5vw, 4rem);
  color: #f7fbff !important;
}

.banner-content__desc {
  margin: 22px 0 28px;
  max-width: 280px;
  color: rgba(219, 231, 247, 0.9) !important;
  font-size: clamp(1rem, 2vw, 1.8rem);
}

.banner-content .btn--gradient {
  min-width: 184px;
  min-height: 50px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(247, 200, 79, 0.96) !important;
  box-shadow: 0 4px 14px rgba(247, 200, 79, 0.3);
}

.banner-slider-item .banner-image {
  width: 152px;
  height: 184px;
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.banner-slider-item .banner-image img,
.banner-slider-item .banner-image .sunfyre-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(247, 200, 79, 0.62);
  background: rgba(7, 21, 40, 0.5);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.banner-thumb {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.banner-thumb img,
.banner-thumb .sunfyre-placeholder {
  width: min(100%, 690px);
  min-height: 420px;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}

.banner-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.banner-slider-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(221, 232, 246, 0.8);
  background: rgba(221, 232, 246, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-slider-dot.is-active {
  border-color: #3b6e9f;
  background: #3b6e9f;
}

.banner-slider-dots .slick-dots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.banner-slider-dots .slick-dots li {
  margin: 0;
  padding: 0;
}

.banner-slider-dots .slick-dots li button {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(221, 232, 246, 0.8);
  background: rgba(221, 232, 246, 0.75);
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-slider-dots .slick-dots li.slick-active button {
  border-color: #3b6e9f;
  background: #3b6e9f;
}

@media (max-width: 1199px) {
  .banner-section {
    margin-top: 14px;
    padding: 86px 0 86px;
  }

  .banner-slider-item__wrapper {
    min-height: 322px;
    padding: 34px 30px 30px;
  }

  .banner-slider-item .banner-image {
    width: 140px;
    height: 170px;
  }
}

@media (max-width: 991px) {
  .banner-section .row {
    gap: 16px;
  }

  .banner-content-slider {
    margin-inline: auto;
  }

  .banner-thumb img,
  .banner-thumb .sunfyre-placeholder {
    min-height: 320px;
    max-height: 470px;
  }
}

@media (max-width: 767px) {
  .banner-section {
    margin-top: 10px;
    padding: 66px 0 66px;
  }

  .banner-slider-item__wrapper {
    min-height: auto;
    gap: 18px;
    padding: 26px 18px 24px;
    clip-path: polygon(
      22px 0,
      100% 0,
      100% calc(100% - 22px),
      calc(100% - 22px) 100%,
      0 100%,
      0 22px
    );
  }

  .banner-content__desc {
    margin: 14px 0 18px;
  }

  .banner-content .btn--gradient {
    min-width: 160px;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .banner-slider-item .banner-image {
    width: 118px;
    height: 146px;
  }

  .banner-slider-item .banner-image img,
  .banner-slider-item .banner-image .sunfyre-placeholder {
    min-height: 0;
  }

  .banner-thumb img,
  .banner-thumb .sunfyre-placeholder {
    min-height: 260px;
  }
}

/* Color-only overrides (layout preserved) */
body {
  background-color: #071427 !important;
  color: #e8efff !important;
}

.header,
.header.fixed-header {
  background: #081a30 !important;
  border-bottom: 1px solid rgba(227, 188, 63, 0.28);
}

.header .nav-link {
  color: #eef5ff !important;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .nav-item.active > .nav-link {
  color: #e3bc3f !important;
}

.section-heading__title,
.page-title,
.game-title,
.about-grid h2,
.contact-form h2 {
  color: #f6f9ff !important;
}

.section-heading__desc,
.page-desc,
.disclaimer-text,
.socket-area__text {
  color: #a9bedf !important;
}

.games-section-content,
.panel-frame,
.game-frame,
.balance-card,
.info-card,
.contact-form,
.contact-info {
  background: #14264017 !important;
  border-color: rgba(227, 188, 63, 0.38) !important;
}

.btn--gradient,
.btn--base,
.newsletter__btn {
  background: linear-gradient(135deg, #f1d078 0%, #d6a33d 100%) !important;
  border: 1px solid #e3bc3f !important;
  color: #17263d !important;
}

.btn--gradient:hover,
.btn--base:hover,
.newsletter__btn:hover {
  filter: brightness(1.04);
}

.game-item {
  width: calc(25% - 30px) !important;
  min-width: 0;
}

@media screen and (max-width: 1199px) {
  .game-item {
    width: calc(33.3333333333% - 20px) !important;
  }
}

@media screen and (max-width: 767px) {
  .game-item {
    width: calc(50% - 15px) !important;
  }
}

.game-item__image {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.game-item__image > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.game-item__image .game-item__placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.game-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-item:hover .game-item__play {
  opacity: 1;
}

.game-item__title {
  color: #f1f5ff !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.age-badge {
  border-color: #e3bc3f !important;
  background: linear-gradient(135deg, rgba(227, 188, 63, 0.35), rgba(227, 188, 63, 0.1)) !important;
}

.text--base {
  color: #e3bc3f !important;
}

.footer-area__thumb {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.footer-area__thumb-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(227, 188, 63, 0.55);
  background: radial-gradient(circle at 35% 30%, rgba(227, 188, 63, 0.42), rgba(8, 27, 47, 0.9));
  box-shadow: 0 0 30px rgba(227, 188, 63, 0.35);
}

.footer-area__thumb-icon i {
  font-size: 48px;
  line-height: 1;
  color: #f7d57b;
}

.social-list__link .bi {
  font-size: 1.1rem;
  line-height: 1;
}

.win-loss-popup__body .img-glow {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(11, 30, 52, 0.97), rgba(7, 22, 39, 0.98));
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.34);
}

.win-loss-popup__body .img-glow i {
  font-size: 64px;
  line-height: 1;
}

.win-loss-popup__body .img-glow.win {
  color: #7ef1a6;
  border: 2px solid rgba(126, 241, 166, 0.58);
  box-shadow: 0 0 24px rgba(126, 241, 166, 0.27);
}

.win-loss-popup__body .img-glow.lose {
  color: #ff9c9c;
  border: 2px solid rgba(255, 156, 156, 0.56);
  box-shadow: 0 0 24px rgba(255, 156, 156, 0.25);
}

.sunfyre-icon-visual {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(227, 188, 63, 0.5);
  background: linear-gradient(145deg, rgba(15, 34, 58, 0.96), rgba(8, 22, 41, 0.96));
  box-shadow: inset 0 0 0 1px rgba(112, 171, 217, 0.25), 0 0 26px rgba(227, 188, 63, 0.2);
}

.sunfyre-icon-visual i {
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
  color: #f0cd70;
}

.sunfyre-icon-visual--contact i {
  color: #7ec8ff;
}

@media screen and (max-width: 767px) {
  .sunfyre-icon-visual {
    min-height: 240px;
  }

  .win-loss-popup__body .img-glow {
    width: 128px;
    height: 128px;
  }

  .win-loss-popup__body .img-glow i {
    font-size: 52px;
  }
}

/* Local mirrors for remote mask/background assets (prevents localhost CORS). */
.banner-slider-item .banner-image img {
  -webkit-mask-image: url("./assets/images/frontend/remote/slider-shape.png") !important;
  mask-image: url("./assets/images/frontend/remote/slider-shape.png") !important;
}

.banner-slider-item .banner-image::after {
  -webkit-mask-image: url("./assets/images/frontend/remote/slider-shape.png") !important;
  mask-image: url("./assets/images/frontend/remote/slider-shape.png") !important;
}

.games-section-content::before {
  -webkit-mask-image: url("./assets/images/frontend/remote/games-shape.png") !important;
  mask-image: url("./assets/images/frontend/remote/games-shape.png") !important;
}

.games-section-content::after {
  -webkit-mask-image: url("./assets/images/frontend/remote/game-shape.png") !important;
  mask-image: url("./assets/images/frontend/remote/game-shape.png") !important;
  background-image: url("./assets/images/frontend/remote/game-shape.png") !important;
}

.game-item__play,
.game-item__image img {
  -webkit-mask-image: url("./assets/images/frontend/remote/game-bgshape.png") !important;
  mask-image: url("./assets/images/frontend/remote/game-bgshape.png") !important;
}

.footer-area::before {
  -webkit-mask-image: url("./assets/images/frontend/remote/footer-shape.png") !important;
  mask-image: url("./assets/images/frontend/remote/footer-shape.png") !important;
}

.footer-area::after {
  -webkit-mask-image: url("./assets/images/frontend/remote/footer-bg.png") !important;
  mask-image: url("./assets/images/frontend/remote/footer-bg.png") !important;
  background-image: url("./assets/images/frontend/remote/footer-bg.png") !important;
}

/* Inner pages refresh (about, contact, games hero). */
.inner-top-strip {
  position: relative;
  height: 42px;
  margin-top: 16px;
  background-color: #0a1d33;
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(227, 188, 63, 0.22);
  border-bottom: 4px solid rgba(227, 188, 63, 0.92);
  overflow: hidden;
}

.inner-top-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 13, 23, 0.75), rgba(4, 13, 23, 0.15), rgba(4, 13, 23, 0.7));
}

.inner-hero {
  position: relative;
  overflow: hidden;
  background-color: #0b1f35;
  background-size: cover;
  background-position: center;
  padding: 54px 0 48px;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, rgba(104, 179, 223, 0.2), transparent 48%),
    linear-gradient(90deg, rgba(3, 12, 22, 0.78), rgba(3, 12, 22, 0.28) 45%, rgba(3, 12, 22, 0.72));
}

.inner-hero__body {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 420px);
  align-items: center;
  gap: 26px;
}

.inner-hero__content .page-title {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.95;
}

.inner-hero__breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fbff;
}

.inner-hero__breadcrumbs span:last-child {
  color: #f0c758;
}

.inner-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.inner-hero__visual img,
.inner-hero__visual .sunfyre-placeholder {
  width: min(100%, 360px);
  min-height: 220px;
  max-height: 290px;
  object-fit: contain;
}

.about-screen {
  position: relative;
}

.about-showcase {
  position: relative;
  padding: 12px;
  background: linear-gradient(135deg, rgba(95, 155, 198, 0.9), rgba(227, 188, 63, 0.94));
  clip-path: polygon(
    10% 0,
    44% 0,
    47% 4%,
    53% 4%,
    56% 0,
    90% 0,
    100% 12%,
    100% 88%,
    90% 100%,
    56% 100%,
    53% 95%,
    47% 95%,
    44% 100%,
    10% 100%,
    0 88%,
    0 12%
  );
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.about-showcase__inner {
  display: grid;
  grid-template-columns: minmax(250px, 420px) 1fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
  padding: 42px 44px;
  background: linear-gradient(130deg, rgba(17, 36, 58, 0.97), rgba(10, 27, 47, 0.97));
  clip-path: polygon(
    10% 0,
    44% 0,
    47% 4%,
    53% 4%,
    56% 0,
    90% 0,
    100% 12%,
    100% 88%,
    90% 100%,
    56% 100%,
    53% 95%,
    47% 95%,
    44% 100%,
    10% 100%,
    0 88%,
    0 12%
  );
}

.about-showcase__character {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-showcase__character img,
.about-showcase__character .sunfyre-placeholder {
  width: min(100%, 360px);
  min-height: 320px;
  max-height: 460px;
  object-fit: contain;
}

.about-showcase__content .page-title {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.92;
}

.about-showcase__content .page-desc {
  margin: 0;
  max-width: 640px;
  font-size: 1.62rem;
  line-height: 1.58;
}

.about-feature-badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about-feature-badge {
  min-width: 210px;
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 2px solid rgba(96, 153, 196, 0.65);
  background: linear-gradient(135deg, rgba(17, 37, 61, 0.9), rgba(11, 29, 50, 0.9));
  box-shadow: inset 0 -2px 0 rgba(227, 188, 63, 0.85);
  color: #f3f7ff;
  font-size: 1.15rem;
  font-weight: 700;
}

.about-feature-badge i {
  color: #e3bc3f;
  font-size: 1.15rem;
}

.contact-screen {
  position: relative;
}

.contact-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.contact-quick-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px 18px;
  border: 2px solid rgba(98, 156, 199, 0.72);
  border-right-color: rgba(227, 188, 63, 0.9);
  background: linear-gradient(135deg, rgba(17, 36, 58, 0.95), rgba(10, 28, 48, 0.95));
  clip-path: polygon(9% 0, 100% 0, 100% 86%, 95% 100%, 0 100%, 0 16%);
}

.contact-quick-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(227, 188, 63, 0.8);
  color: #e3bc3f;
  font-size: 1.25rem;
}

.contact-quick-card__body h3 {
  margin: 0 0 6px;
  color: #f4f8ff;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1;
}

.contact-quick-card__body p {
  margin: 0;
  color: #adc3e1;
  font-size: 1.2rem;
  line-height: 1.38;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 760px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(98, 155, 198, 0.92), rgba(227, 188, 63, 0.95));
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: linear-gradient(130deg, rgba(17, 36, 58, 0.97), rgba(10, 27, 47, 0.97));
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 10%);
}

.contact-panel__form-wrap,
.contact-panel__visual {
  position: relative;
  z-index: 1;
  padding: 48px 42px;
}

.contact-panel__form-wrap {
  border-right: 1px solid rgba(107, 164, 208, 0.48);
}

.contact-panel__form h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4.2vw, 3.45rem);
}

.contact-panel__label {
  display: block;
  margin: 0 0 8px;
  color: #dce8f8;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-panel__control {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
}

.contact-panel__icon {
  width: 60px;
  border-radius: 10px 0 0 10px;
  border: 1px solid rgba(227, 188, 63, 0.88);
  border-right: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #77a9cf, #e2be4d);
  color: #162841;
  font-size: 1.15rem;
}

.contact-panel__control .form--control {
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(45, 79, 112, 0.8);
  border-left: 0;
  background: rgba(7, 22, 39, 0.82);
  color: #f1f6ff;
  min-height: 56px;
  padding: 0 14px;
}

.contact-panel__textarea {
  width: 100%;
  min-height: 172px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(45, 79, 112, 0.8);
  background: rgba(7, 22, 39, 0.82);
  color: #f1f6ff;
  resize: vertical;
  margin-bottom: 16px;
}

.contact-panel__submit {
  width: 100%;
  min-height: 64px;
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-panel__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-panel__visual img,
.contact-panel__visual .sunfyre-placeholder {
  width: min(100%, 390px);
  min-height: 360px;
  max-height: 500px;
  object-fit: contain;
}

@media screen and (max-width: 1199px) {
  .about-showcase__inner {
    min-height: 460px;
    padding: 34px 30px;
    gap: 18px;
  }

  .about-showcase__content .page-desc {
    font-size: 1.38rem;
  }

  .contact-panel {
    min-height: 700px;
  }

  .contact-panel__form-wrap,
  .contact-panel__visual {
    padding: 34px 24px;
  }
}

@media screen and (max-width: 991px) {
  .inner-hero__body {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .inner-hero__breadcrumbs {
    justify-content: center;
  }

  .inner-hero__visual {
    justify-content: center;
  }

  .about-showcase__inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 30px 20px;
  }

  .about-feature-badges {
    justify-content: center;
  }

  .contact-quick-cards {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-panel::before {
    inset: 10px;
  }

  .contact-panel__form-wrap {
    border-right: 0;
    border-bottom: 1px solid rgba(107, 164, 208, 0.48);
  }
}

@media screen and (max-width: 767px) {
  .inner-top-strip {
    margin-top: 10px;
    height: 28px;
  }

  .inner-hero {
    padding: 34px 0 30px;
  }

  .inner-hero__content .page-title {
    margin-bottom: 8px;
  }

  .inner-hero__breadcrumbs {
    gap: 8px;
    font-size: 0.98rem;
  }

  .about-showcase {
    padding: 8px;
  }

  .about-showcase__inner {
    padding: 20px 14px;
  }

  .about-showcase__content .page-title {
    font-size: 2.05rem;
  }

  .about-showcase__content .page-desc {
    font-size: 1.08rem;
  }

  .about-feature-badge {
    width: 100%;
    justify-content: center;
  }

  .contact-quick-card {
    padding: 14px;
    min-height: 100px;
  }

  .contact-quick-card__body h3 {
    font-size: 1.55rem;
  }

  .contact-quick-card__body p {
    font-size: 1rem;
  }

  .contact-panel {
    padding: 8px;
  }

  .contact-panel__form-wrap,
  .contact-panel__visual {
    padding: 18px 12px;
  }

  .contact-panel__form h2 {
    font-size: 2rem;
  }

  .contact-panel__submit {
    min-height: 56px;
    font-size: 1.15rem;
  }
}

/* 404 page */
.error404-screen {
  position: relative;
}

.error404-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  padding: 12px;
  min-height: 520px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(100, 159, 201, 0.92), rgba(227, 188, 63, 0.95));
  clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.error404-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: linear-gradient(130deg, rgba(17, 36, 58, 0.98), rgba(10, 27, 47, 0.98));
  clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%);
}

.error404-card__content,
.error404-card__visual {
  position: relative;
  z-index: 1;
}

.error404-card__content {
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error404-card__eyebrow {
  margin: 0 0 8px;
  color: #a7c2e4;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.error404-card__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 900;
  line-height: 0.9;
  font-size: clamp(4rem, 11vw, 8rem);
  color: #f6fbff;
}

.error404-card__zero {
  color: #e3bc3f;
  text-shadow: 0 0 24px rgba(227, 188, 63, 0.45);
}

.error404-card__title {
  margin: 0 0 10px;
  color: #f4f8ff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.error404-card__desc {
  margin: 0;
  max-width: 560px;
  color: #aec4e0;
  font-size: 1.16rem;
}

.error404-card__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error404-card__actions .btn {
  min-width: 188px;
  min-height: 54px;
  border-radius: 14px;
  font-weight: 700;
}

.error404-card__visual {
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error404-card__visual img,
.error404-card__visual .sunfyre-placeholder {
  width: min(100%, 360px);
  min-height: 280px;
  max-height: 420px;
  object-fit: contain;
}

.error404-shortcuts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error404-shortcut {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid rgba(98, 157, 200, 0.7);
  background: linear-gradient(135deg, rgba(18, 37, 60, 0.95), rgba(10, 27, 48, 0.95));
  color: #edf5ff;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.error404-shortcut i {
  color: #e3bc3f;
  font-size: 1.15rem;
  line-height: 1;
}

.error404-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 188, 63, 0.9);
}

@media screen and (max-width: 991px) {
  .error404-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .error404-card__content {
    padding: 28px 20px 10px;
    text-align: center;
    align-items: center;
  }

  .error404-card__desc {
    max-width: 100%;
  }

  .error404-card__actions {
    justify-content: center;
  }

  .error404-card__visual {
    padding: 16px 14px 24px;
  }
}

@media screen and (max-width: 767px) {
  .error404-card {
    padding: 8px;
  }

  .error404-card::before {
    inset: 8px;
  }

  .error404-card__content {
    padding: 20px 12px 8px;
  }

  .error404-card__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .error404-shortcuts {
    grid-template-columns: 1fr;
  }
}
