/* ==========================================================
   TSD דלתות מוסך - service pages (RTL)
   Each page has its own theme class (theme-v1 ... theme-v8)
   ========================================================== */

.svc-page { --accent: var(--red); --accent-dark: var(--red-dark); --tint: #f4f6fa; }
.theme-v2 { --accent: #c8102e; --tint: #f6f3ef; }
.theme-v3 { --accent: #d71920; --tint: #fff5f5; }
.theme-v4 { --accent: #f2a900; --accent-dark: #c98d00; --tint: #f1f4f9; }
.theme-v5 { --accent: #0f6cbd; --accent-dark: #0a4f8c; --tint: #eef5fc; }
.theme-v6 { --accent: #12805c; --accent-dark: #0c5d43; --tint: #eef8f4; }
.theme-v7 { --accent: #6b3fd4; --accent-dark: #4f2ca6; --tint: #f4f0fd; }
.theme-v8 { --accent: #e0601a; --accent-dark: #b44a10; --tint: #fff4ec; }

/* ---------- shared hero bits ---------- */
.svc-hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 900; line-height: 1.15; margin: 0 0 14px; }
.svc-hero .lead { font-size: 1.15rem; margin: 0 0 16px; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; opacity: .85; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.chips svg { width: 16px; height: 16px; color: var(--accent); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; padding: 11px 22px; border-radius: 40px; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-red { background: linear-gradient(180deg, #e8262d, var(--red-dark)); color: #fff; box-shadow: 0 6px 16px rgba(215,25,32,.3); }
.btn-ghost { border: 2px solid currentColor; }

/* v1 / v6 / v8: split hero */
.hero-split { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, var(--navy-light)); color: #fff; padding: 46px 0; }
.hs-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hs-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.9); }

.alert-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; background: var(--accent); color: #fff; font-weight: 800; padding: 10px 16px; text-align: center; }
.alert-bar svg { width: 22px; height: 22px; }
.alert-bar a { background: #fff; color: var(--accent-dark); padding: 2px 14px; border-radius: 20px; }

.stats-strip { background: var(--accent); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 16px 8px; }
.stat + .stat { border-right: 1px solid rgba(255,255,255,.3); }
.stat strong { display: block; font-size: 1.6rem; font-weight: 900; }

/* v2: full background hero */
.hero-bg { position: relative; color: #fff; padding: 90px 0 70px; overflow: hidden; background: var(--navy-dark); }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8,28,64,.95) 0%, rgba(8,28,64,.8) 45%, rgba(8,28,64,.25) 100%); }
.hb-inner { position: relative; z-index: 1; max-width: 1200px; }
.hb-inner > * { max-width: 620px; }

/* v3: centered hero + banner */
.hero-center { background: radial-gradient(circle at 50% 0, #e8262d, var(--red-dark) 60%, #7d0b11); color: #fff; padding: 50px 0 120px; text-align: center; }
.hc-inner { display: flex; flex-direction: column; align-items: center; }
.hc-inner .crumbs, .hc-inner .chips, .hc-inner .hero-btns { justify-content: center; }
.hero-center .lead { margin-inline: auto; }
.hero-center .chips svg { color: #fff; }
.hero-center .btn-red { background: #fff; color: var(--red-dark); }
.hc-banner { margin-top: -90px; position: relative; }
.hc-banner img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 44px rgba(0,0,0,.25); border: 6px solid #fff; }

/* v4: dark diagonal hero */
.hero-dark { position: relative; background: #0b1426; color: #fff; overflow: hidden; min-height: 440px; display: flex; align-items: center; }
.hd-img { position: absolute; inset: 0 auto 0 0; width: 52%; background-size: cover; background-position: center; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.hd-inner { position: relative; z-index: 1; padding: 48px 0; }
.hd-text { max-width: 560px; }
.theme-v4 .chips svg { color: var(--accent); }

/* v5: light hero, framed image */
.hero-light { background: linear-gradient(180deg, var(--tint), #fff); padding: 50px 0; color: var(--navy); }
.hl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-light .chips li { background: #fff; border-color: #d4e3f3; }
.hero-light .btn-ghost { color: var(--navy); }
.hl-frame { position: relative; }
.hl-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 4px solid var(--accent); border-radius: 18px; }
.hl-frame img { position: relative; width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

/* v7: gradient hero, tilted image */
.hero-grad { background: linear-gradient(135deg, var(--accent-dark), var(--navy) 70%); color: #fff; padding: 54px 0; overflow: hidden; }
.hg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hg-media img { width: 100%; border-radius: 22px; transform: rotate(-3deg); box-shadow: 0 24px 50px rgba(0,0,0,.4); border: 6px solid rgba(255,255,255,.95); }
.theme-v7 .chips svg { color: #c9b5ff; }

/* ---------- content ---------- */
.svc-layout { padding: 44px 0 20px; }
.svc-layout.with-aside { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.svc-content { min-width: 0; }
.svc-content h2 { color: var(--navy); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 900; margin: 0 0 12px; position: relative; padding-right: 16px; }
.svc-content h2::before { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 4px; background: var(--accent); }
.svc-content h3 { color: var(--navy); font-size: 1.2rem; font-weight: 800; margin: 16px 0 6px; }
.svc-content p { font-size: 1.08rem; margin: 0 0 12px; }
.c-sec { margin-bottom: 30px; }
.intro-more { font-size: 1.12rem; background: var(--tint); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 30px; }
.intro-more p:last-child { margin-bottom: 0; }
.tick-list { display: grid; gap: 8px; margin: 6px 0 14px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; }
.tick-list svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 3px; }
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 12px; }
.sub-card { background: #fff; border: 1px solid var(--gray-line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 3px 12px rgba(13,42,92,.07); }
.sub-card h3 { margin-top: 0; }
.sub-card p:last-child { margin-bottom: 0; }
.content-figure { margin: 0 0 30px; }
.content-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure figcaption { font-size: .9rem; color: #6b7587; margin-top: 6px; text-align: center; }
.zig { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--tint); border-radius: 18px; padding: 24px; }
.zig-media { margin: 0; }
.zig-media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.signs-box { background: var(--tint); border: 2px dashed var(--accent); border-radius: 16px; padding: 20px 22px; }

/* sidebar */
.svc-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.aside-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.aside-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.aside-prices li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .95rem; }
.aside-prices strong { color: #ffd34d; white-space: nowrap; }
.aside-card a { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: underline; }
.theme-v4 .aside-card { background: #0b1426; }

/* ---------- blocks: process / cost / faq ---------- */
.svc-block { padding: 44px 0; }
.block-title { text-align: center; color: var(--navy); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; margin-bottom: 8px; }
.block-title::after { content: ""; display: block; width: 70px; height: 5px; border-radius: 4px; background: var(--accent); margin: 10px auto 0; }
.block-sub { text-align: center; color: #5a6578; margin: 0 auto 22px; max-width: 720px; }
.process { background: var(--tint); }
.process .block-title { margin-bottom: 26px; }
.num { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: 1.25rem; }
.process h3 { color: var(--navy); font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.process p { margin: 0; color: #4a5568; }

/* horizontal steps */
.steps-h { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.steps-h li { position: relative; background: #fff; border-radius: var(--radius); padding: 20px 16px 16px; box-shadow: 0 4px 14px rgba(13,42,92,.08); display: flex; flex-direction: column; gap: 10px; }
.steps-h li:not(:last-child)::after { content: ""; position: absolute; top: 42px; left: -14px; width: 10px; height: 10px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); transform: rotate(-45deg); }

/* vertical timeline */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; right: 22px; top: 10px; bottom: 10px; width: 3px; background: var(--accent); opacity: .35; }
.timeline li { display: flex; gap: 18px; position: relative; padding: 0 0 22px; }
.timeline li > div { background: #fff; border-radius: var(--radius); padding: 14px 18px; flex: 1; box-shadow: 0 3px 12px rgba(13,42,92,.07); }

/* step cards */
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step-cards li { background: #fff; border-radius: 16px; padding: 22px 18px; border-bottom: 5px solid var(--accent); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.step-cards .num { width: 58px; height: 58px; font-size: 1.5rem; border-radius: 16px; transform: rotate(-6deg); }

/* cost */
.svc-cost-table { width: 100%; max-width: 820px; margin: 0 auto; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-cost-table th { background: var(--navy); color: #fff; text-align: right; padding: 12px 18px; }
.svc-cost-table td { padding: 12px 18px; border-top: 1px solid var(--gray-line); font-size: 1.05rem; }
.svc-cost-table td:last-child { font-weight: 900; color: var(--accent); white-space: nowrap; }
.cost-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cost-card { background: #fff; border-radius: 16px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.cc-price { font-size: 1.45rem; font-weight: 900; color: var(--accent); }
.cc-name { font-weight: 700; color: var(--navy); }
.cost-list { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 10px 22px; box-shadow: var(--shadow); }
.cost-list li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; font-size: 1.08rem; }
.cost-list li + li { border-top: 1px solid var(--gray-line); }
.cost-list .dots { flex: 1; border-bottom: 2px dotted #c3cad6; transform: translateY(-4px); }
.cost-list strong { color: var(--accent); font-weight: 900; white-space: nowrap; }
.theme-v4 .cost-list strong { color: var(--accent-dark); }
.cost-note { text-align: center; margin: 18px 0 0; font-weight: 700; }
.cost-note a { color: var(--accent-dark); text-decoration: underline; }

/* faq */
.faq-block { background: #fff; }
.faq-list.one-col { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.svc-page .faq-item { border-right-color: var(--navy); }
.svc-page .faq-item[open] { border-right-color: var(--accent); }
.svc-page .faq-item[open] .faq-icon { background: var(--accent); }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qa-card { background: var(--tint); border-radius: 16px; padding: 18px 20px; position: relative; }
.qa-card::before { content: "?"; position: absolute; left: 16px; top: 10px; font-size: 2.6rem; font-weight: 900; color: var(--accent); opacity: .25; }
.qa-card h3 { color: var(--navy); font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; padding-left: 30px; }
.qa-card p { margin: 0; }

/* cta */
.svc-cta { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: 46px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
.svc-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 10px; }
.svc-cta p { font-size: 1.12rem; margin: 0 0 18px; }
.cta-phone-big { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; }
.cta-phone-big svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--accent); fill: #fff; }
.svc-cta .order-box { color: var(--text); }
.cta-slim { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-slim p { margin: 0; }
.theme-v4 .svc-cta { background: linear-gradient(120deg, #0b1426, #1a2a4a); }
.theme-v6 .svc-cta, .theme-v5 .svc-cta { background: linear-gradient(120deg, var(--accent-dark), var(--navy)); }

/* related */
.related { padding: 30px 0 40px; background: var(--tint); }
.related h2 { color: var(--navy); font-size: 1.4rem; font-weight: 900; margin-bottom: 14px; text-align: center; }
.related ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.related a { display: block; background: #fff; border: 2px solid var(--navy); color: var(--navy); font-weight: 800; padding: 8px 18px; border-radius: 30px; transition: background .2s, color .2s; }
.related a:hover { background: var(--navy); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .svc-layout.with-aside { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
}
@media (max-width: 900px) {
  .hs-grid, .hl-grid, .hg-grid, .cta-grid, .zig { grid-template-columns: 1fr; }
  .hero-dark { flex-direction: column; min-height: 0; }
  .hd-img { position: relative; width: 100%; height: 240px; clip-path: none; }
  .hero-bg { padding: 60px 0 50px; }
  .hero-bg::after { background: rgba(8,28,64,.78); }
  .sub-grid, .qa-grid { grid-template-columns: 1fr; }
  .steps-h li:not(:last-child)::after { display: none; }
  .hl-frame::before { inset: 10px -10px -10px 10px; }
  .hg-media img { transform: none; }
}
@media (max-width: 560px) {
  .svc-hero .lead { font-size: 1.05rem; }
  .stats-inner { grid-template-columns: 1fr 1fr 1fr; }
  .stat strong { font-size: 1.15rem; }
  .stat span { font-size: .85rem; }
  .svc-cost-table td, .svc-cost-table th { padding: 10px 12px; font-size: .95rem; }
  .cost-list { padding: 6px 14px; }
  .cost-list li { font-size: .98rem; flex-wrap: wrap; }
  .cost-list .dots { display: none; }
  .cost-list strong { margin-right: auto; }
  .hc-banner { margin-top: -70px; }
  .zig { padding: 16px; }
}
