:root {
  --v4-ink: #081528;
  --v4-paper: #f6f4ee;
  --v4-gold: #ddc77d;
}

body { background: var(--v4-ink); }

.hero + .section { border-top: 1px solid rgba(216,189,104,0.22); }

header {
  color: #ffffff;
  background: rgba(8,21,40,0.97);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(216,189,104,0.24);
}

header nav ul li a { color: rgba(255,255,255,0.84); }
header nav ul li a:hover { color: #ddc77d; }
.header-logo img { filter: brightness(0) invert(1); opacity: 0.94; }
.header-tel-block { border-color: rgba(221,199,125,0.58); background: rgba(8,21,40,0.5); }
.header-tel { color: #ffffff; }
.header-tel-sub { color: rgba(255,255,255,0.6); }
.header-consult-btn {
  color: #ffffff;
  background: var(--gold);
  border-color: var(--gold);
}
.header-consult-btn:hover { color: #ffffff; background: var(--navy-light); border-color: var(--navy-light); }

.header-consult-btn .header-consult-sub {
  color: rgba(255, 255, 255, 0.85);
}
 

.hero {
  min-height: 720px;
  background: #081528;
  isolation: isolate;
}

.hero::before {
  content: "";
  opacity: 0.4;
  background-position: center 52%;
  filter: grayscale(0.56) saturate(0.5) contrast(1.1) brightness(0.7) hue-rotate(-8deg);
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}

.hero::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,21,40,0.98) 0%, rgba(8,21,40,0.92) 36%, rgba(8,21,40,0.46) 63%, rgba(8,21,40,0.16) 100%),
    linear-gradient(0deg, rgba(8,21,40,0.76) 0%, rgba(8,21,40,0.08) 44%, rgba(8,21,40,0.42) 100%);
}

.hero-3d {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: rgba(8,21,40,0.16);
}

.hero-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-3d.is-ready canvas { opacity: 1; }

.hero-3d-fallback {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  transition: opacity 400ms ease;
}

.hero-3d-fallback::before,
.hero-3d-fallback::after,
.hero-3d-fallback span {
  content: "";
  position: absolute;
  right: 11%;
  bottom: 17%;
  width: 13%;
  border: 1px solid rgba(216,189,104,0.38);
  background: rgba(23,56,111,0.42);
  transform: skewY(-7deg);
}

.hero-3d-fallback::before { height: 42%; }
.hero-3d-fallback::after { right: 26%; height: 29%; }
.hero-3d-fallback span:first-child { right: 39%; height: 35%; }
.hero-3d-fallback span:last-child { right: 52%; height: 21%; }
.hero-3d.is-ready .hero-3d-fallback { opacity: 0; }

.hero-inner { position: relative; z-index: 3; }
.hero-content { max-width: 920px; }
.hero-frame-border,
.hero-frame-corner { z-index: 4; }
.hero-watermark { display: none !important; }

.hero-kicker { color: #ddc77d; }
.hero-title { max-width: 900px; text-shadow: 0 2px 26px rgba(2,8,20,0.34); }
.hero-desc { max-width: 820px; text-shadow: 0 1px 18px rgba(2,8,20,0.5); }
.hero .btn-outline-white { color: #ffffff; background: rgba(8,21,40,0.5); border-color: rgba(221,199,125,0.7); }
.hero .btn-outline-white:hover { color: #081528; background: #ddc77d; border-color: #ddc77d; }

.fade-in { filter: none; }

.strengths-section,
.service-section,
.company-section {
  color: #ffffff;
  background: var(--v4-ink);
  border-top: 1px solid rgba(221, 199, 125, 0.14);
}

.strengths-section .section-title,
.service-section .section-title,
.company-summary .section-title {
  color: #ffffff;
}

.strengths-section .section-label,
.service-section .section-label,
.company-section .section-label {
  color: var(--v4-gold);
}

.strengths-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 34px 24px;
  overflow: hidden;
  color: #ffffff;
  background: #0c1d36;
  border: 1px solid rgba(221, 199, 125, 0.34);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.strengths-box::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 51%;
  width: 500px;
  height: 500px;
  background: url("../assets/images/ico_PALACE_LOGO.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.strengths-box-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-height: 184px;
  padding: 18px 30px 28px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(221, 199, 125, 0.22);
  border-radius: 0;
  font-size: 16px;
  line-height: 1.75;
  line-break: strict;
  text-wrap: balance;
  word-break: normal;
  transition: background-color 260ms ease;
}

.strengths-box-item:nth-child(3) { border-right: 0; }

.strengths-box-item:hover {
  padding-left: 30px;
  transform: none;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.strengths-box-num {
  margin-right: 0;
  font-size: 44px;
  line-height: 1;
}

.strengths-box > div:last-child {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0 !important;
  padding: 22px 4px 0;
  border-top: 1px solid rgba(221, 199, 125, 0.22);
}

.strengths-box .service-card-link {
  min-width: 180px;
  justify-content: center;
  padding: 11px 24px;
  color: var(--v4-ink);
  background: var(--v4-paper);
  border-radius: 999px;
}

.strengths-box .service-card-link:hover {
  gap: 8px;
  background: #ffffff;
}

.strengths-section {
  padding: 108px 60px 102px;
}

.strengths-section .section-inner {
  display: block;
}

.strengths-section .section-header.center {
  margin-bottom: 50px;
  text-align: center;
}

.strengths-section .section-header.center .section-label::after {
  width: 46px;
  height: 46px;
  margin: 14px auto 0;
  background: url("../assets/images/ico_PALACE_LOGO.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.68;
}

.strengths-section .section-title {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.55;
}

.strengths-section .service-card-link {
  font-size: 13px;
}

.service-card {
  color: var(--v4-ink);
  background: var(--v4-paper);
  border-color: rgba(221, 199, 125, 0.3);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.service-card::before { display: none; }

.service-card::after {
  background: linear-gradient(90deg, var(--v4-gold), rgba(221, 199, 125, 0.2));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(221, 199, 125, 0.74);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.21);
}

.service-card-num,
.service-card-link {
  color: #9d7b24;
}

.service-card-tag {
  color: #87691d;
  border-color: rgba(157, 123, 36, 0.56);
}

.service-card-title { color: var(--v4-ink); }
.service-card-sub { color: #4f5b69; }

.company-section {
  padding-top: 148px;
}

.company-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "summary visual"
    "access access";
  gap: 0 76px;
  align-items: start;
}

.company-summary {
  grid-area: summary;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 151, 55, 0.7);
}

.company-summary .company-table tr {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.company-summary .company-table th {
  width: 96px;
  color: #9d7b24;
}

.company-summary .company-table td {
  color: rgba(255, 255, 255, 0.86);
}

.company-summary .company-table small {
  color: rgba(255, 255, 255, 0.5) !important;
}

.company-summary .btn-outline-navy {
  min-width: 252px;
  color: #ffffff;
  border-color: rgba(221, 199, 125, 0.66);
}

.company-summary .btn-outline-navy:hover {
  color: var(--v4-ink);
  background: var(--v4-gold);
  border-color: var(--v4-gold);
}

.company-visual {
  grid-area: visual;
  position: relative;
  padding: 0 !important;
}

.company-visual .zoom-img {
  width: 100% !important;
  height: 430px;
  margin: 0 !important;
  border-radius: 0;
  border: 1px solid rgba(221, 199, 125, 0.28);
}

.company-visual .zoom-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: grayscale(0.28) saturate(0.72) contrast(1.05);
}

.company-visual > p {
  margin-top: 10px !important;
  color: rgba(255, 255, 255, 0.48) !important;
  text-align: right !important;
  letter-spacing: 0.08em;
}

.company-access {
  grid-area: access;
  display: grid;
  grid-template-columns: minmax(280px, 0.37fr) minmax(0, 0.63fr);
  grid-template-rows: auto auto 1fr;
  min-height: 320px;
  margin-top: 72px;
  overflow: hidden;
  color: var(--v4-ink);
  background: var(--v4-paper);
  border-top: 1px solid rgba(221, 199, 125, 0.68);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.company-access > .section-label {
  grid-column: 1;
  grid-row: 1;
  margin: 48px 44px 12px;
  color: #87691d;
}

.company-access > .section-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0 44px 22px !important;
  color: var(--v4-ink);
}

.company-access > p {
  grid-column: 1;
  grid-row: 3;
  margin: 0 44px 44px !important;
  color: #4f5b69 !important;
  line-height: 2;
}

.company-map {
  grid-column: 2;
  grid-row: 1 / 4;
  height: 100% !important;
  min-height: 320px;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  filter: none;
}

@media (max-width: 900px) {
  .nav-toggle span { background: #ffffff; }
  .mobile-nav { background: #081528; border-top: 1px solid rgba(216,189,104,0.2); box-shadow: none; }
  .mobile-nav ul li a { color: rgba(255,255,255,0.88); border-bottom-color: rgba(255,255,255,0.12); }
  .mobile-nav .mobile-nav-cta { background: #0e2341; }
  .mobile-nav .mobile-nav-consult-btn { color: #081528; background: #ddc77d; }
  .company-grid-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "visual"
      "access";
    gap: 0;
  }
  .company-summary { padding-top: 14px; }
  .strengths-section { padding: 70px 24px; }
  .strengths-section .section-header.center { margin-bottom: 36px; text-align: center; }
  .strengths-section .section-title { font-size: 25px; white-space: normal; }
  .strengths-section .strengths-box {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 20px 18px;
  }
  .strengths-section .section-header.center .section-label::after { width: 38px; height: 38px; opacity: 0.62; }
  .strengths-section .strengths-box::before { width: 300px; height: 300px; opacity: 0.06; }
  .strengths-section .strengths-box-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(221, 199, 125, 0.2);
    border-radius: 0;
    font-size: 11px;
    white-space: normal;
  }
  .strengths-section .strengths-box-item:nth-child(3) { border-bottom: 0; }
  .strengths-section .strengths-box-item:hover { padding-left: 0; transform: none; }
  .strengths-section .strengths-box-num { flex: 0 0 24px; font-size: 18px; }
  .strengths-section .strengths-box > div:last-child {
    margin-top: 0 !important;
    padding: 18px 0 0;
  }
  .strengths-section .strengths-box .service-card-link { width: 100%; min-width: 0; }
  .company-visual { margin-top: 46px; }
  .company-visual .zoom-img { height: 280px; }
  .company-access {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    margin-top: 48px;
  }
  .company-access > .section-label { grid-column: 1; grid-row: 1; margin: 38px 28px 10px; }
  .company-access > .section-title { grid-column: 1; grid-row: 2; margin: 0 28px 18px !important; }
  .company-access > p { grid-column: 1; grid-row: 3; margin: 0 28px 32px !important; }
  .company-map { grid-column: 1; grid-row: 4; min-height: 260px; }
  .company-map iframe { min-height: 260px; }
  .hero { min-height: 760px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(8,21,40,0.94) 0%, rgba(8,21,40,0.82) 52%, rgba(8,21,40,0.5) 78%, rgba(8,21,40,0.84) 100%),
      linear-gradient(90deg, rgba(8,21,40,0.9), rgba(8,21,40,0.28));
  }
  .hero-3d { opacity: 0.74; }
  .hero-content { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d canvas { transition: none; }
}
