:root {
  color: #17191d;
  background: #ffffff;
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #c91f2c;
  --brand-dark: #9e1520;
  --ink: #17191d;
  --muted: #666b72;
  --line: #dedfe2;
  --soft: #f4f5f6;
  --warm: #f3f1ee;
  --dark: #161a20;
  --blue: #305f83;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
}

body,
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--brand);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.button--light:hover {
  background: #ffffff;
  color: var(--ink);
}

.button--outline {
  border-color: #b8bbc0;
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.08);
}

.brand-strip {
  height: 32px;
  background: var(--brand);
  color: #ffffff;
}

.brand-strip__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.brand-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.header-main {
  display: flex;
  height: 86px;
  align-items: center;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand strong {
  font-size: 21px;
  font-weight: 800;
  color: #15171b;
}

.brand small {
  color: #7b7f85;
  font-size: 10px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex: 1;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-width: 88px;
  align-items: center;
  justify-content: center;
  padding-inline: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #33363b;
}

.main-nav a::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover {
  color: var(--brand);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--brand);
  color: #ffffff;
}

.menu-button {
  display: none;
  margin-left: 8px;
}

.menu-symbol,
.menu-symbol::before,
.menu-symbol::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-symbol {
  position: relative;
}

.menu-symbol::before {
  position: absolute;
  top: -7px;
}

.menu-symbol::after {
  position: absolute;
  top: 7px;
}

.menu-button--open .menu-symbol {
  background: transparent;
}

.menu-button--open .menu-symbol::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button--open .menu-symbol::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  height: min(650px, calc(100vh - 174px));
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.hero-slide--active {
  visibility: visible;
  opacity: 1;
}

.hero-slide--outdoor {
  background-image: url("/assets/outdoor-01.webp");
}

.hero-slide--culture {
  background-image: url("/assets/culture-wall.webp");
}

.hero-slide--brochure {
  background-image: url("/assets/brochure-01.webp");
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 19, 0.61);
}

.hero-shade::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--brand);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 36px;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.hero-eyebrow::before {
  width: 42px;
  height: 2px;
  background: var(--brand);
  content: "";
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 56px;
  line-height: 1.18;
  font-weight: 800;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1240px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #ffffff;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover {
  background: #ffffff;
  color: var(--ink);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot--active {
  background: #ffffff;
}

.news-rail {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.news-rail__inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 132px 1fr 48px;
  align-items: center;
}

.news-rail__label {
  display: flex;
  height: 100%;
  align-items: center;
  border-right: 1px solid var(--line);
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

.news-rail__inner > a:not(.news-rail__more) {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 30px;
}

.news-rail__inner > a:not(.news-rail__more) span {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-rail time {
  flex: 0 0 auto;
  color: #8a8d92;
  font-size: 13px;
}

.news-rail__loading {
  padding-left: 30px;
  color: #8a8d92;
}

.news-rail__more {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted);
}

.news-rail__more:hover {
  color: var(--brand);
}

.news-rail__more svg {
  width: 20px;
}

.section {
  padding: 112px 0;
}

.section-kicker {
  margin-bottom: 15px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-kicker--light {
  color: #f099a0;
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading h2,
.about-copy h2,
.process-intro h2,
.contact-info h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.3;
  font-weight: 800;
}

.section-heading > p {
  color: var(--muted);
  line-height: 1.8;
}

.section-heading--split {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: end;
  gap: 60px;
}

.section-heading--split > p {
  margin-bottom: 3px;
}

.section-heading--center {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--center > p:last-child {
  margin-top: 14px;
  margin-bottom: 0;
}

.about-section {
  background: #ffffff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: 82px;
}

.about-visual {
  position: relative;
  min-height: 590px;
}

.about-visual::before {
  position: absolute;
  z-index: 0;
  top: -20px;
  right: 34px;
  bottom: 42px;
  left: -20px;
  border: 1px solid #c9cbce;
  content: "";
}

.about-visual img {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  height: 590px;
  margin-left: 36px;
  object-fit: cover;
}

.about-visual__label {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(360px, 82%);
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  background: var(--brand);
  color: #ffffff;
}

.about-visual__label span {
  margin-bottom: 6px;
  font-size: 13px;
  opacity: 0.82;
}

.about-visual__label strong {
  font-size: 20px;
}

.about-copy h2 {
  margin-bottom: 29px;
}

.about-copy > p:not(.section-kicker) {
  margin-bottom: 17px;
  color: #575b61;
  font-size: 16px;
  line-height: 2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 7px;
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-dark);
}

.capability-list {
  display: grid;
  margin: 43px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.capability-list div {
  padding: 24px 18px 0 0;
}

.capability-list dt {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}

.capability-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.services-section {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d1d3d6;
  border-left: 1px solid #d1d3d6;
}

.service-item {
  position: relative;
  min-height: 306px;
  padding: 40px 36px;
  overflow: hidden;
  border-right: 1px solid #d1d3d6;
  border-bottom: 1px solid #d1d3d6;
  background: #ffffff;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.service-item:hover {
  background: var(--dark);
  color: #ffffff;
}

.service-item__number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: #a7aaae;
  font-size: 12px;
  font-weight: 700;
}

.service-item__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  color: var(--brand);
  stroke-width: 1.6;
}

.service-item__glyph {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--brand);
  font-size: 17px;
  font-weight: 800;
}

.service-item h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.service-item p {
  max-width: 300px;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.service-item:hover p {
  color: rgba(255, 255, 255, 0.68);
}

.service-item > a {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #c8cacf;
  color: #7c7f84;
}

.service-item:hover > a {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.service-item > a svg {
  width: 18px;
}

.cases-section {
  background: #ffffff;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -16px 0 38px;
}

.filter-tab {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #bec1c5;
  border-radius: 4px;
  background: #ffffff;
  color: #5b5e64;
  font-size: 13px;
}

.filter-tab:hover,
.filter-tab--active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  overflow: hidden;
  border: 1px solid #e0e1e3;
  border-radius: 6px;
  background: #ffffff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-card:hover {
  border-color: #c9cbce;
  box-shadow: 0 16px 32px rgba(27, 31, 38, 0.09);
  transform: translateY(-4px);
}

.case-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e9eb;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.case-card:hover .case-card__image img {
  transform: scale(1.035);
}

.case-card__image > span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 7px 11px;
  background: var(--brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.case-card__body {
  min-height: 138px;
  padding: 19px 20px 21px;
}

.case-card__body p {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.case-card__body h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.case-card__body > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.load-more {
  margin: 40px auto 0;
}

.process-section {
  padding: 98px 0;
  background: var(--dark);
  color: #ffffff;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: start;
  gap: 100px;
}

.process-intro h2 {
  margin-bottom: 22px;
  color: #ffffff;
}

.process-intro > p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.63);
  line-height: 1.9;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list li {
  display: grid;
  min-height: 158px;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 28px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list > li > span {
  color: #f099a0;
  font-size: 13px;
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.process-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.7;
}

.news-section {
  background: #ffffff;
}

.news-list {
  border-top: 1px solid var(--ink);
}

.news-item {
  display: grid;
  min-height: 150px;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  display: flex;
  flex-direction: column;
}

.news-item time strong {
  font-size: 26px;
}

.news-item time span {
  margin-top: 3px;
  color: #989ba0;
  font-size: 12px;
}

.news-item > div {
  position: relative;
  padding: 20px 0;
}

.news-item__index {
  position: absolute;
  top: 1px;
  left: 0;
  color: #b9bbc0;
  font-size: 10px;
}

.news-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.news-item p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.news-item__button {
  border: 1px solid #c7c9cd;
  color: #6a6d72;
}

.news-item__button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.contact-section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: var(--warm);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 100px;
}

.contact-info h2 {
  margin-bottom: 21px;
}

.contact-info > p:not(.section-kicker) {
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-info address {
  display: grid;
  gap: 1px;
  font-style: normal;
}

.contact-info address a {
  display: grid;
  min-height: 74px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #d7d4d0;
}

.contact-info address a:hover {
  color: var(--brand);
}

.contact-info address svg {
  width: 21px;
  color: var(--brand);
}

.contact-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
}

.contact-info address span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}

.contact-info address small {
  color: #85817c;
  font-size: 11px;
  font-weight: 500;
}

.contact-assurance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  color: #77736e;
  font-size: 12px;
}

.contact-assurance svg {
  width: 17px;
  color: var(--blue);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 42px;
  border-top: 4px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(25, 28, 33, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-form label:not(.website-field) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label > span {
  color: #4a4d52;
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd1d5;
  border-radius: 3px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 13px;
  line-height: 1.6;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 31, 44, 0.09);
}

.contact-form textarea::placeholder {
  color: #a2a4a8;
}

.website-field {
  position: absolute;
  left: -10000px;
}

.submit-button {
  align-self: flex-start;
  min-width: 170px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-message {
  margin: -6px 0 0;
  font-size: 13px;
}

.form-message--success {
  color: #177045;
}

.form-message--error {
  color: var(--brand-dark);
}

.site-footer {
  background: #14171c;
  color: #ffffff;
}

.footer-main {
  display: grid;
  min-height: 330px;
  grid-template-columns: 1.08fr 1.2fr 0.72fr;
  gap: 70px;
  padding-top: 72px;
  padding-bottom: 58px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 2px solid #ffffff;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 5px;
}

.footer-brand strong {
  font-size: 19px;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links > div,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 14px;
}

.footer-links a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

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

.footer-contact > a {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .container {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Admin */

.admin-loading,
.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #eff1f3;
  color: var(--ink);
}

.admin-loading {
  align-content: center;
  gap: 12px;
  font-size: 13px;
}

.loading-mark {
  font-size: 24px;
  animation: spin 800ms linear infinite;
}

.spin {
  animation: spin 800ms linear infinite;
}

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

.admin-login form {
  position: relative;
  display: flex;
  width: min(100% - 36px, 410px);
  flex-direction: column;
  gap: 20px;
  padding: 44px 42px;
  border-top: 4px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 22px 45px rgba(33, 38, 46, 0.12);
}

.admin-login form > img {
  width: 64px;
  height: 64px;
  margin: 10px auto 2px;
  object-fit: contain;
}

.admin-login h1 {
  margin-bottom: 4px;
  text-align: center;
  font-size: 22px;
}

.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-login label span {
  color: #555960;
  font-size: 13px;
  font-weight: 700;
}

.admin-login input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd2d7;
  border-radius: 3px;
  outline: none;
}

.admin-login input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 31, 44, 0.08);
}

.admin-login form > p {
  margin: -8px 0 0;
  color: var(--brand-dark);
  font-size: 12px;
  text-align: center;
}

.admin-back {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #777b82;
  font-size: 12px;
}

.admin-shell {
  min-height: 100vh;
  background: #f2f4f6;
}

.admin-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 20px;
  border-bottom: 1px solid #d8dade;
  background: #ffffff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
}

.admin-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-command,
.admin-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd2d7;
  border-radius: 3px;
  background: #ffffff;
  color: #4f535a;
}

.admin-command {
  min-height: 36px;
  gap: 7px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
}

.admin-command:hover,
.admin-icon-button:hover {
  border-color: #999da4;
  color: var(--ink);
}

.admin-command--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.admin-command--primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.admin-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.admin-icon-button svg {
  width: 16px;
  height: 16px;
}

.admin-icon-button--danger:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-sidebar {
  position: fixed;
  z-index: 10;
  top: 62px;
  bottom: 0;
  left: 0;
  display: flex;
  width: 212px;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px;
  border-right: 1px solid #d8dade;
  background: #ffffff;
}

.admin-nav {
  display: grid;
  min-height: 44px;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #555960;
  font-size: 13px;
  text-align: left;
}

.admin-nav svg {
  width: 18px;
  height: 18px;
}

.admin-nav > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: currentColor;
  font-size: 11px;
}

.admin-nav > span {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 3px;
  background: #eceef1;
  color: #5b5f66;
  font-size: 10px;
}

.admin-nav:hover {
  background: #f2f3f5;
}

.admin-nav--active {
  background: #fbeaec;
  color: var(--brand);
  font-weight: 800;
}

.admin-nav--active:hover {
  background: #fbeaec;
}

.admin-main {
  min-height: 100vh;
  padding: 92px 30px 40px 242px;
}

.admin-section {
  max-width: 1440px;
  margin: 0 auto;
}

.admin-title {
  display: flex;
  min-height: 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.admin-title h1 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-title p {
  margin-bottom: 0;
  color: #7b7f86;
  font-size: 12px;
}

.admin-notice {
  display: flex;
  max-width: 1440px;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 16px;
  padding: 8px 12px 8px 15px;
  border-left: 3px solid var(--brand);
  background: #ffffff;
  color: #555960;
  font-size: 12px;
  box-shadow: 0 3px 10px rgba(33, 37, 43, 0.05);
}

.admin-notice button,
.admin-modal__header button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #70747b;
}

.admin-notice svg,
.admin-modal__header svg {
  width: 17px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #d9dbe0;
  background: #f6f7f8;
  color: #656970;
  font-weight: 700;
  text-align: left;
}

.admin-table td {
  min-height: 72px;
  padding: 14px;
  border-bottom: 1px solid #e5e6e9;
  color: #4d5158;
  line-height: 1.6;
  vertical-align: top;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td:nth-child(1) {
  width: 160px;
  color: #7a7e85;
  white-space: nowrap;
}

.admin-table td:nth-child(2) {
  width: 190px;
}

.admin-table td:nth-child(3) {
  width: 145px;
}

.admin-table td:nth-child(5) {
  width: 130px;
}

.admin-table td > strong,
.admin-table td > a,
.admin-table td > span {
  display: block;
}

.admin-table td > a {
  margin-top: 3px;
  color: var(--blue);
}

.admin-table td > span {
  margin-top: 3px;
  color: #8b8f95;
}

.admin-table__message {
  min-width: 280px;
  white-space: pre-wrap;
}

.admin-table select {
  width: 100%;
  height: 32px;
  border: 1px solid #cfd2d7;
  border-radius: 3px;
  background: #ffffff;
  color: #4e5259;
  font-size: 12px;
}

.admin-empty {
  padding: 60px 20px !important;
  color: #8c9096 !important;
  text-align: center;
}

.admin-content-list {
  border: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-content-list > article {
  display: grid;
  min-height: 112px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid #e3e5e8;
}

.admin-content-list > article:last-child {
  border-bottom: 0;
}

.admin-content-list article span {
  color: #858990;
  font-size: 11px;
}

.admin-content-list article h2 {
  margin: 6px 0;
  font-size: 17px;
}

.admin-content-list article p {
  margin-bottom: 0;
  color: #676b72;
  font-size: 12px;
  line-height: 1.65;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-case-grid > article {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 130px;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  overflow: hidden;
  border: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-case-grid > article > img {
  width: 130px;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.admin-case-grid > article > div:nth-child(2) {
  min-width: 0;
  padding: 16px 10px 48px 0;
}

.admin-case-grid article span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.admin-case-grid article h2 {
  margin: 6px 0 8px;
  font-size: 15px;
}

.admin-case-grid article p {
  margin: 0;
  overflow: hidden;
  color: #74787f;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.admin-case-grid .admin-row-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.admin-featured {
  display: inline-flex;
  height: 26px;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid #efbfc3;
  border-radius: 3px;
  background: #fff4f5;
}

.admin-featured svg {
  width: 13px;
}

.admin-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow-y: auto;
  background: rgba(20, 23, 28, 0.62);
}

.admin-modal {
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(12, 15, 20, 0.3);
}

.admin-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-modal__header h2 {
  margin: 0;
  font-size: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.admin-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.admin-field > span {
  color: #555960;
  font-size: 12px;
  font-weight: 700;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid #cfd2d7;
  border-radius: 3px;
  outline: none;
}

.admin-field input {
  height: 40px;
  padding: 0 10px;
}

.admin-field textarea {
  padding: 10px;
  line-height: 1.6;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 31, 44, 0.08);
}

.admin-field input:disabled {
  background: #f1f2f4;
  color: #7c8087;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52565d;
  font-size: 12px;
  font-weight: 700;
}

.admin-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.admin-modal__footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 24px;
  border-top: 1px solid #d9dbe0;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .main-nav a {
    min-width: 72px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .about-layout {
    gap: 54px;
  }

  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    gap: 58px;
  }

  .admin-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-main {
    height: 76px;
  }

  .main-nav {
    position: absolute;
    top: 108px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(20, 24, 31, 0.1);
  }

  .main-nav--open {
    display: flex;
  }

  .main-nav a {
    min-height: 46px;
    justify-content: flex-start;
    border-bottom: 1px solid #eceef0;
  }

  .main-nav a::after {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero {
    height: calc(100vh - 126px);
    min-height: 480px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 520px;
  }

  .about-visual img {
    height: 520px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading--split {
    grid-template-columns: 1fr 360px;
    gap: 36px;
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  .container {
    width: min(100% - 32px, 1240px);
  }

  .brand-strip {
    display: none;
  }

  .site-header {
    height: 76px;
  }

  .main-nav {
    top: 76px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 8px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    margin-left: auto;
  }

  .hero {
    height: calc(100vh - 126px);
    min-height: 460px;
  }

  .hero-shade::after {
    width: 5px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 105px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-controls {
    right: 16px;
    bottom: 23px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .news-rail__inner {
    grid-template-columns: 82px 1fr 36px;
  }

  .news-rail__label {
    font-size: 14px;
  }

  .news-rail__inner > a:not(.news-rail__more) {
    padding-inline: 14px;
  }

  .news-rail time {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading h2,
  .about-copy h2,
  .process-intro h2,
  .contact-info h2 {
    font-size: 32px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-heading--split > p {
    margin-bottom: 0;
  }

  .about-visual {
    min-height: 400px;
  }

  .about-visual::before {
    top: -12px;
    right: 24px;
    bottom: 34px;
    left: -10px;
  }

  .about-visual img {
    width: calc(100% - 20px);
    height: 400px;
    margin-left: 20px;
  }

  .about-visual__label {
    min-height: 92px;
    padding: 18px 20px;
  }

  .about-visual__label strong {
    font-size: 16px;
  }

  .about-copy > p:not(.section-kicker) {
    font-size: 15px;
    line-height: 1.85;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 260px;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .case-card__body {
    min-height: 132px;
    padding: 17px;
  }

  .process-section {
    padding: 76px 0;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 136px;
  }

  .news-item {
    grid-template-columns: 74px 1fr 42px;
    gap: 14px;
  }

  .news-item time strong {
    font-size: 20px;
  }

  .news-item h3 {
    font-size: 17px;
  }

  .news-item__button {
    width: 38px;
    height: 38px;
  }

  .contact-section {
    padding: 76px 0;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom .container {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .admin-header {
    padding-inline: 14px;
  }

  .admin-brand span {
    display: none;
  }

  .admin-sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: 100%;
    height: 62px;
    flex-direction: row;
    gap: 0;
    padding: 7px;
    border-top: 1px solid #d8dade;
    border-right: 0;
  }

  .admin-nav {
    min-width: 0;
    flex: 1;
    grid-template-columns: 20px auto;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    text-align: center;
  }

  .admin-nav > span {
    display: none;
  }

  .admin-main {
    padding: 88px 14px 86px;
  }

  .admin-case-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .admin-field--wide {
    grid-column: auto;
  }

  .admin-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .admin-modal {
    width: 100%;
    max-height: 92vh;
  }
}

@media (max-width: 520px) {
  .hero {
    height: calc(100vh - 126px);
    min-height: 460px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 150px;
    padding-inline: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .about-visual {
    min-height: 330px;
  }

  .about-visual img {
    height: 330px;
  }

  .about-visual__label {
    width: 86%;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card__image {
    aspect-ratio: 16 / 10;
  }

  .news-item {
    grid-template-columns: 1fr 38px;
    padding: 18px 0;
  }

  .news-item time {
    display: none;
  }

  .news-item > div {
    padding: 0;
  }

  .news-item__index {
    position: static;
    display: inline-block;
    margin-bottom: 7px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .admin-case-grid > article {
    grid-template-columns: 104px 1fr;
  }

  .admin-case-grid > article > img {
    width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dynamic navigation and content detail pages */
.more-nav {
  position: relative;
  display: flex;
  align-items: stretch;
}

.more-nav__trigger {
  display: inline-flex;
  min-width: 88px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #33363b;
  font-size: 15px;
  font-weight: 600;
}

.more-nav__trigger:hover,
.more-nav--open .more-nav__trigger {
  color: var(--brand);
}

.more-nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.more-nav--open .more-nav__chevron {
  transform: translateY(2px) rotate(225deg);
}

.more-nav__panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  right: -70px;
  width: min(650px, calc(100vw - 48px));
  padding: 18px;
  border-top: 3px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(25, 29, 35, 0.16);
}

.more-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.main-nav .more-nav__item {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 19px;
  border-right: 1px solid #e5e6e8;
  background: #ffffff;
}

.main-nav .more-nav__item:last-child {
  border-right: 0;
}

.main-nav .more-nav__item::after {
  display: none;
}

.more-nav__item:hover {
  background: #f5f6f7;
}

.more-nav__item strong {
  color: var(--ink);
  font-size: 15px;
}

.more-nav__item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.case-card__body {
  position: relative;
}

.case-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: #a4a7ab;
  font-size: 17px;
  font-weight: 500;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.case-card:hover .case-card__arrow {
  color: var(--brand);
  transform: translateX(3px);
}

.news-item__title {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.news-item__title:hover {
  color: var(--brand);
}

.detail-page {
  background: #ffffff;
}

.detail-loading {
  display: flex;
  min-height: 62vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #20242a;
  color: #ffffff;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 25, 0.88) 0%, rgba(17, 20, 25, 0.58) 48%, rgba(17, 20, 25, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 20, 25, 0.42), transparent 55%);
}

.detail-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 42px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.detail-breadcrumb a:hover {
  color: #ffffff;
}

.detail-kicker {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.detail-kicker::before {
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 10px 4px 0;
  background: var(--brand);
  content: "";
}

.detail-hero h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: 48px;
  line-height: 1.2;
}

.detail-summary {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 90px;
  padding-top: 76px;
  padding-bottom: 110px;
}

.detail-meta {
  display: flex;
  gap: 22px;
  margin-bottom: 45px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: #81858b;
  font-size: 13px;
}

.detail-body {
  color: #33373d;
  font-size: 17px;
  line-height: 2;
}

.detail-body p {
  margin-bottom: 24px;
}

.detail-media {
  display: grid;
  gap: 26px;
  margin-top: 48px;
}

.detail-media figure {
  margin: 0;
}

.detail-media img,
.detail-media video {
  width: 100%;
  max-height: 720px;
  border-radius: 4px;
  background: #121417;
  object-fit: contain;
}

.detail-media figcaption {
  padding-top: 10px;
  color: #777b82;
  font-size: 12px;
  line-height: 1.6;
}

.detail-aside {
  position: sticky;
  top: 150px;
  padding: 30px 28px;
  border-top: 4px solid var(--brand);
  background: #f3f4f5;
}

.detail-aside > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.detail-aside h2 {
  margin: 13px 0;
  font-size: 23px;
  line-height: 1.45;
}

.detail-aside p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-aside .button {
  width: 100%;
}

.detail-aside > a:last-child {
  display: block;
  margin-top: 20px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.detail-error {
  min-height: 68vh;
  padding: 100px 24px;
  text-align: center;
}

.detail-error > span {
  color: #d7d9dc;
  font-size: 86px;
  font-weight: 800;
}

.detail-error h1 {
  margin-bottom: 14px;
  font-size: 32px;
}

.detail-error p {
  margin-bottom: 30px;
  color: var(--muted);
}

.detail-footer {
  padding: 38px 0;
  border-top: 1px solid #dfe1e4;
  background: #f4f5f6;
}

.detail-footer .container {
  display: flex;
  align-items: center;
  gap: 26px;
}

.detail-footer .brand img {
  width: 42px;
  height: 42px;
}

.detail-footer .brand strong {
  font-size: 17px;
}

.detail-footer p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-footer .container > span {
  color: #888c92;
  font-size: 12px;
}

.detail-footer #icp-link {
  color: #777b82;
  font-size: 12px;
}

@media (max-width: 980px) {
  .more-nav {
    display: block;
  }

  .more-nav__trigger {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 8px;
    border-bottom: 1px solid #eceef0;
  }

  .more-nav__panel {
    position: static;
    width: 100%;
    padding: 8px 0 0;
    border-top: 0;
    box-shadow: none;
  }

  .more-nav__grid {
    grid-template-columns: 1fr;
  }

  .main-nav .more-nav__item {
    min-height: 74px;
    padding: 14px 12px;
    border-right: 0;
    border-bottom: 1px solid #eceef0;
    background: #f6f7f8;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-hero,
  .detail-hero__content {
    min-height: 460px;
  }

  .detail-hero__shade {
    background: rgba(17, 20, 25, 0.66);
  }

  .detail-breadcrumb {
    margin-bottom: 42px;
  }

  .detail-hero h1 {
    font-size: 34px;
  }

  .detail-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .detail-layout {
    padding-top: 48px;
    padding-bottom: 74px;
  }

  .detail-body {
    font-size: 16px;
  }

  .detail-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .detail-footer p {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .detail-hero h1 {
    font-size: 30px;
  }

  .detail-hero__content {
    padding-top: 20px;
  }

  .detail-aside {
    padding: 26px 22px;
  }

  .news-item__title {
    font-size: 17px;
  }
}

/* Extended CMS */
.admin-content-list > article {
  grid-template-columns: 118px minmax(0, 1fr) auto;
}

.admin-content-list > article > img {
  width: 118px;
  height: 82px;
  border-radius: 3px;
  background: #eceef0;
  object-fit: cover;
}

.admin-content-list > article > div {
  min-width: 0;
}

.admin-content-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-content-list .admin-status,
.admin-case-grid .admin-status {
  display: inline-flex;
  height: 21px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #d3d5d9;
  border-radius: 3px;
  background: #f3f4f5;
  color: #777b82;
  font-size: 10px;
  font-weight: 700;
}

.admin-content-list .admin-status--published,
.admin-case-grid .admin-status--published {
  border-color: #afd7c1;
  background: #edf8f1;
  color: #24764a;
}

.admin-empty-block {
  margin: 0;
  padding: 70px 24px;
  color: #858990;
  text-align: center;
}

.admin-settings-form {
  max-width: 860px;
  border: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px;
  border-top: 1px solid #d9dbe0;
}

.admin-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-upload-row .admin-command {
  min-height: 40px;
}

.admin-media-editor {
  padding-top: 4px;
  border-top: 1px solid #e1e3e6;
}

.admin-media-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 12px;
}

.admin-media-editor__header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-media-editor__header strong {
  color: #4e5259;
  font-size: 12px;
}

.admin-media-editor__header span {
  color: #8a8e94;
  font-size: 10px;
}

.admin-media-list {
  display: grid;
  gap: 8px;
}

.admin-media-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed #cfd2d7;
  color: #969aa0;
  font-size: 11px;
  text-align: center;
}

.admin-media-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid #dde0e3;
  background: #f7f8f9;
}

.admin-media-preview {
  position: relative;
  width: 104px;
  height: 72px;
  overflow: hidden;
  background: #202329;
}

.admin-media-preview img,
.admin-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-preview > span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  background: rgba(17, 20, 25, 0.78);
  color: #ffffff;
  font-size: 9px;
}

.admin-media-fields {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.admin-media-fields code {
  overflow: hidden;
  color: #777b82;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-fields input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #cfd2d7;
  border-radius: 3px;
  outline: none;
  font-size: 11px;
}

.admin-media-fields input:focus {
  border-color: var(--brand);
}

.admin-media-actions {
  display: flex;
  gap: 5px;
}

.admin-icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.admin-modal {
  width: min(100%, 880px);
}

.site-preview-banner {
  position: relative;
  z-index: 1000;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  background: #202329;
  color: #ffffff;
  font-size: 13px;
}

.site-preview-banner a {
  margin-left: 10px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
}

.admin-site-form {
  padding-bottom: 86px;
}

.admin-site-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.admin-site-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #d9dbe0;
  background: #ffffff;
}

.admin-site-card legend {
  padding: 0 8px;
  color: #34383e;
  font-size: 15px;
  font-weight: 800;
}

.admin-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-site-asset {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.admin-site-asset img {
  width: 86px;
  height: 58px;
  border: 1px solid #d9dbe0;
  background: #f2f3f5;
  object-fit: cover;
}

.admin-site-asset input[readonly] {
  background: #f6f7f8;
  color: #71757c;
  font-size: 11px;
}

.admin-site-actions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 212px;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 30px;
  border-top: 1px solid #d5d8dc;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 18px rgba(25, 28, 33, 0.06);
  backdrop-filter: blur(8px);
}

.admin-site-actions > span {
  margin-right: auto;
  color: #73777e;
  font-size: 12px;
}

@media (max-width: 760px) {
  .admin-sidebar {
    overflow-x: auto;
  }

  .admin-nav {
    flex: 0 0 30%;
    grid-template-columns: 1fr;
    padding: 0 3px;
    font-size: 11px;
  }

  .admin-nav > b {
    display: none;
  }

  .admin-content-list > article {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .admin-content-list > article > img {
    width: 88px;
    height: 72px;
  }

  .admin-content-list > article > .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .admin-media-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-media-preview {
    width: 82px;
    height: 68px;
  }

  .admin-media-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .admin-site-editor,
  .admin-site-grid {
    grid-template-columns: 1fr;
  }

  .admin-site-actions {
    left: 0;
    overflow-x: auto;
    padding: 10px 14px;
  }

  .admin-site-actions > span {
    display: none;
  }
}

@media (max-width: 520px) {
  .admin-upload-row {
    grid-template-columns: 1fr;
  }

  .admin-media-editor__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-media-item {
    grid-template-columns: 1fr;
  }

  .admin-media-preview {
    width: 100%;
    height: 150px;
  }

  .admin-media-actions {
    grid-column: auto;
  }

  .admin-site-asset {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-site-asset img {
    width: 72px;
  }

  .admin-site-asset .admin-command {
    grid-column: 1 / -1;
  }
}
