.detail-page { background: var(--bg); color: var(--body); font-size: 17px; }
.detail-page .wrap { width: min(1200px,calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; height: 72px; border-bottom: 1px solid var(--line); background: rgba(8,9,10,.86); backdrop-filter: blur(20px) saturate(140%); }
.nav-wrap { width: min(1200px,calc(100% - 48px)); height: 100%; margin-inline: auto; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 30px; height: 36px; object-fit: contain; border-radius: 0; background: transparent; box-shadow: none; }
.brand span,.brand b,.brand small { display: block; }
.brand b { font-size: 16px; line-height: 1.1; }
.brand small { margin-top: 4px; color: #687183; font-size: 9px; letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-inline: auto; color: var(--muted); font-size: 15px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; border: 0; transition: color 180ms var(--ease); }
.site-nav a:hover,.site-nav a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-consult { color: var(--muted); font-size: 15px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--text); color: #111216; font-size: 15px; font-weight: 650; white-space: nowrap; transition: transform 160ms var(--ease),background-color 180ms var(--ease); }
.button:hover { background: #dfe1e6; transform: translateY(-1px); }
.button:active { transform: scale(.97); }
.button-small { min-height: 36px; padding: 8px 14px; }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 0; background: transparent; }
.menu-button span { display: block; width: 21px; height: 1px; margin: 6px auto; background: var(--body); }

.detail-hero { position: relative; min-height: 680px; overflow: hidden; padding: 154px 0 110px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text); }
.detail-hero::before { content: ""; position: absolute; left: 50%; top: 48%; width: min(1050px,88vw); height: 540px; transform: translate(-50%,-50%); background: radial-gradient(ellipse,rgba(141,150,255,.105),transparent 66%); pointer-events: none; }
.detail-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #656a73; font-size: 14px; }
.breadcrumb a:hover { color: var(--text); }
.detail-hero h1 { max-width: 1040px; margin: 30px 0 28px; color: var(--text); font-size: clamp(58px,6vw,84px); font-weight: 520; line-height: 1.04; letter-spacing: -.045em; }
.detail-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.68; }
.detail-hero p { max-width: none; white-space: nowrap; }
.detail-metrics { display: grid; grid-template-columns: repeat(3,1fr); max-width: 900px; margin-top: 64px; border-top: 1px solid var(--line); }
.detail-metrics span { padding: 22px 24px 0 0; color: #6e727b; font-size: 14px; }
.detail-metrics b { display: block; margin-bottom: 5px; color: var(--text); font-size: 28px; font-weight: 520; }

.anchor-nav { position: sticky; top: 72px; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(8,9,10,.9); backdrop-filter: blur(18px); }
.anchor-nav .wrap { display: flex; gap: 38px; overflow-x: auto; scrollbar-width: none; }
.anchor-nav a { flex: 0 0 auto; padding: 20px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid transparent; transition: color 180ms var(--ease),border-color 180ms var(--ease); }
.anchor-nav a:hover,.anchor-nav a.active { color: var(--text); border-bottom-color: var(--text); }

.detail-section { padding: 132px 0; scroll-margin-top: 130px; background: var(--bg); }
.detail-section.alt { background: var(--panel); }
.detail-heading { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(320px,.72fr); gap: 96px; align-items: end; margin-bottom: 64px; }
.detail-heading h2 { margin: 17px 0 0; color: var(--text); font-size: clamp(46px,4.8vw,68px); font-weight: 520; line-height: 1.08; letter-spacing: -.04em; }
.detail-heading h2 { font-size: clamp(42px,4vw,58px); max-width: 900px; }
.detail-heading p { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 17px; line-height: 1.78; }
.detail-kicker { color: #777c85; font-size: 13px; font-weight: 650; letter-spacing: .08em; }

.detail-split { display: grid; grid-template-columns: minmax(0,.46fr) minmax(0,.54fr); min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.detail-content { padding: 52px 46px; }
.detail-content h3 { margin: 0 0 20px; color: var(--text); font-size: 35px; font-weight: 520; line-height: 1.2; letter-spacing: -.03em; }
.detail-content > p { color: var(--muted); font-size: 17px; line-height: 1.78; }
.detail-media { min-height: 620px; overflow: hidden; background: #111318; }
.detail-media img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto; filter: saturate(.82) contrast(1.03); transition: transform 900ms var(--ease),filter 500ms var(--ease); }
.feature-list { display: grid; margin: 32px 0; border-top: 1px solid var(--line); }
.feature-list > span { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); color: #898d96; font-size: 15px; }
.feature-list > span > span { display: block; min-width: 0; }
.feature-list b { color: var(--accent); font-weight: 550; }
.feature-list strong { display: block; margin-bottom: 4px; color: var(--body); font-size: 17px; font-weight: 560; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 340px; padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background-color 220ms var(--ease),transform 260ms var(--ease); }
.service-card > span { color: #666b74; font-size: 12px; font-weight: 650; }
.service-card h3 { margin: 62px 0 14px; color: var(--text); font-size: 27px; font-weight: 520; line-height: 1.2; }
.service-card p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.service-card ul { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { margin: 9px 0; color: #898d96; font-size: 14px; }
.service-card li::before { content: "+"; margin-right: 8px; color: var(--accent); }

.dark-band { background: var(--panel); color: var(--text); }
.dark-band .detail-heading p { color: var(--muted); }
.architecture { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.architecture article { position: relative; min-height: 280px; padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.architecture span { color: #666b74; font-size: 12px; }
.architecture h3 { margin: 76px 0 13px; color: var(--text); font-size: 22px; font-weight: 520; }
.architecture p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--panel); }
.compare-table th,.compare-table td { padding: 20px; text-align: left; border: 1px solid var(--line); font-size: 15px; }
.compare-table th { color: var(--text); background: #15171c; font-weight: 560; }
.compare-table td { color: var(--muted); }
.compare-table td:first-child { color: var(--body); font-weight: 600; }
.outcome-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.outcome-strip span { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.outcome-strip b { display: block; margin-bottom: 9px; color: var(--text); font-size: 22px; font-weight: 520; }

.page-cta { padding: 108px 0; border-top: 1px solid var(--line); background: var(--panel); color: var(--text); }
.page-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.page-cta h2 { margin: 0 0 12px; color: var(--text); font-size: 43px; font-weight: 520; letter-spacing: -.035em; }
.page-cta p { margin: 0; color: var(--muted); font-size: 17px; }

.timeline { display: grid; border-left: 1px solid var(--line-strong); }
.timeline article { position: relative; margin-left: 38px; padding: 0 0 46px 28px; }
.timeline article::before { content: ""; position: absolute; left: -44px; top: 9px; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline h3 { margin: 0 0 10px; color: var(--text); font-size: 24px; font-weight: 520; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }

.about-visual { position: relative; min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; padding: 46px; overflow: hidden; background: #0d0f12; }
.about-visual::before { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; top: -170px; border: 1px solid rgba(141,150,255,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(141,150,255,.025),0 0 0 160px rgba(141,150,255,.012); }
.about-logo { position: absolute; left: 46px; top: 46px; width: 92px; height: 92px; }
.about-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.about-visual > span { color: #646872; font-size: 11px; letter-spacing: .12em; }
.about-visual > b { color: var(--text); font-size: 54px; font-weight: 520; }
.about-visual > small { color: #666a73; font-size: 11px; }

.contact-layout { display: grid; grid-template-columns: minmax(320px,.78fr) minmax(0,1.22fr); gap: 28px; }
.contact-panel { padding: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--body); }
.contact-panel h2 { margin: 18px 0; color: var(--text); font-size: 38px; font-weight: 520; }
.contact-panel p { color: var(--muted); font-size: 17px; line-height: 1.78; }
.contact-list { margin-top: 34px; border-top: 1px solid var(--line); }
.contact-list > span { display: grid; grid-template-columns: 110px 1fr; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-list small { color: #646872; font-size: 12px; }
.contact-list a,.contact-list b { color: var(--body); font-size: 14px; font-weight: 520; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.quote-form .full,.form-head,.form-tip,.form-note,.form-success { grid-column: 1/-1; }
.form-head { display: flex; align-items: center; justify-content: space-between; }
.form-head b { color: var(--text); font-size: 24px; font-weight: 560; }
.form-head span,.form-note { color: #62666f; font-size: 12px; }
.form-tip { padding: 14px 16px; border-left: 2px solid var(--accent); background: #11141a; color: #9ea3ad; font-size: 14px; }
.quote-form label > span { display: block; margin-bottom: 8px; color: #9a9ea7; font-size: 13px; }
.quote-form input,.quote-form select,.quote-form textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; outline: none; background: #0a0c0f; color: var(--body); font: inherit; font-size: 15px; transition: border-color 180ms var(--ease),background-color 180ms var(--ease); }
.quote-form textarea { min-height: 142px; resize: vertical; }
.quote-form input:focus,.quote-form select:focus,.quote-form textarea:focus { border-color: rgba(141,150,255,.62); background: #0c0e12; }
.quote-form ::placeholder { color: #4d5159; }
.form-success { display: none; padding: 13px 15px; border: 1px solid var(--line-strong); background: #15191f; color: var(--body); font-size: 14px; }
.form-success.show { display: block; }

.site-footer { padding: 82px 0 26px; border-top: 1px solid var(--line); background: var(--bg); color: var(--body); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 70px; padding-bottom: 62px; }
.footer-brand p { color: #646871; font-size: 14px; }
.footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-main > div > b { margin-bottom: 9px; color: var(--body); font-size: 14px; }
.footer-main > div > a,.footer-main > div > span { color: #737780; font-size: 14px; transition: color 180ms var(--ease); }
.footer-main > div > a:hover { color: var(--text); }
.footer-bottom { display: flex; gap: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: #5c6069; font-size: 13px; }
.footer-bottom a { margin-left: auto; }

.page-progress { position: fixed; z-index: 140; top: 0; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: 0 50%; background: var(--accent); animation: page-progress linear both; animation-timeline: scroll(root block); }
@keyframes page-progress { to { transform: scaleX(1); } }

@media (hover:hover) {
  .detail-split:hover .detail-media img { transform: scale(1.025); filter: saturate(.96) contrast(1.02); }
  .service-card:hover { background: rgba(255,255,255,.025); transform: translateY(-3px); }
}

@media(max-width:960px) {
  .detail-heading,.detail-split,.contact-layout { grid-template-columns: 1fr; }
  .detail-media { min-height: 500px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .architecture,.outcome-strip { grid-template-columns: 1fr 1fr; }
  .page-cta .wrap { display: block; }
  .page-cta .button { margin-top: 28px; }
}

@media(max-width:760px) {
  .detail-page .wrap,.nav-wrap { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); background: rgba(8,9,10,.98); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
  .nav-actions { margin-left: auto; }
  .nav-consult,.nav-actions .button { display: none; }
  .menu-button { display: block; }
  .detail-hero { min-height: auto; padding: 112px 0 78px; }
  .detail-hero h1 { font-size: 44px; line-height: 1.08; }
  .detail-hero p { font-size: 17px; }
  .detail-hero p { white-space: normal; }
  .detail-metrics { grid-template-columns: 1fr 1fr; margin-top: 46px; }
  .detail-metrics span:last-child { grid-column: 1/-1; }
  .anchor-nav { top: 64px; }
  .anchor-nav .wrap { gap: 26px; }
  .detail-section { padding: 94px 0; }
  .detail-heading { gap: 28px; margin-bottom: 46px; }
  .detail-heading h2 { font-size: 39px; }
  .detail-content { padding: 34px 24px; }
  .detail-content h3 { font-size: 31px; }
  .detail-media { min-height: 330px; }
  .service-grid,.architecture,.outcome-strip { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .architecture article { min-height: 240px; }
  .quote-form { grid-template-columns: 1fr; padding: 26px 20px; }
  .quote-form label { grid-column: 1/-1; }
  .form-head { display: block; }
  .form-head span { display: block; margin-top: 5px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom a { margin-left: 0; }
}

@media(max-width:480px) {
  .detail-hero h1 { font-size: 39px; }
  .detail-heading h2 { font-size: 35px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .detail-metrics span:last-child { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media(prefers-reduced-motion:reduce) {
  .page-progress { animation: none; transform: scaleX(1); opacity: .25; }
  .detail-media img,.service-card { transition: none; }
}
