/* CV-T005–CV-T017: service catalog and editorial detail treatments. */
.services-index-hero,
.service-detail-hero { isolation: isolate; }
.services-index-hero::after,
.service-detail-hero::after { display: none; }
.services-index-hero {
  min-height: 560px;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 0;
  align-items: stretch;
  background: #173e36;
}
.services-index-copy { padding: clamp(58px, 7vw, 108px) var(--pad); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.services-index-hero h1 { font-size: clamp(3.1rem, 5.2vw, 6.4rem); line-height: .94; }
.services-index-hero .service-hero-lead { max-width: 560px; margin: 26px 0 30px; }
.services-index-hero .button { margin-top: 0; }
.services-index-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.services-index-visual { position: relative; min-width: 0; min-height: 560px; margin: 0; overflow: hidden; }
.services-index-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,62,54,.5), transparent 38%), linear-gradient(0deg, rgba(9,22,20,.4), transparent 35%); }
.services-index-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.services-index-visual figcaption { position: absolute; z-index: 1; right: 22px; bottom: 20px; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-shadow: 0 1px 5px #111; }
.service-demo-note { padding: 15px var(--pad); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; border-bottom: 1px solid var(--line); background: #e8ede9; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.service-demo-note strong { color: var(--green-dark); }
.service-category { scroll-margin-top: 128px; padding-top: clamp(58px, 6vw, 88px); padding-bottom: clamp(58px, 6vw, 88px); }
.service-category .split-heading { margin-bottom: 0; }
.service-category-list { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.service-catalog-card { min-height: 0; padding: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); overflow: hidden; border-radius: 16px; box-shadow: none; }
.service-catalog-card > div:first-child { display: block; }
.service-card-visual { position: relative; min-height: 312px; overflow: hidden; }
.service-card-visual::after { content: 'AI-КОНЦЕПТ'; position: absolute; left: 16px; bottom: 15px; padding: 6px 9px; background: rgba(18,27,25,.75); color: #fff; font-size: .56rem; font-weight: 850; letter-spacing: .08em; }
.service-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card-visual:hover img { transform: scale(1.035); }
.service-card-content { min-width: 0; padding: clamp(20px, 2.4vw, 34px); display: flex; flex-direction: column; align-items: start; border-top: 4px solid var(--red); }
.service-catalog-card h3 { margin-top: 22px; font-size: clamp(1.65rem, 2.4vw, 3.05rem); line-height: .98; overflow-wrap: anywhere; }
.service-catalog-card > p,
.service-card-content > p { margin-top: 16px; font-size: .82rem; line-height: 1.5; }
.service-card-bottom { width: 100%; margin-top: auto; padding-top: 22px; }
.service-card-bottom strong { font-size: 1.25rem; }
.service-card-bottom small { max-width: 170px; font-size: .59rem; }
.service-card-bottom a { white-space: normal; text-align: right; }
.service-direction-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.service-direction-block > p { margin-bottom: 13px; color: var(--green-dark); font-size: .73rem; font-weight: 850; }
.service-direction-block > p span { color: var(--muted); font-weight: 500; }
.service-direction-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.service-direction-list li { max-width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); color: var(--ink-soft); font-size: .76rem; }
.service-detail-hero { min-height: 590px; padding: 0; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 0; align-items: stretch; }
.service-detail-intro { padding: clamp(54px, 6vw, 100px) clamp(30px, 4vw, 76px) clamp(80px, 7vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.service-detail-hero h1 { max-width: 790px; font-size: clamp(2.7rem, 4.7vw, 5.9rem); line-height: .96; }
.service-detail-hero .service-hero-lead { max-width: 620px; margin-top: 25px; font-size: clamp(.96rem, 1.15vw, 1.13rem); line-height: 1.6; }
.service-hero-actions { margin-top: 30px; }
.service-hero-visual { position: relative; min-width: 0; min-height: 590px; margin: 0; overflow: hidden; }
.service-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,20,18,.5), transparent 40%); }
.service-hero-visual figcaption { position: absolute; z-index: 1; right: 24px; bottom: 20px; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-shadow: 0 1px 5px #111; }
.service-offer-card { position: absolute !important; z-index: 3 !important; right: var(--pad); bottom: 64px; width: min(315px, 32%); margin: 0; padding: 22px; border: 1px solid rgba(255,255,255,.28); border-top: 3px solid var(--red); border-radius: 10px; background: rgba(18,30,27,.88) !important; backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.service-offer-label { display: block; margin-bottom: 14px; color: #cfdfd8; font-size: .67rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.service-offer-card .service-hero-price { margin-bottom: 13px; }
.service-offer-card .service-hero-price strong { font-size: clamp(1.55rem, 2.2vw, 2.4rem); }
.service-offer-card .service-hero-price small { max-width: none; }
.service-offer-card p { margin: 0; font-size: .7rem; line-height: 1.45; }
.service-design-film { background: #163d35; }
.service-design-film .service-hero-visual img { object-position: 45% center; }
.service-design-polish { background: #202827; }
.service-design-polish .service-hero-visual { position: absolute; z-index: 0; inset: 0; min-height: 0; }
.service-design-polish .service-hero-visual img { object-position: center 58%; }
.service-design-polish .service-hero-visual::after { background: linear-gradient(90deg, rgba(14,22,20,.96) 0%, rgba(14,22,20,.82) 42%, rgba(14,22,20,.12) 100%); }
.service-design-polish .service-detail-intro { position: relative; z-index: 2; grid-column: 1 / -1; width: min(65%, 880px); min-height: 590px; }
.service-design-polish .service-offer-card { right: var(--pad); }
.service-design-ceramic { background: #e8ece8; color: var(--ink); }
.service-design-ceramic .eyebrow { color: var(--green-dark); }
.service-design-ceramic .breadcrumbs, .service-design-ceramic .breadcrumbs a { color: var(--muted); }
.service-design-ceramic .service-hero-lead { color: var(--ink-soft); }
.service-design-ceramic .button-ghost { color: var(--ink); border-color: var(--line); }
.service-design-ceramic .service-hero-visual img { object-position: 55% center; }
.service-design-interior { background: #343c38; }
.service-design-interior .service-hero-visual img { object-position: 48% center; }
.service-design-interior .service-offer-card { background: rgba(29,39,36,.91) !important; }
.service-detail-section { scroll-margin-top: 112px; }
.service-detail-section .split-heading { margin-bottom: 26px; }
.service-result { padding-top: clamp(64px, 7vw, 100px); padding-bottom: clamp(64px, 7vw, 100px); }
.service-result .split-heading h2 { max-width: 900px; }
.service-result .split-heading > p { padding-left: 20px; border-left: 3px solid var(--red); }
.service-options { background: #e7ece8; }
.service-option-grid { gap: 16px; }
.service-option-grid article { min-height: 205px; border-radius: 12px; }
.service-media { background: #edf0ed; }
.service-media .visual-pair { margin-top: 34px; }
.service-media .visual-pair-single { grid-template-columns: minmax(0, 1fr); }
.service-media .visual-pair-single img { max-height: 620px; aspect-ratio: 16 / 7; }
.service-media .image-story { border-radius: 12px; }
.service-process { background: #f2f2ee; }
.service-process .service-steps { position: relative; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border: 0; }
.service-process .service-steps::before { content: ''; position: absolute; left: 7%; right: 7%; top: 21px; height: 2px; background: var(--red); opacity: .42; }
.service-process .service-steps li { position: relative; min-height: 240px; padding: 44px 20px 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 10px; background: #fff; }
.service-process .service-steps li:nth-child(even) { transform: translateY(26px); }
.service-process .service-steps li > span { position: absolute; top: -22px; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--red); border-radius: 50%; background: #fff; color: var(--red); font-size: .7rem; }
.service-process .service-steps li > div { margin-top: auto; }
.service-process .service-steps h3 { font-size: clamp(1.2rem, 1.6vw, 1.7rem); }
.service-process .service-steps p { font-size: .79rem; line-height: 1.5; }
.service-process-note { margin-top: 48px; color: var(--muted); font-size: .7rem; }
.service-design-interior + .service-local-nav + .service-options .service-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-direction-list li,
.service-catalog-card,
.service-hero-visual,
.services-index-visual { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .service-category-list { grid-template-columns: 1fr; }
  .service-detail-hero h1 { font-size: clamp(2.65rem, 5.2vw, 4.8rem); }
  .service-offer-card { bottom: 28px; width: min(275px, 36%); }
}
@media (max-width: 800px) {
  .services-index-hero { grid-template-columns: 1fr; }
  .services-index-copy { padding-top: 64px; padding-bottom: 55px; }
  .services-index-visual { min-height: 320px; max-height: 400px; }
  .service-detail-hero { grid-template-columns: 1fr; }
  .service-detail-intro { padding-top: 65px; padding-bottom: 52px; }
  .service-hero-visual { min-height: 420px; max-height: 480px; }
  .service-offer-card { right: var(--pad); bottom: 26px; width: min(330px, 45%); }
  .service-design-polish .service-hero-visual { max-height: none; }
  .service-design-polish .service-detail-intro { width: 75%; min-height: 650px; }
  .service-process .service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .service-process .service-steps::before { display: none; }
  .service-process .service-steps li:nth-child(even) { transform: none; }
}
@media (max-width: 600px) {
  .services-index-copy { padding-top: 52px; }
  .services-index-hero h1 { font-size: clamp(2.6rem, 11vw, 4.1rem); }
  .services-index-visual { min-height: 260px; }
  .service-demo-note { font-size: .68rem; }
  .service-category { scroll-margin-top: 108px; }
  .service-category-list { margin-top: 24px; }
  .service-catalog-card { display: block; }
  .service-card-visual { display: block; height: 215px; min-height: 0; }
  .service-card-content { padding: 22px; }
  .service-catalog-card h3 { margin-top: 18px; font-size: 2rem; }
  .service-card-bottom { flex-direction: row; align-items: end; }
  .service-card-bottom a { max-width: 125px; }
  .service-design-interior + .service-local-nav + .service-options .service-option-grid { grid-template-columns: 1fr; }
  .service-detail-intro { padding: 52px var(--pad) 36px; }
  .service-detail-hero h1 { font-size: clamp(2.45rem, 10.4vw, 3.6rem); }
  .service-hero-actions { margin-top: 25px; }
  .service-hero-visual { min-height: 310px; max-height: 340px; }
  .service-offer-card { position: relative !important; right: auto; bottom: auto; width: auto; margin: -42px var(--pad) 28px; grid-column: 1; }
  .service-design-polish .service-hero-visual { position: relative; inset: auto; min-height: 310px; max-height: 340px; }
  .service-design-polish .service-hero-visual::after { background: linear-gradient(0deg, rgba(12,20,18,.5), transparent 40%); }
  .service-design-polish .service-detail-intro { grid-column: 1; width: auto; min-height: 0; }
  .service-result .split-heading > p { padding-left: 14px; }
  .service-media .visual-pair-single img { aspect-ratio: 4 / 3; }
  .service-process .service-steps { grid-template-columns: 1fr; gap: 28px; margin-left: 18px; }
  .service-process .service-steps::before { display: block; left: -18px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .service-process .service-steps li { min-height: 170px; padding: 25px 20px; }
  .service-process .service-steps li > span { left: -38px; top: 18px; }
  .service-process-note { margin-top: 25px; }
}

/* CV-T015: one image-led catalog language and two representative detail treatments. */
.services-index-hero { position: relative; min-height: 660px; display: block; overflow: hidden; background: #17231f; }
.services-index-copy { position: relative; z-index: 2; width: min(760px, 61%); min-height: 660px; padding-top: 95px; padding-bottom: 85px; }
.services-index-hero h1 { max-width: 780px; font-size: clamp(3.6rem, 6.8vw, 7.7rem); font-style: normal; line-height: .92; letter-spacing: -.065em; }
.services-index-hero h1 em { color: #fff; font-style: normal; }
.services-index-hero .service-hero-lead { max-width: 560px; color: #e4e9e5; font-size: clamp(1.08rem, 1.5vw, 1.35rem); }
.services-index-visual { position: absolute; inset: 0; min-height: 0; }
.services-index-visual::after { background: linear-gradient(90deg, rgba(8,23,19,.94) 0%, rgba(8,23,19,.77) 35%, rgba(8,23,19,.22) 70%), linear-gradient(0deg, rgba(8,23,19,.42), transparent 40%); }
.services-index-visual img { object-position: center 44%; filter: saturate(.82) contrast(1.06); }
.services-index-visual figcaption { right: 24px; bottom: 22px; }
.service-category:nth-of-type(odd) { background: #f8f8f4; }
.service-category .split-heading h2 { font-style: normal; letter-spacing: -.055em; }
.service-catalog-card h3 { font-style: normal; letter-spacing: -.04em; }
.service-catalog-card { border-radius: 8px; }
.service-catalog-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); }
.service-card-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.service-card-content > p { max-width: 60ch; }
.service-card-content { border-top-width: 2px; }

/* CV-T038/R1: keep Russian service titles intact and wrap at word boundaries. */
.service-catalog-card h3{min-height:2.2em;font-size:clamp(1.55rem,2vw,2.55rem);font-style:normal;text-transform:none;letter-spacing:-.035em;line-height:1.1;overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:balance}
@media(max-width:700px){.service-catalog-card h3{font-size:1.55rem;line-height:1.12}}
.service-design-film { background: #e8ebe6; color: #111a17; }
.service-design-film .service-detail-intro { padding-right: clamp(34px, 5vw, 80px); }
.service-design-film .breadcrumbs, .service-design-film .breadcrumbs a { color: #50605a; }
.service-design-film .eyebrow { color: #246a59; }
.service-design-film h1 { max-width: 800px; color: #111a17; font-style: normal; font-size: clamp(3rem, 5.1vw, 6.3rem); line-height: .94; letter-spacing: -.07em; }
.service-design-film .service-hero-lead { color: #3f514a; font-size: clamp(1rem, 1.22vw, 1.2rem); }
.service-design-film .button-ghost { color: #111a17; border-color: #9eaaa3; }
.service-design-film .service-hero-visual::after { background: linear-gradient(0deg, rgba(8,23,19,.38), transparent 34%); }
.service-design-film .service-hero-visual img { object-position: 42% center; }
.service-design-film .service-detail-intro::before { content: ''; width: 58px; height: 4px; margin-bottom: 28px; background: var(--red); }
.service-design-polish { background: #111917; }
.service-design-polish h1 { max-width: 950px; font-style: normal; font-size: clamp(3rem, 5.1vw, 6.4rem); line-height: .93; letter-spacing: -.07em; }
.service-design-polish .service-hero-visual::after { background: linear-gradient(90deg, rgba(9,17,15,.94), rgba(9,17,15,.74) 45%, rgba(9,17,15,.05) 100%), linear-gradient(0deg, rgba(9,17,15,.38), transparent 45%); }
.service-design-polish .service-hero-visual img { filter: saturate(.8) contrast(1.12); }
body[data-service-key='protective-film'] .service-result,
body[data-service-key='polishing'] .service-result { background: #e7ece7; }
body[data-service-key='protective-film'] .service-result h2,
body[data-service-key='polishing'] .service-result h2 { max-width: 830px; font-size: clamp(2.7rem, 4.2vw, 5.1rem); font-style: normal; line-height: 1.02; letter-spacing: -.06em; }
body[data-service-key='protective-film'] .service-process .service-steps,
body[data-service-key='polishing'] .service-process .service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
body[data-service-key='protective-film'] .service-process .service-steps::before,
body[data-service-key='polishing'] .service-process .service-steps::before { display: none; }
body[data-service-key='protective-film'] .service-process .service-steps li,
body[data-service-key='polishing'] .service-process .service-steps li { min-height: 150px; padding: 26px 20px 26px 64px; display: block; border: 0; border-top: 1px solid #cdd6cf; border-radius: 0; background: transparent; }
body[data-service-key='protective-film'] .service-process .service-steps li:nth-child(even),
body[data-service-key='polishing'] .service-process .service-steps li:nth-child(even) { transform: none; }
body[data-service-key='protective-film'] .service-process .service-steps li > span,
body[data-service-key='polishing'] .service-process .service-steps li > span { top: 27px; left: 0; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; color: var(--red); font-size: .9rem; }
body[data-service-key='protective-film'] .service-process .service-steps li > div,
body[data-service-key='polishing'] .service-process .service-steps li > div { margin-top: 0; }
body[data-service-key='protective-film'] .service-media .image-story,
body[data-service-key='polishing'] .service-media .image-story { border-radius: 0; }
@media (max-width: 800px) {
  .services-index-hero { min-height: 620px; }
  .services-index-copy { width: min(710px, 76%); min-height: 620px; }
  .service-design-film .service-detail-intro { padding-top: 72px; }
}
@media (max-width: 600px) {
  .services-index-hero { min-height: 690px; }
  .services-index-copy { width: 100%; min-height: 690px; padding: 76px var(--pad) 45px; }
  .services-index-hero h1 { font-size: clamp(3.2rem, 12vw, 4.6rem); }
  .services-index-visual { min-height: 0; max-height: none; }
  .services-index-visual img { object-position: 59% center; }
  .services-index-visual::after { background: linear-gradient(90deg, rgba(8,23,19,.8), rgba(8,23,19,.45)), linear-gradient(0deg, rgba(8,23,19,.62), transparent 55%); }
  .service-design-film h1, .service-design-polish h1 { font-size: clamp(2.7rem, 10.6vw, 4rem); }
  .service-design-film .service-detail-intro { padding-top: 40px; padding-bottom: 24px; }
  .service-design-film .service-hero-lead { line-height: 1.45; }
  .service-design-polish .service-detail-intro { min-height: 0; }
  body[data-service-key='protective-film'] .service-process .service-steps,
  body[data-service-key='polishing'] .service-process .service-steps { grid-template-columns: 1fr; margin-left: 0; }
  body[data-service-key='protective-film'] .service-process .service-steps li,
  body[data-service-key='polishing'] .service-process .service-steps li { min-height: 135px; }
}
