html { scroll-padding-top: 140px; }

.btn--ghost { background: var(--white); border: 2px solid var(--line); color: var(--navy); clip-path: none; padding: 15px 22px; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--paper); }

.subnav-bar { position: sticky; top: var(--header-h); z-index: 950; background: var(--navy); border-bottom: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(9, 29, 58, 0.14); }
.subnav-bar .wrap { width: min(1320px, 100% - 24px); }
.subnav-list { display: grid; grid-template-columns: repeat(6, 1fr); align-items: stretch; }
.subnav-link { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 10px; font: 700 14.5px/1.15 var(--head); text-transform: uppercase; letter-spacing: 0.03em; color: #C9D8EC; border-right: 1px solid rgba(255,255,255,0.1); position: relative; transition: background .2s, color .2s; }
.subnav-link:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
.subnav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.subnav-link.active { color: var(--white); background: var(--blue); }
.subnav-link.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--orange); }

.service-section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.service-section:nth-child(even) { background: var(--paper); }
.div-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.div-title { margin-bottom: 16px; }
.div-lead { font-size: 19.5px; font-weight: 600; color: var(--navy); line-height: 1.48; margin-bottom: 14px; }
.div-desc { font-size: 16.5px; font-weight: 500; color: var(--ink); line-height: 1.65; margin-bottom: 28px; }

.specs-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
.spec-box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 24px 26px; }
.service-section:nth-child(even) .spec-box { background: var(--white); }
.spec-box h4 { font: 700 20px/1.2 var(--head); text-transform: uppercase; color: var(--navy); margin-bottom: 14px; letter-spacing: 0.02em; }
.spec-list li { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.spec-list li .node { margin-top: 6px; }

.deliv-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.deliv-tag { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: var(--white); font: 600 12.5px/1 var(--body); text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 14px; }
.deliv-tag svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.div-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.visual-panel { position: sticky; top: 152px; display: flex; flex-direction: column; gap: 14px; }
.main-stage { position: relative; background: var(--navy-dark); border: 2px solid var(--navy); overflow: hidden; cursor: zoom-in; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); box-shadow: 0 18px 40px rgba(14, 42, 82, 0.14); }
.main-stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.main-stage:hover img { transform: scale(1.02); }
.zoom-btn { position: absolute; bottom: 16px; right: 16px; z-index: 3; background: var(--orange); color: var(--navy-dark); border: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.zoom-btn:hover { background: var(--white); transform: scale(1.06); }
.zoom-btn svg { width: 18px; height: 18px; }

.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumb-btn { position: relative; border: 3px solid var(--line); background: var(--navy-dark); padding: 0; cursor: pointer; overflow: hidden; aspect-ratio: 16 / 10; transition: border-color .2s, transform .2s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity .2s, transform .25s; }
.thumb-btn:hover img { opacity: 1; transform: scale(1.05); }
.thumb-btn.active { border-color: var(--orange); }
.thumb-btn.active img { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(9, 29, 58, 0.94); backdrop-filter: blur(4px); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; color: var(--white); max-width: 1240px; width: 100%; margin: 0 auto; }
.lb-counter { font: 700 15px/1 var(--head); letter-spacing: 0.12em; color: var(--orange); text-transform: uppercase; }
.lb-close { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: var(--white); width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: background .2s, border-color .2s; }
.lb-close:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-dark); }
.lb-body { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; max-width: 1240px; width: 100%; margin: 12px auto; overflow: hidden; }
.lb-img { max-height: 82vh; max-width: 100%; width: auto; height: auto; object-fit: contain; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--navy); border: 1px solid rgba(255,255,255,0.25); color: var(--white); width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; z-index: 5; }
.lb-nav:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-dark); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-nav svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
    .div-top { grid-template-columns: 1fr; gap: 36px; }
    .visual-panel { position: static; order: -1; }
    .subnav-list { grid-template-columns: repeat(3, 1fr); }
    .subnav-link { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 980px) {
    .service-section { padding: 64px 0; }
}

@media (max-width: 640px) {
    .subnav-bar .wrap { width: 100%; }
    .subnav-list { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .subnav-list::-webkit-scrollbar { display: none; }
    .subnav-link { flex: 0 0 auto; padding: 13px 16px; font-size: 13.5px; white-space: nowrap; border-bottom: none; }
    .spec-box { padding: 18px 16px; }
    .thumb-grid { gap: 8px; }
    .div-actions { flex-direction: column; align-items: stretch; }
    .div-actions .btn { width: 100%; text-align: center; }
    .lb-nav { width: 40px; height: 40px; }
}
