.inner-page { background: var(--paper); color: var(--ink); }
.inner-page .header { background: rgba(5, 17, 34, .98); }
.inner-page .nav a[aria-current="page"] { color: var(--orange); }
.page-hero { padding: calc(var(--header-h) + 72px) 0 70px; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: clamp(28px, 7vw, 100px); align-items: end; }
.page-hero__eyebrow { color: var(--orange); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-hero h1 { margin-top: 16px; max-width: 15ch; font-size: clamp(2.35rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.05em; }
.page-hero p { color: #c8d2de; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }
.page-main { min-height: 52vh; padding: clamp(60px, 8vw, 108px) 0; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.page-intro h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.page-intro p { max-width: 60ch; color: var(--ink-soft); line-height: 1.7; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-actions .btn--line { border-color: var(--line-dark); color: var(--ink); }
.service-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-page-card { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: #fff; }
.service-page-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-page-card__body { padding: clamp(24px, 4vw, 38px); }
.service-page-card small { color: #a4620c; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-page-card h2 { margin-top: 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.service-page-card p { margin-top: 14px; color: var(--ink-soft); line-height: 1.7; }
.service-page-card ul { display: grid; gap: 10px; margin-top: 22px; }
.service-page-card li { position: relative; padding-left: 22px; line-height: 1.5; }
.service-page-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 54px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--line-dark); }
.feature-strip article { padding: 28px 24px; background: #fff; }
.feature-strip b { color: #a4620c; font-size: .78rem; }
.feature-strip h3 { margin-top: 14px; font-size: 1.05rem; }
.feature-strip p { margin-top: 9px; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.work-toolbar { position: sticky; top: calc(var(--header-h) + 10px); z-index: 15; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 14px; margin-bottom: 24px; padding: 12px; border: 1px solid var(--line-dark); border-radius: 16px; background: rgba(248, 247, 243, .96); backdrop-filter: blur(12px); }
.work-search { min-height: 48px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 10px; background: #fff; font-size: 1rem; }
.work-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.work-filters button { min-height: 48px; padding: 0 15px; border: 1px solid var(--line-dark); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }
.work-filters button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.estimate-page-list { display: grid; gap: 12px; }
.estimate-page-group { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 16px; background: #fff; }
.estimate-page-group summary { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 15px 20px; cursor: pointer; list-style: none; }
.estimate-page-group summary::-webkit-details-marker { display: none; }
.estimate-page-group summary span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--orange); font-size: .78rem; font-weight: 900; }
.estimate-page-group summary b { display: block; font-size: 1.05rem; }
.estimate-page-group summary small { color: var(--ink-soft); }
.estimate-page-group summary em { color: #a4620c; font-style: normal; font-weight: 800; }
.estimate-page-table { border-top: 1px solid var(--line-dark); }
.estimate-page-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 90px 110px 82px; gap: 12px; align-items: center; min-height: 58px; padding: 9px 20px; border-bottom: 1px solid #ecebe6; }
.estimate-page-row:last-child { border-bottom: 0; }
.estimate-page-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); }
.estimate-page-row input[type="number"] { min-height: 40px; width: 82px; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 8px; }
.estimate-page-row strong { text-align: right; }
.estimate-total { position: sticky; bottom: 16px; z-index: 16; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow-dark); }
.estimate-total small { display: block; color: #aab7c7; }
.estimate-total strong { display: block; margin-top: 4px; color: var(--orange); font-size: 1.55rem; }
.calc-page-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(360px, 1fr); gap: clamp(34px, 7vw, 90px); align-items: start; }
.calc-page-copy h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.045em; }
.calc-page-copy p { margin-top: 22px; color: var(--ink-soft); line-height: 1.75; }
.calc-page-panel { padding: clamp(22px, 4vw, 38px); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 70px rgba(8, 25, 45, .13); }
.calc-page-result { margin-top: 26px; padding: 24px; border-radius: 16px; background: var(--navy); color: #fff; }
.calc-page-result small { color: #aab7c7; }
.calc-page-result strong { display: block; margin-top: 7px; color: var(--orange); font-size: clamp(1.8rem, 4vw, 2.7rem); }
.calc-page-result p { margin-top: 7px; color: #d7e0ea; }
.portfolio-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portfolio-page-card { overflow: hidden; border: 0; border-radius: var(--radius-lg); background: var(--navy); color: #fff; text-align: left; cursor: pointer; }
.portfolio-page-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .55s var(--ease); }
.portfolio-page-card:hover img { transform: scale(1.035); }
.portfolio-page-card__body { padding: 24px; }
.portfolio-page-card small { color: var(--orange); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portfolio-page-card h2 { margin-top: 10px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.portfolio-page-card p { margin-top: 11px; color: #cdd6e1; line-height: 1.65; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.project-tags span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dae1ea; font-size: .75rem; }
.project-dialog { width: min(920px, calc(100vw - 28px)); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: var(--navy); color: #fff; box-shadow: var(--shadow-dark); }
.project-dialog::backdrop { background: rgba(2, 10, 19, .82); backdrop-filter: blur(5px); }
.project-dialog img { width: 100%; max-height: 62vh; object-fit: cover; }
.project-dialog__copy { padding: 26px; }
.project-dialog__copy p { margin-top: 12px; color: #cdd6e1; line-height: 1.7; }
.project-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(5,17,34,.9); color: #fff; font-size: 1.7rem; cursor: pointer; }
.contact-page-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr); gap: clamp(34px, 8vw, 110px); }
.contact-page-details { display: grid; gap: 14px; }
.contact-page-details a, .contact-page-details div { display: block; padding: 20px; border: 1px solid var(--line-dark); border-radius: 14px; background: #fff; }
.contact-page-details small { display: block; color: var(--ink-soft); }
.contact-page-details strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.contact-page-form { padding: clamp(24px, 4vw, 38px); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 70px rgba(8, 25, 45, .12); }
.loading-card { min-height: 260px; display: grid; place-items: center; color: var(--ink-soft); }
@media (max-width: 900px) {
  .page-hero .shell, .calc-page-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
  .service-page-grid, .portfolio-page-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .page-intro { display: grid; }
}
@media (max-width: 680px) {
  .page-hero { padding-top: calc(var(--header-h) + 46px); }
  .work-toolbar { position: static; grid-template-columns: 1fr; }
  .work-filters { overflow-x: auto; flex-wrap: nowrap; }
  .estimate-page-group summary { grid-template-columns: 42px minmax(0,1fr); }
  .estimate-page-group summary em { grid-column: 2; }
  .estimate-page-row { grid-template-columns: 24px minmax(0,1fr) 82px; }
  .estimate-page-row .estimate-unit { grid-column: 2; color: var(--ink-soft); font-size: .8rem; }
  .estimate-page-row strong { grid-column: 3; grid-row: 1; }
  .feature-strip { grid-template-columns: 1fr; }
  .estimate-total { bottom: 82px; align-items: flex-end; }
  .estimate-total .btn { padding-inline: 14px; }
}
