.gallery-page p, .gallery-page li { font-size: 1rem; line-height: 1.7; }
.gallery-hero { min-height: 500px; }
.gallery-hero .breadcrumbs { margin-bottom: 28px; color: rgba(255,255,255,.8); }
.gallery-hero .breadcrumbs a { color: #fff; }
.gallery-hero h1 { max-width: 850px; font-size: clamp(3.7rem, 6vw, 6rem); line-height: .98; }
.gallery-hero__lead { max-width: 720px; margin: 0; color: #dce9fb; font-size: 1.08rem !important; }
.gallery-new { padding-top: 76px; }
.gallery-new__heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; margin-bottom: 36px; }
.gallery-new__heading h2 { max-width: 730px; margin: 0; font-size: clamp(2.8rem, 4.5vw, 4.5rem); line-height: 1.02; }
.gallery-new__heading > p { margin: 0 0 5px; color: var(--muted); }
.gallery-feature { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr); overflow: hidden; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; box-shadow: 0 16px 45px rgba(6,31,72,.1); }
.gallery-feature__visual { padding: 22px; background: #edf4fb; }
.compare--new-job { aspect-ratio: 1.12 / 1; border-radius: 8px; box-shadow: none; }
.compare--new-job img { object-position: center; }
.compare--new-job .customer-before { object-position: center 50%; }
.gallery-feature__hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 13px 0 -1px; color: #536078; font-size: .76rem !important; font-weight: 750; }
.gallery-feature__hint span { color: var(--blue); font-size: 1.2rem; }
.gallery-feature__copy { align-self: center; padding: 42px 42px 44px; }
.gallery-feature__tag { margin-bottom: 10px; color: var(--blue); font-size: .7rem !important; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.gallery-feature__copy h3 { margin: 0 0 18px; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
.gallery-feature__copy > p:not(.gallery-feature__tag) { color: var(--muted); font-size: .93rem !important; }
.gallery-feature__copy ul { margin: 22px 0 28px; padding: 0; list-style: none; }
.gallery-feature__copy li { position: relative; margin: 8px 0; padding-left: 24px; color: #273750; font-size: .86rem !important; line-height: 1.5 !important; }
.gallery-feature__copy li::before { position: absolute; left: 0; color: var(--blue); content: '✓'; font-weight: 900; }
.gallery-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.gallery-detail { position: relative; overflow: hidden; aspect-ratio: 1.35 / 1; margin: 0; border-radius: 8px; background: #dfe7f0; }
.gallery-detail img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.gallery-detail--before img { object-position: center 50%; }
.gallery-detail:hover img { transform: scale(1.025); }
.gallery-detail figcaption { position: absolute; left: 10px; bottom: 10px; padding: 8px 10px; color: #fff; background: rgba(4,24,58,.9); border-radius: 4px; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.gallery-detail:not(.gallery-detail--before) figcaption { color: #05204a; background: #ffca23; }
.gallery-heading { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.gallery-heading h2 { margin-bottom: 15px; }
.gallery-heading > p:last-child { color: var(--muted); }
.gallery-more .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-more .gallery-item { padding: 14px 14px 18px; border: 1px solid #dce5f0; border-radius: 9px; background: #fff; }
.gallery-more .compare { aspect-ratio: 1.45 / 1; border-radius: 6px; }
.gallery-more .gallery-item h3 { margin: 16px 5px 7px; color: var(--navy); font-size: 1rem; }
.gallery-more .gallery-item p { margin: 0 5px; color: var(--muted); font-size: .86rem !important; line-height: 1.6 !important; }
@media (max-width: 980px) {
  .gallery-new__heading { grid-template-columns: 1fr; gap: 18px; }
  .gallery-new__heading > p { max-width: 720px; }
  .gallery-feature { grid-template-columns: 1fr; }
  .compare--new-job { aspect-ratio: 1.3 / 1; }
  .gallery-details { grid-template-columns: 1fr 1fr; }
  .gallery-more .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .gallery-page p { font-size: 1rem; }
  .gallery-hero { min-height: 510px; }
  .gallery-hero h1 { font-size: clamp(3.25rem, 14vw, 4.5rem); }
  .gallery-hero__lead { font-size: 1rem !important; }
  .gallery-new { padding-top: 56px; }
  .gallery-new__heading h2 { font-size: clamp(2.5rem, 11vw, 3.3rem); }
  .gallery-feature__visual { padding: 12px; }
  .compare--new-job { aspect-ratio: 1.05 / 1; }
  .gallery-feature__copy { padding: 32px 24px 36px; }
  .gallery-feature__copy > p:not(.gallery-feature__tag) { font-size: .98rem !important; }
  .gallery-feature__copy li { font-size: .92rem !important; }
  .gallery-feature__copy .btn { width: 100%; }
  .gallery-details { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .gallery-detail { aspect-ratio: 1 / 1; }
  .gallery-detail figcaption { left: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 6px 7px; font-size: .56rem; }
  .gallery-more .gallery-grid { grid-template-columns: 1fr; }
  .gallery-more .gallery-item p { font-size: .94rem !important; }
}
@media (max-width: 420px) {
  .gallery-details { grid-template-columns: 1fr; }
  .gallery-detail { aspect-ratio: 1.35 / 1; }
}
