/* ===== SERVICE PAGE HERO V2 (Homepage-style) ===== */
/* The hero now uses homepage .hero classes from main.css */
/* Service-specific overrides: */
.service-hero-v2{
  min-height:auto;
  padding:80px 40px 0;
  display:block;
  overflow:hidden;
}
/* Hidden on desktop, shown on mobile via responsive.css */
.hero-video-preview{display:none}
.service-hero-v2 .hero-inner{
  max-width:1280px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
  padding-bottom:20px;
}
.service-hero-v2 .hero-badge{margin-bottom:16px}
.service-hero-v2 h1{margin-bottom:14px}
.service-hero-v2 .hero-subtitle{margin-bottom:24px;color:var(--text);font-weight:400}
.service-hero-v2 .hero-img-wrapper{
  aspect-ratio:9/16;max-width:380px;
}
.service-hero-v2 .service-hero-placeholder{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:5rem;opacity:0.2;color:var(--burgundy);
}
/* Video in hero */
.service-hero-v2 .hero-img-wrapper video{
  width:100%;height:100%;object-fit:cover;display:block;
}
.service-hero-v2 .play-btn{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:3;width:64px;height:64px;border-radius:50%;
  background:rgba(122,43,56,0.85);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:opacity 0.3s,transform 0.3s;
}
.service-hero-v2 .play-btn:hover{transform:translate(-50%,-50%) scale(1.1)}
.service-hero-v2 .play-btn.hidden{opacity:0;pointer-events:none}
.service-hero-v2 .play-btn::after{
  content:'';display:block;width:0;height:0;
  border-style:solid;border-width:12px 0 12px 20px;
  border-color:transparent transparent transparent #fff;margin-left:4px;
}
/* Float card */
.service-hero-v2 .hero-float-card{
  position:absolute;bottom:50px;left:-20px;
  background:#fff;border-radius:20px;padding:16px 22px;
  box-shadow:0 12px 40px rgba(0,0,0,0.1);
  animation:floatY 3s ease-in-out infinite;z-index:2;
}
.service-hero-v2 .hero-float-card .label{
  font-size:0.7rem;text-transform:uppercase;letter-spacing:0.08em;
  color:var(--text-light);margin-bottom:4px;
}
.service-hero-v2 .hero-float-card .value{
  font-family:var(--font-display);font-size:1.4rem;
  color:var(--burgundy);font-weight:600;
}
.service-hero-v2 .marquee{
  position:relative;
  margin-left:-40px;margin-right:-40px; /* bleed to edges */
  margin-top:0;
}
/* Hide Yandex badge if image doesn't exist */
.service-hero-v2 .yandex-badge-peek{
  position:absolute;left:40px;bottom:60px;z-index:3;
  width:80px;
}
.service-hero-duration{
  display:inline-flex;align-items:center;gap:6px;
  font-size:0.88rem;color:var(--text);font-weight:500;
  padding:8px 16px;border-radius:30px;
  background:var(--cream);
}
.service-hero-duration svg{width:16px;height:16px;fill:var(--rose)}
.hero-address{
  display:inline-flex;align-items:center;gap:6px;
  font-size:0.85rem;color:var(--text-light);margin-top:12px;
}
.hero-address svg{flex-shrink:0;fill:var(--rose)}

/* ===== SERVICE CONTENT (WP Editor) ===== */
.service-content{
  padding:80px 40px;
  background:var(--warm-white);
}
.service-content-inner{
  max-width:800px;margin:0 auto;
}
.service-content-inner h2{
  font-family:var(--font-display);
  font-size:1.8rem;font-weight:500;
  color:var(--burgundy-dark);
  margin:40px 0 16px;line-height:1.3;
}
.service-content-inner h2:first-child{margin-top:0}
.service-content-inner h3{
  font-family:var(--font-display);
  font-size:1.35rem;font-weight:600;
  color:var(--burgundy-dark);
  margin:30px 0 12px;line-height:1.35;
}
.service-content-inner p{
  font-size:0.95rem;line-height:1.8;
  color:var(--text);font-weight:300;
  margin-bottom:16px;
}
.service-content-inner ul,
.service-content-inner ol{
  margin:16px 0;padding-left:24px;
}
.service-content-inner li{
  font-size:0.95rem;line-height:1.8;
  color:var(--text);font-weight:300;
  margin-bottom:8px;
}
.service-content-inner ul li::marker{color:var(--rose)}
.service-content-inner ol li::marker{color:var(--burgundy);font-weight:600}
.service-content-inner table{
  width:100%;border-collapse:collapse;margin:24px 0;
}
.service-content-inner th{
  background:var(--cream);padding:12px 16px;text-align:left;
  font-size:0.85rem;font-weight:600;color:var(--burgundy-dark);
  border-bottom:2px solid rgba(122,43,56,0.12);
}
.service-content-inner td{
  padding:12px 16px;font-size:0.9rem;color:var(--text);
  border-bottom:1px dashed rgba(122,43,56,0.08);
}
.service-content-inner blockquote{
  border-left:3px solid var(--rose);
  padding:16px 24px;margin:24px 0;
  background:var(--cream);border-radius:0 12px 12px 0;
}
.service-content-inner blockquote p{
  color:var(--text-light);font-style:italic;margin-bottom:0;
}
.service-content-inner img{
  border-radius:16px;margin:24px 0;
}

/* ===== RESULTS / PORTFOLIO SECTION ===== */
.service-results{
  background:var(--warm-white);
}
.service-results-content{
  max-width:800px;margin:40px auto 0;
  text-align:center;
}
.service-results-content p{
  font-size:1rem;line-height:1.7;
  color:var(--text-light);font-weight:300;
  margin-bottom:24px;
}
.service-results-content ul{
  list-style:none !important;padding:0 !important;
  display:grid;grid-template-columns:1fr 1fr;gap:6px 40px;
  text-align:left;max-width:700px;margin:16px auto 0;
}
.service-results-content li{
  padding:10px 0;font-size:0.92rem;line-height:1.5;
  color:var(--text);font-weight:400;
  border-bottom:1px dashed rgba(122,43,56,0.06);
  display:flex !important;align-items:flex-start;gap:10px;
  list-style:none !important;
}
.service-results-content li::before{
  content:'✦';color:var(--rose);flex-shrink:0;margin-top:1px;font-size:0.8rem;
  display:inline-block;width:14px;text-align:center;
}

/* Results gallery — interior-style horizontal scroll */
.service-results .results-track{
  display:flex;gap:20px;
  overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;scroll-behavior:smooth;
  padding:0 max(40px, calc((100vw - 1200px)/2));
  margin-top:40px;
}
.service-results .results-track::-webkit-scrollbar{display:none}
.results-item{
  min-width:240px;max-width:240px;flex-shrink:0;
  border-radius:20px;overflow:hidden;scroll-snap-align:center;
  aspect-ratio:9/16;background:var(--rose-bg);position:relative;
}
.results-item img,
.results-item video{
  width:100%;height:100%;object-fit:cover;
  position:absolute;inset:0;
}
.results-item .work-bg{
  position:absolute;inset:0;background-size:cover;background-position:center;
  transition:transform 0.4s;
}
.results-item:hover .work-bg{transform:scale(1.05)}
.results-item .work-placeholder{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-size:4rem;opacity:0.3;
}
.results-nav{
  display:flex;gap:12px;margin-top:32px;justify-content:center;
}

/* ===== ЧТО ВХОДИТ / НЕ ВХОДИТ ===== */
.service-includes{
  padding:80px 40px;
  background:var(--cream);
}
.service-includes-grid{
  max-width:1000px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:32px;
}
.service-includes-card{
  background:#fff;border-radius:20px;padding:36px 32px;
  border:1px solid rgba(122,43,56,0.06);
  position:relative;overflow:hidden;
}
.service-includes-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
}
.service-includes-card.included::before{
  background:linear-gradient(90deg,var(--burgundy),var(--rose));
}
.service-includes-card.excluded::before{
  background:linear-gradient(90deg,var(--rose-light),var(--warm-gray));
}
.service-includes-card h3{
  font-family:var(--font-display);
  font-size:1.3rem;font-weight:600;
  color:var(--burgundy-dark);
  margin-bottom:20px;
  display:flex;align-items:center;gap:10px;
}
.service-includes-card h3 .icon{
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;flex-shrink:0;
}
.service-includes-card.included h3 .icon{
  background:rgba(122,43,56,0.08);color:var(--burgundy);
}
.service-includes-card.excluded h3 .icon{
  background:rgba(232,180,188,0.3);color:var(--text-light);
}
.service-includes-card ul{list-style:none !important;padding:0 !important;margin:0}
.service-includes-card li{
  padding:10px 0;font-size:0.92rem;line-height:1.6;
  color:var(--text);font-weight:300;
  border-bottom:1px dashed rgba(122,43,56,0.06);
  display:flex !important;align-items:flex-start;gap:10px;
  list-style:none !important;
}
.service-includes-card li:last-child{border:none}
.service-includes-card.included li::before{
  content:'✓';color:var(--burgundy);font-weight:700;
  flex-shrink:0;margin-top:1px;font-size:0.9rem;
  display:inline-block;width:16px;text-align:center;
}
.service-includes-card.excluded li::before{
  content:'✕';color:var(--rose);font-weight:700;
  flex-shrink:0;margin-top:1px;font-size:0.9rem;
  display:inline-block;width:16px;text-align:center;
}

/* ===== FAQ ACCORDION ===== */
.service-faq{
  padding:80px 40px;
  background:var(--warm-white);
}
.service-faq-inner{max-width:800px;margin:0 auto}
.faq-item{
  border-bottom:1px solid rgba(122,43,56,0.1);
}
.faq-question{
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 0;cursor:pointer;user-select:none;
  font-family:var(--font-display);font-size:1.15rem;font-weight:600;
  color:var(--burgundy-dark);line-height:1.4;
}
.faq-toggle{
  width:32px;height:32px;border-radius:50%;flex-shrink:0;margin-left:16px;
  background:var(--rose-light);color:var(--burgundy);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;transition:all 0.3s;
}
.faq-item.open .faq-toggle{
  background:var(--burgundy);color:#fff;transform:rotate(45deg);
}
.faq-answer{
  max-height:0;overflow:hidden;transition:max-height 0.4s ease;
}
.faq-item.open .faq-answer{max-height:600px}
.faq-answer-content{
  padding:0 0 22px;font-size:0.92rem;line-height:1.7;
  color:var(--text-light);font-weight:300;
}

/* ===== RELATED SERVICES ===== */
.related-services{
  display:none;
  padding:80px 40px;
  background:var(--cream);
}
.related-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.related-card{
  background:#fff;border-radius:20px;overflow:hidden;
  transition:all 0.4s;border:1px solid rgba(122,43,56,0.06);
}
.related-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(122,43,56,0.1);
}
.related-card-img{
  aspect-ratio:16/10;background:var(--rose-bg);overflow:hidden;
}
.related-card-img img,.related-card-img video{width:100%;height:100%;object-fit:cover;transition:transform 0.4s}
.related-card:hover .related-card-img img,.related-card:hover .related-card-img video{transform:scale(1.05)}
.related-card-img .placeholder{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:3rem;opacity:0.2;color:var(--burgundy);
}
.related-card-body{padding:22px 24px}
.related-card-body h3{
  font-family:var(--font-display);font-size:1.2rem;font-weight:500;
  color:var(--burgundy-dark);margin-bottom:8px;line-height:1.3;
}
.related-card-body p{
  font-size:0.85rem;color:var(--text-light);font-weight:300;
  line-height:1.6;margin-bottom:12px;
}
.related-card-price{
  font-size:0.9rem;font-weight:600;color:var(--burgundy);
}

/* ===== CHILD SERVICES GRID (Hub pages) ===== */
.child-services{
  padding:80px 40px;
  background:var(--warm-white);
}
.child-services-nav{display:none;margin-bottom:24px}
.child-services-nav a{text-decoration:none}
.child-services-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:repeat(2,1fr);gap:20px;
}
/* Reuses .related-card styles */

/* --- Horizontal card layout for hub grids --- */
.child-services-grid .related-card{
  display:flex;flex-direction:row;align-items:stretch;
}
.child-services-grid .related-card-img{
  min-width:180px;max-width:180px;background:var(--rose-bg);overflow:hidden;flex-shrink:0;
}
.child-services-grid .related-card-img img,
.child-services-grid .related-card-img video{
  width:100%;height:100%;object-fit:cover;
}
.child-services-grid .related-card-body{
  display:flex;flex-direction:column;justify-content:center;
}
.child-services-grid .related-card-price{margin-top:auto}

/* --- Grouped layout --- */
.child-services-group{max-width:1100px;margin:0 auto 48px}
.child-services-group:last-child{margin-bottom:0}
.child-services-group-label{
  font-size:0.72rem;font-weight:600;letter-spacing:0.15em;text-transform:uppercase;
  color:var(--rose);margin-bottom:20px;padding-left:4px;display:block;
}

/* --- Also known as --- */
.also-known-as{
  font-size:0.72rem;color:var(--text-light);margin-top:12px;opacity:0.5;
}
.also-known-as span{font-weight:400;margin-right:4px}
.also-known-as a{
  color:var(--burgundy);text-decoration:none;font-weight:400;
}
.also-known-as a:hover{text-decoration:underline}
.related-card-body h3 a{color:inherit;text-decoration:none}
.related-card-body h3 a:hover{text-decoration:underline}

/* --- Technique section --- */
.technique-section{background:var(--cream)}
.technique-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:40px;
}
.technique-group-title{
  font-family:var(--font-display);font-size:1.15rem;font-weight:500;
  color:var(--burgundy-dark);margin-bottom:4px;
}
.technique-group-desc{
  font-size:0.85rem;color:var(--text-light);font-weight:300;margin-bottom:16px;
}
.technique-list{list-style:none;padding:0;margin:0}
.technique-list li{margin-bottom:8px}
.technique-item{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 20px;background:#fff;border-radius:12px;
  text-decoration:none;transition:all 0.3s;
  border:1px solid rgba(122,43,56,0.06);
}
.technique-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(122,43,56,0.08);
}
.technique-item-info{
  display:flex;flex-direction:column;gap:4px;
}
.technique-item-name{
  font-family:var(--font-display);font-size:1rem;font-weight:500;
  color:var(--burgundy-dark);
}
.technique-item-desc{
  font-size:0.8rem;color:var(--text-light);font-weight:300;line-height:1.4;
}
.technique-item-price{
  font-size:0.85rem;font-weight:600;color:var(--burgundy);white-space:nowrap;
}
/* --- Additional services --- */
.additional-services{background:var(--warm-white)}
.additional-grid{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
}
.additional-item{
  display:flex;flex-direction:column;
  padding:20px 24px;background:#fff;border-radius:14px;
  text-decoration:none;transition:all 0.3s;
  border:1px solid rgba(122,43,56,0.06);
}
.additional-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(122,43,56,0.08);
}
.additional-item-name{
  font-family:var(--font-display);font-size:1.05rem;font-weight:500;
  color:var(--burgundy-dark);margin-bottom:6px;
}
.additional-item-desc{
  font-size:0.8rem;color:var(--text-light);font-weight:300;
  line-height:1.5;margin-bottom:10px;
}
.additional-item-price{
  font-size:0.85rem;font-weight:600;color:var(--burgundy);margin-top:auto;
}

/* ===== BEFORE/AFTER COMPARISON SLIDER ===== */
.service-before-after{
  padding:80px 40px;
  background:var(--cream);
}
.before-after-track{
  display:flex;gap:20px;
  overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;scroll-behavior:smooth;
  padding:0 max(40px, calc((100vw - 1200px)/2));
  margin-top:40px;
}
.before-after-track::-webkit-scrollbar{display:none}
.ba-slider{
  min-width:340px;max-width:340px;flex-shrink:0;
  scroll-snap-align:center;
}
.ba-container{
  position:relative;
  aspect-ratio:3/4;
  border-radius:20px;
  overflow:hidden;
  cursor:ew-resize;
  user-select:none;-webkit-user-select:none;
}
.ba-img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
}
.ba-after-clip{
  position:absolute;inset:0;
  clip-path:inset(0 0 0 50%);
}
.ba-after-clip .ba-img{position:relative}
.ba-divider{
  position:absolute;top:0;bottom:0;
  left:50%;width:3px;
  background:#fff;
  transform:translateX(-50%);
  z-index:2;pointer-events:none;
}
.ba-handle{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:44px;height:44px;border-radius:50%;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  display:flex;align-items:center;justify-content:center;gap:2px;
  pointer-events:auto;
}
.ba-arrow{
  font-size:1rem;color:var(--burgundy);
  font-weight:700;line-height:1;
}
.ba-labels{
  display:flex;justify-content:space-between;
  margin-top:12px;padding:0 4px;
}
.ba-label{
  font-family:var(--font-body);
  font-size:0.75rem;font-weight:500;
  color:var(--text-light);text-transform:uppercase;
  letter-spacing:0.1em;
}
.ba-caption{
  text-align:center;margin-top:6px;
  font-family:var(--font-body);
  font-size:0.82rem;color:var(--text-light);font-weight:400;
}
.ba-nav{
  display:flex;gap:12px;margin-top:32px;justify-content:center;
}
